Pretraining Data Statistics Shape the Phases of Learning Entity Comparison in Language Models
Not on the map. Why?
Abstract (arXiv)
How does data shape language model (LM) behavior throughout pretraining? We investigate this question through a case study on entity comparison, e.g., Between France and Brazil, which country is larger?, across nine comparison tasks spanning five entity types. We begin with controlled experiments in which we train small LMs (163M parameters) on mixtures of natural text from pretraining corpora and synthetic task data. Our analysis identifies three distinct phases of learning: (1) an early phase where the LM selects entities by frequency, (2) a middle phase where the LM selects entities by position in the prompt (first vs. last mentioned entity), and (3) a late phase where the LM selects the entity that is the correct answer. We show that the emergence of these three phases is causally determined by statistical properties of the training data. With small amounts of task-specific synthetic data, we observe only the first two phases and the model fails to learn the task; with large amounts, the model jumps directly from the frequency-based heuristic to solving the task correctly. Moreover, changing the entity frequency distribution from a naturally occurring Zipfian distribution (a small number of entities are very common and the vast majority are rare) to a uniform one weakens the frequency phase and speeds up learning of the task. Lastly, we show that the three phases of training dynamics from our controlled experiments appear in the open source model OLMo-2 32B. Together, our findings demonstrate that properties of pretraining data are causal drivers of heuristic learning and show that small-scale synthetic experiments can predict training dynamics at larger scales.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 37 of its 47 references that are in the map. Submitted 12 Nov 2026.
Builds on
37 of 47 references.
References · 37
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,215
- 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 923
- 2024OLMo: Accelerating the Science of Language Modelscited by 665
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 479
- 20242 OLMo 2 Furiouscited by 413
- 2022Data Distributional Properties Drive Emergent In-Context Learning in Transformerscited by 326
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 299
- 2025Why Language Models Hallucinatecited by 261
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 204
- 2023Embers of Autoregression: Understanding Large Language Models Through the Problem They are Trained to Solvecited by 192
- 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 167
25 more
- 2023Sudden Drops in the Loss: Syntax Acquisition, Phase Transitions, and Simplicity Bias in MLMscited by 130
- 2024Arithmetic Without Algorithms: Language Models Solve Math With a Bag of Heuristicscited by 116
- 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 105
- 2024What needs to go right for an induction head? A mechanistic study of in-context learning circuits and their formationcited by 98
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 96
- 2024LLM Circuit Analyses Are Consistent Across Training and Scalecited by 69
- 2022Measuring Causal Effects of Data Statistics on Language Model's `Factual' Predictionscited by 63
- 2021Frequency Effects on Syntactic Rule Learning in Transformerscited by 62
- 2024Procedural Knowledge in Pretraining Drives Reasoning in Large Language Modelscited by 50
- 2024Detection and Measurement of Syntactic Templates in Generated Textcited by 48
- 2025How do language models learn facts? Dynamics, curricula and hallucinationscited by 46
- 2024Do Large Language Models Perform Latent Multi-Hop Reasoning without Exploiting Shortcuts?cited by 31
- 2025Mixing Mechanisms: How Language Models Retrieve Bound Entities In-Contextcited by 30
- 2019How Large Are Lions? Inducing Distributions over Quantitative Attributescited by 27
- 2025On Linear Representations and Pretraining Data Frequency in Language Modelscited by 26
- 2025How Do Transformers Learn Variable Binding in Symbolic Programs?cited by 23
- 2025Data Mixing Can Induce Phase Transitions in Knowledge Acquisitioncited by 18
- 2025Emergence of Linear Truth Encodings in Language Modelscited by 13
- 2025Supposedly Equivalent Facts That Aren't? Entity Frequency in Pre-training Induces Asymmetry in LLMscited by 8
- 2025In-Context Algebracited by 7
- 2025Combining Causal Models for More Accurate Abstractions of Neural Networkscited by 6
- 2025Knowing the Facts but Choosing the Shortcut: Understanding How Large Language Models Compare Entitiescited by 6
- 2024How Many Images Does It Take? Estimating Imitation Thresholds in Text-to-Image Modelscited by 5
- 2025LMEnt: A Suite for Analyzing Knowledge in Language Models from Pretraining Data to Representationscited by 5
- 2025Rewriting History: A Recipe for Interventional Analyses to Study Data Effects on Model Behaviorcited by 3
Built on by
Not cited yet.