AI news and explainers at 7 AM weekdays, plus a Sunday weekly at 8Get it in your inbox

METAL LAB

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

arXiv:2607.292092026-07-30

Simply adding reward-based RL and teacher-mimicry training makes an AI stop exploring - SAF tames that runaway signal for better results

When training language models by combining reinforcement learning with verifiable rewards (RLVR), which grades whole responses, with on-policy distillation (OPD), which scores every token against a stronger teacher model, simply adding the two signals with a fixed ratio causes the model to collapse into repetitive, low-diversity outputs early in training (entropy collapse). The authors trace this to two mismatches - one in signal magnitude and one in how the signal's strength should change over time - and propose a four-stage pipeline called SAF to fix both. Tested on Qwen3 models across math and code generation tasks, SAF consistently outperformed the fixed-ratio fusion.

METAL LAB explanatory visual

SAF's four-stage pipeline

Evidence statusMeasured results reported

  1. Inputs: two kinds of scoresa single verified score per whole response (GRPO) and a per-token score computed against the teacher model (OPD) arrive together
  2. Stages 1-2: magnitude controlkeep only the top fraction of OPD scores by size and zero out the rest, then compress the survivors through a bounded tanh function so no single token can dominate
  3. Stages 3-4: temporal controlramp OPD's strength up early while watching how much the student-teacher KL divergence has dropped, then gradually anneal the strength back down afterward
  4. Fusion and policy updateadd the adjusted OPD score to the unchanged GRPO score to form the final advantage used to update the model
An explanatory diagram made by METAL LAB, not a figure supplied by the paper's authors.

What they did

  1. Motivation: RLVR grades an entire model response with a single score while OPD scores each token against a stronger teacher model but caps performance at the teacher's own quality; combining them seemed promising, but simply adding them with a fixed coefficient caused the model to lose diversity in its outputs early in training (entropy collapse).
  2. Diagnosis: this happens because of two mismatches - a magnitude mismatch, where OPD's token-level scores occasionally spike far larger than the bounded RLVR score and drown it out, and a temporal mismatch, where sustained full-strength teacher-imitation keeps pulling the student toward the teacher and blocks it from exploring beyond the teacher's own ability.
  3. Method: SAF applies a four-stage transformation only to the OPD signal - keeping just the top fraction of tokens by magnitude and zeroing the rest, compressing the surviving values through a bounded tanh function, ramping up OPD's strength during an early warm-up phase monitored by how much the student-teacher KL divergence has dropped, then gradually annealing the strength down afterward - before adding it to the unchanged RLVR score; each stage can be switched on or off independently.
  4. Experiments: across Qwen3-1.7B, 4B, and 8B models on seven math reasoning and code generation benchmarks, SAF improved the aggregate score over fixed-coefficient fusion by 0.51-2.70 percentage points across all six model-domain settings, with more stable training and no entropy collapse.
  5. Dynamics analysis: fixed-coefficient fusion tracked the teacher most closely (lowest student-teacher KL divergence) yet ended with the lowest final accuracy, while SAF maintained intermediate entropy and KL levels and finished with higher accuracy.
Figure 1: Fixed-coefficient fusion versus SAF. SAF pairs the OPD advantage’s magnitude and temporal mismatches with dedicated control mechanisms, avoiding entropy collapse, preserving exploration, and improving final performance.
Figure 1: Fixed-coefficient fusion versus SAF. SAF pairs the OPD advantage’s magnitude and temporal mismatches with dedicated control mechanisms, avoiding entropy collapse, preserving exploration, and improving final performance.
Table 1: Results on mathematical reasoning and code generation. All entries are accuracies (%). Within each model scale and column, the best result is bold and the second best is underlined.
Mathematical ReasoningCode Generation
MethodAIME-24AIME-25HMMT25-FebHMMT25-NovAvg.HumanEval+MBPP+LiveCodeBenchAvg.
Teacher: Qwen3-30B-A3B-Instruct-250773.6561.9843.8557.8159.3282.9378.3145.0068.75
Student: Qwen3-8B
Base26.5621.2511.359.7917.2480.4972.4923.7158.90
GRPO-only61.1549.0628.6537.5044.0981.1072.2228.8560.72
OPD-only59.5850.5227.6040.7344.6184.1571.9633.2963.13
GRPO+OPD (fixed)60.8351.2528.4443.3345.9678.6671.6934.8661.74
SAF (ours)64.7951.2530.0041.6746.9381.1071.6937.4363.41
Student: Qwen3-4B
Base23.0221.8811.679.1716.4479.2763.4924.5755.78
GRPO-only58.9650.6230.1037.6044.3280.4968.7832.1460.47
OPD-only57.8151.5629.3837.7144.1278.6669.3130.7159.56
GRPO+OPD (fixed)57.1951.9829.9038.4444.3879.8866.1433.8659.96
SAF (ours)60.2153.9631.1538.2345.8982.9370.6334.4362.66
Student: Qwen3-1.7B
Base12.8110.835.943.548.2860.9854.2315.1443.45
GRPO-only36.2531.3517.1916.8825.4265.2453.7017.5745.50
OPD-only35.1028.5415.8316.3523.9670.7358.7325.8651.77
GRPO+OPD (fixed)34.7929.6917.5016.5624.6470.1256.0826.4350.88
SAF (ours)36.6731.9818.0219.2726.4970.7357.1426.2951.39
Figure 2: Overview of SAF. SAF modifies only the OPD branch through four stages before it is added to the unchanged GRPO advantage for the policy-gradient update.
Figure 2: Overview of SAF. SAF modifies only the OPD branch through four stages before it is added to the unchanged GRPO advantage for the policy-gradient update.
Table 2: Representative SAF ablations on Qwen3-4B mathematical reasoning after 300 training steps.
ConfigurationAIME-24AIME-25HMMT25-FebHMMT25-NovAvg.
GRPO+OPD (fixed)57.1951.9829.9038.4444.38
+ top-k and tanh (fixed weight)58.7550.9430.1037.6044.35
+ warm-up (no annealing)58.9651.4629.6936.1544.07
+ annealing59.2752.6031.2537.8145.23
SAF (δ=0.2, selected)60.2153.9631.1538.2345.89
SAF (δ=0.3)58.7552.8129.3837.0844.51
Figure 3: Empirical distribution of the absolute token-level OPD advantages, |Ai,tOPD|, collected during the first 10 training steps of Qwen3-4B on mathematical reasoning tasks.
Figure 3: Empirical distribution of the absolute token-level OPD advantages, |Ai,tOPD|, collected during the first 10 training steps of Qwen3-4B on mathematical reasoning tasks.
Table 3: Training hyperparameters of the GRPO-based methods: GRPO-only, GRPO+OPD (fixed), and SAF.
HyperparameterMathematicsCode
Train batch size128128
Micro batch size128128
Responses per prompt (G)88
Maximum prompt length2,0482,048
Maximum response length16,3848,192
Rollout temperature1.01.0
Rollout top-p1.01.0
Actor learning rate1×10−61×10−6
Optimization steps300200
Actor KL-loss coefficient0.00.0
Figure 4: Training dynamics of Qwen3-4B on mathematical reasoning tasks over 300 optimization steps: (a) actor entropy, (b) student–teacher KL divergence, (c) mean critic score, (d) mean response length, (e) AIME-24 accuracy, and (f) AIME-25 accuracy. Curves compare GRPO, OPD, fixed-coefficient GRPO+OPD, and SAF under the same task setting.
Figure 4: Training dynamics of Qwen3-4B on mathematical reasoning tasks over 300 optimization steps: (a) actor entropy, (b) student–teacher KL divergence, (c) mean critic score, (d) mean response length, (e) AIME-24 accuracy, and (f) AIME-25 accuracy. Curves compare GRPO, OPD, fixed-coefficient GRPO+OPD, and SAF under the same task setting.
Table 4: Training hyperparameters of OPD-only for mathematical reasoning and code generation.
HyperparameterMathematicsCode
Batch size1,0241,024
Responses per prompt11
Maximum prompt length2,0482,048
Maximum response length16,3848,192
Rollout temperature1.01.0
Rollout top-p1.01.0
Learning rate1×10−61×10−6
Optimization steps10050
Figure 5: Supplementary parameter-space update geometry for the GRPO-only and OPD-only checkpoints of Qwen3-4B on mathematical reasoning: (a) mean stable rank of the update matrices, (b) output (left-singular) subspace overlap, and (c) input (right-singular) subspace overlap between the two methods.
Figure 5: Supplementary parameter-space update geometry for the GRPO-only and OPD-only checkpoints of Qwen3-4B on mathematical reasoning: (a) mean stable rank of the update matrices, (b) output (left-singular) subspace overlap, and (c) input (right-singular) subspace overlap between the two methods.
Table 5: Method-specific hyperparameters for the selected SAF configuration.
HyperparameterValue
Per-response retention ratio k20%
tanh compression coefficient c0.1
Maximum warm-up steps Swarmup100
Relative KL-drop threshold δ0.2
Initial OPD coefficient1.0
Annealing floor cmin0.0
Annealing durationRemaining training steps
Figure 6: Layer-wise L2 weight drift ‖Δ​Wℓ(t)‖2 over transformer layers (x-axis) and optimization steps (y-axis) for the four training regimes of Qwen3-4B on mathematical reasoning: (a) GRPO-only, (b) OPD-only, (c) fixed-coefficient GRPO+OPD, and (d) SAF.
Figure 6: Layer-wise L2 weight drift ‖Δ​Wℓ(t)‖2 over transformer layers (x-axis) and optimization steps (y-axis) for the four training regimes of Qwen3-4B on mathematical reasoning: (a) GRPO-only, (b) OPD-only, (c) fixed-coefficient GRPO+OPD, and (d) SAF.

Findings

  • Across seven math and code benchmarks with Qwen3-8B/4B/1.7B, SAF improved over fixed-coefficient GRPO+OPD fusion by 0.97%, 1.51%, and 1.85% on math for the three model sizes respectively, and by 1.67%, 2.70%, and 0.51% on code, reaching an average of 49.46% across six model-domain settings versus 1.54%, 2.71%, and 1.60% lower for fixed fusion, GRPO-only, and OPD-only respectively.
  • In a 300-step ablation on Qwen3-4B math reasoning, magnitude control alone reached 44.35% (versus 44.38% for fixed fusion), adding warm-up alone reached 44.07%, enabling annealing raised it to 45.23%, and the full SAF configuration with threshold delta=0.2 reached 45.89%.
  • Analysis of the first 10 training steps showed OPD advantage magnitudes were mostly near zero but with occasional spikes; among 180 inspected largest-magnitude tokens, every one exceeded its sequence's GRPO advantage magnitude, with OPD extremes reaching 20.3585 against a largest co-occurring GRPO magnitude of only 2.4749.
  • Over 300 training steps, fixed-coefficient fusion rapidly dropped actor entropy from about 0.35 to 0.30 and drove student-teacher KL divergence to the lowest of four regimes tested, yet ended with the lowest accuracy on AIME-24 (about 0.57) and AIME-25 (about 0.51), while SAF kept entropy around 0.35-0.38 and finished higher on both (about 0.59 and 0.53 respectively).
  • Layer-wise weight drift analysis showed fixed-coefficient fusion produced the largest absolute drift (peak about 0.03 by step 300, higher than GRPO-only) among regimes compared, while SAF's drift (peak about 0.04) was smaller than fixed fusion but still exceeded GRPO-only, indicating SAF curbs but does not eliminate excess parameter movement.
Figure 7: Layer-wise relative weight drift ‖Δ​Wℓ(t)‖2/(‖Wℓ0‖2+ϵ) over transformer layers (x-axis) and optimization steps (y-axis) for the same four training regimes and checkpoints as Figure 6: (a) GRPO-only, (b) OPD-only, (c) fixed-coefficient GRPO+OPD, and (d) SAF.
Figure 7: Layer-wise relative weight drift ‖Δ​Wℓ(t)‖2/(‖Wℓ0‖2+ϵ) over transformer layers (x-axis) and optimization steps (y-axis) for the same four training regimes and checkpoints as Figure 6: (a) GRPO-only, (b) OPD-only, (c) fixed-coefficient GRPO+OPD, and (d) SAF.

Where it can be used

  • Designing post-training pipelines for language models that combine verifiable-reward RL with token-level teacher-distillation signals.
  • Monitoring training runs for symptoms like rapid entropy drop or overly fast student-teacher KL convergence as diagnostic signals of instability.
  • Considering SAF as a lightweight, drop-in replacement in an existing GRPO+OPD training loop without adding extra models or loss terms.

Limits and open work

  • Experiments are limited to Qwen3-1.7B/4B/8B student models with a Qwen3-30B-A3B-Instruct-2507 teacher, and seven math and code generation benchmarks, so generalization to other model families or tasks is not established.
  • SAF did not dominate every baseline at every scale - for example, GRPO-only or OPD-only outperformed SAF on Qwen3-8B's MBPP+ and on part of Qwen3-1.7B's code average.
  • The layer-wise weight drift and update-matrix geometry analyses are explicitly described by the authors as supplementary, exploratory observations rather than mechanisms that drove SAF's design.
  • Hyperparameters such as the KL threshold delta, top-k percentage, and tanh compression scale affected performance (e.g., raising delta from 0.2 to 0.3 lowered accuracy by 1.38 points), and their sensitivity across other tasks or model families is not fully explored.

Why it matters

As training pipelines increasingly combine verified-reward RL with teacher-imitation signals, this paper pinpoints exactly why naive combination fails and offers a lightweight fix that can be dropped into existing training loops. It gives practitioners building language model post-training pipelines a concrete diagnosis of the pitfalls in mixing these two signal types and a practical remedy.

Terms in this paper

  • RLVR (reinforcement learning with verifiable rewards) · a reinforcement learning method that grades an entire model response with a single rule-checkable score, such as whether the final answer is correct
  • OPD (on-policy distillation) · a training method that scores each token the student model generates against the probability a stronger teacher model would assign it
  • entropy collapse · a training failure where the model stops trying diverse response paths and converges to repetitive, low-variety outputs
  • GRPO · a widely used RLVR algorithm that samples multiple responses to the same prompt and normalizes their scores against each other into a group-relative advantage
  • KL divergence · a measure of how different two probability distributions are - here, the student's and teacher's next-token predictions

Original abstract (English)

Reinforcement learning with verifiable rewards (RLVR) broadcasts a single response-level reward to every token, while on-policy distillation (OPD) scores each token against a stronger teacher for a dense advantage but caps performance at teacher quality and discourages exploration beyond it. Their complementarity makes combining RLVR and OPD promising, but we find that fusing the two advantages with a fixed coefficient triggers entropy collapse from two miscalibrations: a magnitude mismatch, whe

Authors · Yifan Ding

Read on arXiv

Latest papers

All papers →

Latest from METAL LAB

Figures: Yifan Ding et al., arXiv:2607.29209, CC BY 4.0