On the Efficiency of FHE-based Private Queries

Myungsun Kim, Hyung Tae Lee, San Ling, Huaxiong Wang

Abstract

Fully Homomorphic Encryption (FHE) offers a robust solution for privacy-preserving database queries, yet high multiplicative depth and communication overhead remain significant barriers to practical implementation. This paper introduces algebraic optimizations to minimize the multiplicative depth of equality predicates and proposes a polynomial compression technique to reduce communication costs. By leveraging depth-free Frobenius maps in extension fields, particularly in characteristic 2, the authors achieve a multiplicative depth of only $\lceil \log \ell \rceil$ for $\ell$-bit messages. Experimental results demonstrate communication reductions of 80-88% compared to baseline FHE approaches, making private SQL-like queries more feasible for large-scale datasets.

Introduction

The "holy grail" of data privacy is Fully Homomorphic Encryption (FHE), which enables computation on encrypted data without decryption. However, FHE's practical utility is hampered by computational complexity and noise growth. Every multiplication increases ciphertext noise; if noise exceeds a threshold, decryption fails. Consequently, a primary goal in FHE research is minimizing "multiplicative depth"—the maximum number of sequential multiplications in a circuit.

Existing FHE-based query systems struggle with two main issues: inefficient equality predicates and massive communication overhead. In standard protocols, a server often must return ciphertexts for every record in a database because it cannot determine which records match a query without decrypting them. This paper addresses these challenges through algebraic optimization and clever result encoding.

Methods

The researchers focused on optimizing the equality test, the fundamental building block of SQL-like queries. Their approach involves a detailed analysis of plaintext spaces and the use of specific FHE scheme properties.

Plaintext Space Analysis

The choice of mathematical structure for the plaintext space significantly impacts the depth of equality tests. The authors compared prime fields ($\mathbb{F}_p$) and extension fields ($\mathbb{F}_{2^\ell}, \mathbb{F}_{p^\ell}$). By utilizing FHE schemes like BGV and YASHE, they leveraged "Frobenius map" operations that can be performed with zero multiplicative depth. This allows for efficient exponentiation, which is central to the equality test.

Comparison of multiplicative depth for equality tests across different plaintext spaces.

Optimized Query Protocols

The paper details protocols for various query types, including conjunctive queries (AND), disjunctive queries (OR), and threshold queries (e.g., "at least $k$ of $m$ conditions are met").

Polynomial Compression

To mitigate communication bottlenecks, the server encodes query results into the coefficients of a polynomial. Given a known maximum selectivity ($\delta$), the server only returns enough coefficients to represent the matching records, rather than the entire database. This shifts some computational burden to the client, who must perform root-finding to extract results, but drastically reduces network traffic.

Key Results

The evaluation used simulated database parameters with sizes up to $2^{20}$ (approximately 1 million) tuples and selectivity bounds of 5% and 10%.

  • Optimal Depth in Characteristic 2: When the plaintext space is a field of characteristic 2 ($\mathbb{F}_{2^\ell}$), the equality test for $\ell$-bit messages achieves the theoretical minimum multiplicative depth of $\lceil \log \ell \rceil$. For a 32-bit message, this results in a depth of only 5.
  • Significant Bandwidth Savings: For a database of 1 million records with 5% selectivity, communication costs were reduced from 42.42 GB to 8.70 GB—an 80% reduction. Smaller databases ($n=2^{10}$) saw reductions of up to 88%.

Conclusion and Future Work

This work demonstrates that through careful algebraic selection and the exploitation of depth-free automorphisms, FHE can be made significantly more efficient for private database queries. While the communication-efficient mode requires an upper bound on selectivity and increases client-side computation, the trade-off is highly beneficial for bandwidth-constrained environments.

Future research will focus on extending these depth-optimization techniques to non-equality predicates, such as range queries and order-based operations, as well as addressing the challenge of hiding query logic (Query Privacy) from the server.

Summary updated

BibTeX
@article{kim2015efficiency,
  author = {Myungsun Kim and Hyung Tae Lee and San Ling and Huaxiong Wang},
  title = {{On the Efficiency of FHE-based Private Queries}},
  journal = {IACR ePrint},
  year = {2015},
}
Figure