arXiv:2611.02112cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02112

Order-Only On-Policy Distillation

Guangzeng Han, Yu Wu, Xiaolei Huang

ABSTRACT

On-policy distillation (OPD) trains a student on its own generations by matching the teacher's token probabilities. These probabilities entangle two kinds of information: which tokens the teacher prefers, and how confident it is. The latter reflects the teacher's own capacity and calibration, which a smaller student may be unable to reproduce. Because the teacher temperature changes these values without changing the ordering, OPD is also sensitive to the temperature choice. We ask whether the teacher's ordering of candidate tokens is enough, and propose Order-Only On-Policy Distillation (O³PD). At each student-generated prefix, O³PD trains the student to reproduce the order of the teacher's top-KK tokens, without fitting their probability values. The objective is therefore invariant to the teacher temperature and needs no temperature tuning. Across six teacher–student pairs, O³PD outperforms OPD on the average over HMMT25, AIME24, and AIME25 in every pair, by up to 2.9 points, with gains of up to 5.6 points on AIME25. Other ranking losses yield similar gains, so the benefit comes from ordinal supervision itself. Analysis shows that O³PD departs further from the teacher's probabilities than OPD, yet reproduces its ranking more faithfully and yields a stronger student. The ranking, not the probability values, thus carries the knowledge that on-policy distillation needs to transfer.

1 INTRODUCTION

Knowledge distillation (KD) transfers the capabilities of a strong teacher model to a weaker student. Hinton et al. (2015) showed that the teacher's full output distribution, rather than a single hard label, is what makes this transfer effective: the probabilities assigned to competing outputs encode relationships that a hard label cannot express. This insight made distribution matching the default recipe for distillation. The student is trained to reproduce not only which output the teacher prefers, but also the exact probability that the teacher assigns to every alternative.

For autoregressive language models, the contexts in which supervision is given matter as much as the supervision itself. Sequence-level distillation trains the student with supervised fine-tuning (SFT) on teacher-generated responses (Kim & Rush, 2016). This recipe has two weaknesses. Each position supplies a single target token, so the teacher's preferences over alternatives are lost. In addition, the student is trained on teacher-generated prefixes but generates from its own prefixes at inference time, so its errors lead it into contexts it has never been trained on. On-policy distillation (OPD) removes this mismatch by querying the teacher on student-generated trajectories

(a) Supervision Granularity

Figure

(b) Learning Objectives

Figure 1: (a) Three nested levels of teacher supervision. (b) The corresponding objectives.

ries and training the student to match the teacher's token distribution at the states it actually visits (Gu et al., 2024; Agarwal et al., 2024). OPD has since become a standard approach for distilling reasoning models (Yang et al., 2025; Zhao et al., 2026).

Matching probabilities, however, asks the student for more than it needs. The teacher's probability values mix two kinds of information: which tokens it prefers, and how confident it is in that preference. The first is what the student must acquire to reason like the teacher. The second reflects the teacher's own capacity and calibration, which a much smaller student may be unable to reproduce (Cho & Hariharan, 2019; Mirzadeh et al., 2020; Fan et al., 2024). A distribution-matching objective penalizes every deviation from these values, so the student spends much of its capacity fitting a confidence profile that it cannot reach. The problem shows up clearly in practice. OPD is highly sensitive to the teacher's logit temperature, and the best temperature differs from one teacher-student pair to another (Figure 7). Moreover, OPD can degrade the student as training continues, falling below the base model it started from (Figure 3). These observations raise a basic question: does on-policy distillation need the teacher's probabilities at all, or is the teacher's ordering of candidate tokens enough?

We answer this question by separating three nested levels of teacher supervision: token choice, token ranking, and token probabilities (Figure 1a). A sampled target reveals a single choice. A ranked candidate list reveals which tokens the teacher considers plausible and in what order it prefers them. A probability distribution additionally fixes a numerical confidence for each token. Existing objectives occupy the two ends of this hierarchy (Figure 1b). Sequence KD imitates only the realized token, while logit KD, including distribution-matching OPD, matches the full probability distribution. Soft-target distillation shows that information about alternatives matters, but it does not show that their exact probabilities must be transferred. We argue that the middle level, namely the teacher's ranking, carries the knowledge that matters for distillation, and that the remaining probability values act as a constraint rather than a signal.

Building on this view, we propose Order-Only On-Policy Distillation (O³PD). At each student-generated prefix, the teacher selects its top-KK tokens and orders them by probability. The student is then trained with an adjacent logistic ranking loss, which requires each candidate to score higher than the next one in the teacher's order. The teacher's probabilities decide which candidates are selected and how they are ordered, but their values never enter the loss. The K−1K-1 adjacent constraints determine the complete ranking through transitivity, so O³PD transfers the full teacher order with a minimal set of constraints while leaving the student free to set its own probability values. Because dividing logits by a positive temperature does not change their order, O³PD is invariant to the teacher temperature by construction and needs no temperature tuning. Ordinal and relational supervision have been studied in classification distillation and in learning to rank (Huang et al., 2022; Reddi et al., 2021; Guan et al., 2025; Li & Cheng, 2026; Bassam et al., 2025), but typically alongside KL terms or confidence weights, and over fixed label sets with ground-truth labels. O³PD uses the teacher's order as its only signal and applies it to on-policy distillation of autoregressive models, where the candidate list is rebuilt by the teacher at every student-generated prefix.

We evaluate O³PD on six Qwen3 teacher-student configurations and three competition-level mathematics benchmarks: HMMT25, AIME24, and AIME25. Against an OPD baseline, O³PD improves the three-benchmark average in all six configurations, by up to 2.9 points. It improves AIME25 in every configuration, by as much as 5.6 points, and it outperforms SFT and GRPO at every student scale. O³PD also trains stably: while OPD peaks early and then declines, O³PD keeps improving until the end of training. Our analysis explains where these gains come from. O³PD agrees less with the teacher's probability values than OPD does, yet it reproduces the teacher's token ordering and candidate set more faithfully. It also moves the student much further from its initialization, most strongly for the smallest student, which is also the student that gains the most. Probability matching thus holds the student close to its starting point, whereas ordinal supervision lets the student reshape its distribution in the direction the teacher's preferences indicate.

Our contributions are as follows:

  • We identify probability matching as an unnecessary constraint in on-policy distillation. We separate the teacher's token ordering from its probability values and show that the ordering alone provides a stronger training signal.

  • We introduce O³PD, which trains the student to reproduce the teacher's top-KK token order, by default through adjacent pairwise constraints. O³PD is invariant to the teacher

temperature, requires no temperature tuning, and remains effective across different ranking objectives.

  • We show that O³PD outperforms OPD on the three-benchmark average in all six teacher-student configurations and exceeds SFT and GRPO in every configuration. Through analysis, we show that O³PD learns the teacher's ranking rather than its probabilities, and that it allows the smallest student to move substantially further from its initialization.

References (38)