Private Information Retrieval (PIR) has long been a "holy grail" of privacy-preserving technology. It allows a client to fetch an entry from a server's database without the server learning which entry was requested. However, for decades, single-server PIR faced a daunting "linearity barrier": to ensure privacy, the server had to scan the entire database for every single query. For a 100GB database, this makes queries painfully slow.
A new paper from researchers at Carnegie Mellon University introduces Piano, a scheme that shatters this barrier. By using a clever preprocessing approach and sticking to simple cryptographic building blocks, Piano achieves sublinear server computation, making private queries on massive databases finally feel "instant."
TL;DR
Piano is the first practical single-server PIR scheme to achieve sublinear server computation ($O(\sqrt{n})$) using only simple Pseudo-Random Functions (PRFs) rather than heavy homomorphic encryption. On a 100GB database, Piano delivers a 73ms response time—a staggering 150x speedup over previous state-of-the-art systems.
What Problem Does This Paper Address?
The fundamental challenge in single-server PIR is privacy through "indistinguishability." If a server doesn't touch a specific record during a query, it knows for certain the client wasn't interested in that record. Therefore, traditional schemes require a linear scan of the entire database ($O(n)$).
While theoretical "sublinear" schemes exist, they typically rely on "heavy" cryptographic machinery like Fully Homomorphic Encryption (FHE). These primitives carry such high computational constants that they are often slower in practice than a simple linear scan. Piano aims to fill the gap between theoretical efficiency and real-world performance, specifically targeting large-scale applications like private DNS lookups or blocklist checks.
Methods
Piano shifts the heavy lifting to a client-specific preprocessing model (also called a subscription model).
- Preprocessing: The client performs a one-time download of the entire database to build a "hint" table. This table stores the parities (XOR sums) of random sets of database entries.
- The Chunking Strategy: The database of $n$ entries is divided into $\sqrt{n}$ chunks. Each "hint" set contains exactly one random index from each chunk.
- The Query: To fetch index $x$, the client finds a precomputed hint set $S$ that happens to contain $x$. It then asks the server for the parity of a modified set $S'$. Crucially, $S'$ is created by replacing $x$ with a different random index $r$ from the same chunk.
- Sublinear Computation: Because the server only needs to XOR one entry from each of the $\sqrt{n}$ chunks, its work is $O(\sqrt{n})$—the square root of the database size.
- Simplicity: Unlike prior work, Piano uses no FHE or complex "puncturable" PRFs. It relies solely on standard AES-based PRFs to compress the hint sets, keeping the client's storage requirements manageable ($O(\sqrt{n})$).
Datasets
The authors evaluated Piano using synthetic databases of various sizes to demonstrate scaling:
- 1GB and 2GB databases with 8-byte entries.
- A 100GB database containing 1.6 billion 64-byte entries, designed to simulate a realistic large-scale repository like a global DNS table.
Key Insights and Ideas
- Simplicity as an Optimizer: By eschewing complex lattice-based cryptography in favor of simple XOR operations and PRFs, Piano removes the "astronomical constants" that plague other sublinear schemes.
- Distribution Preservation: The "aha moment" in Piano’s security is that replacing an index within the same chunk preserves the overall distribution of the query set. To the server, every query looks like a freshly sampled random set, revealing nothing about which specific index was swapped.
- Streaming Preprocessing: The setup phase is designed as a single streaming pass over the database, allowing the client to build its hint table without ever needing to store the full database locally at once.
Key Results
- Massive Speedups: On a 100GB database, Piano achieved a 73ms response time (including 60ms of network latency). In contrast, the previous state-of-the-art (SimplePIR) required over 11 seconds—a 150x difference.
- Sublinear Scaling: As the database grows, Piano’s advantage widens. In local network tests, Piano was up to 900x faster than linear-scan alternatives for large datasets.
- Near-Baseline Performance: In a Wide-Area Network (WAN) scenario, Piano’s total latency was only 20% higher than a non-private baseline.
- Compact Implementation: The core logic of Piano is remarkably simple, requiring only about 800 lines of Go code.
Limitations and Future Work
- Setup Cost: The primary drawback is the "heavy" setup. The client must download the entire database once to initialize the hint table. This makes Piano ideal for long-term "subscriptions" (like a DNS service) but less suitable for one-off queries.
- Communication Trade-off: To achieve sublinear server computation, Piano accepts a higher online communication cost ($O(\sqrt{n})$) compared to theoretical schemes that achieve polylogarithmic communication.
- Client Storage: While compressed, the client still needs to store several hundred megabytes of hints for a 100GB database (approx. 839MB in the evaluation).
- Future Directions: The authors suggest that reducing the $O(\sqrt{n})$ communication overhead while maintaining sublinear server time remains a major open challenge for practical PIR.
Summary updated