Secure Search via Multi-Ring Fully Homomorphic Encryption

Adi Akavia, Dan Feldman, Hayim ShaulIACR ePrint 2018

Abstract

Securely querying encrypted databases remains a significant challenge due to the high computational overhead of Fully Homomorphic Encryption (FHE). This work introduces SPiRiT, a low-degree polynomial sketch, and a multi-ring FHE evaluation framework that reduces search complexity from linear to logarithmic depth. Experimental results demonstrate the ability to search millions of records in under an hour on standard cloud hardware, representing a major step toward practical privacy-preserving data retrieval.

Introduction

The ability to outsource data to the cloud while maintaining absolute privacy is a long-standing goal in cryptography. Fully Homomorphic Encryption (FHE) allows a server to process encrypted data without ever seeing the underlying information. However, traditional FHE-based search is prohibitively slow; searching a database of size $m$ typically requires a polynomial degree that grows linearly with $m$. This scaling bottleneck limits practical applications to very small datasets.

This paper addresses this challenge by introducing a system that performs unrestricted secure search on large datasets with practical runtimes. By optimizing the mathematical structure of the search query, the authors achieve a complexity of $log^{O(1)} m$, allowing the system to scale to hundreds of millions of records.

Methodology: SPiRiT and Multi-Ring FHE

The core innovation lies in two synergistic techniques:

  1. SPiRiT (Sketch for First Positive): A new low-degree polynomial sketch designed to identify the index of the first record matching a query. Unlike traditional methods that touch every bit of every record, SPiRiT utilizes a tree-based structure to compute prefix sums and an "is-positive" operator based on Fermat’s Little Theorem. This keeps the multiplicative depth—the primary bottleneck in FHE—at $O(\log \log m)$.
  2. Multi-Ring FHE Evaluation: Instead of evaluating the search over a single large mathematical ring, the authors evaluate the SPiRiT sketch over several smaller rings (modulo small primes $p_1, \dots, p_k$) in parallel.
Comparison of single-ring prior art versus the proposed multi-ring approach, highlighting the reduction in circuit depth from $\log m$ to $\log(\log m)$.

By the Pigeonhole Principle, the authors prove that at least one of these small rings will correctly identify the matching record. The client then decodes the results from these parallel evaluations. This strategy drastically reduces the multiplicative depth and allows for high degrees of parallelism.

Experimental Evaluation

The system was evaluated using synthetic databases ranging from 90,000 to over 511 million records, with entry sizes up to 64 bits. Experiments were conducted on Amazon EC2 instances to test horizontal scalability.

Search time in hours versus the number of entries $m$ for various bit-lengths.

Key Results

  • Practical Latency: On a single 64-core machine, the system can search 100,000 64-bit records in approximately one minute.
  • Scalability: The "embarrassingly parallel" nature of the multi-ring approach allows for near-linear speedups with additional hardware. In a cluster of 1,000 machines, searching billions of entries in under an hour is feasible.
  • Low Client Overhead: Encryption and decryption tasks remain lightweight, taking less than 30ms per ciphertext, ensuring that the computational burden is effectively offloaded to the server.

Discussion and Limitations

The transition from $\Omega(m)$ to $log^{O(1)} m$ complexity is a transformative shift for secure search. However, some trade-offs remain:

  • Communication Overhead: The multi-ring approach requires the client to send $k$ ciphertexts (where $k = o(\log^2 m)$), increasing bandwidth requirements compared to single-ring FHE.
  • Query Semantics: The current SPiRiT implementation focuses on retrieving the first match. While extensions for multiple matches are possible, they introduce additional complexity.
  • Static Data: The current work focuses on static databases. While updates are possible, the performance implications for highly dynamic datasets require further study.

Conclusion

By combining a novel polynomial sketch with a parallelized multi-ring FHE evaluation, this work demonstrates that secure, privacy-preserving search is no longer a purely theoretical construct but a practical possibility for large-scale cloud applications.

Summary updated

BibTeX
@article{akavia2018secure,
  author = {Adi Akavia and Dan Feldman and Hayim Shaul},
  title = {{Secure Search via Multi-Ring Fully Homomorphic Encryption}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2018},
}
Figure