Manuscript Offprint

arXiv:2611.03133

Meet Students Where They Are: Student-Prefix Teacher Adaptation for On-Policy Distillation

Xue Zhang, Songming Zhang, Yunlong Liang, Fandong Meng, Yufeng Chen, Jinan Xu

ABSTRACT

On-policy distillation (OPD) mitigates the student's exposure bias by optimizing on student-generated trajectories. However, student-generated prefixes may contain reasoning errors or follow patterns unfamiliar to the teacher, undermining the reliability of its token-level supervision. This degradation becomes more pronounced as prefixes grow longer. To address this teacher-side distribution mismatch, we propose Student-Prefix Teacher Adaptation (SPTA), which adapts the teacher to student-generated prefixes before distillation to improve the reliability of its token-level supervision. Specifically, before OPD starts, we collect student rollout prefixes with random lengths and continually train the teacher to continue from the prefixes using reinforcement learning with verifiable rewards (RLVR). By treating each prefix as context and rewarding correct final answers, the teacher learns to recover from student-induced states rather than imitate the student's reasoning. Then, the adapted teacher is used for standard OPD, with no changes to the distillation objective. Experiments on mathematical reasoning benchmarks show that our SPTA improves average student performance over standard OPD and OPD with task-level RLVR-adapted teachers. These results highlight the importance of adapting teachers not only to solve problems independently, but also to provide reliable guidance on the states their students actually visit.

1 INTRODUCTION

Knowledge distillation aims to transfer the predictive behavior of a larger teacher model to a smaller student model (Hinton et al., 2015). For autoregressive language models, however, training on teacher-generated sequences (Kim & Rush, 2016) creates a distributional mismatch between the prefixes observed during training and those produced by the student at inference time, a phenomenon known as exposure bias (Bengio et al., 2015; Ranzato et al., 2015). On-policy distillation (OPD) closes this mismatch by sampling trajectories from the student itself and collecting token-level teacher supervision over these on-policy samples (Agarwal et al., 2024; Gu et al., 2024).

However, the reliability of this token-level supervision depends critically on the teacher's conditional distribution πT(⋅∣x,y<tS)\pi_T(\cdot \mid x, y_{<t}^S), which is conditioned on student-generated prefixes y<tSy_{<t}^S. These prefixes may contain flawed reasoning paths, unfamiliar phrasing, or partial intermediate states unseen during the teacher's task-oriented training, which introduces a teacher-side distribution mismatch. The resulting distribution mismatch degrades the teacher's supervision quality, and the issue becomes more pronounced as prefixes grow longer (Fu et al., 2026; Yang et al., 2026; Xie et al., 2026). As shown in Figure 2, Qwen3-4B's accuracy drops from 60.99% when solving problems from scratch to 28.91% when given prefixes covering 50% of student rollouts, and further to 22.36% at a prefix

*This work was done during the internship at Weixin AI, Tencent Inc, China. †Yufeng Chen is the corresponding author.

Figure

Figure 1: Standard OPD and Student-Prefix Teacher Adaptation (SPTA). (a) In standard OPD, student rollouts may enter regions unfamiliar to the teacher, reducing supervision reliability. (b) SPTA first adapts the teacher through prefix-conditioned RLVR, using student prefixes as context and final-answer correctness as reward, then freezes it for standard OPD. Shaded regions indicate prefixes familiar to the teacher before and after adaptation.

ratio of 90%. DeepSeek-R1-Distill-Qwen-7B exhibits a similar decline, with accuracy dropping from 46.63% without a student prefix to 37.08% at prefix ratios of 50%. These results suggest that a teacher's strong standalone performance does not guarantee reliable guidance on student-generated prefixes.

Existing approaches mitigate unreliable teacher guidance by adjusting where and how teacher supervision is used, for example through rollout truncation (Zhou et al., 2026; Yang et al., 2026), prefix selection (Zhao et al., 2026a), or token-level signal selection and reweighting (Xie et al., 2026; Xu et al., 2026; Liu et al., 2026a). On the teacher side, Zhu et al. (2026) strengthen the teacher with RLVR before distillation, without directly addressing the distribution mismatch induced by student-generated prefixes. This motivates Student-Prefix Teacher Adaptation (SPTA), a simple and straightforward approach that adapts the teacher to student-generated prefixes before distillation (Figure 1(b)).

SPTA consists of two stages. First, we collect student rollouts before OPD and truncate them at randomly sampled positions to obtain prefixes of varying lengths. We then adapt the teacher using RLVR to continue from these prefixes, with final-answer correctness as the reward. Through this pre-OPD adaptation, the teacher learns to generate correct solutions conditioned on student-generated prefixes and can thus provide more reliable supervision on these prefixes. Second, we freeze the adapted teacher and use it to provide token-level supervision on student rollouts, keeping the OPD objective unchanged.

Across five mathematical reasoning benchmarks, a single adaptation round improves mean student accuracy in all three teacher–student pairings we evaluate. In the two pairings that include a task-level RLVR control, prefix-conditioned adaptation yields the stronger student under matched teacher optimization schedules, which indicates that the gain comes from where the teacher is optimized rather than from how much extra training it receives. The effect is largest where it matters most: in one pairing, OPD with the original teacher improves the student by a mere 0.62 points over no distillation at all, and prefix adaptation is what converts this stalled pipeline into a 3.65-point gain. A second adaptation round pushes the Qwen3-4B student further still, at the cost of one more round of training. Taken together, these results suggest that teachers should be prepared not only to solve problems on their own, but also to give reliable guidance on the states their students actually visit.

In summary, the major contributions of this paper are as follows:

  1. We show that standalone problem-solving performance is insufficient to assess a teacher's effectiveness on student-generated prefixes, highlighting prefix-conditioned performance as an important consideration for teacher adaptation in OPD.

  2. We introduce SPTA, which directly optimizes the teacher on student-generated prefixes using RLVR and then uses the adapted teacher for standard OPD, keeping the distillation objective unchanged.

  3. Across five mathematical reasoning benchmarks and three teacher–student pairings, SPTA significantly improves average student accuracy over standard OPD. Comparisons under matched teacher optimization schedules further show that prefix-conditioned adaptation yields stronger students than task-level adaptation.

References (40)