Data Mixing Can Induce Phase Transitions in Knowledge Acquisition
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are typically trained on data mixtures: most data come from web scrapes, while a small portion is curated from high-quality sources with dense domain-specific knowledge. In this paper, we show that when training LLMs on such data mixtures, knowledge acquisition from knowledge-dense datasets, unlike training exclusively on knowledge-dense data (arXiv:2404.05405), does not always follow a smooth scaling law but can exhibit phase transitions with respect to the mixing ratio and model size. Through controlled experiments on a synthetic biography dataset mixed with web-scraped data, we demonstrate that: (1) as we increase the model size to a critical value, the model suddenly transitions from memorizing very few to most of the biographies; (2) below a critical mixing ratio, the model memorizes almost nothing even with extensive training, but beyond this threshold, it rapidly memorizes more biographies. We attribute these phase transitions to a capacity allocation phenomenon: a model with bounded capacity must act like a knapsack problem solver to minimize the overall test loss, and the optimal allocation across datasets can change discontinuously as the model size or mixing ratio varies. We formalize this intuition in an information-theoretic framework and reveal that these phase transitions are predictable, with the critical mixing ratio following a power-law relationship with the model size. Our findings highlight a concrete case where a good mixing recipe for large models may not be optimal for small models, and vice versa.
Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 49 of its 69 references that are in the map. First posted on arXiv 23 May 2025.
Builds on
49 of 69 references.
References · 49
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2019Language Models as Knowledge Bases?cited by 1,936
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
37 more
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2023StarCoder: may the source be with you!cited by 799
- 2017Crowdsourcing Multiple Choice Science Questionscited by 765
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 723
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
- 2024OLMo: Accelerating the Science of Language Modelscited by 613
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 458
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 270
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 184
- 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 177
- 2023Head-to-Tail: How Knowledgeable are Large Language Models (LLMs)? A.K.A. Will LLMs Replace Knowledge Graphs?cited by 168
- 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 160
- 2023OpenWebMath: An Open Dataset of High-Quality Mathematical Web Textcited by 155
- 2023Emergent and Predictable Memorization in Large Language Modelscited by 148
- 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 144
- 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 143
- 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 127
- 2024On Memorization of Large Language Models in Logical Reasoningcited by 117
- 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 90
- 2024Demystifying Verbatim Memorization in Large Language Modelscited by 56
- 2024Does your data spark joy? Performance gains from domain upsampling at the end of trainingcited by 52
- 2024Understanding Factual Recall in Transformers via Associative Memoriescited by 51
- 2024Adaptive Data Optimization: Dynamic Sample Selection with Scaling Lawscited by 47
- 2024Procedural Knowledge in Pretraining Drives Reasoning in Large Language Modelscited by 41
- 2025DataDecide: How to Predict Best Pretraining Data with Small Experimentscited by 40
- 2025How do language models learn facts? Dynamics, curricula and hallucinationscited by 37
- 2021Analyzing Commonsense Emergence in Few-shot Knowledge Modelscited by 34
- 2024Scaling Laws for Fact Memorization of Large Language Modelscited by 33
- 2024Understanding Finetuning for Factual Knowledge Extractioncited by 32
- 2024Maximize Your Data's Potential: Enhancing LLM Accuracy with Two-Phase Pretrainingcited by 26
- 2025Reformulation for Pretraining Data Augmentationcited by 10
Built on by
Citing papers per year: 2025: 2; 2026: 14.
16 papers.
Sort:
By area:
- 2025Kimi-Dev: Agentless Training as Skill Prior for SWE-Agentscited by 41
- 2025Can Small Training Runs Reliably Guide Data Curation? Rethinking Proxy-Model Practicecited by 3
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Factscited by 3
- 2026Understanding Data Temporality Impact on Large Language Models Pre-trainingcited by 3
- 2026Structure Before Collapse: Transient semantic geometry in next-token predictioncited by 2
- 2026Scaling Domain Data Repetition in LLM Pretrainingcited by 2
- 2026Capacity-Aware Mixture Law Enables Efficient LLM Data Optimizationcited by 1
- 2026The Future of Facts: Tracing the Factual Generation-Verification Gapcited by 1
- 2026Explaining Data Mixing Scaling Lawscited by 1
- 2026SPA: A Simple but Tough-to-Beat Baseline for Knowledge Injectioncited by 0
- 2026The Kinetics of Training: A Driven-Nucleation Rate Law for Emergence, Plasticity Loss, and Circuit Control in Language Modelscited by 0
- 2026Harnessing the Potential of Optimizing Data Mixtures via Bayesian Domain Reweightingcited by 0
4 more
- 2026Small Models Scout Bottleneck Order for Large-Model Data Controlcited by 0
- 2026The Free-Recipe Limit: Every Recipe Effect Measures Which Premise of an Idealised Learner Brokecited by 0
- 2026Generalization Dynamics of LM Pre-trainingcited by 0
- 2026Conflicting Supervision Moves Commitment, Not Capability: A 12.29σ arrangement effect that is exactly zero under a convention-agnostic scorecited by 0
- 2026Generalization Dynamics of LM Pre-training27 Sep 2026
- 2026Conflicting Supervision Moves Commitment, Not Capability: A 12.29σ arrangement effect that is exactly zero under a convention-agnostic score23 Sep 2026
- 2026Small Models Scout Bottleneck Order for Large-Model Data Control14 Aug 2026
- 2026Scaling Domain Data Repetition in LLM Pretraining14 Aug 2026
- 2026The Free-Recipe Limit: Every Recipe Effect Measures Which Premise of an Idealised Learner Broke9 Aug 2026
- 2026Harnessing the Potential of Optimizing Data Mixtures via Bayesian Domain Reweighting30 Jul 2026
- 2026The Kinetics of Training: A Driven-Nucleation Rate Law for Emergence, Plasticity Loss, and Circuit Control in Language Models29 Jul 2026
- 2026Structure Before Collapse: Transient semantic geometry in next-token prediction25 Jun 2026
- 2026Explaining Data Mixing Scaling Laws6 Jun 2026
- 2026The Future of Facts: Tracing the Factual Generation-Verification Gap26 May 2026
- 2026Understanding Data Temporality Impact on Large Language Models Pre-training21 May 2026
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts9 Apr 2026
4 more
- 2026SPA: A Simple but Tough-to-Beat Baseline for Knowledge Injection23 Mar 2026
- 2026Capacity-Aware Mixture Law Enables Efficient LLM Data Optimization9 Mar 2026
- 2025Can Small Training Runs Reliably Guide Data Curation? Rethinking Proxy-Model Practice30 Dec 2025
- 2025Kimi-Dev: Agentless Training as Skill Prior for SWE-Agents27 Sep 2025
- 2025Kimi-Dev: Agentless Training as Skill Prior for SWE-Agentscited by 41
- 2025Kimi-Dev: Agentless Training as Skill Prior for SWE-Agents27 Sep 2025
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Factscited by 3
- 2026Understanding Data Temporality Impact on Large Language Models Pre-trainingcited by 3
- 2026Structure Before Collapse: Transient semantic geometry in next-token predictioncited by 2
- 2026Scaling Domain Data Repetition in LLM Pretrainingcited by 2
- 2026Capacity-Aware Mixture Law Enables Efficient LLM Data Optimizationcited by 1
- 2026The Future of Facts: Tracing the Factual Generation-Verification Gapcited by 1
- 2026Explaining Data Mixing Scaling Lawscited by 1
- 2026SPA: A Simple but Tough-to-Beat Baseline for Knowledge Injectioncited by 0
- 2026Harnessing the Potential of Optimizing Data Mixtures via Bayesian Domain Reweightingcited by 0
- 2026Small Models Scout Bottleneck Order for Large-Model Data Controlcited by 0
- 2026The Free-Recipe Limit: Every Recipe Effect Measures Which Premise of an Idealised Learner Brokecited by 0
- 2026Generalization Dynamics of LM Pre-trainingcited by 0
12 most cited of 13 All 13 (JSON)
- 2026Generalization Dynamics of LM Pre-training27 Sep 2026
- 2026Conflicting Supervision Moves Commitment, Not Capability: A 12.29σ arrangement effect that is exactly zero under a convention-agnostic score23 Sep 2026
- 2026Small Models Scout Bottleneck Order for Large-Model Data Control14 Aug 2026
- 2026Scaling Domain Data Repetition in LLM Pretraining14 Aug 2026
- 2026The Free-Recipe Limit: Every Recipe Effect Measures Which Premise of an Idealised Learner Broke9 Aug 2026
- 2026Harnessing the Potential of Optimizing Data Mixtures via Bayesian Domain Reweighting30 Jul 2026
- 2026Structure Before Collapse: Transient semantic geometry in next-token prediction25 Jun 2026
- 2026Explaining Data Mixing Scaling Laws6 Jun 2026
- 2026The Future of Facts: Tracing the Factual Generation-Verification Gap26 May 2026
- 2026Understanding Data Temporality Impact on Large Language Models Pre-training21 May 2026
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts9 Apr 2026
- 2026SPA: A Simple but Tough-to-Beat Baseline for Knowledge Injection23 Mar 2026
12 newest of 13 All 13 (JSON)