Lune

NeurIPS2025Top-tier venue

Data Mixing Can Induce Phase Transitions in Knowledge Acquisition

Xinran Gu, Kaifeng Lyu, Jiazheng Li, Jingzhao Zhang

Abstract

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 [Allen-Zhu and Li, 2024a]-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 informationtheoretic 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • An empirical analysis of compute-optimal large language model training cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling cites Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Models
  • Can Small Training Runs Reliably Guide Data Curation? Rethinking Proxy-Model Practice cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
  • Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts cites Understanding LLM Behaviors via Compression: Data Generation, Knowledge Acquisition and Scaling Laws
  • Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts cites Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Models
  • Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
  • Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts cites Large Language Models Struggle to Learn Long-Tail Knowledge
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Kimi-Dev: Agentless Training as Skill Prior for SWE-agentsZonghan Yang, Shengjie Wang, Kelin Fu, Wenyang He et al.ICLR 2026 · 34 citations
  2. Understanding LLM Behaviors via Compression: Data Generation, Knowledge Acquisition and Scaling LawsZhixuan Pan, Shaowen Wang, Pengfei Liao, Jian LiNeurIPS 2025 · 15 citations
  3. Can Small Training Runs Reliably Guide Data Curation? Rethinking Proxy-Model PracticeJiachen T. Wang, Tong Wu, Kaifeng Lyu, James Zou et al.ICLR 2026 · 3 citations
  4. Capacity-Aware Mixture Law Enables Efficient LLM Data OptimizationJingwei Li, Xinran Gu, Jingzhao ZhangICML 2026 · 1 citation
  5. Cram Less to Fit More: Training Data Pruning Improves Memorization of FactsJiayuan Ye, Vitaly Feldman, Kunal TalwarICML 2026 · 1 citation

Builds on25

  1. PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao et al.AAAI 2020 · 2,916 citations
  2. Pythia: A Suite for Analyzing Large Language Models Across Training and ScalingStella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley et al.ICML 2023 · 1,822 citations
  3. Large Language Models Struggle to Learn Long-Tail KnowledgeNikhil Kandpal, Haikang Deng, Adam Roberts, Eric Wallace et al.ICML 2023 · 623 citations
  4. An empirical analysis of compute-optimal large language model trainingJordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya et al.NeurIPS 2022 · 566 citations
  5. Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language ModelsKushal Tirumala, Aram H. Markosyan, Luke Zettlemoyer, Armen AghajanyanNeurIPS 2022 · 304 citations

Related papers

  1. CMR Scaling Law: Predicting Critical Mixture Ratios for Continual Pre-training of Language ModelsJiawei Gu, Zacc Yang, Chuanghao Ding, Rui Zhao et al.EMNLP 2024 · 2 citations
  2. How to inject knowledge efficiently? Knowledge Infusion Scaling Law for Pre-training Large Language ModelsKangtao Lv, Haibin Chen, Yujin Yuan, Langming Liu et al.EMNLP 2025
  3. Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling PerformanceJiasheng Ye, Peiju Liu, Tianxiang Sun, Jun Zhan et al.ICLR 2025
  4. Physics of Language Models: Part 3.1, Knowledge Storage and ExtractionZeyuan Allen-Zhu, Yuanzhi LiICML 2024 · 258 citations
  5. Scaling Laws for Fact Memorization of Large Language ModelsXingyu Lu, Xiaonan Li, Qinyuan Cheng, Kai Ding et al.EMNLP Findings 2024 · 9 citations
Dusk over the sea between two cliffs drawn in fine vertical lines