Exploring the capability boundaries of strong membership inference attacks on large language modelsExploring the limits of strong membership inference attacks on large language models
The authors extend the strong membership inference attack LiRA to GPT-2 models with 10M–1B parameters; the authors state that it can outperform random guessing on pretrained LLMs but AUC is below 0.7, and many single-example decisions are indistinguishable from a coin flip.
The attacker's goal is to determine whether a specific data record x is in the target model's training set; the attacker knows the target architecture and training configuration, can query the target model to obtain outputs such as loss, and can train multiple reference models on data from the same distribution as the target training data (online setting, with IN/OUT references); the attacker does not need access to the target parameters or the training data itself.
- Strong membership inference attacks (MIA) require training many reference models and are difficult to scale to pretrained LLMs; existing work either uses weaker reference-free attacks or performs strong attacks only on small models and small data, and cannot answer whether MIA is fundamentally ineffective on LLMs.
- The authors pretrain over 4000 GPT-2 reference models with 10M–1B parameters on C4 using NanoDO, extend LiRA to this scale, systematically vary the number of references, model scale, number of training epochs and dataset size, and propose using flip rate to measure the instability of single-example membership decisions under training randomness.
- The authors report: under Chinchilla-optimal training for 1 epoch, AUC for all model scales is below 0.7 (85M highest at 0.699); multiple epochs or a small dataset can push AUC up to 0.797 or even close to 1; for the 302M model with average AUC 0.752, at FPR=1e-3 about 15.4% of true-positive decisions are indistinguishable from a coin flip; MIA susceptibility has no correlation with extraction attacks.
- The authors state they will study whether other token-scale selection methods can stabilize TPR and the impact of stricter deduplication; experiments use only the GPT-2 architecture (10M–1B) and C4 data, attacks are only in the online setting, and the paper does not report the total training compute cost of the attacks.
- Evaluated models
- GPT-2 (10M)GPT-2 (44M)GPT-2 (85M)GPT-2 (140M)GPT-2 (302M)GPT-2 (425M)GPT-2 (489M)GPT-2 (509M)GPT-2 (604M)GPT-2 (1018M)
- Benchmarks
- C4
- Metrics
- ROC-AUCTPR at fixed FPRflip rate
The authors extend the strong membership inference attack LiRA to GPT-2 models ranging from 10M to 1B parameters, finding that although such attacks can work on pretrained large language models, their effectiveness in practical settings remains limited, with AUC below 0.7. The study trains reference models on more than 20B tokens from the C4 dataset to address the difficulty of scaling previous strong attacks to large pretrained models. The authors also point out that even when the attack's AUC is better than random, aggregate metrics mask the instability of per-sample judgments; due to training randomness, many judgments are statistically indistinguishable from a coin flip. In addition, the relationship between membership inference attack success rates and the privacy metrics of the relevant large models is not as direct as described in prior work.
Paper analysis
What problem does this paper attempt to solve?
Are strong MIAs fundamentally ineffective on pretrained LLMs? The authors extend LiRA to the 1B parameter scale to answer this.
Core question: is the poor performance of MIA on LLMs in prior work a problem of attack design (not using reference models), or is MIA fundamentally ineffective on LLMs?
- Problem setting: membership inference attacks (MIA) determine whether a given piece of data is in a model's training set and are an important means of measuring the privacy leakage risk of ML models; however, the strongest MIAs require training multiple reference models, and pretraining an LLM is already very costly in a research setting, making strong attacks difficult to scale to LLMs.
- Shortcomings of existing methods (according to the paper): weaker reference-free attacks (such as fine-tuning attacks) are more practical, but the authors state that they are fragile and often no better than random guessing; strong attacks on small models and small data cannot capture the training dynamics of large-scale pretrained LLMs, and their conclusions cannot be reliably generalized to modern LLMs.
- Core observation: the authors believe that no work has established a baseline for the strongest MIA at sufficiently large scale, so the two explanations above cannot be distinguished; this paper fills this gap by extending LiRA to GPT-2 scale.
- What the paper proposes: pretrain over 4000 GPT-2 reference models with 10M–1B parameters on C4 (over 50M training samples, 20B tokens), systematically evaluate LiRA's performance under different training conditions, and propose using flip rate to diagnose the stability of single-example membership decisions.
- Threat model:
- Goal: determine whether a specific record x belongs to the target model's training set.
- Knowledge: the attacker knows the target architecture and training setup.
- Capability: can make arbitrary queries to the target model to obtain outputs such as loss and logit; can train reference models with the same recipe on data from the same distribution as the target training data (online setting, with IN and OUT references).
- Victim system: GPT-2 architecture models (10M–1B parameters) pretrained on a C4 subset; the attack does not require access to the target parameters or the training data itself.
What related research exists?
Related work falls into three categories: small-scale strong attacks, large-scale weak attacks, and extraction and memorization research; the authors state that this paper is the first work to establish a strong attack baseline at LLM scale.
Small-scale, strong, reference-model-based attacks
- Song and Shmatikov (2019)—the earliest work to evaluate MIA on small language models (RNNs), trained 10 reference models; the paper notes that conclusions from this kind of setting cannot transfer to today's LLMs because training dynamics differ greatly.
- Mireshghallah et al. (2022)—attacked small pretrained masked language models with a single reference model; the paper notes that too few reference models reduce accuracy.
- LiRA (Carlini et al., 2022), Attack-R (Ye et al., 2022), RMIA (Zarifzadeh et al., 2024)—strong attacks requiring tens to hundreds of reference models; the paper notes that they are considered impractical for contemporary language models because training reference LLMs is too costly.
Large-scale, weak, reference-free attacks
- Yeom et al. (2018) used model loss, Carlini et al. (2021) used normalized loss and zlib entropy, Mattern et al. (2023) used loss comparison with neighboring samples; newer work uses token probabilities or loss changes under different context prompts (e.g., Min-K%++, ReCaLL, Con-ReCall).
- Fine-tuning-based attacks (Fu et al., 2024; Mireshghallah et al., 2022, etc.)—infer membership by perturbing inputs/parameters or fine-tuning on domain data; the paper notes that fine-tuning attacks introduce new data into the problem setting, which may complicate the validity of conclusions such as benchmark contamination detection.
- Evaluations on post-hoc collected datasets (Meeus et al., 2024; Shi et al., 2024, etc.)—reported high success rates (AUC≈0.8); the paper notes that such evaluations distinguish members/non-members by training cutoff date, introducing distribution shift, and that in controlled privacy games current MIAs often only slightly outperform random guessing (Duan et al., 2024; Meeus et al., 2024 SoK).
Related privacy measures such as memorization and extraction
- Carlini et al. (2021, 2023), Nasr et al. (2023)—training data extraction and memorization quantification; the paper notes that prior work often attributes both MIA success and extraction success to memorization, and Section 6 of this paper examines the relationship between the two.
- Cooper et al. (2024)'s flip rate, Breiman (2001)'s Rashomon effect and the predictive multiplicity literature—this paper borrows flip rate to measure single-example decision instability; the authors state that this connection has not previously been established in the MIA setting.
Baselines and benchmarks: the strong attack baselines compared in this paper are LiRA and RMIA (Appendix B), and the reference-free baseline is Yeom's loss attack; the data is C4, and the models are NanoDO's GPT-2 architecture.
Positioning: the authors state that this paper is the first work to perform strong MIA at pretrained LLM scale, providing both a broad benchmark for strong attacks and a reference for the upper bound that weaker attacks can reach in this setting.
How does the paper address this problem?
Train thousands of GPT-2 reference models on C4, extend LiRA to the 1B scale, and use flip rate to diagnose the stability of single-sample determinations.
Overall idea: extend LiRA, one of the strongest MIAs, to the scale of pretrained LLMs — use NanoDO to pretrain more than 4000 GPT-2 models of 10M–1B parameters on C4 as reference and target models, systematically vary the number of references, model scale, number of epochs, and dataset size, and then use flip rate to measure the stability of single-sample membership decisions under training randomness.
Attack Choice and Threat Model Instantiation
- The paper first compares two strong attacks, LiRA and RMIA (Appendix B): in the 140M model, ~7M sample setting, LiRA has higher ROC-AUC when there are more reference models (e.g., with 64 IN references, LiRA 0.678, RMIA 0.658), and RMIA is superior only with 4–16 IN references; therefore the main experiments use LiRA.
- The observed statistic is the model loss: on the 140M model, the AUC of loss is 0.678 and of logit is 0.576 (Figure 8).
- All results are reported under the online setting (the attacker has both IN and OUT references); the offline setting in Appendix B.3 is only for completeness of comparison.
Data and Reference Model Construction
- A fixed-size data pool of 2N is drawn from C4 (the largest setting is 2N≈100M), and reference training sets of size N are subsampled from it with different random seeds; each reference model has exactly half of its samples as members and half as non-members, thereby constructing IN/OUT distributions for each sample.
- The training dataset scale is three orders of magnitude larger than in prior MIA research: more than 50M samples, versus fewer than 100K in prior work.
- Except for the reference-count sweep experiment, all experiments use 128 reference models (64 IN, 64 OUT), based on the fact that in Figure 1 the AUC improves by only 0.2% from 128 to 256 IN references.
Core Attack and Decision Rule
- For each sample x, LiRA fits two densities to the loss of the IN/OUT reference models and computes the likelihood ratio score ΛLiRA(x) = (pIN(s(h,x) | x))/(pOUT(s(h,x) | x)), i.e., the ratio of the likelihoods of the target model's statistic under the two reference distributions.
- The binary decision rule is b(x)=1{Λ(x)≥τ}, with the threshold τ calibrated on non-members to satisfy a fixed FPR η; the main metric is ROC-AUC, supplemented by TPR at a fixed FPR.
Training Condition Sweeps
- Chinchilla-optimal setting: the number of training tokens is set to 20 times the parameter count, training for only 1 epoch, attacking six model scales from 10M to 1018M (Section 3.2).
- Compute budget sweep: with the total number of tokens fixed, compare training on the full dataset for 1 epoch versus on half the dataset for 2 epochs; additionally train the 140M model for 10 epochs (Section 4.1).
- Dataset size sweep: the 140M model is trained for 1 epoch on datasets of 50K–10M samples; and 10 model scales are trained on a fixed ~8.3M samples, with the attack repeated 16 times with different seeds (Section 4.2).
Single-Sample Decision Stability Diagnostic (flip rate)
- With the IN/OUT references and target training set fixed, only the target model's training seed is changed (controlling batch order), training B target copies (B=127 for 302M, B=125 for 140M).
- The flip rate is defined as the probability that two i.i.d. target copies give different membership decisions for the same sample, computed with the unbiased estimator flip̂η,B(x) = (2 B0(x) B1(x))/(B(B−1)), where B1 and B0 are the numbers of member/non-member decisions among the B copies; a value close to 0.5 means the decision is statistically indistinguishable from a coin flip.
- A two-sided exact binomial test (α=0.05) is used to determine the threshold for "indistinguishable from a coin flip": flip≳0.487 for B=127, and flip≳0.490 for B=125.
Sample Susceptibility Analysis
- Track the change in the single-sample true positive probability during training (by batch step); divide members into the most susceptible/least susceptible/hardest-to-decide groups by LiRA confidence and compare sample length distributions; and perform a probabilistic discoverable extraction test of 50-token prefix→50-token suffix on the 1000 samples with the highest LiRA scores.
What experiments did the paper conduct?
Six groups of experiments: number of references, model scale, epochs, dataset size, flip rate stability, sample susceptibility; the main result is that AUC is below 0.7 in all Chinchilla-optimal settings.
Experimental Setup
- Models under test: GPT-2 architecture implemented by NanoDO, with parameter scales 10M, 44M, 85M, 140M, 302M, 425M, 489M, 509M, 604M, 1018M (different subsets used in different experiments), all pretrained on a C4 subset.
- Attacks and baselines: the main attack is LiRA (loss as the observation statistic, online setting); comparisons are RMIA and its simplified variants, and the reference-free loss attack (Appendix A/B).
- Reference models: 128 used except in the sweep experiments (64 IN, 64 OUT); over 4000 models pretrained in total across the paper.
- Metrics: main metric ROC-AUC; supplemented by TPR at fixed FPR, flip rate (B=125/127 target replicas, α=0.05 binomial test thresholds 0.490/0.487).
- Repetition and sample size: fixed-dataset experiments repeat attacks 16 times with different seeds; flip rate experiments use 2N=1,048,576 samples; sample susceptibility analysis uses the 140M model, about 7M samples, 128 references.
- Review method: no LLM review; membership labels are obtained from training data controlled by the experimenters, and decisions are rule-based threshold comparisons.
Main Results
LiRA AUC at each model scale under Chinchilla-optimal (20× tokens, 1 epoch) with 128 references (according to Figure 2a and Appendix Figure 18):
Model scale AUC (Figure 2a) AUC mean±STD (Figure 18) 10M 0.592 0.590±0.003 85M 0.699 0.698±0.001 302M 0.689 0.689±0.001 489M 0.547 0.546±0.001 604M 0.654 0.655±0.002 1018M 0.553 0.553±0.000 - The authors state that model scale and MIA susceptibility have a non-monotonic relationship: highest at 85M, lowest at 489M, and larger models are not necessarily more vulnerable; 140M (AUC=0.678, Figure 1) is also lower than 85M and 302M.
- The authors state that AUC does not reach 0.7 at any model scale, indicating that strong MIA has limited success under typical training settings.
- Figure 2b shows TPR from 10M→302M rising with scale, then dropping at 489M; the authors give two possible explanations (at low FPR, tiny training differences can flip decisions; Chinchilla is not the only scaling law), and state that other token selection methods will be tested in future work.
Changing Training Conditions: Epochs and Dataset Size
- Multiple epochs (Figure 3): the 44M model trained for 2 epochs on half the dataset has AUC 0.744, higher than 0.620 for 1 epoch on the full dataset; the 140M model trained for 10 epochs rises from AUC 0.573 at epoch 1 to 0.797 at epoch 10. The authors state that deviating from typical settings can improve attack success, but this is only a sanity check.
- Dataset size (Figure 4a): the 140M model trained on 50K–10M samples has highest AUC at about 1M samples (0.753), 0.645 at 10M samples, and 0.684 at 50K; the authors state that TPR and dataset size are not monotonically positively correlated.
- Fixed dataset (Figure 4b): 10 model scales trained on about 8.3M samples show TPR rising monotonically with model scale, differing from the non-monotonic results in Figure 2b; TPR variance is larger for large models and small FPR. Appendix Figure 19 reports corresponding AUC: 10M 0.530, 302M 0.730, 509M 0.755, 1018M 0.632, and one 604M target shows "catastrophic attack failure" at small FPR.
Single-Example Decision Instability (flip rate)
- Setup: 302M and 140M models, fixed training set of about 500K and 128 references, training 127/125 target replicas changing only the seed; aggregate metrics are stable (302M average AUC=0.752±0.007, 140M 0.706±0.004, Figure 24).
- Results: at FPR=0.02, about 18.4% of membership decisions for the 302M model are indistinguishable from a coin flip (about 39.8% when relaxed to flip≥0.4), with corresponding proportions for non-members of about 0.03% and 0.2%; at FPR=1e-3, about 15.4±0.6% of true positives are coin-flip-like decisions, and when relaxed to flip≥0.4 they account for 42.2%±0.9% of true positives.
- Authors' interpretation: calibrating the threshold on non-members makes non-member decisions more stable, while member scores more easily cross a boundary that moves with the seed; the authors emphasize that this is not an attack but a diagnosis of MIA signal robustness using counterfactual targets—aggregate AUC can be above random, but single-example decisions may be merely seed-specific artifacts.
Relationship Between Sample Susceptibility Patterns and Extraction
- Training timing (Figure 6a): on the 140M model, samples appearing later in training (around step 60,000) have a higher probability of being correctly judged as members; the authors state that earlier-appearing samples are more likely to be "forgotten," and speculate that this may partly explain flip rate instability.
- Sample length (Figure 6b): the sample length distribution of the most susceptible members skews toward longer sequences; Appendix F reports similar trends for samples with high <unk> token proportions and high TF-IDF scores.
- Relationship with extraction (Figure 7): among the 1000 samples with the highest LiRA scores, 713 are true members; using 50-token prefixes to test probabilistic extraction of 50-token suffixes, the maximum suffix extraction probability is about 0.0067, and most samples have negative log probability greater than 100; the authors state that no correlation between MIA success and extraction was observed, and the two attacks may capture different memorization signals.
Other Ablations and Analyses
- Number of references (Figure 1, 140M): 1→8 IN references improves AUC by 13.3% relative, 8→64 by 7.6%, 128→256 by only 0.2%.
- Observation statistic (Figure 8, 140M): loss AUC 0.678, logit 0.576.
- Learning rate schedule (Figure 15b, 140M): Linear 0.676, Cosine 0.675, Cosine without weight decay 0.673, Cosine without gradient clipping 0.660; the authors state the effect is small.
- Deduplication (Figure 16, 140M): C4 AUC 0.683, deduplicated C4 0.680; the authors state that duplicate samples have a negligible effect on average attack success.
- Offline setting (Figure 14, 10M): offline RMIA AUC 0.59715 is higher than offline LiRA 0.52530; in the online setting the two have similar AUC, with LiRA better at low FPR.
- Small dataset with multiple epochs (Figure 17b, 140M, about 500K samples): AUC rises from 0.604 at 1 epoch to about 1.000 at 13–20 epochs.
What are some points that can be further explored?
The authors list other scaling laws, stricter deduplication, and other future directions; experiments are limited to the GPT-2 architecture and C4, and total compute cost is not reported.
Limitations and future directions noted by the authors
- Examine whether other token-scale selection methods (scaling laws proposed by Sardana et al., Hu et al., Grattafiori et al.) can stabilize TPR as model scale increases (Section 3.2, "In future work, we will investigate…").
- Further experiments under stricter deduplication are needed: the deduplication process in this paper removed only about 10 million samples from C4 (364,613,570→350,475,345), and the authors state that further work is needed to assess the impact of stricter deduplication on attack success (Appendix D, "further work is needed…").
- An alternative diagnostic to flip rate—fixing the target and retraining multiple independent IN/OUT references to measure disagreement—is more costly and was not implemented in this paper; the authors state they expect qualitatively similar instability to be observed under reference resampling (Section 5.2 and Appendix E.2.8).
- The authors state that the findings in this paper can guide others to study new attacks and more effective defenses (Section 7, forward-looking in nature).
Scope of experimental coverage
- The models tested are only NanoDO's GPT-2 architecture, at 10 scales from 10M–1018M, all pretrained on C4; no experiments involve other architectures or datasets.
- Attacks cover only LiRA and RMIA (including simplified and offline variants), and the observed statistics compare only loss and logit; the main results are all in the online setting.
- The flip rate experiments cover only the two scales of 140M and 302M, about 500K training samples, and B=125/127 target replicas; the extraction experiments use only the 140M model, 1000 samples, and 50-token prefixes/suffixes.
- The paper does not report the total compute cost or time for training the more than 4000 models, nor does it report experiments applying the attack to real deployed models.
- The paper does not report statistical significance tests (other than the binomial test for flip rate); the main results are given as AUC and mean±STD.
Summarize the main content of the paper
Extending LiRA to 1B-parameter GPT-2: strong MIA is effective but limited on LLMs, and single-example decisions are often like a coin flip.
An empirical study of the effectiveness of membership inference attacks (MIA) on pretrained LLMs, addressing the open question of whether MIA on LLMs is a design problem or fundamentally ineffective.
- Problem: the strongest MIAs require training many reference models and previously could not scale to LLMs; weak attacks are fragile, and conclusions from small-scale strong attacks cannot transfer, leaving the real threat of MIA to LLMs unclear.
- Method: pretrain over 4000 GPT-2 models with 10M–1B parameters on C4 (over 50M samples of data), extend LiRA to this scale, systematically sweep the number of references, model scale, number of epochs and dataset size, and use flip rate to diagnose the stability of single-example decisions under training randomness.
- Result one: under Chinchilla-optimal training for 1 epoch, LiRA outperforms random guessing, but AUC is below 0.7 at all model scales (85M highest at 0.699, 489M lowest at 0.547), and scale and susceptibility are non-monotonic.
- Result two: deviating from typical settings can push AUC higher—the 140M model trained for 10 epochs reaches 0.797, and about 500K samples trained for 13–20 epochs approaches 1.000—the authors state that this is only a sanity check, and strong MIA success is limited under practical settings.
- Result three: for the 302M model with average AUC 0.752, at FPR=1e-3 about 15.4% of true-positive decisions are statistically indistinguishable from a coin flip; the authors state that aggregate metrics mask the unreliability of single-example decisions.
- Result four: samples appearing later in training are more easily attacked, and susceptible samples tend to be longer; however, the 1000 samples with the highest LiRA scores (713 true members) are almost non-extractable, and the authors state that MIA and extraction may capture different memorization signals.
- Authors' conclusion: the authors state that this is the first work to perform strong MIA at pretrained LLM scale, clarifying both the actual scope of privacy risk from MIA in this setting and providing a reference for the upper bound that weaker attacks can reach.