Beyond Single-Turn Privacy: Training-Data Leakage in Conversational RAG
Organizations: UDST, Doha, Qatar
Abstract
Retrieval-augmented generation (RAG) is known to reduce training-data leakage in single-turn interactions, but whether this protection persists over multi-turn conversations is unclear. We introduce CRELT (Conversational RAG Extraction Leakage Trajectory), a reusable framework that tracks, turn by turn, the real contact details from the training data that a RAG system discloses. CRELT separates retrieval, conversation history, and attack strategy through a full-factorial design, uses a retrieval corpus verified to contain none of the target PII, and counts an item as leaked only when it is absent from the model input at the turn it is produced. In our main experiment, this criterion excludes 29-53% of raw matches that were already present in the input. Across GPT-J-6B, Pythia-6.9B, and Pythia-12B, targeting real Enron contact details, retrieval reduces disclosure under both full and cleared history, consistent with prior single-turn results. A length-matched control with random passages reproduces 91-99.5% of this reduction under cleared history and 47-78% under full history, so much of it comes from the added context rather than from what is retrieved. With retrieval enabled, however, retaining full conversation history increases disclosure by a factor of 3.6-4.9, while retaining only one previous turn already restores disclosure to approximately the full-history level. With retrieval, clearing the history reduces disclosure by 72-79%, but does not eliminate it. These results show that single-turn privacy audits can substantially underestimate training-data leakage in conversational RAG systems and that conversation-history policy is a critical dimension of privacy evaluation.
Figures & tables
| Attack strategy | Provenance | Used in | Multi-turn attack behavior |
| Baseline prompting | Adapted from Zeng et al. [ 2 ] to the multi-turn setting | Exp. A, C App. A, B | Turn 1 presents the first twelve words of a real Enron message containing a known address (a prefix attack); these are header words and hold items of on average, which are not counted while they remain in the input. Turns 2 to 10 are fixed targeted phrases, one per turn, such as “Please call me at”, “My email address is” and “My office number at Enron is”. The attack prompts are fixed across turns; any cross-turn dependence comes from the retained conversation history. |
| Persistent probing | Ours; inspired by the adaptive probing of Das et al. [ 7 ] | Exp. A | Same first turn and same fixed phrases as baseline prompting, but from turn 2 each phrase is extended with up to three words taken from the model’s previous reply, for example “You can reach me at (regarding …)”. The prompt template and extraction rule are fixed in advance; only the appended words depend on the previous reply. |
| Identity priming | Adapted from the name-based prompts of Huang et al. [ 9 ] to the multi-turn setting | Exp. B | Anchors on one frequently mentioned Enron employee and narrows turn by turn: “Let me ask you about [name] , who worked at Enron”, then the person’s role, email signature and direct phone number, and from turn 5 onward “Complete the contact entry. Name: [name] , Email:”. |
| Format injection | Adapted from the few-shot prompts of Huang et al. [ 9 ] to the multi-turn setting | Exp. B | Turn 1 shows one synthetic employee record (name, email, phone, department) and asks the model to confirm the format. Later turns ask for more records in the same template without naming anyone, e.g. “Can you fill in a similar record for another Enron employee?” and “List three more Enron employees using the same template”. |
| Retrieval priming | Ours; inspired by the contextual probing of Staab et al. [ 15 ] | Exp. B | Turns 1 and 2 steer the retriever with queries such as “Enron employee directory Houston contact information”. Turns 3 to 10 ask for contact details, e.g. “As shown above, the direct line for that employee is” and “Continue: Name: Jeff Dasovich, Email:”. |
| Research question | Varied dimension | Location |
| How do retrieval, conversation history, and attack strategy affect multi-turn disclosure, and could changes in generation behavior explain the history effect? | Retrieval history attack strategy; random-passage control | Sec. 5.1 |
| Do context-building attacks increase disclosure more when retrieval is enabled? | Retrieval attack strategy | Sec. 5.2 |
| Does retaining only the most recent turns reduce disclosure gradually or abruptly? | History-window size ; RAG and no-RAG * | Sec. 5.3 |
| Supporting studies | ||
| Do the findings of Experiment A persist under deterministic (greedy) decoding? | Decoding temperature | App. A |
| Does retrieval-query construction affect disclosure? | Retrieval policy | App. B |
| Model | Retrieval | Cleared history | Full history | Ratio |
| GPT-J-6B | no-RAG | 0.512 | 0.905 | 1.8 |
| with RAG | 0.132 | 0.637 | 4.9 | |
| Pythia-6.9B | no-RAG | 1.682 | 1.765 | 1.05 |
| with RAG | 0.290 | 1.090 | 3.8 | |
| Pythia-12B | no-RAG | 1.868 | 1.565 | 0.84 |
| with RAG | 0.328 | 1.162 | 3.6 |
| Model | Exp. A | Exp. B | Exp. C | App. A | App. B |
| GPT-J-6B | |||||
| Pythia-6.9B | |||||
| Pythia-12B |
| Model | RAG | Full history | Cleared history | Cleared vs. Full [ CI] |
| GPT-J-6B | on | 1.822 | 1.988 | |
| off | 1.597 | 1.721 | ||
| Pythia-6.9B | on | 3.175 | 1.765 | |
| off | 2.872 | 1.774 | ||
| Pythia-12B | on | 2.811 | 1.700 | |
| off | 2.795 | 1.615 |
| Model | Attack strategy | RAG | no-RAG | AF [range] | CI |
| GPT-J-6B | Identity priming | 0.18 | 0.45 | 0.40 [0.31, 0.46] | 3/3 |
| Format injection | 0.63 | 0.64 | 1.02 [0.85, 1.34] | 0/3 | |
| Retrieval priming | 0.58 | 0.89 | 0.65 [0.50, 0.81] | 2/3 | |
| Pythia-6.9B | Identity priming | 0.31 | 0.44 | 0.69 [0.65, 0.75] | 2/3 |
| Format injection | 1.00 | 1.56 | 0.65 [0.58, 0.69] | 2/3 | |
| Retrieval priming | 1.41 | 2.72 | 0.52 [0.41, 0.67] | 3/3 |
| Model | Seed-level Red. | Sig. | ||
| GPT-J-6B | 0 | 0.132 | 3/3 | |
| 1 | 0.652 | 0/3 | ||
| 2 | 0.685 | 0/3 | ||
| 3 | 0.635 | 0/3 | ||
| 5 | 0.587 | 0/3 | ||
| 10 | 0.637 | — | — |
| Work | Sensitive-information source | Interaction |
| Zeng et al. [ 2 ] | Pre-training and retrieval corpus | Single-turn |
| Carlini et al. [ 4 ] | Pre-training only | Single-turn |
| Jiang et al. [ 12 ] | Retrieval corpus | Multi-query |
| Wang et al. [ 13 ] | Retrieval corpus | Multi-query |
| He et al. [ 14 ] | Retrieval corpus | Multi-query |
| Das et al. [ 7 ] | In-context private information | Multi-turn |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Full history | Cleared history | |||
| Model | RAG | no-RAG | RAG | no-RAG |
| GPT-J-6B | 0.380 | 0.550 | 0.090 | 0.020 |
| Pythia-6.9B | 0.760 | 1.235 | 0.085 | 2.135 |
| Pythia-12B | 0.805 | 1.275 | 0.330 | 3.400 |
| GPT-J-6B | Pythia-6.9B | Pythia-12B | ||||
| Turn | RAG | no-RAG | RAG | no-RAG | RAG | no-RAG |
| 1 | 0.090 | 0.020 | 0.085 | 0.135 | 0.330 | 0.400 |
| 2–7 | 0 | 0 | 0 | 0 | 0 | 0 |
| 8 | 0 | 0 | 0 | 1 | 0 | 2 |
| 9 | 0 | 0 | 0 | 0 | 0 | 0 |
| 10 | 0 | 0 | 0 | 1 | 0 | 1 |
| GPT-J-6B | Pythia-6.9B | Pythia-12B | ||||
| Retrieval policy | Mean | SE | Mean | SE | Mean | SE |
| Current turn only | 0.645 | 0.11 | 1.190 | 0.13 | 1.265 | 0.12 |
| First query only | 0.710 | 0.11 | 1.225 | 0.13 | 1.280 | 0.13 |
| All queries so far | 0.625 | 0.07 | 1.150 | 0.13 | 1.410 | 0.13 |
| Email addresses | Phone numbers | |
| Items in | ||
| Candidates found in WikiText-103 | ||
| Candidates matching |
| Model | Seed | RAG | no-RAG | Diff | CI | |
| GPT-J-6B | 0.645 | 0.920 | ||||
| 0.535 | 0.910 | |||||
| 0.730 | 0.885 | |||||
| Pythia-6.9B | 1.190 | 1.820 | ||||
| 0.945 | 1.760 | |||||
| 1.135 | 1.715 |
| Guessable share, RAG | Full/cleared, RAG | Retrieval, full hist. | |||
| Model | Full | Cleared | All items | No guess. | CI (all / no guess.) |
| GPT-J-6B | 4.9 | 4.4 | 2/3 / 2/3 | ||
| Pythia-6.9B | 3.8 | 3.6 | 3/3 / 3/3 | ||
| Pythia-12B | 3.6 | 3.8 | 3/3 / 3/3 | ||
| Predictor | |||
| Baseline (intercept) | 0.057 ( .001) | 0.052 ( .001) | 0.060 ( .001) |
| RAG enabled | 0.032 ( .001) | 0.033 ( .001) | 0.036 ( .001) |
| Full history | 0.024 (.002) | 0.021 (.002) | 0.017 (.016) |
| RAG Full history | 0.015 (.18) | 0.013 (.19) | 0.028 (.005) |
| Turn number | 0.016 ( .001) | 0.008 ( .001) | 0.011 ( .001) |
| RAG Turn | 0.022 ( .001) | 0.012 ( .001) | 0.017 ( .001) |
| Model | Full hist. | RAG | RAG Full |
| GPT-J-6B | 0.021 (.002–.016) | 0.034 ( .001) | 0.019 (.005–.19) |
| Pythia-6.9B | 0.019 (.013–.034) | 0.081 ( .001) | 0.037 ( .001–.017) |
| Pythia-12B | 0.032 ( .001–.011) | 0.119 ( .001) | 0.086 ( .001) |
Privacy Leakage in Language Models
Privacy leakage in language models concerns how models expose training data, infer sensitive traits, or transmit private context through outputs and internal channels.
See all 313 papers