Source-linked AI summary

Order-Only On-Policy Distillation

Guangzeng Han, Yu Wu, Xiaolei Huang

arXiv:2611.02112v1cs.LGcs.CL

TL;DR

On-policy distillation matches teacher probabilities, which combine token preferences with confidence and create temperature sensitivity. O3PD instead transfers the teacher’s top-K order at student-generated prefixes; across six configurations, it outperforms OPD on the three-benchmark average in every pair.

  • Problem

    On-policy distillation matches teacher probabilities that combine token preferences with confidence, which a smaller student may not reproduce, and temperature changes the targets without changing their ordering.

    Source: §1 · p. 2, §3.1 · p. 4
  • Method

    O3PD trains the student on its own prefixes to reproduce the teacher’s top-K token order without matching probability values.

    Source: §1 · p. 2
  • Results

    Across six Qwen3 configurations, O3PD outperforms OPD on the HMMT25, AIME24, and AIME25 average in every pair, by up to 2.9 points.

    Source: §1 · p. 2, §4.2 · p. 6
  • Takeaways & Limitations

    O3PD reproduces the teacher’s ranking and candidate set more faithfully than OPD despite departing further from its probability values.

    Source: §1 · p. 2, §6 · p. 9

    Experiments are restricted to mathematical reasoning and do not evaluate effects on safety alignment or other open-ended generation behaviors.

    Source: ETHICS STATEMENT · p. 10

Abstract

from arXiv · show

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.

1 INTRODUCTION

The paper argues that probability matching makes on-policy distillation reproduce teacher confidence as well as token preferences, and asks whether ranking alone is sufficient. It introduces O3PD and reports stronger results than OPD across six teacher–student configurations.

1 INTRODUCTION

  • Teacher probabilities mix token preferences with confidence, which a smaller student may struggle to reproduce; OPD is also temperature-sensitive and can fall below the base model during training.The best OPD temperature differs across teacher–student pairs.Source: §1 · p. 2
  • The paper distinguishes token choice, token ranking, and token probabilities, arguing that ranking carries the useful distillation knowledge while probability values constrain the student.Sequence KD imitates the sampled token, while distribution-matching methods reproduce probabilities.Source: §1 · p. 2
  • O3PD trains on student-generated prefixes by ordering the teacher’s top-K tokens with adjacent ranking constraints, without fitting their probability values.Because positive temperature scaling preserves order, O3PD needs no teacher-temperature tuning.Source: §1 · pp. 2–3
  • Across six Qwen3 pairs, O3PD beats OPD on the three-benchmark average in every pair by up to 2.9 points, improves AIME25 by up to 5.6 points, and exceeds SFT and GRPO.The benchmarks are HMMT25, AIME24, and AIME25.Source: §1 · pp. 2–3
  • O3PD matches the teacher’s ranking more faithfully than OPD despite matching its probabilities less, and lets the student move further from initialization, especially at the smallest scale.O3PD continues improving through training while OPD peaks early and declines.Source: §1 · p. 2

2 RELATED WORK

Related work varies both the states used for supervision and the teacher information transferred at each state. O3PD retains student-generated states while replacing probability targets with the teacher’s top-K ordering.

2 RELATED WORK

  • Knowledge distillation can be viewed along two axes: where supervision is applied and what teacher information is transferred.Earlier methods often use fixed sequences, creating a train–inference mismatch because students later condition on their own generations.Source: §2 · p. 3, §2.1 · p. 3

2.1 LLM DISTILLATION: FROM TEACHER STATES TO STUDENT STATES

  • On-policy methods query teachers on student-generated states, but prior approaches generally retain probability distributions as per-state targets; O3PD changes that target to a ranking.Some methods alter states, divergences, trajectory construction, or data schedules instead.Source: §2.1 · p. 3

2.2 DISTILLATION BEYOND PROBABILITY MATCHING

  • Score-based relaxations such as standardization and DIST still depend on continuous scores, while ordinal targets preserve preferences under strictly increasing transformations.Prior ranking methods may retain KL or confidence weighting, or use fixed-label or fixed-pool settings; O3PD ranks changing candidate sets at student-generated states.Source: §2.2 · p. 3
  • Figure 2 presents adjacent logistic loss as O3PD’s default, while other order-only objectives can replace it.The paper contrasts this order-only target with prior methods that retain probability or confidence information.Source: §2.2 · p. 3, Figure 2 · p. 4

3 ORDER-ONLY ON-POLICY DISTILLATION

O3PD transfers the teacher’s candidate-token ordering on student-generated contexts, rather than fitting probability magnitudes. It uses adjacent comparisons to impose that order and extends the order-only principle to alternative ranking objectives.

3.1 FROM SEQUENCE AND DISTRIBUTION TARGETS TO ORDINAL SUPERVISION

  • Distribution matching ties candidate order to probability strength, whereas O3PD uses the teacher’s top-K candidates and ordering without fitting probability magnitudes.This retains on-policy supervision on contexts encountered by the current student and makes the objective invariant to positive temperature scaling and other strictly increasing score transformations.Source: §3.1 · pp. 4–5

3.2 LEARNING THROUGH ADJACENT COMPARISONS

  • O3PD trains on adjacent teacher-ranked candidates using the student’s pairwise preference, with the logit difference determining that preference.The K−1 adjacent inequalities recover the full order by transitivity, using fewer comparisons than the K(K−1)/2 all-pairs relations.Source: §3.2 · p. 5

3.3 ORDER-ONLY AS A DISTILLATION PRINCIPLE

  • Order-only supervision is a principle: objectives can vary in which comparisons they use or impose the ranking pairwise versus as a whole.Logistic uses all pairs, Top-Weighted Logistic emphasizes higher-ranked candidates, and ListMLE imposes the order over the full list.Source: §3.3 · pp. 5–6, Table 2 · p. 5

4 EXPERIMENTS

Across six teacher–student configurations, O3PD improves the three-benchmark average over OPD, with larger gains generally among smaller students. The experiments compare methods under matched configurations and test training dynamics, teacher temperature, ranking losses, and candidate-list sizes.

4.1 EXPERIMENTAL SETUP

  • The setup pairs each Qwen3 student with every larger teacher, freezes the teacher, and trains on OpenThoughts mathematical reasoning data.Evaluation uses HMMT25, AIME24, and AIME25; Avg@12 averages final-answer accuracy over 12 responses per problem.Source: §4.1 · p. 6

4.2 MAIN RESULTS

  • For 8B→1.7B, O3PD reaches 40.7 at the final step while OPD peaks at 38.1 and then falls below the 37.7 base student.On AIME25, O3PD rises from 35.6 to 43.1 while OPD falls back to its starting point.Source: §4.2 · p. 6, Figure 3 · p. 8
  • O3PD raises Avg@12 over OPD in all six teacher–student configurations: +0.6 for the 8B student, +2.3/+1.9 for 4B, +2.6/+2.9 for 1.7B, and +0.3 for 14B→1.7B.It also exceeds the base model, SFT, and GRPO in average score in every configuration.Source: §4.2 · p. 6, Table 3 · p. 7
  • Best-checkpoint selection does not explain the gains: the end-of-training gap exceeds the 2.6-point gap between the methods’ best checkpoints.OPD peaks early and declines, whereas O3PD continues improving in the 8B→1.7B training curve.Source: §4.1 · p. 6, §4.2 · p. 7, Figure 3 · p. 8
  • O3PD with a smaller teacher beats OPD with a 14B teacher: 40.9 vs. 39.1 for the 1.7B student, and 63.2 vs. 60.9 for the 4B student.The reported comparisons show stronger distillation with a cheaper teacher in these configurations.Source: §4.2 · p. 7
  • OPD’s best temperature varies by pair, and temperature choice alone shifts HMMT25 accuracy by up to 6.4 points; O3PD’s top-K order is unchanged for T > 0.For 8B→4B, OPD scores 44.7 at T = 1 versus 38.3 at T = 8.Source: §4.2 · p. 7

4.3 ABLATION STUDY

  • All tested ranking losses beat OPD by 1.3 to 2.6 points at K = 8; adjacent logistic and ListMLE perform within 0.1 points of each other.Adjacent Logistic supervises 7 of 28 pairs; transitivity makes those adjacent relations sufficient to fix the full ranking.Source: §4.3 · p. 7, Table 4 · p. 8
  • All tested candidate-list sizes beat OPD by 1.6 to 2.6 points, with K = 8 best and K = 4 and K = 16 not far behind.The ablation tests candidate-set size on the 8B→1.7B pair.Source: §4.3 · p. 8, Table 4 · p. 8

5 ANALYSIS

The analysis examines both what ordinal supervision transfers from the teacher and how it reshapes the student relative to its initialization. It finds that O3PD tracks the teacher’s ordering and candidate set more closely than OPD, while changing the student’s distance from its initialization differently across model sizes.

5.1 LEARNING THE TEACHER’S ORDER, NOT ITS PROBABILITIES

  • Agreement is measured on student-generated responses using probability divergence, ordering, candidate overlap, top-token agreement, and student entropy.JSD@Top-8 compares renormalized distributions restricted to the models’ top-8 tokens.Source: §5.1 · p. 8
  • O3PD achieves higher Kendall’s τ for most of training and ends above OPD, keeps top-8 overlap higher at nearly every evaluation, and has comparable top-1 agreement.Its JSD is consistently higher, while student entropy stays above OPD throughout training.Source: §5.1 · pp. 8–9, Figure 5 · p. 9

5.2 RESHAPING THE STUDENT

  • For the 1.7B student, O3PD checkpoints move several times farther from initialization than OPD; at 4B the distances are comparable, and at 8B OPD moves farther.Across student sizes, O3PD checkpoints remain farther from the teacher’s probabilities than OPD checkpoints.Source: §5.2 · p. 9
  • A smaller student may be unable to reproduce a much larger teacher’s probability values, while ordinal supervision lets it restructure its distribution if it preserves the teacher’s candidate ordering.The smallest student makes the most use of this freedom.Source: §5.2 · p. 9

6 CONCLUSION

O3PD trains students to reproduce the teacher’s top-K token ranking without matching its probability values, making the objective invariant to teacher temperature and eliminating temperature tuning. Across six Qwen3 configurations it outperforms OPD on the three-benchmark average in every configuration; the analysis finds stronger ranking agreement despite greater probability divergence.

  • O3PD trains students to reproduce the teacher’s top-K token ranking without matching probability values, making it invariant to teacher temperature and requiring no temperature tuning.Source: §6 · p. 9
  • O3PD outperforms OPD on the three-benchmark average in all six Qwen3 teacher–student configurations and also exceeds SFT and GRPO.On the 8B→1.7B pair, O3PD keeps improving where OPD degrades.Source: §6 · p. 9
  • O3PD reproduces the teacher’s ranking and candidate set more faithfully than OPD despite departing further from its probability values; other ranking objectives such as ListMLE also perform well.Source: §6 · p. 9

ETHICS STATEMENT

The work uses publicly released Qwen3 models and public mathematical-reasoning data, and does not involve human subjects, user data, or personally identifiable information.

  • The work does not involve human subjects, user data, or personally identifiable information.Source: ETHICS STATEMENT · p. 10
  • Experiments use publicly released Qwen3 models, OpenThoughts mathematical-reasoning data, and HMMT25, AIME24, and AIME25 problems, under their respective licenses.Source: ETHICS STATEMENT · p. 10
  • Evaluation is restricted to mathematical reasoning and does not assess ordinal distillation’s effects on safety alignment or other open-ended-generation behaviors.Source: ETHICS STATEMENT · p. 10

REPRODUCIBILITY STATEMENT

The paper specifies O3PD’s objective and training iteration, documents experimental settings, and identifies the public models, data, benchmarks, and evaluation protocol used.

  • O3PD’s objective is specified in Section 3, and Algorithm 1 provides pseudocode for one training iteration.Source: REPRODUCIBILITY STATEMENT · p. 10
  • Appendix A lists training and evaluation hyperparameters, including LoRA configuration, rollout length, candidate-set size, decoding parameters, and random seeds.Figure 6 gives the prompt template used for training rollouts and evaluation; the OPD baseline shares the setup.Source: REPRODUCIBILITY STATEMENT · p. 10
  • The models, training data, and evaluation benchmarks are publicly available, and the protocol specifies Avg@12 over three seeds and answer extraction from \boxed{}.Source: REPRODUCIBILITY STATEMENT · p. 10

A EXPERIMENTAL SETUP

Training uses LoRA with shared top-8 teacher candidates and evaluates checkpointed models using Avg@12. Training rollouts and evaluation use a shared prompt that requests step-by-step reasoning and a boxed final answer.

A.1 HYPERPARAMETERS

  • Students are fine-tuned with LoRA for 100 steps at effective batch size 32; rollouts are limited to 1,024 tokens, and both methods use the teacher’s top-8 candidates at each prefix.Checkpoints are evaluated every 20 steps; Avg@12 uses four samples per problem under each of three seeds.Source: §A.1 · p. 13, Table 5 · p. 14

A.2 PROMPT TEMPLATE

  • The shared prompt asks models to reason step by step and put the final answer in \boxed{}, which is extracted for scoring.Figure 6 identifies the prompt template and notes that {problem} is replaced with the problem statement.Source: §A.2 · p. 13, Figure 6 · p. 13

A.3 TRAINING PROCEDURE

O3PD trains on student-generated responses by querying the teacher at each prefix and updating the student with an adjacent ranking loss. Training uses Transformers and evaluation uses vLLM on NVIDIA H100 GPUs.

A.3 TRAINING PROCEDURE

  • At every prefix of a student-sampled response, the teacher supplies its top-K tokens in descending probability order; the student is updated using averaged pairwise logistic terms over positions and adjacent pairs.Teacher probabilities select and order candidates but do not appear in the loss.Source: §A.3 · p. 14

A.4 INFRASTRUCTURE

  • Training uses Transformers and evaluation uses vLLM on NVIDIA H100 GPUs.Source: §A.4 · p. 15

B TEACHER TEMPERATURE SENSITIVITY OF OPD

Standard OPD is sensitive to teacher temperature, with the best setting varying across teacher–student pairs. O3PD avoids temperature selection because its ranking targets remain identical for every positive temperature.

B TEACHER TEMPERATURE SENSITIVITY OF OPD

Loading 2611.02112v1…