Front-Loading Reasoning: The Synergy between Pretraining and Post-Training Data

Syeda Nahida Akter, Shrimai Prabhumoye, Eric Nyberg, Mostofa Patwary, Mohammad Shoeybi, Yejin Choi, Bryan Catanzaro

Introduction

The prevailing paradigm for building Large Language Models (LLMs) typically follows a "pretrain then specialize" recipe: first, a massive pretraining phase on broad internet data to learn language, followed by a smaller post-training phase (Supervised Fine-Tuning and Reinforcement Learning) to teach specific skills like math or coding.

However, this approach raises a critical question: Is reasoning merely a "specialized skill" that can be layered on at the end, or is it a foundational capability? If complex logic is withheld until the final stages of training, can a model ever truly catch up to one that learned to reason from day one? This paper challenges the status quo by demonstrating that injecting reasoning data early—during the pretraining phase—is essential for peak performance, yielding a 19% average gain on expert-level benchmarks.

The Front-Loading Approach

To systematically investigate how the timing, scale, and diversity of reasoning data affect LLM performance, researchers conducted a massive, controlled study. They utilized an 8B parameter hybrid model (combining Mamba-2 and Transformer architectures) and pretrained models from scratch on 1 trillion tokens.

The study followed a three-phase pipeline: Pretraining $\rightarrow$ SFT $\rightarrow$ Reinforcement Learning (RL) using Group Relative Policy Optimization (GRPO).

Overview of the training pipeline and data dimensions

To test the impact of different data profiles, the researchers curated four specific reasoning datasets ($D_{res}$) to mix with their 6.2T token base corpus:

  • $D_{LDQ}$ (Large-scale, Diverse): 268M samples covering math, code, and science with mixed quality.
  • $D_{SHQ}$ (Small-scale, High-Quality): 1.2M samples of long-form Chain-of-Thought (CoT) traces from teacher models.
  • $D_{LMQ}$ (Mixed): A union of the diverse and high-quality sets.
  • $D_{ALF}$ (Answer-Length Filtered): A subset containing only very long (4096+ token) responses, used as a proxy for complexity.

Key Insights: The Asymmetric Principle

The study uncovered several fundamental principles about how LLMs acquire reasoning capabilities:

  • The "Catch-Up" Myth: A model pretrained without reasoning data cannot catch up to a "reasoning-aware" model, even if the amount of SFT data is doubled. Pretraining fundamentally sets the performance ceiling.
  • The Asymmetric Principle: The two training phases have entirely different "appetites" for data. Pretraining thrives on diversity and scale (showing an 11% gain from diverse corpora), whereas SFT is highly sensitive to data quality (showing a 15% gain from high-quality CoT data).
  • Latent Potential: High-quality data added during pretraining acts like a "sleeper agent." It may not show immediate, massive gains in the base model, but it unlocks an extra +4% performance boost once the model undergoes SFT.
  • Strategic Redundancy: Contrary to fears of overfitting, using the exact same high-quality reasoning data in both pretraining and SFT proved highly beneficial, reinforcing foundational logic rather than causing rote memorization.

Compounding Gains and Results

By front-loading reasoning data, the researchers achieved compounding gains across "the gauntlet" of reasoning benchmarks, including GSM8K, MATH-500, AIME, MMLU-Pro, GPQA, and HumanEval.

Performance comparison after the full RL pipeline

After the full training pipeline, the front-loaded models maintained a 19% lead on expert-level benchmarks. The most staggering breakthrough occurred on the notoriously difficult AIME math competition problems, where reasoning-pretrained models demonstrated massive improvements over the baseline.

Furthermore, the study highlighted the danger of naive scaling: blindly doubling SFT data with mixed-quality samples actually harmed mathematical reasoning by 5%. In the final stages of training, quality is the dominant lever.

Limitations and Future Directions

While these findings—which also held true when scaled down to a 1.2B parameter model—provide a principled guide for data allocation, the authors note a few boundaries. The study maintained a fixed 20% ratio of reasoning-to-base data during pretraining, which may need adjustment for different model sizes. Additionally, the reasoning data was heavily skewed toward STEM and Code; future work should explore whether "soft" reasoning (like legal or philosophical logic) follows the same asymmetric principle. Finally, given the computational cost of pretraining from scratch, exploring "mid-training" injections of reasoning data presents a promising, budget-friendly alternative.

Summary updated

BibTeX
@inproceedings{akter2026front,
  author = {Syeda Nahida Akter and Shrimai Prabhumoye and Eric Nyberg and Mostofa Patwary and Mohammad Shoeybi and Yejin Choi and Bryan Catanzaro},
  title = {{Front-Loading Reasoning: The Synergy between Pretraining and Post-Training Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=VmEkhV2yCX},
}
Figure