Rethinking Memorization Measures and their Implications in Large Language Models
On the map: LLM reasoning → Reasoning benchmarks and evaluation
Abstract (arXiv)
We investigate foundational questions about the interplay between memorization and learning in large language models (LLMs). When an LLM generates a string, can we disentangle the roles of rote memorization and contextual learning? Rote memorization results in an LLM regurgitating specific details of a training string, while contextual learning leads to the generation of new strings that follow generalizable patterns of the underlying language. Related questions of interest include: can an LLM avoid memorization when optimally learning a language?, and if not, can we design training schemes to reduce memorization and improve learning? To address these questions, we propose contextual memorization, a new measure that precisely disentangles memorization from learning. Using this measure, we establish that different training strings are memorized at different epochs in training, and that memorization of some training strings is unavoidable when optimally learning a language. Finally, we propose memorization-aware training, a scheme that dynamically down-samples training strings based on their memorization, and in doing so, equalizes learning across strings, reduces memorization, and improves learning. Our conclusions are supported by extensive experiments on multiple LLMs using formal languages as a controlled testbed, enabling precise language specification, exact string sampling, and elimination of data contamination; and further validated on natural languages.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 48 of its 65 references that are in the map. First posted on arXiv 20 Jul 2025.
Builds on
48 of 65 references.
Closest ancestors · 1
Same direction, newest first
Other references · 47
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2021Deduplicating Training Data Makes Language Models Bettercited by 714
- 2024OLMo: Accelerating the Science of Language Modelscited by 613
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 497
35 more
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 314
- 2019Theoretical Limitations of Self-Attention in Neural Sequence Modelscited by 288
- 2022Transformers Learn Shortcuts to Automatacited by 268
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
- 2022Neural Networks and the Chomsky Hierarchycited by 217
- 2023Cross-Entropy Loss Functions: Theoretical Analysis and Applicationscited by 210
- 2022Are Large Pre-Trained Language Models Leaking Your Personal Information?cited by 200
- 2021Counterfactual Memorization in Neural Language Modelscited by 156
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 148
- 2023ProPILE: Probing Privacy Leakage in Large Language Modelscited by 129
- 2021How much do language models copy from their training data? Evaluating linguistic novelty in text generation using RAVENcited by 124
- 2024Generalization or Memorization: Data Contamination and Trustworthy Evaluation for Large Language Modelscited by 122
- 2022Measuring Forgetting of Memorized Training Examplescited by 118
- 2023Foundation Models and Fair Usecited by 116
- 2024In-Context Language Learning: Architectures and Algorithmscited by 89
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 85
- 2023Physics of Language Models: Part 1, Learning Hierarchical Language Structurescited by 83
- 2024Why are Sensitive Functions Hard for Transformers?cited by 74
- 2022Understanding Transformer Memorization Recall Through Idiomscited by 62
- 2021On Memorization in Probabilistic Deep Generative Modelscited by 60
- 2018Are All Languages Equally Hard to Language-Model?cited by 53
- 2019What Kind of Language Is Hard to Language-Model?cited by 50
- 2022Characterizing Intrinsic Compositionality in Transformers with Tree Projectionscited by 41
- 2021Examining the Inductive Bias of Neural Language Models with Artificial Languagescited by 40
- 2023Injecting structural hints: Using language models to study inductive biases in language learningcited by 35
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2024What Languages are Easy to Language-Model? A Perspective from Learning Probabilistic Regular Languagescited by 20
- 2023Quantifying and Analyzing Entity-level Memorization in Large Language Modelscited by 18
- 2024Exploring Memorization and Copyright Violation in Frontier LLMs: A Study of the New York Times v. OpenAI 2023 Lawsuitcited by 18
- 2024LLMs and Memorization: On Quality and Specificity of Copyright Compliancecited by 16
- 2023Transformer Working Memory Enables Regular Language Reasoning and Natural Language Length Extrapolationcited by 13
- 2024Measuring memorization in RLHF for code completioncited by 13
- 2023Transparency at the Source: Evaluating and Interpreting Language Models With Access to the True Distributioncited by 10
- 2021Learning Bounded Context-Free-Grammar via LSTM and the Transformer:Difference and Explanationscited by 7
- 2025Revisiting Privacy, Utility, and Efficiency Trade-offs when Fine-Tuning Large Language Modelscited by 5
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025The Landscape of Memorization in LLMs: Mechanisms, Measurement, and Mitigation
- 2026Do LLMs Really Memorize Personally Identifiable Information? Revisiting PII Leakage with a Cue-Controlled Memorization Framework
- 2025Shared Path: Unraveling Memorization in Multilingual LLMs through Language Similarities
- 2025Impact of Fine-Tuning Methods on Memorization in Large Language Models
- 2025Analyzing Memorization in Large Language Models through the Lens of Model Attribution
- 2024Demystifying Verbatim Memorization in Large Language Models
- 2026Unintended Memorization of Sensitive Information in Fine-Tuned Language Models
- 2025Leaner Training, Lower Leakage: Revisiting Memorization in LLM Fine-Tuning with LoRA