Skip to main content
QUICK REVIEW

[Paper Review] Optimizing relinearization in circuits for homomorphic encryption

Hao Chen|arXiv (Cornell University)|Oct 25, 2017
Cryptography and Data SecurityComputer Science9 references3 citations
TL;DR

This paper formulates and analyzes the relinearization optimization problem in homomorphic encryption circuits, proving it is NP-hard while providing a polynomial-time dynamic programming solution for circuits where each vertex has at most one outgoing edge. The key contribution is a formal framework to minimize total computational cost by strategically placing relinearization operations to balance multiplication and relinearization overheads.

ABSTRACT

Fully homomorphic encryption (FHE) allows an untrusted party to evaluate arithmetic cir- cuits, i.e., perform additions and multiplications on encrypted data, without having the decryp- tion key. One of the most efficient class of FHE schemes include BGV and FV schemes, which are based on the hardness of the RLWE problem. They share some common features: ciphertext sizes grow after each homomorphic multiplication; multiplication is much more costly than addition, and the cost of homomorphic multiplication scales linearly with the input ciphertext sizes. Furthermore, there is a special relinearization operation that reduce the size of a ciphertext, and the cost of relinearization is on the same order of magnitude as homomorpic multiplication. This motivates us to define a discrete optimization problem, which is to decide where (and how much) in a given circuit to relinearize, in order to minimize the total computational cost. In this paper, we formally define the relinearize problem. We prove that the problem is NP-hard. In addition, in the special case where each vertex has at most one outgoing edge, we give a polynomial-time algorithm.

Motivation & Objective

  • To formalize the problem of when and how much to relinearize in arithmetic circuits for fully homomorphic encryption (FHE) to minimize total computational cost.
  • To prove that the relinearization optimization problem is NP-hard via reduction from the knapsack problem.
  • To develop a polynomial-time dynamic programming algorithm for the special case where each vertex has at most one outgoing edge.
  • To demonstrate that naive relinearization after every multiplication is not always optimal, motivating the need for intelligent optimization.
  • To provide a foundation for future work on approximate algorithms and circuit-specific optimizations in FHE applications.

Proposed method

  • Formalizes the relinearization problem as a discrete optimization task in arithmetic circuits, modeling multiplication and relinearization costs as linear functions of ciphertext length.
  • Defines a cost function combining homomorphic multiplication cost $ k_m(l_1 + l_2) $ and relinearization cost $ k_r imes $ reduction in length.
  • Uses dynamic programming to compute $ M(i, \ell) $, the minimal cost to compute vertex $ i $ with output length $ \ell $, based on parent vertex costs.
  • Applies a reduction from the knapsack problem to prove NP-hardness, constructing a circuit $ G $ such that solving the relinearize problem on $ G $ solves the knapsack instance.
  • Implements a bounded search space for lengths $ \ell $, proving it suffices to consider $ 2 \leq \ell \leq N $, where $ N $ is the number of vertices.
  • Designs a construction of auxiliary circuits $ \mathcal{L}'(\lambda_i) $ to encode knapsack variables and values into circuit structure for the reduction.

Experimental results

Research questions

  • RQ1Is the problem of optimizing relinearization in FHE circuits NP-hard?
  • RQ2Can an efficient algorithm be designed for circuits where each vertex has at most one outgoing edge?
  • RQ3Does relinearizing after every multiplication always minimize total computational cost?
  • RQ4Can the relinearization optimization problem be reduced to a known NP-hard problem like knapsack?
  • RQ5What is the computational complexity of the relinearization optimization problem in general circuits?

Key findings

  • The relinearization optimization problem is proven to be NP-hard via a reduction from the knapsack problem.
  • For circuits where each vertex has at most one outgoing edge, a polynomial-time dynamic programming algorithm with $ O(N^4) $ running time is provided.
  • The optimal relinearization strategy is not always to relinearize after every multiplication, as this can lead to suboptimal cost due to high relinearization overhead.
  • The reduction constructs a circuit $ G $ such that solving the relinearize problem on $ G $ is equivalent to solving a knapsack instance, with the cost difference encoding the knapsack value.
  • The construction ensures that the number of vertices in the resulting circuit is polynomial in the parameters of the knapsack instance, including $ v_i, w_i, W $.
  • The cost parameters $ k_m $ and $ k_r $ are bounded by polynomials in the knapsack parameters, confirming the reduction is valid and efficient.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.