Counterfactual Memorization in Neural Language Models
Not on the map. Why?
Cited by 28 in LLM safety and security, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Modern neural language models that are widely used in various NLP tasks risk memorizing sensitive information from their training data. Understanding this memorization is important in real world applications and also from a learning-theoretical perspective. An open question in previous studies of language model memorization is how to filter out "common" memorization. In fact, most memorization criteria strongly correlate with the number of occurrences in the training set, capturing memorized familiar phrases, public knowledge, templated texts, or other repeated data. We formulate a notion of counterfactual memorization which characterizes how a model's predictions change if a particular document is omitted during training. We identify and study counterfactually-memorized training examples in standard text datasets. We estimate the influence of each memorized training example on the validation set and on generated texts, showing how this can provide direct evidence of the source of memorization at test time.
Key facts. Cited by 155 papers in the map (data through 7 Oct 2026). Builds on 25 of its 61 references that are in the map. First posted on arXiv 24 Dec 2021.
Builds on
25 of 61 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,714
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2021Membership Inference Attacks From First Principlescited by 839
- 2021Deduplicating Training Data Makes Language Models Bettercited by 705
13 more
- 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 565
- 2019Defending Against Neural Fake Newscited by 553
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 492
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
- 2019White-box vs Black-box: Bayes Optimal Strategies for Membership Inferencecited by 265
- 2020Influence Functions in Deep Learning Are Fragilecited by 247
- 2020Auditing Differentially Private Machine Learning: How Private is Private SGD?cited by 213
- 2021Adversary Instantiation: Lower Bounds for Differentially Private Machine Learningcited by 193
- 2021The Curious Case of Hallucinations in Neural Machine Translationcited by 161
- 2019On the Accuracy of Influence Functions for Measuring Group Effectscited by 146
- 2019Analyzing Information Leakage of Updates to Natural Language Modelscited by 89
- 2017Ethical Challenges in Data-Driven Dialogue Systemscited by 86
- 2020Understanding Unintended Memorization in Federated Learningcited by 36
Built on by
Citing papers per year: 2022: 17; 2023: 37; 2024: 44; 2025: 40; 2026: 17.
155 papers.
Sort:
By area:
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 655
- 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 394
- 2023Detecting Pretraining Data from Large Language Modelscited by 375
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 333
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
- 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)cited by 159
- 2023The BigScience ROOTS Corpus: A 1.6TB Composite Multilingual Datasetcited by 148
38 more
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
- 2022Training Data Influence Analysis and Estimation: A Surveycited by 134
- 2022The Privacy Onion Effect: Memorization is Relativecited by 128
- 2023Speak, Memory: An Archaeology of Books Known to ChatGPT/GPT-4cited by 123
- 2023Foundation Models and Fair Usecited by 112
- 2023Low-Cost High-Power Membership Inference Attackscited by 99
- 2022Preventing Verbatim Memorization in Language Models Gives a False Sense of Privacycited by 97
- 2023Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibrationcited by 90
- 2025MATH-Perturb: Benchmarking LLMs' Math Reasoning Abilities against Hard Perturbationscited by 88
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 83
- 2023Flocks of Stochastic Parrots: Differentially Private Prompt Learning for Large Language Modelscited by 80
- 2024Follow My Instruction and Spill the Beans: Scalable Data Extraction from Retrieval-Augmented Generation Systemscited by 76
- 2022Do Language Models Plagiarize?cited by 72
- 2024DE-COP: Detecting Copyrighted Content in Language Models Training Datacited by 72
- 2023SILO Language Models: Isolating Legal Risk In a Nonparametric Datastorecited by 71
- 2023On the Generalization Properties of Diffusion Modelscited by 67
- 2022Recitation-Augmented Language Modelscited by 65
- 2022Understanding Transformer Memorization Recall Through Idiomscited by 62
- 2023"It's a Fair Game", or Is It? Examining How Users Navigate Disclosure Risks and Benefits When Using LLM-Based Conversational Agentscited by 60
- 2022Measuring Causal Effects of Data Statistics on Language Model's `Factual' Predictionscited by 57
- 2025How much do language models memorize?cited by 53
- 2022Measuring the Effect of Training Data on Deep Learning Predictions via Randomized Experimentscited by 50
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2024Towards Understanding the Working Mechanism of Text-to-Image Diffusion Modelcited by 48
- 2023Exploring Memorization in Fine-tuned Language Modelscited by 44
- 2022Memorization in NLP Fine-tuning Methodscited by 43
- 2023Training Data Extraction From Pre-trained Language Models: A Surveycited by 43
- 2024To Each (Textual Sequence) Its Own: Improving Memorized-Data Unlearning in Large Language Modelscited by 42
- 2024Evaluating Copyright Takedown Methods for Language Modelscited by 42
- 2023Controlling the Extraction of Memorized Data from Large Language Models via Prompt-Tuningcited by 40
- 2023Data Contamination Through the Lens of Timecited by 39
- 2024Proving membership in LLM pretraining data via data watermarkscited by 38
- 2024LLM-PBE: Assessing Data Privacy in Large Language Modelscited by 38
- 2023User Inference Attacks on Large Language Modelscited by 36
- 2024Copyright Protection in Generative AI: A Technical Perspectivecited by 35
- 2022Differentially Private Decoding in Large Language Modelscited by 34
- 2024Training Data Attribution via Approximate Unrolled Differentiationcited by 33
50 most cited of 155 All 155 (JSON)
- 2026What Eviction Destroys: A Restore-Counterfactual Audit of Forgetting in Agent Memory8 Sep 2026
- 2026On the Recoverability of Private Information Unlearning in Large Language Models30 Aug 2026
- 2026Memorization Is Not Extraction: Tight Differential-Privacy Bounds and Audit Blind Spots27 Aug 2026
- 2026Recognition, Simulation, and Refusal: A Contamination-Aware Study of Classic Psychological Effects in LLM Agents23 Jul 2026
- 2026Extractable Memorization From First Principles14 Jul 2026
- 2026Where Flow Matching Leaks: Characterising Membership Signals Along the Interpolation Path5 Jun 2026
- 2026Validity Threats for Foundation Model Research3 Jun 2026
- 2026Correcting test set contamination by spiking the training data24 May 2026
- 2026Batch Normalization Amplifies Memorization and Privacy Risks23 May 2026
- 2026Memorization Dynamics of Fill-in-the-Middle Pretraining21 May 2026
- 2026Membership Inference Attacks for Retrieval Based In-Context Learning for Document Question Answering5 May 2026
- 2026On the Privacy of LLMs: An Ablation Study4 May 2026
38 more
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIs20 Apr 2026
- 2026Understanding U.S. Users' Security and Privacy Transparency Needs for Consumer-Facing Generative AI19 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
- 2026GRIP: Algorithm-Agnostic Machine Unlearning for Mixture-of-Experts via Geometric Router Constraints23 Jan 2026
- 2025CTIGuardian: A Few-Shot Framework for Mitigating Privacy Leakage in Fine-Tuned LLMs15 Dec 2025
- 2025The Persistence of Cultural Memory: Investigating Multimodal Iconicity in Diffusion Models14 Nov 2025
- 2025Differentially Private In-Context Learning with Nearest Neighbor Search6 Nov 2025
- 2025Leverage Unlearning to Sanitize LLMs24 Oct 2025
- 2025Extracting alignment data in open models21 Oct 2025
- 2025Memorizing Long-tail Data Can Help Generalization Through Composition18 Oct 2025
- 2025Auditing Information Disclosure During Large-Scale Gradient-Based Training via Gradient Uniqueness13 Oct 2025
- 2025The Model's Language Matters: A Comparative Privacy Analysis of LLMs9 Oct 2025
- 2025(Token-Level) InfoRMIA: Stronger Membership Inference and Memorization Assessment for LLMs7 Oct 2025
- 2025Train Once, Answer All: Many Pretraining Experiments for the Cost of One27 Sep 2025
- 2025A Law of Data Reconstruction for Random Features (and Beyond)26 Sep 2025
- 2025Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearning17 Sep 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generation14 Aug 2025
- 2025Unveiling Over-Memorization in Finetuning LLMs for Reasoning Tasks6 Aug 2025
- 2025Rethinking Memorization Measures and their Implications in Large Language Models20 Jul 2025
- 2025What Should LLMs Forget? Quantifying Personal Data in LLMs for Right-to-Be-Forgotten Requests15 Jul 2025
- 2025Unifying Re-Identification, Attribute Inference, and Data Reconstruction Risks in Differential Privacy9 Jul 2025
- 2025Data Compressibility Quantifies LLM Memorization8 Jul 2025
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation8 Jul 2025
- 2025Mechanistic Indicators of Understanding in Large Language Models7 Jul 2025
- 2025FlashDP: Private Training Large Language Models with Efficient DP-SGD1 Jul 2025
- 2025Counterfactual Influence as a Distributional Quantity25 Jun 2025
- 2025Winter Soldier: Backdooring Language Models at Pre-Training with Indirect Data Poisoning17 Jun 2025
- 2025Beyond Frequency: The Role of Redundancy in Large Language Model Memorization14 Jun 2025
- 2025Quantifying Cross-Modality Memorization in Vision-Language Models5 Jun 2025
- 2025How much do language models memorize?30 May 2025
- 2025What is the role of memorization in Continual Learning?23 May 2025
- 2025A False Sense of Privacy: Evaluating Textual Data Sanitization Beyond Surface-level Privacy Leakage28 Apr 2025
- 2025A Neuro-inspired Interpretation of Unlearning in Large Language Models through Sample-level Unlearning Difficulty9 Apr 2025
- 2025A Survey on Music Generation from Single-Modal, Cross-Modal, and Multi-Modal Perspectives1 Apr 2025
- 2025Empirical Privacy Variance16 Mar 2025
- 2025Cognitive Activation and Chaotic Dynamics in Large Language Models: A Quasi-Lyapunov Analysis of Reasoning Mechanisms15 Mar 2025
50 newest of 155 All 155 (JSON)
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
- 2023Speak, Memory: An Archaeology of Books Known to ChatGPT/GPT-4cited by 123
- 2023Low-Cost High-Power Membership Inference Attackscited by 99
- 2023Practical Membership Inference Attacks against Fine-tuned Large Language Models via Self-prompt Calibrationcited by 90
- 2024To Each (Textual Sequence) Its Own: Improving Memorized-Data Unlearning in Large Language Modelscited by 42
- 2024Proving membership in LLM pretraining data via data watermarkscited by 38
- 2024Semantic Membership Inference Attack against Large Language Modelscited by 17
- 2024Remaining-data-free Machine Unlearning by Suppressing Sample Contributioncited by 13
- 2024REVS: Unlearning Sensitive Information in Language Models via Rank Editing in the Vocabulary Spacecited by 12
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigationcited by 9
- 2024Free Record-Level Privacy Risk Evaluation Through Artifact-Based Methodscited by 6
- 2025Winter Soldier: Backdooring Language Models at Pre-Training with Indirect Data Poisoningcited by 6
12 most cited of 25 All 25 (JSON)
- 2026On the Recoverability of Private Information Unlearning in Large Language Models30 Aug 2026
- 2026Membership Inference Attacks for Retrieval Based In-Context Learning for Document Question Answering5 May 2026
- 2026Beyond Indistinguishability: Measuring Extraction Risk in LLM APIs20 Apr 2026
- 2026Learning to Detect Language Model Training Data via Active Reconstruction22 Feb 2026
- 2025CTIGuardian: A Few-Shot Framework for Mitigating Privacy Leakage in Fine-Tuned LLMs15 Dec 2025
- 2025Leverage Unlearning to Sanitize LLMs24 Oct 2025
- 2025(Token-Level) InfoRMIA: Stronger Membership Inference and Memorization Assessment for LLMs7 Oct 2025
- 2025Scrub It Out! Erasing Sensitive Memorization in Code Language Models via Machine Unlearning17 Sep 2025
- 2025Layer-Wise Perturbations via Sparse Autoencoders for Adversarial Text Generation14 Aug 2025
- 2025What Should LLMs Forget? Quantifying Personal Data in LLMs for Right-to-Be-Forgotten Requests15 Jul 2025
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation8 Jul 2025
- 2025Winter Soldier: Backdooring Language Models at Pre-Training with Indirect Data Poisoning17 Jun 2025
12 newest of 25 All 25 (JSON)
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
- 2025MATH-Perturb: Benchmarking LLMs' Math Reasoning Abilities against Hard Perturbationscited by 88
- 2025Unveiling Over-Memorization in Finetuning LLMs for Reasoning Taskscited by 10
- 2024Quantifying In-Context Reasoning Effects and Memorization Effects in LLMscited by 3
- 2025Cognitive Activation and Chaotic Dynamics in Large Language Models: A Quasi-Lyapunov Analysis of Reasoning Mechanismscited by 1
- 2025Rethinking Memorization Measures and their Implications in Large Language Modelscited by 1
- 2025Unveiling Over-Memorization in Finetuning LLMs for Reasoning Tasks6 Aug 2025
- 2025Rethinking Memorization Measures and their Implications in Large Language Models20 Jul 2025
- 2025Cognitive Activation and Chaotic Dynamics in Large Language Models: A Quasi-Lyapunov Analysis of Reasoning Mechanisms15 Mar 2025
- 2025MATH-Perturb: Benchmarking LLMs' Math Reasoning Abilities against Hard Perturbations10 Feb 2025
- 2024Quantifying In-Context Reasoning Effects and Memorization Effects in LLMs20 May 2024
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoning15 Feb 2022
- 2023On the Generalization Properties of Diffusion Modelscited by 67
- 2024Towards Understanding the Working Mechanism of Text-to-Image Diffusion Modelcited by 48
- 2024Disguised Copyright Infringement of Latent Diffusion Modelscited by 10
- 2025The Persistence of Cultural Memory: Investigating Multimodal Iconicity in Diffusion Modelscited by 0
- 2026Where Flow Matching Leaks: Characterising Membership Signals Along the Interpolation Pathcited by 0
- 2026Where Flow Matching Leaks: Characterising Membership Signals Along the Interpolation Path5 Jun 2026
- 2025The Persistence of Cultural Memory: Investigating Multimodal Iconicity in Diffusion Models14 Nov 2025
- 2024Towards Understanding the Working Mechanism of Text-to-Image Diffusion Model24 May 2024
- 2024Disguised Copyright Infringement of Latent Diffusion Models10 Apr 2024
- 2023On the Generalization Properties of Diffusion Models3 Nov 2023
- 2023"It's a Fair Game", or Is It? Examining How Users Navigate Disclosure Risks and Benefits When Using LLM-Based Conversational Agentscited by 60
- 2025Protecting Users From Themselves: Safeguarding Contextual Privacy in Interactions with Conversational Agentscited by 26
- 2026What Eviction Destroys: A Restore-Counterfactual Audit of Forgetting in Agent Memorycited by 0
- 2026Recognition, Simulation, and Refusal: A Contamination-Aware Study of Classic Psychological Effects in LLM Agentscited by 0
- 2026What Eviction Destroys: A Restore-Counterfactual Audit of Forgetting in Agent Memory8 Sep 2026
- 2026Recognition, Simulation, and Refusal: A Contamination-Aware Study of Classic Psychological Effects in LLM Agents23 Jul 2026
- 2025Protecting Users From Themselves: Safeguarding Contextual Privacy in Interactions with Conversational Agents22 Feb 2025
- 2023"It's a Fair Game", or Is It? Examining How Users Navigate Disclosure Risks and Benefits When Using LLM-Based Conversational Agents20 Sep 2023
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 655
- 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 394
- 2023Detecting Pretraining Data from Large Language Modelscited by 375
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 333
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
- 2023The BigScience ROOTS Corpus: A 1.6TB Composite Multilingual Datasetcited by 148
- 2022Training Data Influence Analysis and Estimation: A Surveycited by 134
- 2022The Privacy Onion Effect: Memorization is Relativecited by 128
12 most cited of 107 All 107 (JSON)
- 2026Memorization Is Not Extraction: Tight Differential-Privacy Bounds and Audit Blind Spots27 Aug 2026
- 2026Extractable Memorization From First Principles14 Jul 2026
- 2026Validity Threats for Foundation Model Research3 Jun 2026
- 2026Correcting test set contamination by spiking the training data24 May 2026
- 2026Batch Normalization Amplifies Memorization and Privacy Risks23 May 2026
- 2026Memorization Dynamics of Fill-in-the-Middle Pretraining21 May 2026
- 2026Understanding U.S. Users' Security and Privacy Transparency Needs for Consumer-Facing Generative AI19 Apr 2026
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Models21 Feb 2026
- 2025Differentially Private In-Context Learning with Nearest Neighbor Search6 Nov 2025
- 2025Extracting alignment data in open models21 Oct 2025
- 2025Memorizing Long-tail Data Can Help Generalization Through Composition18 Oct 2025
- 2025Auditing Information Disclosure During Large-Scale Gradient-Based Training via Gradient Uniqueness13 Oct 2025
12 newest of 107 All 107 (JSON)