TL;DR
Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL) are usually treated as separate post-training phases, but this paper reveals they are mathematically two sides of the same coin. The authors derive the Unified Policy Gradient Estimator (UPGE) to prove that SFT and RL share a single objective under different bias-variance trade-offs, and introduce Hybrid Post-Training (HPT), an algorithm that dynamically toggles between SFT and RL based on real-time generation performance.
What Problem Does This Paper Address?
When training reasoning language models (LLMs), practitioners usually face a dilemma:
- "Zero-RL" (applying RL directly to base models) encourages discovery and generalization, but easily collapses or plateaus on complex tasks when base models fail to generate any rewarded solutions.
- SFT provides stable demonstrations from expert trajectories, but curtails exploration and risks memorization.
- The default fix—a sequential SFT-then-RL pipeline—is resource-heavy and sensitive to hyperparameters. Meanwhile, recent attempts to blend them (e.g., using fixed data mixes or entropy heuristics) lack a rigorous theoretical explanation for why and how these objectives can be unified.
This paper tackles the fundamental questions: Are SFT and RL fundamentally in conflict? Can we mathematically unify them into a single optimization process, and can an algorithm dynamically select between them based on task difficulty?
Methods
1. Unified Policy Gradient Estimator (UPGE)
The authors prove that standard post-training objectives (SFT, PPO, GRPO, REINFORCE, CISPO, GSPO, SRFT, LUFFY) can all be unified into a single policy gradient template:
$$\text{grad}_{\text{Uni}} = \mathbb{I}_{\text{stable}} \cdot \frac{1}{\pi_{\text{ref}}} \cdot \hat{A} \cdot \nabla \pi_\theta$$
This estimator consists of four interchangeable modules:
- Stabilization Mask ($\mathbb{I}_{\text{stable}}$): Trust-region clipping (e.g., PPO clipping, CIS-Mask) to disable gradients when updates are dangerously large.
- Reference Policy Denominator ($\pi_{\text{ref}}$): Token-level importance re-weighting (e.g., $\pi_\theta$ in SFT/REINFORCE, $\pi_{\theta_{\text{old}}}$ in PPO/GRPO, or $1$ in offline SRFT).
- Advantage Estimate ($\hat{A}$): Reward scaling (e.g., fixed $\hat{A} \equiv 1$ for SFT demonstrations, group-normalized advantage for GRPO).
- Likelihood Gradient ($\nabla \pi_\theta$): Backpropagates task feedback to model parameters.
The authors show that UPGE derives directly from maximizing expected reward while penalizing divergence from demonstration behavior ($\max_\theta \mathbb{E}_{\pi_\theta}[r] - \mu \text{KL}(\pi_\beta \parallel \pi_\theta)$). SFT and RL simply embody different points on the bias–variance spectrum of this common objective.
2. Hybrid Post-Training (HPT)
Guided by this insight, the authors introduce HPT, an online algorithm that balances exploration and exploitation per question:
- For prompt $q$, the model generates $n$ rollout trajectories and verifies their correctness.
- The average rollout success rate $P = \frac{1}{n}\sum_{i=1}^n v(\tau_i)$ serves as the switching signal:
- Failure ($P \le \gamma$): When the model fails all (or most) attempts, exploration is futile. The model activates an SFT step using an offline demonstration trajectory $\tau^\star$ ($\beta=1, \alpha=0$).
- Partial/Full Success ($P > \gamma$): When the model generates valid reasoning paths, it performs a Dr. GRPO on-policy RL update ($\alpha=1, \beta=0$) to amplify working reasoning patterns.
Datasets
- Training: SFT demonstration data from NuminaMath / DeepMath setups (solutions up to 8,192 tokens) combined with on-policy rollouts.
- In-Distribution Math Evaluation: AIME 2024, AIME 2025, AMC (AMC12 2022–2023), MATH-500, Minerva, and OlympiadBench.
- Out-of-Distribution (OOD) Evaluation: ARC-c (science reasoning) and GPQA-Diamond (graduate-level reasoning).
Key Insights and Ideas
- SFT provides high-magnitude corrective updates when lost: When the policy has near-zero probability on the correct path ($\pi_\theta(\tau^\star) \ll 1$), the SFT denominator $\frac{1}{\pi_\theta}$ triggers a substantial corrective update, which jumpstarts learning where RL would receive flat-zero advantage.
- Dynamic switching prevents catastrophic forgetting and preserves exploration: Instead of SFT dampening rollout entropy, HPT maintains consistently higher policy entropy than pure GRPO across training and achieves the highest Pass@1024, demonstrating that injecting demonstrations adaptively expands the model's exploratory boundary rather than collapsing it.
- Off-policy RL is unnecessary: Ablations comparing SFT to off-policy RL for offline demonstrations show that standard SFT updates consistently outperform off-policy RL updates (41.9 vs. 38.1 average score).
Key Results
- Qwen2.5-Math-7B: HPT achieves 52.7% in-distribution average across six math benchmarks, outperforming standard SFT (44.5%), GRPO (43.1%), sequential SFT$\rightarrow$GRPO (46.5%), and LUFFY (49.8%).
- On AIME 2024, HPT scores 33.0% (a +7.3 point leap over SFT$\rightarrow$GRPO).
- On out-of-distribution reasoning, HPT achieves 62.3% avg (81.6% ARC-c, 42.9% GPQA-Diamond).
- Smaller and Weaker Backbones:
- On Qwen2.5-Math-1.5B, HPT reaches 41.9% avg (vs. 36.9% SFT and 34.0% GRPO).
- On LLaMA-3.1-8B (a notoriously difficult base model for Zero-RL), HPT reaches 18.2% avg, compared to 5.9% for SFT and 9.6% for GRPO.
- Exclusive Solves: On MATH-500, HPT solves 58 problems that GRPO completely fails (predominantly Hard Level 4 and 5 problems), while only dropping 15 problems GRPO solved.
Limitations and Future Work
- Discrete Gating Threshold: The switching gate $\gamma$ is a hard threshold (0 for Qwen models, 2 for LLaMA). A continuous, learned, or meta-optimized switching schedule across training is left for future work.
- Domain Scope: Experiments focus strictly on verifiable mathematical and logical reasoning tasks; evaluating UPGE and HPT on open-ended creative tasks or human preference alignment (RLHF) without binary verifiers remains unaddressed.
Summary updated