Midtraining Bridges Pretraining and Posttraining Distributions
Not on the map. Why?
Abstract (arXiv)
Midtraining, the practice of mixing specialized data with more general pretraining data in an intermediate training phase, has become widespread in language model development, yet there is little understanding of what makes it effective. We propose that midtraining functions as distributional bridging by providing better initialization for posttraining. We conduct controlled pretraining experiments, and find that midtraining benefits are largest for domains distant from general pretraining data, such as code and math, and scale with the proximity advantage the midtraining data provides toward the target distribution. In these domains, midtraining consistently outperforms continued pretraining on specialized data alone both in-domain and in terms of mitigating forgetting. We further conduct an investigation on the starting time and mixture weight of midtraining data, using code as a case study, and find that time of introduction and mixture weight interact strongly such that early introduction of specialized data is amenable to high mixture weights, while late introduction requires lower ones. This suggests that late introduction of specialized data outside a plasticity window cannot be compensated for by increasing data mixtures later in training. Beyond midtraining itself, this suggests that distributional transitions between any training phases may benefit from similar bridging strategies.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 38 of its 45 references that are in the map. First posted on arXiv 16 Oct 2025.
Builds on
38 of 45 references.
References · 38
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,404
- 2023LIMA: Less Is More for Alignmentcited by 1,080
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2023StarCoder: may the source be with you!cited by 790
- 2017Crowdsourcing Multiple Choice Science Questionscited by 742
26 more
- 2024MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategiescited by 694
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 381
- 2017Measuring Catastrophic Forgetting in Neural Networkscited by 359
- 20242 OLMo 2 Furiouscited by 302
- 2023Physics of Language Models: Part 3.1, Knowledge Storage and Extractioncited by 264
- 2024OpenMathInstruct-1: A 1.8 Million Math Instruction Tuning Datasetcited by 143
- 2021An Empirical Investigation of the Role of Pre-training in Lifelong Learningcited by 134
- 2024Rho-1: Not All Tokens Are What You Needcited by 132
- 2024Revisiting Catastrophic Forgetting in Large Language Model Tuningcited by 93
- 2024Instruction Pre-Training: Language Models are Supervised Multitask Learnerscited by 63
- 2025Overtrained Language Models Are Harder to Fine-Tunecited by 57
- 2024Synthetic continued pretrainingcited by 56
- 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 54
- 2024Does your data spark joy? Performance gains from domain upsampling at the end of trainingcited by 51
- 2021Improved Fine-Tuning by Better Leveraging Pre-Training Datacited by 36
- 2025Scaling Laws for Forgetting during Finetuning with Pretraining Data Injectioncited by 35
- 2024Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMscited by 32
- 2024Efficient Continual Pre-training by Mitigating the Stability Gapcited by 25
- 2024Maximize Your Data's Potential: Enhancing LLM Accuracy with Two-Phase Pretrainingcited by 24
- 2022Downstream Datasets Make Surprisingly Good Pretraining Corporacited by 20
- 2025Breaking the Data Barrier -- Building GUI Agents Through Task Generalizationcited by 13
- 2024An Efficient Rehearsal Scheme for Catastrophic Forgetting Mitigation during Multi-stage Fine-tuningcited by 4
- 2025FRAME: Boosting LLMs with A Four-Quadrant Multi-Stage Pretraining Strategycited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 9.
10 papers.
- 2026The Finetuner's Fallacy: When to Pretrain with Your Finetuning Datacited by 7
- 2025Efficient Context Scaling with LongCat ZigZag Attentioncited by 6
- 2026MIRA: Mid-training Rubric Anchoring for Source-Aware Data Selectioncited by 3
- 2026MixAtlas: Uncertainty-aware Data Mixture Optimization for Multimodal LLM Midtrainingcited by 2
- 2026Distributional Clarity: The Hidden Driver of RL-Friendliness in Large Language Modelscited by 1
- 2026To Memorize or to Retrieve: Scaling the Interaction Between Pretraining and Retrievalcited by 1
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 1
- 2026Astar: Learning to Propose Evolution Directions for Self-Evolving Industrial AI Systemscited by 1
- 2026Knowledge Distillation During Mid-Training Favors Reasoning over Factual Recallcited by 0
- 2026Trajectory Soup: Pushing the Compute-Scaling Frontier of LLM Mid-training via Diverse Trajectoriescited by 0
- 2026Trajectory Soup: Pushing the Compute-Scaling Frontier of LLM Mid-training via Diverse Trajectories29 Sep 2026
- 2026Knowledge Distillation During Mid-Training Favors Reasoning over Factual Recall1 Sep 2026
- 2026Astar: Learning to Propose Evolution Directions for Self-Evolving Industrial AI Systems27 Aug 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026MIRA: Mid-training Rubric Anchoring for Source-Aware Data Selection28 May 2026
- 2026MixAtlas: Uncertainty-aware Data Mixture Optimization for Multimodal LLM Midtraining3 Apr 2026
- 2026To Memorize or to Retrieve: Scaling the Interaction Between Pretraining and Retrieval1 Apr 2026
- 2026The Finetuner's Fallacy: When to Pretrain with Your Finetuning Data17 Mar 2026
- 2026Distributional Clarity: The Hidden Driver of RL-Friendliness in Large Language Models11 Jan 2026
- 2025Efficient Context Scaling with LongCat ZigZag Attention30 Dec 2025