Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Data
Not on the map. Why?
Abstract (arXiv)
The impressive capabilities of large language models (LLMs) have sparked debate over whether these models genuinely generalize to unseen tasks or predominantly rely on memorizing vast amounts of pretraining data. To explore this issue, we introduce an extended concept of memorization, distributional memorization, which measures the correlation between the LLM output probabilities and the pretraining data frequency. To effectively capture task-specific pretraining data frequency, we propose a novel task-gram language model, which is built by counting the co-occurrence of semantically related n-gram pairs from task inputs and outputs in the pretraining corpus. Using the Pythia models trained on the Pile dataset, we evaluate four distinct tasks: machine translation, factual question answering, world knowledge understanding, and math reasoning. Our findings reveal varying levels of memorization, with the strongest effect observed in factual question answering. Furthermore, while model performance improves across all tasks as LLM size increases, only factual question answering shows an increase in memorization, whereas machine translation and reasoning tasks exhibit greater generalization, producing more novel outputs. This study demonstrates that memorization plays a larger role in simpler, knowledge-intensive tasks, while generalization is the key for harder, reasoning-based tasks, providing a scalable method for analyzing large pretraining corpora in greater depth.
Key facts. Cited by 83 papers in the map (data through 7 Oct 2026). Builds on 34 of its 39 references that are in the map. First posted on arXiv 20 Jul 2024.
Builds on
34 of 39 references.
References · 34
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
22 more
- 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 565
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 492
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 303
- 2022Data Contamination: From Memorization to Exploitationcited by 234
- 2021Counterfactual Memorization in Neural Language Modelscited by 155
- 2023Large Language Models Are Latent Variable Models: Explaining and Finding Good Demonstrations for In-Context Learningcited by 149
- 2024Infini-gram: Scaling Unbounded n-gram Language Models to a Trillion Tokenscited by 148
- 2023A Theory for Emergence of Complex Skills in Language Modelscited by 111
- 2023Why think step by step? Reasoning emerges from the locality of experiencecited by 103
- 2024Investigating Data Contamination for Pre-training Language Modelscited by 91
- 2024Functional Benchmarks for Robust Evaluation of Reasoning Performance, and the Reasoning Gapcited by 79
- 2022Measuring Causal Effects of Data Statistics on Language Model's `Factual' Predictionscited by 57
- 2017Learning Joint Multilingual Sentence Representations with Neural Machine Translationcited by 52
- 2024Detection and Measurement of Syntactic Templates in Generated Textcited by 44
- 2023SoK: Memorization in General-Purpose Large Language Modelscited by 36
- 2019How Large Are Lions? Inducing Distributions over Quantitative Attributescited by 26
- 2024Parallel Structures in Pre-training Data Yield In-Context Learningcited by 26
- 2024Evaluating n-Gram Novelty of Language Models Using Rusty-DAWGcited by 24
- 2024Understanding Reasoning Ability of Language Models From the Perspective of Reasoning Paths Aggregationcited by 22
- 2024LMD3: Language Model Data Density Dependencecited by 7
Built on by
Citing papers per year: 2024: 10; 2025: 56; 2026: 17.
83 papers.
Sort:
By area:
- 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 655
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 94
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
- 2025Emergent Abilities in Large Language Models: A Surveycited by 34
- 2025Tracing the Representation Geometry of Language Models from Pretraining to Post-trainingcited by 33
- 2024Unleashing the Power of Data Tsunami: A Comprehensive Survey on Data Assessment and Selection for Instruction Tuning of Language Modelscited by 29
- 2024AttriBoT: A Bag of Tricks for Efficiently Approximating Leave-One-Out Context Attributioncited by 23
- 2025On Linear Representations and Pretraining Data Frequency in Language Modelscited by 23
- 2024Quantifying Generalization Complexity for Large Language Modelscited by 18
- 2025Latent Thinking Optimization: Your Latent Reasoning Language Model Secretly Encodes Reward Signals in Its Latent Thoughtscited by 18
- 2024The Pitfalls of Memorization: When Memorization Hurts Generalizationcited by 16
38 more
- 2025The Illusion of Certainty: Uncertainty Quantification for LLMs Fails under Ambiguitycited by 15
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokkingcited by 14
- 2025Unveiling the Compositional Ability Gap in Vision-Language Reasoning Modelcited by 13
- 2025R.R.: Unveiling LLM Training Privacy through Recollection and Rankingcited by 10
- 2024A Large-Scale Simulation on Large Language Models for Decision-Making in Political Sciencecited by 9
- 2025Quantification of Large Language Model Distillationcited by 9
- 2024Attributing Culture-Conditioned Generations to Pretraining Corporacited by 8
- 2025Atomic Skills are the Prerequisite: When Reinforcement Learning Synthesizes Compositional Reasoning, and When It Only Amplifiescited by 8
- 2024PortLLM: Personalizing Evolving Large Language Models with Training-Free and Portable Model Patchescited by 7
- 2025Extracting alignment data in open modelscited by 7
- 2025ParaPO: Aligning Language Models to Reduce Verbatim Reproduction of Pre-training Datacited by 6
- 2025Train Once, Answer All: Many Pretraining Experiments for the Cost of Onecited by 6
- 2025Deep Value Benchmark: Measuring Whether Models Generalize Deep Values or Shallow Preferencescited by 6
- 2025Enhancing Generalization in Chain of Thought Reasoning for Smaller Modelscited by 5
- 2025Cross-Lingual Transfer of Cultural Knowledge: An Asymmetric Phenomenoncited by 5
- 2025Planted in Pretraining, Swayed by Finetuning: A Case Study on the Origins of Cognitive Biases in LLMscited by 5
- 2025Rote Learning Considered Useful: Generalizing over Memorized Data in LLMscited by 5
- 2025Can GRPO Help LLMs Transcend Their Pretraining Origin?cited by 5
- 2025First is Not Really Better Than Last: Evaluating Layer Choice and Aggregation Strategies in Language Model Data Influence Estimationcited by 5
- 2025MoralReason: Generalizable Moral Decision Alignment For LLM Agents Using Reasoning-Level Reinforcement Learningcited by 5
- 2025Captured by Captions: On Memorization and its Mitigation in CLIP Modelscited by 4
- 2025Beyond RAG: Task-Aware KV Cache Compression for Comprehensive Knowledge Reasoningcited by 4
- 2025Too Big to Think: Capacity, Memorization, and Generalization in Pre-Trained Transformerscited by 4
- 2025Diagnosing Memorization in Chain-of-Thought Reasoning, One Token at a Timecited by 4
- 2025MMA-ASIA: A Multilingual and Multimodal Alignment Framework for Culturally-Grounded Evaluationcited by 4
- 2025Detecting Data Contamination from Reinforcement Learning Post-training for Large Language Modelscited by 4
- 2026Can RL Improve Generalization of LLM Agents? An Empirical Studycited by 4
- 2024VersaTune: An Efficient Data Composition Framework for Training Multi-Capability LLMscited by 3
- 2025PoisonedParrot: Subtle Data Poisoning Attacks to Elicit Copyright-Infringing Content from Large Language Modelscited by 3
- 2025Memorization in Language Models through the Lens of Intrinsic Dimensioncited by 3
- 2025Toward Preference-aligned Large Language Models via Residual-based Model Steeringcited by 3
- 2025Generalization or Memorization: Dynamic Decoding for Mode Steeringcited by 3
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMscited by 3
- 2026Towards Cold-Start Drafting and Continual Refining: A Value-Driven Memory Approach with Application to NPU Kernel Synthesiscited by 3
- 2025WinoWhat: A Parallel Corpus of Paraphrased WinoGrande Sentences with Common Sense Categorizationcited by 2
- 2025A Benchmark for End-to-End Zero-Shot Biomedical Relation Extraction with LLMs: Experiments with OpenAI Modelscited by 2
- 2025Predicting Language Models' Success at Zero-Shot Probabilistic Predictioncited by 2
- 2025Review of Hallucination Understanding in Large Language and Vision Modelscited by 2
50 most cited of 83 All 83 (JSON)
- 2026Detecting Pretraining Data in Large Language Models from a Free-Energy Perspective18 Sep 2026
- 2026When Persona Attributes Improve Population Alignment in Large Language Models2 Sep 2026
- 2026Auditing MCQA Benchmarks through Probability Landscapes31 Aug 2026
- 2026WordPolo: Evaluating Language Models Through Iterative Semantic Feedback18 Jul 2026
- 2026Tracing LLM Behavior to the Training Data with Empirical Next-Token Distributions15 Jul 2026
- 2026Train Smarter, Not Longer: Memorization-Guided Data Reuse for Efficient LLM Training6 Jul 2026
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTs26 Jun 2026
- 2026Large Language Models Threaten Double-blind Review23 May 2026
- 2026When Agents Look the Same: Quantifying Distillation-Induced Similarity in Tool-Use Behaviors23 Apr 2026
- 2026Can RL Improve Generalization of LLM Agents? An Empirical Study12 Mar 2026
- 2026Towards Cold-Start Drafting and Continual Refining: A Value-Driven Memory Approach with Application to NPU Kernel Synthesis11 Mar 2026
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuning10 Mar 2026
38 more
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs3 Mar 2026
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Models21 Feb 2026
- 2026Why Does RL Generalize Better Than SFT? A Data-Centric Perspective on VLM Post-Training11 Feb 2026
- 2026Disentangling generalization and memorization in large language models using chess23 Jan 2026
- 2026Quantifying the Effect of Test Set Contamination on Generative Evaluations7 Jan 2026
- 2025Semantic Deception: When Reasoning Models Can't Compute an Addition23 Dec 2025
- 2025Atomic Skills are the Prerequisite: When Reinforcement Learning Synthesizes Compositional Reasoning, and When It Only Amplifies1 Dec 2025
- 2025TrackList: Tracing Back Query Linguistic Diversity for Head and Tail Knowledge in Open Large Language Models26 Nov 2025
- 2025MoralReason: Generalizable Moral Decision Alignment For LLM Agents Using Reasoning-Level Reinforcement Learning15 Nov 2025
- 2025First is Not Really Better Than Last: Evaluating Layer Choice and Aggregation Strategies in Language Model Data Influence Estimation6 Nov 2025
- 2025The Illusion of Certainty: Uncertainty Quantification for LLMs Fails under Ambiguity6 Nov 2025
- 2025Deep Value Benchmark: Measuring Whether Models Generalize Deep Values or Shallow Preferences3 Nov 2025
- 2025Remembering Unequally: Global and Disciplinary Bias in LLM Reconstruction of Scholarly Coauthor Lists1 Nov 2025
- 2025LLM generation novelty through the lens of semantic similarity31 Oct 2025
- 2025Generalization or Memorization: Dynamic Decoding for Mode Steering25 Oct 2025
- 2025From Memorization to Generalization: Fine-Tuning Large Language Models for Biomedical Term-to-Identifier Normalization21 Oct 2025
- 2025Extracting alignment data in open models21 Oct 2025
- 2025UniCode: Augmenting Evaluation for Code Reasoning16 Oct 2025
- 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behavior16 Oct 2025
- 2025Can GRPO Help LLMs Transcend Their Pretraining Origin?14 Oct 2025
- 2025Detecting Data Contamination from Reinforcement Learning Post-training for Large Language Models10 Oct 2025
- 2025MMA-ASIA: A Multilingual and Multimodal Alignment Framework for Culturally-Grounded Evaluation7 Oct 2025
- 2025Uncovering Zero-Shot Generalization Gaps in Time-Series Foundation Models Using Real-World Videos30 Sep 2025
- 2025Latent Thinking Optimization: Your Latent Reasoning Language Model Secretly Encodes Reward Signals in Its Latent Thoughts30 Sep 2025
- 2025Toward Preference-aligned Large Language Models via Residual-based Model Steering28 Sep 2025
- 2025Train Once, Answer All: Many Pretraining Experiments for the Cost of One27 Sep 2025
- 2025Tracing the Representation Geometry of Language Models from Pretraining to Post-training27 Sep 2025
- 2025Review of Hallucination Understanding in Large Language and Vision Models26 Sep 2025
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokking25 Sep 2025
- 2025Predicting Language Models' Success at Zero-Shot Probabilistic Prediction18 Sep 2025
- 2025Memorization neq Understanding: Do Large Language Models Have the Ability of Scenario Cognition?5 Sep 2025
- 2025Access Paths for Efficient Ordering with Large Language Models30 Aug 2025
- 2025Diagnosing Memorization in Chain-of-Thought Reasoning, One Token at a Time4 Aug 2025
- 2025Rote Learning Considered Useful: Generalizing over Memorized Data in LLMs29 Jul 2025
- 2025Rethinking Memorization Measures and their Implications in Large Language Models20 Jul 2025
- 2025Adaptive Multi-Agent Reasoning via Automated Workflow Generation18 Jul 2025
- 2025Planted in Pretraining, Swayed by Finetuning: A Case Study on the Origins of Cognitive Biases in LLMs9 Jul 2025
- 2025Data Compressibility Quantifies LLM Memorization8 Jul 2025
50 newest of 83 All 83 (JSON)
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 94
- 2025Latent Thinking Optimization: Your Latent Reasoning Language Model Secretly Encodes Reward Signals in Its Latent Thoughtscited by 18
- 2025Unveiling the Compositional Ability Gap in Vision-Language Reasoning Modelcited by 13
- 2025Enhancing Generalization in Chain of Thought Reasoning for Smaller Modelscited by 5
- 2025Can GRPO Help LLMs Transcend Their Pretraining Origin?cited by 5
- 2025MoralReason: Generalizable Moral Decision Alignment For LLM Agents Using Reasoning-Level Reinforcement Learningcited by 5
- 2025Beyond RAG: Task-Aware KV Cache Compression for Comprehensive Knowledge Reasoningcited by 4
- 2025Too Big to Think: Capacity, Memorization, and Generalization in Pre-Trained Transformerscited by 4
- 2025Diagnosing Memorization in Chain-of-Thought Reasoning, One Token at a Timecited by 4
- 2025WinoWhat: A Parallel Corpus of Paraphrased WinoGrande Sentences with Common Sense Categorizationcited by 2
- 2025Pitfalls of Scale: Investigating the Inverse Task of Redefinition in Large Language Modelscited by 1
- 2025Adaptive Multi-Agent Reasoning via Automated Workflow Generationcited by 1
12 most cited of 17 All 17 (JSON)
- 2026WordPolo: Evaluating Language Models Through Iterative Semantic Feedback18 Jul 2026
- 2026Disentangling generalization and memorization in large language models using chess23 Jan 2026
- 2025Semantic Deception: When Reasoning Models Can't Compute an Addition23 Dec 2025
- 2025MoralReason: Generalizable Moral Decision Alignment For LLM Agents Using Reasoning-Level Reinforcement Learning15 Nov 2025
- 2025UniCode: Augmenting Evaluation for Code Reasoning16 Oct 2025
- 2025Can GRPO Help LLMs Transcend Their Pretraining Origin?14 Oct 2025
- 2025Latent Thinking Optimization: Your Latent Reasoning Language Model Secretly Encodes Reward Signals in Its Latent Thoughts30 Sep 2025
- 2025Diagnosing Memorization in Chain-of-Thought Reasoning, One Token at a Time4 Aug 2025
- 2025Rethinking Memorization Measures and their Implications in Large Language Models20 Jul 2025
- 2025Adaptive Multi-Agent Reasoning via Automated Workflow Generation18 Jul 2025
- 2025Too Big to Think: Capacity, Memorization, and Generalization in Pre-Trained Transformers10 Jun 2025
- 2025Unveiling the Compositional Ability Gap in Vision-Language Reasoning Model26 May 2025
12 newest of 17 All 17 (JSON)
- 2024Unleashing the Power of Data Tsunami: A Comprehensive Survey on Data Assessment and Selection for Instruction Tuning of Language Modelscited by 29
- 2025ParaPO: Aligning Language Models to Reduce Verbatim Reproduction of Pre-training Datacited by 6
- 2025Deep Value Benchmark: Measuring Whether Models Generalize Deep Values or Shallow Preferencescited by 6
- 2025Toward Preference-aligned Large Language Models via Residual-based Model Steeringcited by 3
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuningcited by 2
- 2026GR-SAP: Generative Replay for Safety Alignment Preservation during Fine-Tuning10 Mar 2026
- 2025Deep Value Benchmark: Measuring Whether Models Generalize Deep Values or Shallow Preferences3 Nov 2025
- 2025Toward Preference-aligned Large Language Models via Residual-based Model Steering28 Sep 2025
- 2025ParaPO: Aligning Language Models to Reduce Verbatim Reproduction of Pre-training Data20 Apr 2025
- 2024Unleashing the Power of Data Tsunami: A Comprehensive Survey on Data Assessment and Selection for Instruction Tuning of Language Models4 Aug 2024
- 2025SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-trainingcited by 655
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 50
- 2025Massive Values in Self-Attention Modules are the Key to Contextual Knowledge Understandingcited by 44
- 2025Emergent Abilities in Large Language Models: A Surveycited by 34
- 2025Tracing the Representation Geometry of Language Models from Pretraining to Post-trainingcited by 33
- 2024AttriBoT: A Bag of Tricks for Efficiently Approximating Leave-One-Out Context Attributioncited by 23
- 2025On Linear Representations and Pretraining Data Frequency in Language Modelscited by 23
- 2024Quantifying Generalization Complexity for Large Language Modelscited by 18
- 2024The Pitfalls of Memorization: When Memorization Hurts Generalizationcited by 16
- 2025The Illusion of Certainty: Uncertainty Quantification for LLMs Fails under Ambiguitycited by 15
- 2025Provable Scaling Laws of Feature Emergence from Learning Dynamics of Grokkingcited by 14
- 2024A Large-Scale Simulation on Large Language Models for Decision-Making in Political Sciencecited by 9
12 most cited of 56 All 56 (JSON)
- 2026Detecting Pretraining Data in Large Language Models from a Free-Energy Perspective18 Sep 2026
- 2026When Persona Attributes Improve Population Alignment in Large Language Models2 Sep 2026
- 2026Auditing MCQA Benchmarks through Probability Landscapes31 Aug 2026
- 2026Tracing LLM Behavior to the Training Data with Empirical Next-Token Distributions15 Jul 2026
- 2026Train Smarter, Not Longer: Memorization-Guided Data Reuse for Efficient LLM Training6 Jul 2026
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTs26 Jun 2026
- 2026Large Language Models Threaten Double-blind Review23 May 2026
- 2026Towards Cold-Start Drafting and Continual Refining: A Value-Driven Memory Approach with Application to NPU Kernel Synthesis11 Mar 2026
- 2026Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs3 Mar 2026
- 2026A Prior-Aware Metric for Efficiently Distinguishing Memorization from Generalization in Large Language Models21 Feb 2026
- 2026Quantifying the Effect of Test Set Contamination on Generative Evaluations7 Jan 2026
- 2025Atomic Skills are the Prerequisite: When Reinforcement Learning Synthesizes Compositional Reasoning, and When It Only Amplifies1 Dec 2025
12 newest of 56 All 56 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Analyzing Memorization in Large Language Models through the Lens of Model Attribution
- 2024What Do Learning Dynamics Reveal About Generalization in LLM Reasoning?
- 2024On Memorization of Large Language Models in Logical Reasoning
- 2025Quantifying Memorization and Parametric Response Rates in Retrieval-Augmented Vision-Language Models
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories
- 2025An Analysis for Reasoning Bias of Language Models with Small Initialization
- 2026MemoReason: Evaluating the Effect of Parametric Memory on Contextual Reasoning in LLMs
- 2025Shared Path: Unraveling Memorization in Multilingual LLMs through Language Similarities