Language Models May Verbatim Complete Text They Were Not Explicitly Trained On
Not on the map. Why?
Abstract (arXiv)
An important question today is whether a given text was used to train a large language model (LLM). A completion test is often employed: check if the LLM completes a sufficiently complex text. This, however, requires a ground-truth definition of membership; most commonly, it is defined as a member based on the n-gram overlap between the target text and any text in the dataset. In this work, we demonstrate that this n-gram based membership definition can be effectively gamed. We study scenarios where sequences are non-members for a given n and we find that completion tests still succeed. We find many natural cases of this phenomenon by retraining LLMs from scratch after removing all training samples that were completed; these cases include exact duplicates, near-duplicates, and even short overlaps. They showcase that it is difficult to find a single viable choice of n for membership definitions. Using these insights, we design adversarial datasets that can cause a given target sequence to be completed without containing it, for any reasonable choice of n. Our findings highlight the inadequacy of n-gram membership, suggesting membership definitions fail to account for auxiliary information available to the training algorithm.
Key facts. Cited by 21 papers in the map (data through 14 Oct 2026). Builds on 49 of its 71 references that are in the map. First posted on arXiv 21 Mar 2025.
Builds on
49 of 71 references.
References · 49
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2024Qwen2 Technical Reportcited by 2,120
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2023PaLM 2 Technical Reportcited by 1,162
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
37 more
- 2019Machine Unlearningcited by 1,061
- 2021Membership Inference Attacks From First Principlescited by 878
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2023Extracting Training Data from Diffusion Modelscited by 732
- 2021Deduplicating Training Data Makes Language Models Bettercited by 714
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 498
- 2023Scalable Extraction of Training Data from (Production) Language Modelscited by 434
- 2022Diffusion Art or Digital Forgery? Investigating Data Replication in Diffusion Modelscited by 424
- 2020Label-Only Membership Inference Attackscited by 388
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2023NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmarkcited by 348
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 314
- 2019White-box vs Black-box: Bayes Optimal Strategies for Membership Inferencecited by 271
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 258
- 2024Rethinking Machine Unlearning for Large Language Modelscited by 257
- 2023Proving Test Set Contamination in Black Box Language Modelscited by 230
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 195
- 2023MADLAD-400: A Multilingual And Document-Level Large Audited Datasetcited by 181
- 2021On the Necessity of Auditable Algorithmic Definitions for Machine Unlearningcited by 171
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 148
- 2021Dataset Inference: Ownership Resolution in Machine Learningcited by 116
- 2024LLM Dataset Inference: Did you train on my dataset?cited by 110
- 2024Investigating Data Contamination for Pre-training Language Modelscited by 91
- 2024Blind Baselines Beat Membership Inference Attacks for Foundation Modelscited by 69
- 2024Be like a Goldfish, Don't Memorize! Mitigating Memorization in Generative LLMscited by 50
- 2024Membership Inference Attacks Cannot Prove that a Model Was Trained On Your Datacited by 50
- 2023Data Contamination Quiz: A Tool to Detect and Estimate Contamination in Large Language Modelscited by 47
- 2023User Inference Attacks on Large Language Modelscited by 36
- 2023Students Parrot Their Teachers: Membership Inference on Model Distillationcited by 33
- 2024Evaluation data contamination in LLMs: how do we measure it and (when) does it matter?cited by 32
- 2024Evading Data Contamination Detection for Language Models is (too) Easycited by 30
- 2023MoPe: Model Perturbation-based Privacy Attacks on Language Modelscited by 25
- 2024Exploring Memorization and Copyright Violation in Frontier LLMs: A Study of the New York Times v. OpenAI 2023 Lawsuitcited by 18
- 2024Language model developers should report train-test overlapcited by 16
- 2023Can Membership Inferencing be Refuted?cited by 4
Built on by
Citing papers per year: 2025: 9; 2026: 12.
21 papers.
Sort:
By area:
- 2025How much do language models memorize?cited by 61
- 2025FlexOlmo: Open Language Models for Flexible Data Usecited by 15
- 2025Train Once, Answer All: Many Pretraining Experiments for the Cost of Onecited by 6
- 2026Antidistillation Fingerprintingcited by 6
- 2025Distributional Machine Unlearning via Selective Data Removalcited by 5
- 2025What Really is a Member? Discrediting Membership Inference via Poisoningcited by 2
- 2025A Unified Framework for Adversary-Aware Differential Privacy Boundscited by 2
- 2026Quantifying the Effect of Test Set Contamination on Generative Evaluationscited by 2
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Modelscited by 2
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIscited by 1
- 2026Statistical Unlearning of Distributions: A Hypothesis Testing Approachcited by 1
- 2025Nine Ways to Break Copyright Law and Why Our LLM Won't: A Fair Use Aligned Generation Frameworkcited by 0
9 more
- 2025FictionalQA: A Dataset for Studying Memorization and Knowledge Acquisitioncited by 0
- 2025Counterfactual Influence as a Distributional Quantitycited by 0
- 2026The Limits of AI Data Transparency Policy: Three Disclosure Fallaciescited by 0
- 2026Learning to Detect Language Model Training Data via Active Reconstructioncited by 0
- 2026Watermarking for Proprietary Dataset Protectioncited by 0
- 2026FindMyText: Robust, Scalable Detection of Text Containment in Large Web-Crawled Corporacited by 0
- 2026Extractable Memorization From First Principlescited by 0
- 2026What to Forget in Unlearning? Forget Set Curation for Language Modelscited by 0
- 2026Learning What to Forget: Distributional Unlearning for LLM Representation Spacescited by 0
- 2026Learning What to Forget: Distributional Unlearning for LLM Representation Spaces30 Sep 2026
- 2026What to Forget in Unlearning? Forget Set Curation for Language Models14 Aug 2026
- 2026Extractable Memorization From First Principles14 Jul 2026
- 2026FindMyText: Robust, Scalable Detection of Text Containment in Large Web-Crawled Corpora10 Jul 2026
- 2026Watermarking for Proprietary Dataset Protection1 Jul 2026
- 2026Statistical Unlearning of Distributions: A Hypothesis Testing Approach15 May 2026
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIs20 Apr 2026
- 2026Learning to Detect Language Model Training Data via Active Reconstruction22 Feb 2026
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Models21 Feb 2026
- 2026Antidistillation Fingerprinting3 Feb 2026
- 2026The Limits of AI Data Transparency Policy: Three Disclosure Fallacies26 Jan 2026
- 2026Quantifying the Effect of Test Set Contamination on Generative Evaluations7 Jan 2026
9 more
- 2025Train Once, Answer All: Many Pretraining Experiments for the Cost of One27 Sep 2025
- 2025Distributional Machine Unlearning via Selective Data Removal20 Jul 2025
- 2025A Unified Framework for Adversary-Aware Differential Privacy Bounds10 Jul 2025
- 2025FlexOlmo: Open Language Models for Flexible Data Use9 Jul 2025
- 2025Counterfactual Influence as a Distributional Quantity25 Jun 2025
- 2025What Really is a Member? Discrediting Membership Inference via Poisoning6 Jun 2025
- 2025FictionalQA: A Dataset for Studying Memorization and Knowledge Acquisition5 Jun 2025
- 2025How much do language models memorize?30 May 2025
- 2025Nine Ways to Break Copyright Law and Why Our LLM Won't: A Fair Use Aligned Generation Framework25 May 2025
- 2025Distributional Machine Unlearning via Selective Data Removalcited by 5
- 2025What Really is a Member? Discrediting Membership Inference via Poisoningcited by 2
- 2025A Unified Framework for Adversary-Aware Differential Privacy Boundscited by 2
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIscited by 1
- 2026Statistical Unlearning of Distributions: A Hypothesis Testing Approachcited by 1
- 2026Learning to Detect Language Model Training Data via Active Reconstructioncited by 0
- 2026What to Forget in Unlearning? Forget Set Curation for Language Modelscited by 0
- 2026Learning What to Forget: Distributional Unlearning for LLM Representation Spacescited by 0
- 2026Learning What to Forget: Distributional Unlearning for LLM Representation Spaces30 Sep 2026
- 2026What to Forget in Unlearning? Forget Set Curation for Language Models14 Aug 2026
- 2026Statistical Unlearning of Distributions: A Hypothesis Testing Approach15 May 2026
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIs20 Apr 2026
- 2026Learning to Detect Language Model Training Data via Active Reconstruction22 Feb 2026
- 2025Distributional Machine Unlearning via Selective Data Removal20 Jul 2025
- 2025A Unified Framework for Adversary-Aware Differential Privacy Bounds10 Jul 2025
- 2025What Really is a Member? Discrediting Membership Inference via Poisoning6 Jun 2025
- 2025FlexOlmo: Open Language Models for Flexible Data Usecited by 15
- 2025FlexOlmo: Open Language Models for Flexible Data Use9 Jul 2025
- 2025How much do language models memorize?cited by 61
- 2025Train Once, Answer All: Many Pretraining Experiments for the Cost of Onecited by 6
- 2026Antidistillation Fingerprintingcited by 6
- 2026Quantifying the Effect of Test Set Contamination on Generative Evaluationscited by 2
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Modelscited by 2
- 2025FictionalQA: A Dataset for Studying Memorization and Knowledge Acquisitioncited by 0
- 2025Counterfactual Influence as a Distributional Quantitycited by 0
- 2026The Limits of AI Data Transparency Policy: Three Disclosure Fallaciescited by 0
- 2026Watermarking for Proprietary Dataset Protectioncited by 0
- 2026FindMyText: Robust, Scalable Detection of Text Containment in Large Web-Crawled Corporacited by 0
- 2026Extractable Memorization From First Principlescited by 0
- 2026Extractable Memorization From First Principles14 Jul 2026
- 2026FindMyText: Robust, Scalable Detection of Text Containment in Large Web-Crawled Corpora10 Jul 2026
- 2026Watermarking for Proprietary Dataset Protection1 Jul 2026
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Models21 Feb 2026
- 2026Antidistillation Fingerprinting3 Feb 2026
- 2026The Limits of AI Data Transparency Policy: Three Disclosure Fallacies26 Jan 2026
- 2026Quantifying the Effect of Test Set Contamination on Generative Evaluations7 Jan 2026
- 2025Train Once, Answer All: Many Pretraining Experiments for the Cost of One27 Sep 2025
- 2025Counterfactual Influence as a Distributional Quantity25 Jun 2025
- 2025FictionalQA: A Dataset for Studying Memorization and Knowledge Acquisition5 Jun 2025
- 2025How much do language models memorize?30 May 2025