Manuscript Offprint

arXiv:2610.28048

On-Policy Transition Distillation

Runyang You, Yongqi Li, Tiezheng Yu, Wenjie Li

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

Abstract

On-policy distillation (OPD) consolidates expert capabilities into a single student by matching teacher and student final-layer distributions on student-generated rollouts. We investigate whether depthwise prediction transitions, the changes in predictions between layers, can provide additional task-relevant supervision. Our diagnostic study finds that stronger teacher–student agreement in intermediate transitions is associated with higher answer correctness within questions, with correct responses exhibiting lower mean transition KL across all measured intermediate layer pairs. These observations motivate On-Policy Transition Distillation (OPTD), which augments final-layer distribution matching by aligning teacher and student layer-to-layer log-probability increments on student-generated rollouts. Evaluations across three backbones and eight benchmarks spanning mathematics, coding, and instruction following show that OPTD achieves the best or tied-best overall performance in both dual- and three-domain distillation. In the three-domain setting, OPTD recovers ≈\approx 90% of the overall teacher–student capability gap, compared with ≈\approx 75% for OPD.

Project Page: https://github.com/ModalityDance/optd

(a) On Policy Distillation

Figure

(b) On Policy Transition Distillation

Figure

Figure 1: On-policy transition distillation. (a) Standard OPD aligns only the final-layer predictions of the student and teacher. (b) OPTD additionally aligns their prediction transitions across selected layer segments, transferring how predictions are refined with depth.

1 Introduction

On-policy distillation (OPD) has emerged as a core post-training recipe for consolidating specialized capabilities from expert teachers into a unified student, as exemplified by DeepSeek-V4 and GLM-5 [1, 2]. Specifically, it applies dense supervision at every token position of a student-generated rollout by comparing the teacher's and student's distributions conditioned on the same prefix, and uses the resulting KL-derived token-level reward to guide policy distillation [3]. Grounding supervision in the student's own rollouts, OPD alleviates exposure bias [4], mitigates catastrophic forgetting [2], and learns with substantially fewer samples than outcome-reward RL [5].

OPD methods typically transfer knowledge by solely aligning the student's final-layer prediction distribution with those of the teacher. The final-layer distribution, however, represents only the endpoint of the teacher's decision process. Recent studies show that these predictions develop through successive prediction revisions across depth: early layers can favor statistical guesses that deeper layers refine as contextual infor-

†^{\dagger}Corresponding author.

mation develops [6, 7]. Layer-contrastive decoding further demonstrates that differences between predictions across depths, which we term depthwise prediction transitions, can be exploited to improve generation factuality [8]. This raises a natural question: can such transitions provide additional task-relevant guidance for on-policy distillation?

To answer this question, we start by comparing teacher–student agreement on correct and incorrect student-generated responses, and found that stronger teacher–student agreement in intermediate prediction transitions is associated with higher answer correctness, while final-layer agreement exhibits the opposite trend (Fig. 2(a)). This correctness-related pattern extends across all measured intermediate layer pairs: correct responses exhibit lower mean transition KL, with larger relative gaps for transitions involving middle-to-late layers (Fig. 2(b)). Together, these findings motivate distilling the teacher’s internal predictive changes alongside its final output distribution.

We therefore propose On-Policy Transition Distillation (OPTD), which complements final-layer supervision with alignment of teacher–student predictive transitions on student-generated rollouts, as illustrated in Fig. 1(b). Rather than aligning only the final-layer distributions as in Fig. 1(a), OPTD examines the prediction changes between selected anchor layers for the same student-visited prefix. For each candidate token, these changes are represented by the layer-to-layer increment in its log probability, capturing both the direction and magnitude of the prediction revision across depth. We then compare the teacher's and student's increments and use their discrepancy as a reward alongside the final-layer OPD objective, encouraging agreement with the teacher's predictive changes on the same student-generated trajectory.

Evaluations across three model backbones, three domains, and eight benchmarks show that OPTD achieves the best or tied-best overall performance in both dual-and three-domain distillation. Under matched training budgets, it consistently improves overall performance over standard OPD across all evaluated backbones and domain settings, supporting the joint transfer of heterogeneous specialist capabilities into a single student. In the three-domain setting, OPTD recovers ≈\approx 90% of the overall teacher–student capability gap, compared with ≈\approx 75% for OPD (Tab. 2). Internal diagnostics further show that transition supervision improves alignment with the teacher across depth, including intermediate-layer predictions and the final output.

Our contributions are threefold:

• We characterize the relationship between teacher–student agreement and answer correctness across model depth, identifying a correctness-related pattern in intermediate predictive transitions that motivates transition-based supervision.

• We propose On-Policy Transition Distillation (OPTD), which transfers the teacher’s depthwise prediction refinement by aligning the direction and magnitude of cross-layer prediction increments on student-generated rollouts.

• We demonstrate that OPTD achieves optimal overall performance in both dual- and three-domain distillation, consistently improving over OPD across backbones and domain settings.

References (25)