Pandora's White-Box: Precise Training Data Detection and Extraction in Large Language Models
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
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 415
- 2023Detecting Pretraining Data from Large Language Modelscited by 375
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
- 2023Training Data Extraction From Pre-trained Language Models: A Surveycited by 43
- 2023MoPe: Model Perturbation-based Privacy Attacks on Language Modelscited by 25
- 2023Quantifying and Analyzing Entity-level Memorization in Large Language Modelscited by 18
- 2022How to Combine Membership-Inference Attacks on Multiple Updated Modelscited by 8
Built on by
Citing papers per year: 2025: 8; 2026: 3.
11 papers.
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2025OpenUnlearning: Accelerating LLM Unlearning via Unified Benchmarking of Methods and Metricscited by 80
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Modelscited by 18
- 2025Constrained Entropic Unlearning: A Primal-Dual Framework for Large Language Modelscited by 10
- 2025Automated Detection of Pre-training Text in Black-box LLMscited by 5
- 2025ISACL: Internal State Analyzer for Copyrighted Training Data Leakagecited by 2
- 2026Pretraining Data Exposure in Large Language Models: A Survey of Membership Inference, Data Contamination, and Security Implicationscited by 1
- 2025Collaborative LLM Numerical Reasoning with Local Data Protectioncited by 0
- 2025Data Security in Large Language Models: Risks, Defense, and Directionscited by 0
- 2026LLMSurgeon: Diagnosing Data Mixture of Large Language Modelscited by 0
- 2026Open-MMUnlearning: Unifying Methods and Evaluation for MLLM Unlearningcited by 0
- 2026Open-MMUnlearning: Unifying Methods and Evaluation for MLLM Unlearning7 Oct 2026
- 2026LLMSurgeon: Diagnosing Data Mixture of Large Language Models28 May 2026
- 2026Pretraining Data Exposure in Large Language Models: A Survey of Membership Inference, Data Contamination, and Security Implications21 May 2026
- 2025ISACL: Internal State Analyzer for Copyrighted Training Data Leakage25 Aug 2025
- 2025Data Security in Large Language Models: Risks, Defense, and Directions4 Aug 2025
- 2025A Survey on Model Extraction Attacks and Defenses for Large Language Models26 Jun 2025
- 2025Automated Detection of Pre-training Text in Black-box LLMs24 Jun 2025
- 2025OpenUnlearning: Accelerating LLM Unlearning via Unified Benchmarking of Methods and Metrics14 Jun 2025
- 2025Constrained Entropic Unlearning: A Primal-Dual Framework for Large Language Models5 Jun 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Collaborative LLM Numerical Reasoning with Local Data Protection1 Apr 2025