Privacy risk in RAG varies with query, not static
Query-dependent privacy risk can be mitigated with PA-HDP, reducing leakage while preserving retrieval quality
Security & privacy arXiv 16 Jul 2026 Method Simulation evidence
Published as “Is External Database Protection Static in Retrieval-Augmented Generation? Rethinking Privacy Preservation under Dynamic Queries”
Why it matters
Enables safe deployment of RAG systems on sensitive data (e.g., medical records) without sacrificing QA performance, facilitating compliance with privacy regulations.
Summary
PA-HDP eliminates both targeted and untargeted extraction attacks, achieving zero leakage across all evaluated settings, while preserving or improving answer quality compared to baselines. On the HealthcareMagic medical dialogue dataset, it raises BLEU from 0.1594 (Stage-2) to 0.3275 and ROUGE-L from 0.1288 to 0.3445 with GPT-3.5, and similar gains are seen with Llama3-8B-Chat. Utility on the Wiki-PII ODQA benchmarks also matches or exceeds prior synthetic-data methods. The evidence is strong, coming from multiple datasets, two generation backbones, and comprehensive privacy-attack evaluations, though the method incurs higher runtime than the fastest baseline (PARA).
What they found 3
- The method achieves zero leakage in targeted extraction attacks across all datasets and models.
“our method consistently achieves zero leakage across all settings, with both Targeted Information and Repeat Prompts reduced to zero.”
- Utility on medical dialogue improves BLEU from 0.1594 to 0.3275 and ROUGE-L from 0.1288 to 0.3445 with GPT-3.5.
“under GPT-3.5, our method improves BLEU from 0.1594 (Stage-2) to 0.3275 and ROUGE-L from 0.1288 to 0.3445.”
- Runtime overhead is modest but slower than the fastest baseline (PARA).
“Our method achieves a relatively low privacy protection overhead and is only slower than PARA.”
Caveats 2
- The method incurs higher runtime than the fastest baseline (PARA), as shown in Table VIII.
- PA-HDP assumes a fixed privacy budget that is predetermined before deployment. However, in realworld RAG systems, the number of user queries is typically unknown in advance, and privacy budgets may be gradually exhausted as queries accumulate.
What’s new here 4
- Introduces a prompt-driven, sentence-level privacy risk assessment rather than static document-level assumptions.
- Applies hierarchical risk stratification with adaptive privacy budgets per risk level via the exponential mechanism.
- Performs selective sensitive entity replacement only on high-risk spans, preserving most of the original context.
- Demonstrates zero leakage in both targeted and untargeted extraction attacks while maintaining higher utility than full-document synthetic generation.