mlsanityData to 14 Oct 2026

Data Mixing Can Induce Phase Transitions in Knowledge Acquisition

arXiv 2505.18091 ↗First posted 23 May 2025cs.LG cs.AI cs.CLcited by 16

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  6. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  7. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  8. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  9. 2019Language Models as Knowledge Bases?cited by 1,936
  10. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  11. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
  12. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,128
37 more
  1. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  2. 2023StarCoder: may the source be with you!cited by 799
  3. 2017Crowdsourcing Multiple Choice Science Questionscited by 765
  4. 2022Quantifying Memorization Across Neural Language Modelscited by 763
  5. 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 723
  6. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 719
  7. 2024OLMo: Accelerating the Science of Language Modelscited by 613
  8. 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
  9. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 458
  10. 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 398
  11. 2022The Stack: 3 TB of permissively licensed source codecited by 359
  12. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
  13. 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 270
  14. 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 220
  15. 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 184
  16. 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 177
  17. 2023Head-to-Tail: How Knowledgeable are Large Language Models (LLMs)? A.K.A. Will LLMs Replace Knowledge Graphs?cited by 168
  18. 2024Nemotron-CC: Transforming Common Crawl into a Refined Long-Horizon Pretraining Datasetcited by 160
  19. 2023OpenWebMath: An Open Dataset of High-Quality Mathematical Web Textcited by 155
  20. 2023Emergent and Predictable Memorization in Large Language Modelscited by 148
  21. 2024Physics of Language Models: Part 3.3, Knowledge Capacity Scaling Lawscited by 144
  22. 2023Physics of Language Models: Part 3.2, Knowledge Manipulationcited by 143
  23. 2024Simple and Scalable Strategies to Continually Pre-train Large Language Modelscited by 127
  24. 2024On Memorization of Large Language Models in Logical Reasoningcited by 117
  25. 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 90
  26. 2024Demystifying Verbatim Memorization in Large Language Modelscited by 56
  27. 2024Does your data spark joy? Performance gains from domain upsampling at the end of trainingcited by 52
  28. 2024Understanding Factual Recall in Transformers via Associative Memoriescited by 51
  29. 2024Adaptive Data Optimization: Dynamic Sample Selection with Scaling Lawscited by 47
  30. 2024Procedural Knowledge in Pretraining Drives Reasoning in Large Language Modelscited by 41
  31. 2025DataDecide: How to Predict Best Pretraining Data with Small Experimentscited by 40
  32. 2025How do language models learn facts? Dynamics, curricula and hallucinationscited by 37
  33. 2021Analyzing Commonsense Emergence in Few-shot Knowledge Modelscited by 34
  34. 2024Scaling Laws for Fact Memorization of Large Language Modelscited by 33
  35. 2024Understanding Finetuning for Factual Knowledge Extractioncited by 32
  36. 2024Maximize Your Data's Potential: Enhancing LLM Accuracy with Two-Phase Pretrainingcited by 26
  37. 2025Reformulation for Pretraining Data Augmentationcited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 14.

16 papers.

Sort:

By area: