Exploring the limits of strong membership inference attacks on large language models

Jamie Hayes, Ilia Shumailov, Christopher A. Choquette-Choo, Matthew Jagielski, Georgios Kaissis, Milad Nasr, Meenatchi Sundaram Muthu Selva Annamalai, Niloofar Mireshghallah, Igor Shilov, Matthieu Meeus, Yves-Alexandre de Montjoye, Katherine Lee, Franziska Boenisch, Adam Dziedzic, A. Feder Cooper

This paper provides a reality check on the privacy risks of Large Language Models (LLMs). While we often worry that these models "memorize" their training data, the authors show that actually proving a specific sentence was used to train a model—a process called a Membership Inference Attack (MIA)—is surprisingly difficult and statistically unstable in realistic scenarios. By scaling one of the strongest known attacks to models with up to 1 billion parameters, the researchers reveal that our current privacy metrics might be painting an incomplete picture.

TL;DR

Researchers scaled the high-performance Likelihood Ratio Attack (LiRA) to LLMs by training over 4,000 reference models on 20 billion tokens. They found that while these attacks technically "work" better than random guessing, their effectiveness is limited in practical settings (AUC < 0.7), and many "successful" individual predictions are so unstable they are statistically indistinguishable from a coin flip.

What Problem Does This Paper Address?

Membership Inference Attacks (MIAs) ask a simple but high-stakes question: "Was this specific data record used to train this model?" If an adversary can reliably answer "yes," it constitutes a major privacy breach, especially for models trained on sensitive medical or personal data.

The challenge is that the strongest MIAs require training dozens or hundreds of "reference models" to understand how a typical model behaves on specific data. For LLMs, this is prohibitively expensive. Consequently, previous research either used "weak" attacks (which don't need reference models but are often inaccurate) or "strong" attacks on tiny, non-representative models. This paper fills the gap: Are MIAs actually ineffective on LLMs, or have we just not tried hard enough to scale them?

Methods and Datasets

The authors chose LiRA (Likelihood Ratio Attack), widely considered the gold standard for MIAs. LiRA works by comparing the "loss" (how surprised the model is by a sequence) of the target model against a distribution of losses from many reference models trained with and without that specific sequence.

To make this work at scale, they:

  • Pre-trained 4,000+ GPT-2-like models ranging from 10M to 1B parameters.
  • Utilized the C4 (Colossal Clean Crawled Corpus) dataset, using subsets three orders of magnitude larger than prior MIA studies (over 50 million samples).
  • Introduced a "Flip Rate" metric: Instead of just looking at average accuracy, they measured how often an attack's decision about a specific sample changed if the model was retrained with a different random seed.

Key Insights and Ideas

  • The "Coin Flip" Instability: This is the paper's most striking finding. Even when an attack has a decent aggregate score (like an AUC of 0.7), many of its individual "correct" guesses are fragile. Due to training randomness (like batch ordering), the model's behavior on a specific sample varies so much that the attack's decision is often no more reliable than a coin toss.
  • Over-training is the Real Risk: In "practical" settings where a model sees data only once (1 epoch), privacy risk is relatively low. However, if a model is trained for multiple epochs (over-training), the MIA success rate skyrockets, reaching near-perfect accuracy in extreme cases.
Effect of over-training on MIA success rates across multiple epochs.
  • Size Doesn't Always Matter: Interestingly, the relationship between model size and vulnerability isn't linear. Larger models aren't automatically more "leaky" than smaller ones; in some tests, mid-sized models were actually the most vulnerable.
MIA performance across different model sizes, demonstrating a non-monotonic relationship.
  • MIA $\neq$ Data Extraction: Being able to tell a sample was in the training set (MIA) does not mean you can force the model to spit that sample out (Extraction). The authors found no strong correlation between these two types of privacy risks, suggesting they capture different signals of memorization.

Key Results

  • Limited Practical Success: For compute-optimal models trained for one epoch, LiRA rarely exceeded an AUC of 0.7. For context, an AUC of 0.5 is random guessing, and 1.0 is perfect.
  • Quantifying Instability: At a 1% False Positive Rate, roughly 15-18% of correct member identifications for a 302M parameter model were found to be statistically unstable (coin flips).
  • Reference Model Diminishing Returns: Attack performance improves as you add more reference models, but it plateaus. Moving from 128 to 256 reference models yielded only a 0.2% improvement in AUC.

Limitations and Future Work

  • Architecture Scope: The study focused on GPT-2 architectures. While GPT-2 is the foundation for modern LLMs, it remains to be seen if these findings hold for more modern architectures like Llama 3 or Mistral, which use different tokenizers and training refinements.
  • The "Why" of Non-monotonicity: The authors observed that vulnerability doesn't always increase with model size but couldn't definitively explain why. Investigating the specific training dynamics that cause this "dip" in vulnerability is a clear path for future research.
  • Cost: Even though this study "scaled" the attack, the computational cost of training 4,000 models is immense, making this type of "strong" auditing difficult for smaller labs or companies to perform regularly.

Summary updated

BibTeX
@inproceedings{hayes2025exploring,
  author = {Jamie Hayes and Ilia Shumailov and Christopher A. Choquette-Choo and Matthew Jagielski and Georgios Kaissis and Milad Nasr and Meenatchi Sundaram Muthu Selva Annamalai and Niloofar Mireshghallah and Igor Shilov and Matthieu Meeus and Yves-Alexandre de Montjoye and Katherine Lee and Franziska Boenisch and Adam Dziedzic and A. Feder Cooper},
  title = {{Exploring the limits of strong membership inference attacks on large language models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=x0i7wvRLHK},
}
Figure