Random projection preserves similarity while reducing data extraction in RAG
Applying the same random projection to datastore and query embeddings preserves semantic similarity and mitigates data extraction attacks in retrieval-augmented generation
AI/ML arXiv 15 Oct 2026 Defense Prototype evidence
Published as “Private Retrieval Augmented Generation via Random Projection”
Why it matters
Random projection offers a practical, low-overhead way to harden RAG systems against data extraction without the heavy utility penalties of formal differential privacy.
Summary
Random projection (RP) applied to both datastore and query embeddings dramatically reduces data extraction attacks while keeping retrieval quality close to unprotected RAG, outperforming DP-based baselines. Across Enron Email, ECHR, C4, and HotpotQA, RP leaks virtually no private items and achieves perplexities within 7% of vanilla RAG. The paper’s evidence comes from repeated-query and multi-round adaptive attacks on two RAG architectures, but it notes a modest utility loss relative to the unprotected system and that large-scale real-world evaluation remains untested.
What they found 2
- RP achieves a superior utility-privacy trade-off, with perplexity close to unprotected RAG and near-zero privacy leakage.
“RP (Ours) achieves a superior utility-privacy trade-off, with perplexity approaching the unprotected RAG baseline while maintaining empirically near-zero privacy leakage comparable to the standalone parametric model without retrieval-augmentation.”
- RP effectively protects structured PII types, leaking fewer than 3% of items across both KNN-LM and Standard RAG.
“random projection effectively protects all three types, with leakage rates below 3% across both KNN-LM and Standard RAG architectures.”
Caveats 4
- DP-RP-G, ε = 20 still leaks 4 phone numbers (Table 3) indicating DP methods can retain some leakage.
- The conclusion notes a 7% overall decrease in utility compared with vanilla RAG, showing RP is not loss-free.
- At evaluation side, large-scale evaluation of privacy-preserving methods in real-world LLM-based RAG systems remains an interesting future work.
- One query takes about 8 seconds. Hence, evaluating one million queries would take 92 days without system-level optimization.
What’s new here 4
- Applies a single random projection matrix to both datastore and query embeddings as a privacy defense.
- Shows that this simple method outperforms differential-privacy baselines in utility while offering comparable empirical privacy.
- Demonstrates compatibility with both KNN-LM and standard RAG pipelines without runtime overhead.
- Provides extensive empirical evaluation against strong black-box extraction attacks.