SAF-OPD: Stable Advantage Fusion for On-Policy Distillation

Yifan Ding, Xincheng Wei, Yoshua Y. Li, Ziheng Li, Yuquan Lu, Siyu Zhang, Dongsheng Ma, Rongxiang Weng, Xunliang Cai, Yun ChenarXiv 2026

TL;DR

Fusing Reinforcement Learning with Verifiable Rewards (RLVR) and On-Policy Distillation (OPD) seems like a perfect match for training reasoning models, but naive combination causes severe training instability. This paper introduces SAF (Stable Advantage Fusion), a lightweight four-stage pipeline that dynamically scales and bounds teacher guidance. SAF prevents early entropy collapse and consistently outperforms standard fusion across math and coding benchmarks, enabling student models to successfully explore beyond their teachers.

What Problem Does This Paper Address?

When training Large Language Models (LLMs) for complex reasoning tasks like mathematics or code generation, researchers often combine two powerful paradigms:

  1. Reinforcement Learning with Verifiable Rewards (RLVR): Algorithms like Group-Relative Policy Optimization (GRPO) use rule-based verifiers (e.g., a compiler or math checker) to score model outputs. This provides a highly accurate but sparse reward broadcast identically to every token in a response.
  2. On-Policy Distillation (OPD): This provides dense, token-level feedback by scoring the student's tokens against a stronger teacher model.

While complementary on paper, simply adding these two advantage signals together with a fixed coefficient destabilizes training. The authors identify two core miscalibrations responsible for this failure:

  • Magnitude Mismatch: Unbounded token-level OPD advantages are heavy-tailed and can spike wildly, completely drowning out the bounded, group-normalized RLVR signal (see Figure 3).
  • Temporal Mismatch: Forcing the student to strictly mimic the teacher throughout the entire training run over-constrains the policy. This triggers "entropy collapse," capping the student's performance ceiling at the level of an imperfect teacher.
Fixed-coefficient fusion vs. SAF conceptual overview

Methods

To resolve these mismatches, the authors propose SAF (Stable Advantage Fusion). Instead of tuning a single global mixing coefficient, SAF applies a lightweight, four-stage pipeline exclusively to the OPD advantage branch before combining it with the GRPO advantage:

  1. Top-$k\%$ Sparsification (Stage 1): To handle the heavy-tailed distribution of teacher rewards, SAF calculates a per-sequence quantile threshold and retains only the top $k\%$ most salient token advantages, zeroing out the rest.
  2. Bounded Tanh Compression (Stage 2): The remaining advantages are passed through a scaled tanh function. This caps extreme outliers to a fixed range $[-c, c]$ while preserving their relative ordering.
  3. KL-Triggered Warm-Up (Stage 3): OPD strength is linearly ramped up from zero. Crucially, SAF monitors the online student-teacher KL divergence and stops the warm-up early once the student has closed a sufficient portion of the gap.
  4. Linear Annealing (Stage 4): Over the remaining training steps, the teacher's influence is gradually decayed to zero (or a small floor), allowing the verified RLVR reward to take full control so the student can freely explore better solutions.
Overview of the SAF pipeline

Datasets

The framework was evaluated using Qwen3 base models (1.7B, 4B, and 8B parameters) distilled from a Qwen3-30B teacher.

  • Training Data:
  • Mathematics: A 57K-problem split of the DeepMath dataset (filtering for difficulty $\ge$ 6).
  • Code Generation: The 25K-problem Eurus-RL-Code dataset.
  • Evaluation Benchmarks:
  • Mathematics: AIME24, AIME25, and HMMT25 (February and November splits).
  • Code Generation: HumanEval+, MBPP+, and LiveCodeBench (v6).

Key Insights and Ideas

  • The Teacher is a Scaffold, Not a Ceiling: Prolonged full-strength imitation forces the student to overfit to the teacher's proxy distribution, including its errors. Distillation is most valuable early on to stabilize training, but must be phased out to let reward-driven exploration take over.
  • A Tiny Fraction of Tokens Dominate: As shown in Figure 3, the vast majority of tokens carry near-zero OPD advantage, while a select few spike up to an order of magnitude larger than the GRPO signal. Sparsifying and bounding these spikes is essential to keep the verified reward signal meaningful.
Empirical distribution of absolute token-level OPD advantages

Key Results

SAF consistently outperformed fixed-coefficient fusion, GRPO-only, and OPD-only baselines across all evaluated model sizes and domains:

  • Performance Gains: SAF improved aggregate accuracy scores by 0.51% to 2.70% across all six model-domain settings. For instance, on Qwen3-4B mathematics, SAF achieved an average accuracy of 45.89% compared to 44.38% for fixed fusion.
  • Training Dynamics: As illustrated in Figure 4, naive fixed-coefficient fusion rapidly collapses actor entropy and tightly tracks the teacher's KL. SAF successfully maintains an intermediate, healthy entropy level, resulting in higher final critic scores and steadily rising validation accuracy.
Training dynamics of Qwen3-4B on mathematical reasoning

Limitations and Future Work

  • Scale and Teacher Bounds: The empirical validation was limited to student models between 1.7B and 8B parameters. The authors note that robustness to larger model scales or highly uncalibrated teacher models remains an open question.
  • Theoretical Grounding of Parameter Drift: While the paper provides an exploratory analysis of parameter-space update geometry (showing that SAF curbs excessive weight drift in deeper layers), a rigorous theoretical framework connecting update-matrix stable rank to advantage-fusion design is left for future work.

Summary updated

BibTeX
@misc{ding2026saf,
  author = {Yifan Ding and Xincheng Wei and Yoshua Y. Li and Ziheng Li and Yuquan Lu and Siyu Zhang and Dongsheng Ma and Rongxiang Weng and Xunliang Cai and Yun Chen},
  title = {{SAF-OPD: Stable Advantage Fusion for On-Policy Distillation}},
  year = {2026},
  eprint = {2607.29209},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.29209},
}
Figure