mlsanityData to 7 Oct 2026

LLM Dataset Inference: Did you train on my dataset?

arXiv 2406.06443 ↗First posted 10 Jun 2024cs.LG cs.CL cs.CRcited by 107

On the map: LLM safety and security → Membership inference attacks

Abstract (arXiv)

The proliferation of large language models (LLMs) in the real world has come with a rise in copyright cases against companies for training their models on unlicensed data from the internet. Recent works have presented methods to identify if individual text sequences were members of the model's training data, known as membership inference attacks (MIAs). We demonstrate that the apparent success of these MIAs is confounded by selecting non-members (text sequences not used for training) belonging to a different distribution from the members (e.g., temporally shifted recent Wikipedia articles compared with ones used to train the model). This distribution shift makes membership inference appear successful. However, most MIA methods perform no better than random guessing when discriminating between members and non-members from the same distribution (e.g., in this case, the same period of time). Even when MIAs work, we find that different MIAs succeed at inferring membership of samples from different distributions. Instead, we propose a new dataset inference method to accurately identify the datasets used to train large language models. This paradigm sits realistically in the modern-day copyright landscape, where authors claim that an LLM is trained over multiple documents (such as a book) written by them, rather than one particular paragraph. While dataset inference shares many of the challenges of membership inference, we solve it by selectively combining the MIAs that provide positive signal for a given distribution, and aggregating them to perform a statistical test on a given dataset. Our approach successfully distinguishes the train and test sets of different subsets of the Pile with statistically significant p-values < 0.1, without any false positives.

Key facts. Cited by 107 papers in the map (data through 7 Oct 2026). Placed in Membership inference attacks, one of 12 directions in LLM safety and security. Builds on 22 of its 43 references that are in the map. First posted on arXiv 10 Jun 2024.

Builds on

22 of 43 references.

Closest ancestors · 5

Same direction, newest first

  1. 2024Do Membership Inference Attacks Work on Large Language Models?12 Feb
  2. 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
  3. 2021Membership Inference Attacks From First Principles7 Dec
  4. 2021Dataset Inference: Ownership Resolution in Machine Learning21 Apr
  5. 2021Membership Inference Attacks are Easier on Difficult Problems15 Feb

Other references · 17

  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. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  5. 2021Deduplicating Training Data Makes Language Models Bettercited by 705
  6. 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 705
  7. 2023Textbooks Are All You Need II: phi-1.5 technical reportcited by 559
  8. 2023TinyStories: How Small Can Language Models Be and Still Speak Coherent English?cited by 425
  9. 2023Detecting Pretraining Data from Large Language Modelscited by 375
  10. 2023Fast-DetectGPT: Efficient Zero-Shot Detection of Machine-Generated Text via Conditional Probability Curvaturecited by 278
  11. 2023Proving Test Set Contamination in Black Box Language Modelscited by 227
  12. 2023Privacy Auditing with One (1) Training Runcited by 119
5 more
  1. 2023Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Modelscited by 80
  2. 2021NL-Augmenter: A Framework for Task-Sensitive Natural Language Augmentationcited by 72
  3. 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
  4. 2023Unveiling Security, Privacy, and Ethical Concerns of ChatGPTcited by 53
  5. 2022Dataset Inference for Self-Supervised Modelscited by 36

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 16; 2025: 53; 2026: 38.

107 papers.

Sort:

By area:

  1. 2025Measuring what Matters: Construct Validity in Large Language Model Benchmarkscited by 102
  2. 2024LLM Unlearning via Loss Adjustment with Only Forget Datacited by 71
  3. 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoodscited by 61
  4. 2024SoK: Membership Inference Attacks on LLMs are Rushing Nowhere (and How to Fix It)cited by 54
  5. 2025How much do language models memorize?cited by 53
  6. 2024Membership Inference Attacks Cannot Prove that a Model Was Trained On Your Datacited by 49
  7. 2025Riddle Me This! Stealthy Membership Inference for Retrieval-Augmented Generationcited by 26
  8. 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generationcited by 25
  9. 2024Exposing Privacy Gaps: Membership Inference Attack on Preference Data for LLM Alignmentcited by 24
  10. 2024Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Modelscited by 21
  11. 2024Context-Aware Membership Inference Attacks against Pre-trained Large Language Modelscited by 20
  12. 2025Language Models May Verbatim Complete Text They Were Not Explicitly Trained Oncited by 20
38 more
  1. 2025Membership Inference Attacks on Large-Scale Models: A Surveycited by 17
  2. 2025GUARD: Generation-time LLM Unlearning via Adaptive Restriction and Detectioncited by 17
  3. 2024Ward: Provable RAG Dataset Inference via LLM Watermarkscited by 15
  4. 2025Privacy Attacks on Image AutoRegressive Modelscited by 15
  5. 2024Detecting Training Data of Large Language Models via Expectation Maximizationcited by 13
  6. 2025How Contaminated Is Your Benchmark? Quantifying Dataset Leakage in Large Language Models with Kernel Divergencecited by 13
  7. 2025AlphaDecay: Module-wise Weight Decay for Heavy-Tailed Balancing in LLMscited by 12
  8. 2025Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMscited by 11
  9. 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attackscited by 9
  10. 2024Towards More Realistic Extraction Attacks: An Adversarial Perspectivecited by 8
  11. 2025Robust Data Watermarking in Language Models by Injecting Fictitious Knowledgecited by 8
  12. 2025Information-Guided Identification of Training Data Imprint in (Proprietary) Large Language Modelscited by 8
  13. 2025STAMP Your Content: Proving Dataset Membership via Watermarked Rephrasingscited by 8
  14. 2025DATABench: Evaluating Dataset Auditing in Deep Learning from an Adversarial Perspectivecited by 8
  15. 2025On The Fragility of Benchmark Contamination Detection in Reasoning Modelscited by 8
  16. 2026ChainFuzzer: Greybox Fuzzing for Workflow-Level Multi-Tool Vulnerabilities in LLM Agentscited by 8
  17. 2024Fine-tuning can Help Detect Pretraining Data from Large Language Modelscited by 7
  18. 2025Unlocking Post-hoc Dataset Inference with Synthetic Datacited by 7
  19. 2025Detecting Data Contamination in LLMs via In-Context Learningcited by 7
  20. 2024Self-Comparison for Dataset-Level Membership Inference in Large (Vision-)Language Modelscited by 6
  21. 2025Winter Soldier: Backdooring Language Models at Pre-Training with Indirect Data Poisoningcited by 6
  22. 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
  23. 2026From Data to Behavior: Predicting Unintended Model Behaviors Before Trainingcited by 6
  24. 2025Tag&Tab: Pretraining Data Detection in Large Language Models Using Keyword-Based Membership Inference Attackcited by 5
  25. 2025Automated Detection of Pre-training Text in Black-box LLMscited by 5
  26. 2025Leave No TRACE: Black-box Detection of Copyrighted Dataset Usage in Large Language Models via Watermarkingcited by 5
  27. 2024Measuring Fingerprints of Web-filtered Text Datasets and Fingerprint Propagation Through Trainingcited by 4
  28. 2025The Heap: A Contamination-Free Multilingual Code Dataset for Evaluating Large Language Modelscited by 4
  29. 2025Facts Fade Fast: Evaluating Memorization of Outdated Medical Knowledge in Large Language Modelscited by 4
  30. 2026VidLeaks: Membership Inference Attacks Against Text-to-Video Modelscited by 4
  31. 2025Synthetic Data Can Mislead Evaluations: Membership Inference as Machine Text Detectioncited by 3
  32. 2025PoisonedParrot: Subtle Data Poisoning Attacks to Elicit Copyright-Infringing Content from Large Language Modelscited by 3
  33. 2025The Feasibility of Topic-Based Watermarking on Academic Peer Reviewscited by 3
  34. 2025Hey, That's My Data! Token-Only Dataset Inference in Large Language Modelscited by 3
  35. 2025Neural Breadcrumbs: Membership Inference Attacks on LLMs Through Hidden State and Attention Pattern Analysiscited by 3
  36. 2025Membership Inference Attacks on Tokenizers of Large Language Modelscited by 3
  37. 2025Data Provenance Auditing of Fine-Tuned Large Language Models with a Text-Preserving Techniquecited by 3
  38. 2025What Really is a Member? Discrediting Membership Inference via Poisoningcited by 2

50 most cited of 107 All 107 (JSON)