Encode and Permute that Database! Single-Server Private Information Retrieval with Constant Online Time, Communication, and Client-Side Storage

Shuaishuai Li, Weiran Liu, Liqiang Peng, Cong Zhang, Xinwei Gao, Aiping Liang, Lei Zhang, Dongdai Lin, Yuan Hong

TL;DR

Pai is a novel client-preprocessing Private Information Retrieval (PIR) framework that achieves constant ($O(1)$) online time, communication, and client-side storage. By shifting the heavy lifting to a one-time offline phase, Pai enables blazing-fast private keyword searches (~1ms) on large-scale databases, making it a practical solution for real-time data marketplaces.

What Problem Does This Paper Address?

In a data marketplace, a seller (server) holds a private key-value database, and a buyer (client) wants to query specific entries. To protect privacy, the server shouldn't know what the client is looking for, and the client shouldn't learn anything about the database except the result of their specific query. This is known as Keyword PIR with Symmetric Privacy (KSPIR).

While PIR has existed for decades, it faces a "fundamental barrier": the server usually has to touch every single entry in the database to prevent leaking information, leading to linear computation time. Recent "client-preprocessing" models (like Piano or Spam) moved some work to an offline phase to achieve sub-linear online time ($O(\sqrt{n})$). However, $O(\sqrt{n})$ is still too slow for real-time applications as databases grow. Furthermore, existing solutions are often mathematically complex, making them difficult for non-experts to implement securely.

Methods

Pai (named after the mathematical symbol $\pi$ for permutation) utilizes a client-preprocessing model. The protocol is split into two phases:

  1. Offline Phase (Preprocessing): The client and server jointly encode and permute the database.
  2. Folding Technique: To keep the bandwidth manageable, the database is treated as a 2D matrix (a hypercube). The parties interact to permute the rows and then the columns.
  3. Streaming: This process is done in a streaming fashion so the client only needs $O(\sqrt{n})$ transient storage during the setup, even though the final result allows for $O(1)$ online storage.
  4. Result: The server ends up with an encrypted, shuffled version of the database specifically prepared for that client.
  5. Online Phase (Query):
    • The client computes an encoded index using a Pseudo-Random Permutation (PRP) key they hold.
  6. The server performs a simple, constant-time lookup and returns the encrypted value.
  7. The client decrypts the value.

The authors extend this to PaiKSPIR (using Cuckoo hashing to map keys to indices) and PaiCKSPIR (Chargeable KSPIR). The latter is a novel contribution that allows a server to know if a query was successful (to facilitate billing) without knowing which key was queried.

Datasets

The authors evaluated Pai using synthetic key-value databases to simulate various scales:

  • Database Sizes ($n$): $2^{20}$, $2^{22}$, and $2^{24}$ entries.
  • Entry Sizes: 64, 128, and 256 bytes.
  • Baselines: They compared Pai against APSI (a state-of-the-art non-preprocessing KSPIR), as well as KSPIR variants of Piano and Spam.

Key Insights and Ideas

  • Trading Storage for Speed: Pai makes a deliberate trade-off. It requires the server to store a unique, encoded version of the database for each client. While this is expensive for public-facing web services, it is perfectly acceptable in B2B data marketplaces where a seller has a limited number of recurring buyers.
  • Simplicity is a Feature: Unlike many PIR schemes that rely on heavy Homomorphic Encryption (HE) or complex "hint" generation, Pai uses lightweight cryptographic primitives: AES (for PRPs and encryption) and Diffie-Hellman-style operations (for OPRFs). This makes it easier to audit and implement.
  • The "Encrypted Cache" Concept: Conceptually, the offline phase creates a personalized, encrypted cache on the server. Because the server cannot see the permutation or the keys, the online lookup is a simple $O(1)$ operation that reveals nothing.
  • Solving the Billing Problem: In a marketplace, sellers want to charge for successful retrievals. PaiCKSPIR elegantly allows the server to learn a single bit (Match/No-Match) while maintaining the privacy of the specific key.

Key Results

  • Blazing Fast Online Time: For a database with $2^{24}$ entries, the online query time is approximately 1ms. This is 2.3x to 8.9x faster than previous preprocessing schemes (Piano/Spam) and three orders of magnitude faster than non-preprocessing schemes (APSI).
  • Minimal Communication: Online communication overhead is constant at roughly 1KB, regardless of database size. This represents a 9.9x to 81.3x reduction compared to prior preprocessing works.
  • Client Efficiency: Client-side storage during the online phase is $O(1)$—they only need to store a few small cryptographic keys.

Limitations and Future Work

  • Per-Client Server Storage: The primary limitation is the $O(n)$ server-side storage required for each client. The authors acknowledge this makes Pai less suitable for applications with millions of casual users (like private safe browsing) but ideal for the "Data Marketplace" niche.
  • Static Databases: The current framework is designed for static or slowly-changing databases. If the seller adds new data, a portion of the offline preprocessing must be re-run.
  • Offline Communication: While the online phase is $O(1)$, the offline phase requires the client to essentially upload the encoded database, which is $O(n)$ total communication. Future work could explore ways to update the "encrypted cache" incrementally.

Summary updated

BibTeX
@article{li2023encode,
  author = {Shuaishuai Li and Weiran Liu and Liqiang Peng and Cong Zhang and Xinwei Gao and Aiping Liang and Lei Zhang and Dongdai Lin and Yuan Hong},
  title = {{Encode and Permute that Database! Single-Server Private Information Retrieval with Constant Online Time, Communication, and Client-Side Storage}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2023},
  url = {https://openreview.net/forum?id=fJjChoW6Km},
}
Figure