SFT-then-RL Outperforms Mixed-Policy Methods for LLM Reasoning

Alexis Limozin, Eduard Durech, Torsten Hoefler, Imanol Schlag, Valentina Pyatkin

TL;DR

A classic case of "check your baselines," this paper reveals that recent hype surrounding complex "mixed-policy" LLM training methods was artifactual, driven by two silent bugs in popular training frameworks (DeepSpeed and OpenRLHF). Once these bugs are fixed, the traditional, simpler sequential pipeline—Supervised Fine-Tuning followed by Reinforcement Learning (SFT-then-RL)—reclaims the crown, outperforming mixed-policy methods while using significantly less compute.

What Problem Does This Paper Address?

To train large language models (LLMs) for complex reasoning, researchers typically use a two-stage pipeline: first, Supervised Fine-Tuning (SFT) on high-quality step-by-step demonstrations, followed by Reinforcement Learning (RL) to sharpen the model's problem-solving strategies.

Recently, a wave of papers argued that this sequential approach is suboptimal. They proposed "mixed-policy" methods that interleave or blend SFT and RL signals simultaneously, claiming state-of-the-art results. The authors of this paper noticed that the SFT baselines used to justify these new methods seemed suspiciously weak. They set out to investigate whether the sequential pipeline was truly obsolete, or if the community was inadvertently benchmarking against broken baselines.

Methods

The authors meticulously audited widely used open-source training frameworks and uncovered two critical distributed-training bugs that silently degraded SFT performance:

  1. The CPU-Offloaded Optimizer Bug (DeepSpeed): During gradient accumulation, a bug caused the framework to silently drop gradients from all intermediate micro-batches, meaning the optimizer only saw data from the very first micro-batch. This affected DeepSpeed ZeRO Stages 1 and 2, impacting downstream frameworks like TRL, OpenRLHF, and Llama-Factory.
  2. The Loss Aggregation Bug (OpenRLHF): Instead of calculating a true per-token mean loss, the framework computed a mean of per-mini-batch means. Because SFT sequences vary wildly in length, this incorrectly weighted mini-batches and destabilized training.

After patching these bugs, the authors re-evaluated the standard sequential pipeline (SFT followed by Group Relative Policy Optimization, or GRPO) against five prominent mixed-policy methods: LUFFY, ReLIFT, SRFT, Prefix-RFT, and HPT.

Datasets

  • Training: OpenR1-Math-46k-8192, a dataset containing ~46k math prompts paired with high-quality reasoning traces generated by DeepSeek-R1.
  • Evaluation (In-Distribution Math): AIME24, AIME25, AMC, MATH-500, Minerva, and OlympiadBench.
  • Evaluation (Out-of-Distribution General/Science): ARC-Challenge, GPQA-Diamond, and MMLU-Pro to test broader generalization.

Key Insights and Ideas

  • The Danger of Silent Bugs: The DeepSpeed bug was particularly insidious because it threw no errors; code executed perfectly, but the model was effectively starved of training data during gradient accumulation.
  • SFT Bootstrapping is Essential: Mixed-policy methods attempt to learn what to reason and how to optimize simultaneously. However, when a model lacks native domain knowledge (like Llama-3.1 on math), the RL reward signal is initially too sparse to drive learning. SFT-then-RL cleanly separates these objectives: SFT injects dense knowledge upfront, allowing the subsequent RL phase to start with a high reward baseline and focus purely on strategy refinement.
  • Compute Efficiency: Because a properly fixed SFT stage provides an exceptionally strong initialization, the subsequent RL phase can be drastically shortened. A truncated RL run of just 50 steps yields state-of-the-art results, debunking the need for prolonged, complex mixed training.

Key Results

  • Qwen2.5-Math-7B: The corrected SFT-then-RL pipeline outperformed the best-reported mixed-policy method (SRFT) by +3.8 points on in-distribution math benchmarks.
  • Llama-3.1-8B: The performance gap was massive. SFT-then-RL achieved an average score of 43.7, outperforming the closest mixed-policy competitor (HPT at 21.5) by +22.2 points.
  • FLOP Efficiency: A truncated 50-step variant of SFT-then-RL achieved superior math performance while consuming only 3.63 × 10¹⁹ FLOPs, compared to LUFFY ($6.65 \times 10^{19}$) and ReLIFT ($8.76 \times 10^{19}$).
Method Avg ID Math (Qwen2.5-Math-7B) Avg ID Math (Llama-3.1-8B) Estimated FLOPs ($\times 10^{19}$)
LUFFY (Reported) 50.1 14.4 6.65
ReLIFT (Reported) — 15.6 8.76
SRFT (Reported) 53.2 16.2 —
SFT $\rightarrow$ RL (Ours, 50 steps) 55.6 — 3.63
SFT $\rightarrow$ RL (Ours, 500 steps) 57.0 43.7 —

Limitations and Future Work

  • Domain and Scale Scope: The study focused strictly on mathematical reasoning using models under 10 billion parameters. The dynamics of SFT-then-RL versus mixed-policy methods might differ in other domains (like code generation or creative writing) or at a much larger scale.
  • Hybrid Potential: The authors note that mixed-policy methods position themselves as replacements for the SFT-then-RL pipeline. However, applying a mixed-policy stage on top of a correctly trained SFT baseline might still yield benefits—a direction left for future exploration.

Summary updated

BibTeX
@inproceedings{limozin2026sft,
  author = {Alexis Limozin and Eduard Durech and Torsten Hoefler and Imanol Schlag and Valentina Pyatkin},
  title = {{SFT-then-RL Outperforms Mixed-Policy Methods for LLM Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pWkCETOQnA},
}

Loading related content...

Figure