Large language models are increasingly fine-tuned on sensitive data, where the same person's information may appear multiple times across records. This can cause models to memorize sensitive information, but memorization does not necessarily mean that the information can be recovered. A more serious privacy risk arises when the model begins to reproduce that information during generation. In this paper, we study how often sensitive information must appear in the fine-tuning data before it becomes recoverable. Across four language models, we vary the frequency of email addresses and phone numbers from 1× to 50× and compare standard fine-tuning, gradient clipping, and differentially private training. We find that the number of repetitions required before sensitive information becomes recoverable varies substantially across models. Gradient clipping can delay extraction, but it does not consistently prevent leakage at high repetition. DP-SGD at ε=5 produces zero observed extraction through 50× repetition across all four models under the attacks we test, although the utility cost varies by model. These findings characterize how observed extraction varies across sensitive-data frequencies, model families, and training mechanisms, and highlight substantial differences in extraction behavior across models. Code and data are publicly available.
Figures & tables
Model
Non-DP
Clipping
DP-SGD
LLaMA-3.2-1B
10×
50×
N.O.
Gemma-2-2B
10×
20×
N.O.
Gemma-3-1B
50×
50×
N.O.
VaultGemma-1B
N.O.
N.O.
N.O.
Table 1: First tested frequency at which at least 50% of member canaries are extracted ( F50∗ ). N.O. indicates that the threshold was not observed through 50× .
Figure 1: Frequency-conditioned all-canary greedy extraction across four language models under matched non-private, clipping-only, and DP-SGD training. Points show means across three seeds; shaded regions indicate ±1 standard deviation.
Model
Training
AG ↑
MNLI ↑
PII F1 ↑
Gap
WBC AUC
LLaMA-3.2-1B
matched non-DP
.899 ± .001
.788 ± .005
.989 ± .001
.358 ± .000
.631 ± .038
clip-only
.906 ± .001
.807 ± .004
.990 ± .000
.211 ± .009
.563 ± .004
DP ε=5
.778 ± .004
.474 ± .007
.789 ± .002
.018 ± .001
.453 ± .002
Gemma-2-2B
matched non-DP
.901 ± .001
.865 ± .001
.993 ± .000
.638 ± .004
.738 ± .011
clip-only
.906 ± .001
.863 ± .002
.995 ± .000
.594 ± .029
.706 ± .029
DP ε=5
.833 ± .001
.738 ± .003
.828 ± .001
-.006 ± .000
.497 ± .003
Table 2: Matched comparison of non-private, clipping-only, and DP-SGD training. Results are mean ± standard deviation over three seeds. Gap measures member–reference loss separation, and WBC AUC measures membership inference.
Model
Training
Extracted / Total
Loss AUROC
WBC AUROC
Exposure AUROC
LLaMA-3.2-1B
matched non-DP
831 / 2400
.695
.519
.695
clip-only
364 / 2400
.748
.571
.749
Gemma-2-2B
matched non-DP
1096 / 2400
.578
.468
.578
clip-only
691 / 2400
.693
.584
.694
Gemma-3-1B
matched non-DP
175 / 2400
.641
.508
.641
clip-only
218 / 2400
.734
.577
.734
Table 3: Ability of statistical privacy scores to predict extraction among member canaries. AUROC uses all-canary greedy extraction as the binary outcome and is pooled across three training seeds. An AUROC of 0.5 corresponds to chance-level separation. DP-SGD is omitted because no successful extraction events are observed, making extraction-prediction AUROC undefined.
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
Model
Training
AG ↑
MNLI ↑
PII F1 ↑
PII EM ↑
PPL ↓
LLaMA-3.2-1B
non-DP
0.901 ± 0.003
0.795 ± 0.007
0.987 ± 0.001
0.946 ± 0.002
1.065 ± 0.001
ϵ=3
0.753 ± 0.003
0.462 ± 0.009
0.770 ± 0.000
0.442 ± 0.002
1.394 ± 0.001
ϵ=5
0.760 ± 0.004
0.472 ± 0.001
0.783 ± 0.002
0.459 ± 0.004
1.381 ± 0.000
ϵ=8
0.771 ± 0.004
0.483 ± 0.001
0.792 ± 0.001
0.473 ± 0.001
1.373 ± 0.001
Gemma-2-2B
non-DP
0.926 ± 0.002
0.872 ± 0.002
0.995 ± 0.001
0.977 ± 0.003
1.043 ± 0.002
ϵ=3
0.871 ± 0.002
0.789 ± 0.001
0.958 ± 0.001
0.848 ± 0.002
1.131 ± 0.002
Appendix
Table 4: Downstream utility across models and privacy budgets. Results are mean ± standard deviation over three seeds.
Figure 2: Comparison of all-canary greedy and stochastic K=10 extraction across exposure levels. The stochastic extraction curves closely follow the greedy results, indicating that the primary frequency-conditioned trends are not specific to deterministic decoding.
Model
Training
1×
2×
5×
10×
20×
50×
LLaMA-3.2-1B
matched non-DP
0.000 ± 0.000
0.002 ± 0.003
0.164 ± 0.006
0.644 ± 0.049
0.947 ± 0.005
1.000 ± 0.000
clip-only
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.022 ± 0.020
0.387 ± 0.005
1.000 ± 0.000
DP ε=5
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
Gemma-2-2B
matched non-DP
0.008 ± 0.006
0.091 ± 0.008
0.469 ± 0.022
0.881 ± 0.010
0.940 ± 0.014
1.000 ± 0.000
clip-only
0.000 ± 0.000
0.004 ± 0.003
0.051 ± 0.014
0.408 ± 0.024
0.930 ± 0.022
1.000 ± 0.000
DP ε=5
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
Appendix
Table 5: All-canary greedy extraction rate by insertion frequency, for each model and training condition. Results are mean ± standard deviation over three seeds. This is the full data underlying Figure 1 .
Model
Training
F∗
F50∗
LLaMA-3.2-1B
Matched non-DP
2 – 5×
10×
Clipping-only
10×
50×
DP-SGD
N.O.
N.O.
Gemma-2-2B
Matched non-DP
1 – 2×
10×
Clipping-only
2 – 5×
20×
DP-SGD
N.O.
N.O.
Appendix
Table 6: Extraction-threshold summaries across three training seeds. F∗ is the first tested frequency with any observed extraction, and F50∗ is the first tested frequency at which at least 50% of member canaries are extracted. Ranges indicate variation across seeds. N.O. indicates that the threshold was not observed through 50× .
Model
Training
Gap
WBC AUC
Exposure
Extr. 1 ×
Extr. 10 ×
Extr. 50 ×
LLaMA-3.2-1B
non-DP
0.273 ± 0.004
0.660 ± 0.013
2.509 ± 0.022
0.003 ± 0.001
0.693 ± 0.020
0.944 ± 0.010
ϵ=3
0.002 ± 0.000
0.493 ± 0.002
1.467 ± 0.001
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
ϵ=5
0.002 ± 0.000
0.495 ± 0.002
1.467 ± 0.001
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
ϵ=8
0.002 ± 0.000
0.491 ± 0.001
1.469 ± 0.001
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
Gemma-2-2B
non-DP
2.481 ± 0.061
0.981 ± 0.001
8.154 ± 0.178
0.074 ± 0.025
0.944 ± 0.011
0.975 ± 0.000
ϵ=3
0.069 ± 0.001
0.494 ± 0.003
1.650 ± 0.004
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
Appendix
Table 7: Privacy metrics across models and privacy budgets. Extraction rates are all-canary greedy extraction at each exposure tier. Results are mean ± standard deviation over three seeds.
Model
Training
1×
2×
5×
10×
20×
50×
LLaMA-3.2-1B
matched non-DP
0.000 ± 0.000
0.004 ± 0.003
0.129 ± 0.017
0.608 ± 0.047
0.970 ± 0.008
1.000 ± 0.000
clip-only
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.031 ± 0.004
0.373 ± 0.017
1.000 ± 0.000
DP ε=5
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
Gemma-2-2B
matched non-DP
0.022 ± 0.012
0.100 ± 0.014
0.464 ± 0.027
0.878 ± 0.031
0.990 ± 0.008
1.000 ± 0.000
clip-only
0.002 ± 0.002
0.004 ± 0.003
0.067 ± 0.014
0.417 ± 0.018
0.930 ± 0.008
1.000 ± 0.000
DP ε=5
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
0.000 ± 0.000
Appendix
Table 8: Stochastic K=10 extraction rate (pass@10) by insertion frequency for each model and training condition. Decoding uses temperature =1.0 , top- p=1.0 , and 10 samples per canary. Results are mean ± standard deviation over three seeds. Greedy results are reported in Table 5 .
Privacy leakage in language models concerns how models expose training data, infer sensitive traits, or transmit private context through outputs and internal channels.
Fine-tuning a language model on sensitive records can leave it able to reproduce them. We ask when this memorization arises and how to prevent it without knowing in advance which spans are sensitive. Our starting point is that most memorization scores and attacks share one statistical core: whether the model assigns a token more probability than some reference would. Taking as the reference a model trained on the complementary half of the same corpus gives the Target Reference Advantage (TRA), a per-token signal that separates what a model fit to a particular record from what it learned across records, and is cheap and differentiable. We then study what drives memorization during fine-tuning: it keeps growing well past the validation minimum, is larger on small datasets and at higher learning rates, and higher when the underlying task is harder. Early stopping removes much of it, but because it is chosen by aggregate validation loss it helps least for rare, hard-to-predict spans embedded in otherwise learnable text, which is exactly what sensitive information tends to be. We therefore introduce TRAP, a one-sided penalty on tokenwise TRA that acts only where the target model pulls ahead of its reference. On student essays with annotated personal information and clinical cases with patient identifiers, TRAP brings memorization near the level of an untrained model at little utility cost, where generic regularizers barely move and differential privacy gives up most of what fine-tuning bought.
Muhammed Ustaomeroglu, Ziyue Xu, Hanshen Xiao +3
Carnegie Mellon University · NVIDIA · Purdue University
Large Language Models are increasingly trained on proprietary or sensitive data, from private healthcare and financial records to user conversations containing secrets. Ensuring the privacy of such data against extraction attacks has become a central concern. In this paper, we ask whether an attacker who can poison a portion of the training data can facilitate the leakage of a separate target record they have no access to. We answer in the affirmative and show that such leakage can be induced by a poisoning mechanism that reshapes the model's local loss landscape around the target completion. Our key insight is that poisoning to create a sharp loss minimum at the target, surrounded by elevated loss on nearby alternatives, forces the model to memorize the target as the unique low-loss solution in its neighborhood. The attack requires no architectural changes, and generalizes across centralized and federated learning settings. We demonstrate that the attack amplifies privacy leakage across language (up to 100% successful extraction), and vision-language models (up 90% successful extraction). We show that the attack is thwarted when the model is trained to be differentially private. However, we introduce a new attack that directly probes the loss landscape bypassing even differential privacy defenses.
Md Abdullah Al Mamun, Ngoc Phu Doan, Pedram Zaree +2
UC Riverside · Riverside, California, USA · Queen’s University Belfast +2
Parameter-efficient fine-tuning of large language models (LLMs) can exhibit problematic memorization of individual training examples. Empirical privacy auditing (EPA) quantifies this risk by measuring realistic data leakage on membership inference (MI) or reconstruction attacks. A key challenge in EPA is designing ``canary'' examples that are mixed with the privacy-sensitive training data. We propose generating synthetic canaries via high-temperature sampling (T≥0.8) from LLMs, using prompts tailored to the privacy-sensitive training data. These canaries act as high-influence outliers, ensuring high identifiability and hence strong audits. Further, since the canaries are themselves non-private, they are inspectable and can be inserted with repetition without jeopardizing the privacy of the real data. An important use of models fine-tuned on privacy-sensitive data is the generation of synthetic data. This also comes with privacy risk. We introduce a powerful synthetic data audit based on fine-tuning an auxiliary model on the synthetic data. Auditing the auxiliary model for the original canaries then provides a strong estimate of the privacy leakage through the synthetic data. Finally, leveraging our strong auditing methodologies, we perform a systematic investigation into the interacting effects of model capacity and canary entropy on memorization.
Nicole Mitchell, Galen Andrew, Arun Ganesh +2
Google Research San Francisco, CA · Google Research Seattle, WA