TL;DR
PACMANN is a private search scheme that allows users to find similar items in a massive vector database without revealing their query to the server. By combining graph-based search algorithms with a clever "client-preprocessing" cryptographic technique, it achieves up to 2.5× better accuracy and significantly lower latency than previous state-of-the-art private search methods.
What Problem Does This Paper Address?
In the age of Large Language Models and Retrieval-Augmented Generation (RAG), we constantly query vector databases to find relevant information. However, sending a "query vector" to a server is a privacy nightmare—it can reveal sensitive interests, health data, or proprietary secrets.
Existing "private search" solutions generally fall into two buckets, both with major flaws:
- Linear Scans: The server scans the entire database using heavy cryptography (like Homomorphic Encryption). This is private but incredibly slow for large datasets.
- Clustering-based Search: These group data into "buckets." They are faster but much less accurate, often missing the actual nearest neighbors.
The challenge is creating a system that is sublinear (doesn't check every item), accurate (uses high-quality graph-based search), and cryptographically secure.
Methods
PACMANN shifts the paradigm by offloading the search logic to the client, removing the need for computationally intensive cryptographic techniques on the server side.
- Graph-Based Traversal: In a standard non-private search, you navigate a graph of vectors, hopping from neighbor to neighbor until you find the closest match. PACMANN lets the client perform this traversal locally.
- Client-Preprocessing PIR: To keep the search private, the client can't just ask for a specific node's neighbors. Instead, they use Private Information Retrieval (PIR). PACMANN specifically uses a scheme called Piano. In an offline phase, the client "sketches" the database (a one-time streaming download). In the online phase, this sketch allows the client to fetch specific graph nodes in sublinear time without the server knowing which nodes were accessed.
- Graph Regularization: Standard search graphs have "hub" nodes with many connections. If a client requested 100 neighbors for one node and 5 for another, the server could guess where the client is in the graph. PACMANN uses a custom graph-building algorithm to ensure every node has exactly a constant number of neighbors, making every "hop" look identical to the server.
- Optimizations: The authors implement Beam Search (exploring multiple paths at once) and Fast Starting (using the PIR "hint" to jump-start the search from multiple random points) to further slash latency.
Datasets
The authors evaluated PACMANN on two massive, real-world benchmarks:
- MS-MARCO (3M vectors): A dataset of 3.2 million text documents embedded into 192-dimensional vectors.
- SIFT-100M (100M vectors): A massive dataset of 100 million image descriptors (128-dimensional).
Key Insights and Ideas
- The Power of the Client: Most prior work tried to make the server smarter or faster at encrypted math. PACMANN realizes that if the client handles the "intelligence" (the search algorithm), the server only needs to act as a "blind" data provider.
- Trading Preprocessing for Speed: By accepting a one-time setup cost (downloading the index sketch), PACMANN achieves "online" speeds that were previously thought impossible for cryptographically strong private search.
- Structure Matters: You can't just wrap a standard ANN algorithm in a privacy layer. You have to fundamentally change how the index (the graph) is built—specifically enforcing regularity—to prevent side-channel leaks.
Key Results
PACMANN achieves significantly better search quality than state-of-the-art private ANN search schemes.
- Superior Accuracy: On the MS-MARCO dataset, PACMANN achieved a 63% success rate in finding the top result, compared to just 29% for the previous state-of-the-art (Tiptoe). It reaches 90% of the quality of the best non-private algorithms.
- Better Scalability: On the 100-million vector SIFT dataset, PACMANN reduced server computation time by 62% and overall latency by 22% compared to linear-scan baselines.
- Practical Latency: In a local network (LAN) setting, a private search over 100 million vectors takes only 1.6 seconds. In a wide-area network (WAN), it takes about 3.1 seconds.
Limitations and Future Work
- The "Heavy" Start: The Piano PIR scheme requires the client to download the entire indexing graph once in a streaming fashion. While they don't need to store it all (only a ~3GB "hint" for 100M vectors), the initial 60GB download is a hurdle for users on slow connections.
- Public Database Assumption: PACMANN assumes the database itself is public (like a Wikipedia index or a common document store). It does not currently support scenarios where the database is private to the server or unique to each client.
- Static Data: The current implementation doesn't easily support dynamic updates (adding/deleting vectors) without re-running the preprocessing phase. The authors note this as a challenging open problem in the PIR field.
Summary updated