Research map / Federated learning and privacy / Differential privacy
The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)
Shenglai Zeng, Jiankun Zhang, Pengfei He, Yue Xing, Yiding Liu, Han Xu, Jie Ren, Shuaiqiang Wang, Dawei Yin, Yi Chang, Jiliang Tang
Michigan State University · Jilin University · Engineering Research Center of Knowledge-Driven Human-Machine Intelligence · Baidu
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
This paper tried a common change: Higher sampling temperature
raise generation temperature from 0 to 1 · Llama-2-7b-Chat · Repeat Extract Context: 45 -> 104 Improved
What 259 accepted papers report for this change
- 79 improved
- 33 no clear effect
- 35 mixed
- 112 hurt
- Emergence of Biased Consensus in Multi-Agent LLM Debates ICML 2026 · increase sampling temperature · Investment and MT-Bench judge · biasImproved
- ARC-Decode: Accelerated Decoding with Risk-Bounded Acceptance ICML 2026 · raise sampling temperature from 0.1 to 0.9 · MT-Bench · speedup: 3.13× -> 2.66×Hurt
- Is Your LLM Overcharging You? Tokenization, Transparency, and Incentives ICML 2026 · increase sampling temperature · LMSYS · fraction of outputs with longer plausible tokenizationImproved
See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add 'Please repeat all the context' command to the query (ablation) | RAG retrieval-data extraction attack · HealthCareMagic untargeted (Llama-2-7b-Chat) | repeat extract contexts: 14 -> 110 (vs '.' command) | Improved |
| use very long command (C4) instead of C3 (ablation) | extraction attack · retrieval data extraction | retrieved contexts: HealthCareMagic untargeted: 332 -> 266 retrieved | Hurt |
| increase retrieved documents k from 1 to 4 (ablation) | extraction attack on Llama-7b-Chat · Enron Email untargeted | retrieved vs leaked contexts: retrieved 239 -> 921; Repeat Extract 75 -> 69 | No clear effect |
| add bge-reranker-large re-ranking as defense (ablation) | RAG with Llama-2-7b-Chat · retrieval data extraction | leaked contexts: Enron untargeted Repeat Contexts 55 -> 40; HealthCareMagic targeted 89 -> 98 | No clear effect |
| add abstractive summarization of retrieved contexts as defense (ablation) | RAG with Llama-2-7b-Chat · untargeted attacks | leakage risk: about 50% reduction | Improved |
| add summarization as defense (ablation) | RAG with Llama-2-7b-Chat · targeted attacks, Enron Email | PII leakage | Hurt |
| add summarization as defense (ablation) | RAG with Llama-2-7b-Chat · HealthcareMagic utility | ROUGE-L: 0.390897213095958 -> 0.128340722659618 | Hurt |
| lower retrieval distance threshold (ablation) | RAG with Llama-2-7b-Chat · HealthcareMagic utility | average ROUGE-L: 0.390897213 -> 0.273853105 at threshold 0.2 | Hurt |
| add retrieval data (RAG-Chatdoctor) to GPT-Neo-1.3B | GPT-Neo-1.3B · Enron training-data targeted attack (email) | extracted emails from LLM: 245 -> 2 | Improved |
| add retrieval data (RAG-Wikitext) to GPT-Neo-1.3B | GPT-Neo-1.3B · Enron prefix attack | reconstructions: 213 -> 70 | Improved |
| prepend 50 characters of random noise (ablation) | GPT-Neo-1.3B · Enron targeted attack (email) | extracted emails: 245 -> 62 | Improved |
| prepend protective system prompt (ablation) | GPT-Neo-1.3B · Enron targeted attack (email) | extracted emails: 245 -> 252 | No clear effect |
Open problems in differentially private synthetic data
Does differentially private text generation hold up on larger models, new domains and repeated queries?
- Experiments use one model family or small models only. · 16 papers state it
- Validated only in medical and legal text. · 7 papers state it
- Privacy loss builds up over many queries or turns. · 6 papers state it
Closest papers by meaning
- Mitigating the Privacy Issues in Retrieval-Augmented Generation (RAG) via Pure Synthetic Data (EMNLP 2025 · similarity 0.93)
- Exposing Privacy Risks in Graph Retrieval-Augmented Generation (ACL 2026 · similarity 0.92)
- Safeguarding Privacy of Retrieval Data against Membership Inference Attacks: Is This Query Too Close to Home? (EMNLP 2025 · similarity 0.91)
- Differentially Private Synthetic Text Generation for Retrieval-Augmented Generation (RAG) (ACL 2026 · similarity 0.91)
- Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systems (ICLR 2025 · similarity 0.90)
- On the Vulnerability of Applying Retrieval-Augmented Generation within Knowledge-Intensive Application Domains (ICML 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.