Spruce: Scalable Private Outsourced Retrieval Using Compact Embeddings
Abstract
Retrieval-Augmented Generation (RAG) has made dense retrieval over large document collections a standard building block. Organizations increasingly outsource vector indexes to untrusted clouds, exposing proprietary corpora and user queries. Cryptographic protection is challenging because each query searches corpus-scale state, causing computation, correlated randomness, and communication to grow with the corpus. At million-document scale, a naive secure implementation takes minutes and about 90 GB of communication per query. Even recent optimized systems require 10--22 seconds. We propose Spruce (Scalable Private Outsourced Retrieval Using Compact Embeddings), which co-designs representations with the cryptographic protocol. Spruce learns compact binary codes that preserve candidates for full-precision reranking, replacing corpus-wide embedding scoring with efficient Hamming-distance computation under two-server multi-party computation (MPC). A corpus-calibrated fixed-radius protocol avoids multi-round candidate selection while preserving retrieval quality. Spruce also provides private cluster pruning, which trades minor quality loss for substantially less computation, and a one-core owner-operated dealer that removes cloud OT preprocessing bottlenecks. Across four corpora containing 383K--5.42M documents, Spruce preserves the original search quality with median candidate sets of only 382--1,952. At 10 Gbps inter-server bandwidth, full scans take 0.21--2.97 seconds, -- faster than the closest measured prior work. Private pruning takes 0.06--1.09 seconds, achieves -- speedups, and retains -- of full-float NDCG. On the largest corpus, pruning and the dealer jointly improve sustained throughput by at 1 Gbps per link.
Create a lesson
Metadata
- Categories
- cs.CR, cs.IR, cs.LG
- Comments
- 23 pages, 10 tables, 6 figures
Related papers
PRIME: A Modular Approach for Private Synthetic Data
Shared title terminologycs.CRMiguel Fuentes, Brett Mullins, Cecilia Ferrando et al.
SPAR: Sparse-space Poisoning Attack on Retrieval-Augmented Generation Systems
Shared title terminologycs.CRQingyuan Zheng, Min Ren, Saihui Hou et al.
One Space, Two Views: Aligning Static and Dynamic Android Malware Analysis with Contrastive Text Embeddings for Cross-View Forensic Linking
Shared title terminologycs.CRElMouatez Billah Karbab
Poisoning the Evidence: Document and Data Attacks on LLM-driven Retrieval-Assisted Analytical Process-Property Model Generation
Shared title terminologycs.CRHoang Anh Nguyen, Ziqin Liu, Yuan Hong et al.
The Revision Is the Evidence: Evolution-Aware Retrieval for Auditing 5G Security Standards
Shared title terminologycs.CRGuangyuan Dong, Zidong Yu, Guohao Qi et al.
Subgroup Membership Inference Audits of Differentially Private Synthetic Text
Shared title terminologycs.CRYidan Sun, Viktor Schlegel, Srinivasan Nandakumar et al.