SAF-OPD: Stable Advantage Fusion for On-Policy Distillation
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 MEDIA explanatory visual
SAF's four-stage pipeline
Evidence statusMeasured results reported
- 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
- 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
- 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
- Fusion and policy updateadd the adjusted OPD score to the unchanged GRPO score to form the final advantage used to update the model
What they did
- 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).
- 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.
- 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.
- 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.
- 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.

| Mathematical Reasoning | Code Generation | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Method | AIME-24 | AIME-25 | HMMT25-Feb | HMMT25-Nov | Avg. | HumanEval+ | MBPP+ | LiveCodeBench | Avg. |
| Teacher: Qwen3-30B-A3B-Instruct-2507 | 73.65 | 61.98 | 43.85 | 57.81 | 59.32 | 82.93 | 78.31 | 45.00 | 68.75 |
| Student: Qwen3-8B | |||||||||
| Base | 26.56 | 21.25 | 11.35 | 9.79 | 17.24 | 80.49 | 72.49 | 23.71 | 58.90 |
| GRPO-only | 61.15 | 49.06 | 28.65 | 37.50 | 44.09 | 81.10 | 72.22 | 28.85 | 60.72 |
| OPD-only | 59.58 | 50.52 | 27.60 | 40.73 | 44.61 | 84.15 | 71.96 | 33.29 | 63.13 |
| GRPO+OPD (fixed) | 60.83 | 51.25 | 28.44 | 43.33 | 45.96 | 78.66 | 71.69 | 34.86 | 61.74 |
| SAF (ours) | 64.79 | 51.25 | 30.00 | 41.67 | 46.93 | 81.10 | 71.69 | 37.43 | 63.41 |
| Student: Qwen3-4B | |||||||||
| Base | 23.02 | 21.88 | 11.67 | 9.17 | 16.44 | 79.27 | 63.49 | 24.57 | 55.78 |
| GRPO-only | 58.96 | 50.62 | 30.10 | 37.60 | 44.32 | 80.49 | 68.78 | 32.14 | 60.47 |
| OPD-only | 57.81 | 51.56 | 29.38 | 37.71 | 44.12 | 78.66 | 69.31 | 30.71 | 59.56 |
| GRPO+OPD (fixed) | 57.19 | 51.98 | 29.90 | 38.44 | 44.38 | 79.88 | 66.14 | 33.86 | 59.96 |
| SAF (ours) | 60.21 | 53.96 | 31.15 | 38.23 | 45.89 | 82.93 | 70.63 | 34.43 | 62.66 |
| Student: Qwen3-1.7B | |||||||||
| Base | 12.81 | 10.83 | 5.94 | 3.54 | 8.28 | 60.98 | 54.23 | 15.14 | 43.45 |
| GRPO-only | 36.25 | 31.35 | 17.19 | 16.88 | 25.42 | 65.24 | 53.70 | 17.57 | 45.50 |
| OPD-only | 35.10 | 28.54 | 15.83 | 16.35 | 23.96 | 70.73 | 58.73 | 25.86 | 51.77 |
| GRPO+OPD (fixed) | 34.79 | 29.69 | 17.50 | 16.56 | 24.64 | 70.12 | 56.08 | 26.43 | 50.88 |
| SAF (ours) | 36.67 | 31.98 | 18.02 | 19.27 | 26.49 | 70.73 | 57.14 | 26.29 | 51.39 |
| Configuration | AIME-24 | AIME-25 | HMMT25-Feb | HMMT25-Nov | Avg. |
|---|---|---|---|---|---|
| GRPO+OPD (fixed) | 57.19 | 51.98 | 29.90 | 38.44 | 44.38 |
| + top-k and tanh (fixed weight) | 58.75 | 50.94 | 30.10 | 37.60 | 44.35 |
| + warm-up (no annealing) | 58.96 | 51.46 | 29.69 | 36.15 | 44.07 |
| + annealing | 59.27 | 52.60 | 31.25 | 37.81 | 45.23 |
| SAF (δ=0.2, selected) | 60.21 | 53.96 | 31.15 | 38.23 | 45.89 |
| SAF (δ=0.3) | 58.75 | 52.81 | 29.38 | 37.08 | 44.51 |

| Hyperparameter | Mathematics | Code |
|---|---|---|
| Train batch size | 128 | 128 |
| Micro batch size | 128 | 128 |
| Responses per prompt (G) | 8 | 8 |
| Maximum prompt length | 2,048 | 2,048 |
| Maximum response length | 16,384 | 8,192 |
| Rollout temperature | 1.0 | 1.0 |
| Rollout top-p | 1.0 | 1.0 |
| Actor learning rate | 1×10−6 | 1×10−6 |
| Optimization steps | 300 | 200 |
| Actor KL-loss coefficient | 0.0 | 0.0 |
| Hyperparameter | Mathematics | Code |
|---|---|---|
| Batch size | 1,024 | 1,024 |
| Responses per prompt | 1 | 1 |
| Maximum prompt length | 2,048 | 2,048 |
| Maximum response length | 16,384 | 8,192 |
| Rollout temperature | 1.0 | 1.0 |
| Rollout top-p | 1.0 | 1.0 |
| Learning rate | 1×10−6 | 1×10−6 |
| Optimization steps | 100 | 50 |
| Hyperparameter | Value |
|---|---|
| Per-response retention ratio k | 20% |
| tanh compression coefficient c | 0.1 |
| Maximum warm-up steps Swarmup | 100 |
| Relative KL-drop threshold δ | 0.2 |
| Initial OPD coefficient | 1.0 |
| Annealing floor cmin | 0.0 |
| Annealing duration | Remaining training steps |

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.

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
Read on arXivLatest papers
- SWE-bench Science: Can Coding Agents Resolve Engineering Tasks in Science?AI coding agents were tested on fixing real scientific software, and even the best one failed more than half the time
- FlashPrefill V2: Block-Sparse Prefill Attention for Long-Context LLM ServingMaking sparse attention fast enough and accurate enough for real LLM serving, not just papers
- PolicyGuide: From Guarding One Action to Guiding the Whole Workflow for Policy-Compliant LLM AgentsMaking customer-service AI agents follow the whole procedure, not just avoid one bad action
- EXIMO: VLM Guided Exploration of VLA PoliciesTeaching a robot new chores without human teleoperation, by letting a chatty AI supervise it
- EnvHarness: Awakening Static Worlds for Agent LearningInstead of building new training worlds from scratch, this work adds a plug-in layer that reshapes existing ones around each agent's actual weaknesses
- Bounded Sovereignty and the Control Tax: Pricing AI Oversight When the Deployer Does Not Own the ModelCompanies that rent AI instead of owning it can only do half of AI safety oversight
- Beyond Imitation: Filtering On-Policy Distillation by Reasoning ProgressA fix for AI models that get penalized by their teacher even when they're reasoning correctly
- PersonalBench: Measuring the Authorship Gap in LLM PersonalizationAI can be prompted to write 'like someone,' but its own voice never fully disappears
Latest from METAL MEDIA
Figures: Yifan Ding et al., arXiv:2607.29209, CC BY 4.0