Secure Data Retrieval on the Cloud: Homomorphic Encryption meets Coresets

Adi Akavia, Dan Feldman, Hayim Shaul

TL;DR

This paper introduces a breakthrough in privacy-preserving database queries by combining Fully Homomorphic Encryption (FHE) with "coresets" (data summaries). By having the server compute a small sketch of the query results rather than the full result set, the authors achieve a 1000x speedup, enabling secure searches across billions of records in minutes—a feat previously impossible with standard FHE techniques.

What Problem Does This Paper Address?

The authors tackle the Secure Report problem: a client wants to retrieve all records from a cloud database that match a specific criteria (like a SQL SELECT query) without the cloud server ever seeing the data, the query, or the results.

While Fully Homomorphic Encryption (FHE) theoretically allows a server to process encrypted data, existing solutions are painfully slow. The "direct" way to do this involves a mathematical polynomial whose complexity (degree) grows linearly with the number of records ($m$). For a database with millions or billions of entries, the computational "noise" in FHE becomes unmanageable, making even small searches take hours or days. The challenge was to find a way to make the server's work independent of the database size.

Methods

The paper proposes a new paradigm called Coresets for Homomorphic Encryption (CHE). Instead of forcing the server to produce the final list of matches, the server computes a coreset—a highly compressed "sketch" of the results.

Key technical components include:

  • Sketching & Group Testing: The server generates an encrypted indicator vector (1 for a match, 0 otherwise). It then multiplies this by a special "sketch matrix" to create a small summary. This summary is sent to the client, who uses "Group Testing" algorithms to decode the actual indices of the matches.
  • CRT Coreset: To keep the math efficient, they use the Chinese Remainder Theorem (CRT). Instead of doing one massive calculation, they split the work across several small prime numbers. This reduces the "ring size" from $O(m)$ to $O(\log m)$, allowing for lower-degree polynomials that are much faster to evaluate.
  • Degree Independence: Crucially, the degree of the polynomial the server evaluates is determined by the matching criteria (e.g., an equality test), not the number of records in the database.

Datasets

The authors evaluated their system using synthetic database tables to test scalability:

  • Scale: They tested arrays ranging from 10 records up to 3 billion records.
  • Sparsity: They focused on "sparse" results (where 10, 20, or 40 records match the query), which is typical for many real-world search scenarios.
  • Implementation: The system was built using HElib, a prominent open-source FHE library, and tested on high-end Amazon EC2 instances (x1.32xlarge with 64 cores and nearly 2TB of RAM).

Key Insights and Ideas

  • The "Aha" Moment: The server doesn't need to do the "hard" part of sorting or listing. If the server provides a mathematically sound summary (the coreset), the client—who holds the decryption key—can quickly decode the specific results locally.
  • Bridging Two Fields: This is the first major work to link modern data summarization (coresets) with cryptography (FHE). It treats the server as a "sketching engine" rather than a traditional database engine.
  • Exactness: Unlike many sketching techniques in big data that provide approximate answers, these CHEs are exact. The client retrieves the precise set of matching records without error.

Key Results

  • Massive Speedup: The coreset approach is roughly 1000x faster than the direct polynomial method for medium-sized databases.
  • Unprecedented Scale: The system can search through 3 billion encrypted records in about 2 minutes on a single cloud machine. Previous FHE-based solutions struggled to handle even 100,000 records in a reasonable timeframe.
  • Efficiency: The communication between client and server is "sub-linear," meaning the amount of data sent back and forth is proportional to the number of matches and $\log(m)$, rather than the total size of the database.

Limitations and Future Work

  • Semi-Honest Model: The current security proof assumes a "semi-honest" adversary (the server follows the rules but tries to learn information). It does not yet account for a "malicious" server that might intentionally provide incorrect results.
  • Known Sparsity: The basic version of the protocol requires the client to provide an upper bound ($s$) on how many matches they expect. While the authors suggest workarounds (like a two-round protocol to count matches first), these add latency.
  • Dynamic Data: While the paper outlines how to handle inserts, updates, and deletes, the primary focus and experimental validation are on static retrieval. Further optimization for high-frequency write environments is a likely next step.

Summary updated

BibTeX
@article{akavia2019secure,
  author = {Adi Akavia and Dan Feldman and Hayim Shaul},
  title = {{Secure Data Retrieval on the Cloud: Homomorphic Encryption meets Coresets}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2019},
  doi = {10.13154/tches.v2019.i2.80-106},
}
Figure