Order-Only On-Policy Distillation

Guangzeng Han, Yu Wu, Xiaolei HuangarXiv 2026

TL;DR

Standard on-policy distillation fails when small student models struggle to mimic the exact confidence levels of massive teachers. This paper proposes Order-Only On-Policy Distillation ($O^3PD$), a method that ignores probability values entirely and trains students solely to reproduce the teacher's ranking of top tokens. This approach is temperature-invariant, more stable to train, and consistently produces stronger reasoning models across competitive math benchmarks.

What Problem Does This Paper Address?

Knowledge Distillation (KD) is the standard way to shrink a massive "teacher" model into a nimble "student." Traditionally, this involves "distribution matching": the student tries to replicate the exact probability the teacher assigns to every possible next token.

However, the authors identify a fundamental flaw in this "cardinal" approach. A teacher's probability distribution entangles two distinct signals:

  1. Preference: Which tokens are better than others?
  2. Confidence: How sure is the teacher about that choice?

Smaller students often lack the capacity to reproduce the high-confidence "spiky" distributions of a 14B or 70B parameter teacher. When we force a 1.7B student to match those exact values, it wastes its limited capacity trying to mimic a confidence profile it can't reach, often leading to unstable training or performance degradation. Furthermore, these probabilities are highly sensitive to "temperature" settings, requiring tedious hyperparameter tuning.

Methods

The authors introduce Order-Only On-Policy Distillation ($O^3PD$). Instead of matching the teacher's "cardinal" probability values, the student only learns the "ordinal" ranking of the teacher's top-$K$ tokens.

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

Key Innovations:

  • On-Policy Training: The student generates its own reasoning trajectories. The teacher then looks at the student's prefixes and tells the student how it should have ranked the next possible tokens at that specific state.
  • Adjacent Logistic Ranking Loss: By default, $O^3PD$ uses a loss that only requires the student to rank token $i$ higher than token $i+1$ from the teacher's preferred list. This provides a minimal set of constraints that, through transitivity, enforces the full ranking.
  • Temperature Invariance: Because changing the teacher's logit temperature doesn't change the order of tokens, $O^3PD$ is mathematically invariant to temperature. This eliminates a major hyperparameter from the distillation pipeline.
Figure 2: Overview of O3PD. The figure shows the default adjacent logistic loss, any other order- only objective can take its place (Section 3.3).

Datasets

The models were trained and evaluated on challenging mathematical reasoning tasks:

  • Training: A mathematical reasoning subset of the OpenThoughts dataset.
  • Evaluation: Three competition-level benchmarks: HMMT25, AIME24, and AIME25.
  • Models: The authors used the Qwen3 family, testing six different teacher-student pairs (ranging from 1.7B to 14B parameters).

Key Insights and Ideas

  • The "Aha" Moment: The ranking, not the probability values, carries the essential knowledge for reasoning. By relaxing the constraint to match exact probabilities, the student is "freed" to restructure its own internal distribution in a way that suits its smaller capacity while still following the teacher's logic.
  • Reshaping the Student: Analysis showed that $O^3PD$ allows the student to move significantly further from its initial state than standard distillation. Probability matching acts like a tether, holding the student too close to its starting point because it's preoccupied with fitting the teacher's confidence profile.
  • Stability over Time: Standard On-Policy Distillation (OPD) often peaks early and then crashes as it overfits to the teacher's distribution. $O^3PD$ shows a much steadier improvement curve, continuing to get better throughout the entire training run.

Key Results

$O^3PD$ consistently outperformed standard OPD across all tested configurations:

  • Performance Gains: On average, $O^3PD$ improved scores by up to 2.9 points over the baseline. On the difficult AIME25 benchmark, gains reached as high as 5.6 points.
  • Efficiency: An $O^3PD$ student trained by a smaller teacher (e.g., 4B) often outperformed an OPD student trained by a larger teacher (e.g., 14B).
  • Baselines: $O^3PD$ also exceeded other popular methods like Supervised Fine-Tuning (SFT) and Group Relative Policy Optimization (GRPO) at every student scale.
Figure 3: Performance curve of OPD and O3PD for the 8B→1.7B pair. Avg@12 is evaluated every 20 training steps; step 0 is the base student.

Limitations and Future Work

  • Domain Specificity: The study focused exclusively on mathematical reasoning. It remains to be seen if "order-only" signals are sufficient for more subjective tasks like creative writing or safety alignment.
  • Top-K Focus: The method only looks at the top-$K$ (usually 8) tokens. While these are the most important for decoding, the "long tail" of the distribution is ignored, which might contain subtle relational information.
  • Future Directions: The authors suggest exploring different ranking objectives (like ListMLE) and applying this principle to other modalities or even larger-scale distillation tasks.

Summary updated

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$^{3}$PD). At each student-generated prefix, O$^{3}$PD trains the student to reproduce the order of the teacher's top-$K$ 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$^{3}$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$^{3}$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.
BibTeX
@misc{han2026order,
  author = {Guangzeng Han and Yu Wu and Xiaolei Huang},
  title = {{Order-Only On-Policy Distillation}},
  year = {2026},
  eprint = {2611.02112},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.02112},
}
Figure