scimeatlas

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

ACL 2024Federated learning and privacy › Differential privacyapproach: Differentially private synthetic dataopen problems in this approach272 citations (OpenAlex)

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 ↗

14measured effects
6improved
4no clear effect
4hurt

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

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 changedWhereMeasuredEffect
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 extractionretrieved contexts: HealthCareMagic untargeted: 332 -> 266 retrievedHurt
increase retrieved documents k from 1 to 4 (ablation)extraction attack on Llama-7b-Chat · Enron Email untargetedretrieved vs leaked contexts: retrieved 239 -> 921; Repeat Extract 75 -> 69No clear effect
add bge-reranker-large re-ranking as defense (ablation)RAG with Llama-2-7b-Chat · retrieval data extractionleaked contexts: Enron untargeted Repeat Contexts 55 -> 40; HealthCareMagic targeted 89 -> 98No clear effect
add abstractive summarization of retrieved contexts as defense (ablation)RAG with Llama-2-7b-Chat · untargeted attacksleakage risk: about 50% reductionImproved
add summarization as defense (ablation)RAG with Llama-2-7b-Chat · targeted attacks, Enron EmailPII leakageHurt
add summarization as defense (ablation)RAG with Llama-2-7b-Chat · HealthcareMagic utilityROUGE-L: 0.390897213095958 -> 0.128340722659618Hurt
lower retrieval distance threshold (ablation)RAG with Llama-2-7b-Chat · HealthcareMagic utilityaverage ROUGE-L: 0.390897213 -> 0.273853105 at threshold 0.2Hurt
add retrieval data (RAG-Chatdoctor) to GPT-Neo-1.3BGPT-Neo-1.3B · Enron training-data targeted attack (email)extracted emails from LLM: 245 -> 2Improved
add retrieval data (RAG-Wikitext) to GPT-Neo-1.3BGPT-Neo-1.3B · Enron prefix attackreconstructions: 213 -> 70Improved
prepend 50 characters of random noise (ablation)GPT-Neo-1.3B · Enron targeted attack (email)extracted emails: 245 -> 62Improved
prepend protective system prompt (ablation)GPT-Neo-1.3B · Enron targeted attack (email)extracted emails: 245 -> 252No clear effect

Open problems in differentially private synthetic data

Does differentially private text generation hold up on larger models, new domains and repeated queries?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy