arXiv:2610.31563cs.LGOct 2026

Manuscript Offprint

arXiv:2610.31563

When to Follow the Teacher: Advantage-Based On-Policy Distillation

Mahdi Sabbaghi, George Pappas, Hamed Hassani, Adel Javanmard

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Online Policy Distillation (OPD) often outperforms offline methods such as Supervised Fine-Tuning (SFT) by training on trajectories sampled directly from the student. However, standard OPD trains the student to follow the teacher at every state of the trajectory, assuming that teacher guidance is always beneficial. We instead distinguish between what the teacher prefers and what actually helps the current student succeed. We introduce Advantage-Based On-Policy Distillation (AOPD), which weights teacher actions by their counterfactual advantage under the student. Teacher actions that improve the student's expected outcome are reinforced, while those that do not are downweighted.

Directly computing these advantages requires trying alternative teacher actions at each step and running new rollouts from each. Instead, we show that the AOPD objective can be estimated using only standard student rollouts and their terminal rewards. Our estimator uses teacher importance weights on the student-sampled actions to provide unbiased advantage-weighted supervision, without any additional rollouts or reward evaluations. This allows AOPD to focus teacher supervision on actions that help the current student while preserving the rollout efficiency of standard OPD. Experiments on math, coding, and Medqa show gains over distillation and RL baselines in both external-teacher and self-distillation settings.

https://github.com/Helloworld10011/AOPD

1 Introduction

Knowledge distillation transfers capabilities from a stronger teacher to a smaller student model by training the student to imitate the teacher's outputs. Offline distillation is a common approach that uses fixed teacher-generated trajectories. But this approach can lead to a mismatch between the training trajectories and the states the student generates itself. On-policy distillation (OPD) addresses this mismatch by querying the teacher along student-sampled trajectories, providing dense token-level supervision at the states the student actually visits (Agarwal et al., 2024; Lu and Lab, 2025; Song and Zheng, 2026; Ross et al., 2011; Li et al., 2026a). Although the trajectories now come from the student, the objective remains to match the teacher, without distinguishing which teacher actions improve the student's chance of success (Liu et al., 2026).

This limitation also applies to on-policy self-distillation (OPSD), which replaces the external teacher with a privileged version of the student itself, such as conditioned on ground-truth solutions (Zhao et al., 2026; Hübotter et al., 2026). Whether external or privileged, the teacher may choose an action from which it can solve the problem, while the student cannot complete the remaining steps correctly. Conversely, distillation discourages a valid student solution when it differs from the teacher's preferred approach. Thus the question is whether the teacher action at every state increases the student's chance of success. An action should be credited according to its impact on the student's task success, not simply the teacher's preference (Chen et al., 2026; Saadi and Wang, 2026).

Prior attempts to mitigate this optimization misalignment rely on making the teacher supervision more selective. A common approach combines outcome-based reinforcement learning with distillation, but adding a

∗^{*}Correspondence can be made to: smahdi@seas.upenn.edu

Figure

Figure 1: (left) The overall picture of our method. On the student sampled trajectories, not all the suggested actions by the teacher are useful to the student, and many suggestions are destructive. (middle) Performance comparison of our method with OPSD when training Qwen3-8B in non-thinking mode on Open-Thoughts. (right) Comparison with OPSD when training Qwen3-4B-Instruct on TACO for coding.

reward term does not change which teacher actions the distillation term reinforces (Xu et al., 2025; Zhang et al., 2026b). Other methods downweight distillation when the teacher is uncertain, using entropy as a proxy, or when teacher tokens are implausible under the student (Jin et al., 2026; Wang et al., 2026). Alternative approaches validate teacher actions using auxiliary reward models (Saadi and Wang, 2026; Gu et al., 2026) or explicit intervention rollouts (Chen et al., 2026). These methods provide ways to identify useful teacher guidance, but rely on auxiliary signals or additional counterfactual trajectories. More importantly, they do not formulate the objective directly around the impact of the teacher action on the student's expected task reward. Therefore, we ask:

How should a distillation objective weight teacher supervision to improve the student’s eventual task success?

We propose Advantage-based On-Policy Distillation (AOPD), the first formulation of on-policy distillation that directly weights teacher actions by their advantage under the current student. Intuitively, the advantage measures whether taking a teacher action and then letting the student finish the response improves expected final reward over following the student's own policy. Since this advantage is defined with respect to the current student, the same teacher action can be useful for one student but unhelpful for another. AOPD therefore reinforces teacher actions with positive advantage and suppresses those with negative advantage. This is illustrated in Figure 1 (left).

A direct estimate of these advantages would require generating new student continuations after alternative teacher actions. We instead derive an unbiased importance-sampling estimator of the AOPD objective using only the student's on-policy trajectories and their terminal rewards. This allows AOPD to incorporate outcome-level rewards into token-level teacher supervision without learning a value function, generating counterfactual continuations or teacher rollouts, or relying on an external process reward model.

Our contributions are summarized as follows:

• AOPD algorithm. In Section 3, we provide an advantage-weighted formulation of on-policy distillation and derive an unbiased estimator of its objective, without additional rollouts or auxiliary models. We also discuss clipping the importance sampling weights.

• Experimental results. In Section 4, we evaluate multiple model sizes on tasks such as math and coding under both external-teacher and self-distillation settings, showing improvements over OPD, OPSD, and GRPO. We further examine whether teacher actions are uniformly beneficial in an ablation study.

• Reward improvement beyond imitation. In Section 5, we establish a reward-improvement guarantee for AOPD under an exact KL-proximal analysis and show that forward-KL OPD can reduce reward even with a stronger teacher. We further construct a two-state counterexample showing that simply adding an RL objective to OPD does not guarantee reward improvement.

References (58)