mlsanityData to 7 Oct 2026

Pandora's White-Box: Precise Training Data Detection and Extraction in Large Language Models

arXiv 2402.17012 ↗First posted 26 Feb 2024cs.CR cs.AI cs.LGcited by 11

Not on the map. Why?

Abstract (arXiv)

In this paper we develop state-of-the-art privacy attacks against Large Language Models (LLMs), where an adversary with some access to the model tries to learn something about the underlying training data. Our headline results are new membership inference attacks (MIAs) against pretrained LLMs that perform hundreds of times better than baseline attacks, and a pipeline showing that over 50% (!) of the fine-tuning dataset can be extracted from a fine-tuned LLM in natural settings. We consider varying degrees of access to the underlying model, pretraining and fine-tuning data, and both MIAs and training data extraction. For pretraining data, we propose two new MIAs: a supervised neural network classifier that predicts training data membership on the basis of (dimensionality-reduced) model gradients, as well as a variant of this attack that only requires logit access to the model by leveraging recent model-stealing work on LLMs. To our knowledge this is the first MIA that explicitly incorporates model-stealing information. Both attacks outperform existing black-box baselines, and our supervised attack closes the gap between MIA attack success against LLMs and the strongest known attacks for other machine learning models. In fine-tuning, we find that a simple attack based on the ratio of the loss between the base and fine-tuned models is able to achieve near-perfect MIA performance; we then leverage our MIA to extract a large fraction of the fine-tuning dataset from fine-tuned Pythia and Llama models. Our code is available at github.com/safr-ai-lab/pandora-llm.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 11 of its 18 references that are in the map. First posted on arXiv 26 Feb 2024.

Builds on

11 of 18 references.

References · 11

  1. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  2. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
  3. 2020Extracting Training Data from Large Language Modelscited by 2,144
  4. 2022Quantifying Memorization Across Neural Language Modelscited by 755
  5. 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
  6. 2023Detecting Pretraining Data from Large Language Modelscited by 375
  7. 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
  8. 2023Training Data Extraction From Pre-trained Language Models: A Surveycited by 43
  9. 2023MoPe: Model Perturbation-based Privacy Attacks on Language Modelscited by 25
  10. 2023Quantifying and Analyzing Entity-level Memorization in Large Language Modelscited by 18
  11. 2022How to Combine Membership-Inference Attacks on Multiple Updated Modelscited by 8

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 8; 2026: 3.

11 papers.