Learning from Evolving Errors: Adaptive Iterative Repair for On-Policy Distillation
Organizations: University of Science and Technology of China · Nanyang Technological University
Abstract
On-policy self-distillation (OPSD) supplies dense token-level feedback on trajectories sampled from the student's own policy, a richer training signal than the outcome-level rewards of reinforcement learning. This feedback comes from a teacher conditioned on a full reference solution unavailable to the student. The reference solution specifies the target but not how to move from the student's current error toward it, creating a solution-conditioned shortcut risk. We introduce AIR-OPD, an adaptive iterative repair framework for on-policy distillation that provides error-to-repair supervision. Given a failed response, a guidance generator synthesizes repair guidance for the current error. The student samples an on-policy retry with this guidance. If the retry remains incorrect, the generator produces new repair guidance for the newly observed error. At each round, a fixed teacher receives the guidance as privileged context and supervises the student on an error-aligned region of its latest failed response. Outcome-aware stage weighting favors early repair stages and credits stages whose immediate retry passes verification. We train AIR-OPD on the DAPO-Math-17K dataset and evaluate on AIME24, AIME25, and HMMT25, alongside out-of-distribution tests on MMLU-Pro and GPQA. We examine two guidance sources, self-guidance from the current student policy and external guidance from a larger model. For both Qwen3-4B and Qwen3-8B, AIR-OPD attains the best mathematical-reasoning averages, improving over the strongest baseline by up to 3.6 points, while preserving base-model performance on the out-of-distribution benchmarks.
Figures & tables
| Mathematical Reasoning | Out-of-Distribution | ||||||
| Method | AIME24 | AIME25 | HMMT25 | Math Avg. | MMLU-Pro | GPQA | OOD Avg. |
| Qwen3-4B | |||||||
| Base model | 75.0 | 66.4 | 42.2 | 61.2 | 51.5 | 62.9 | 57.2 |
| SFT | 70.6 | 61.4 | 42.8 | 58.2 | 43.1 | 52.0 | 47.6 |
| GRPO | 75.6 | 67.5 | 43.9 | 62.3 | 51.3 | 62.4 | 56.8 |
| OPSD | 76.4 | 69.4 | 43.3 | 63.1 | 50.4 | 60.2 | 55.3 |
| Setting | Math Avg. |
|---|---|
| Air-OPD | 65.8 |
| Sample selection (OPSD) | |
| All rollouts | 63.1 |
| Failed rollouts only | 62.5 |
| Supervision region | |
| w/o error alignment | 64.7 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Parameter | SFT | GRPO | OPSD | Air-OPD |
|---|---|---|---|---|
| Optimization and adaptation | ||||
| Optimizer | AdamW | AdamW | AdamW | AdamW |
| Learning rate | ||||
| Effective batch size | 32 | 32 | 32 | 32 |
| Training precision | BF16 | BF16 | BF16 | BF16 |
| LoRA rank / alpha | 64 / 128 | 64 / 128 | 64 / 128 | 64 / 128 |
| Parameter | Value |
|---|---|
| Maximum new tokens | 38,912 |
| Maximum model length (tokens) | 40,960 |
| Thinking mode | Enabled |
| Sampling temperature | 1.0 |
| Top- | 0.95 |
| Top- | – |
On-Policy Self-Distillation
On-policy self-distillation trains a model on its own generated trajectories using a teacher view to provide dense supervision.
See all 157 papers