arXiv(opens in a new tab)cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.08337

Distillation as Probability Transport: Routed On-Policy Distillation

Tianle Xia, Lingxiang Hu, Yiding Sun, Linfang Shang, Ming Xu, Lan Xu, Ning Zheng, Wei Xu, Jie Jiang

Abstract

On-policy distillation (OPD) transfers teacher knowledge on student-generated trajectories, but efficient sampled objectives reduce the teacher distribution to scalar credit on individual tokens. Such credit indicates whether a token should gain or lose probability, yet leaves the corresponding redistribution unspecified. We recast OPD as teacher-guided probability transport and propose RouteOPD (Routed On-Policy Distillation), which decomposes local teacher-student disagreement into student-excess sources and teacher-deficit destinations and couples them into explicit transport pairs. RouteOPD optimizes pairwise log-odds toward jointly realizable targets obtained from a bounded teacher potential, while adapting the transport budget to the concentration of teacher demand. This formulation directs updates toward teacher-preferred destinations and controls their magnitude within a single transport operator. Experiments across four teacher-student settings and four mathematical-reasoning benchmarks demonstrate that RouteOPD consistently outperforms sampled reverse-KL OPD, with improvements accompanied by higher routing fidelity and lower background leakage. These results demonstrate the effectiveness of explicitly modeling probability transport in on-policy distillation.

1 Introduction

On-policy distillation (OPD) has emerged as an effective post-training paradigm for transferring reasoning capabilities between language models (Agarwal et al. 2024; Team 2025). Unlike offline distillation, which supervises a student on fixed teacher or corpus trajectories (Hinton, Vinyals, and Dean 2015; Kim and Rush 2016), OPD samples from the student and queries the teacher at the resulting states. It therefore combines on-policy state coverage with temporally dense teacher feedback, reducing the state-distribution mismatch induced by fixed histories (Ross, Gordon, and Bagnell 2011; Bengio et al. 2015) without relying only on sparse outcome rewards (Xia et al. 2026). This combination is especially attractive for long-horizon mathematical reasoning, where an early mistake changes every subsequent state and final-answer feedback gives little information about which local decisions should be corrected. Yet this advantage raises a more basic question: when the teacher prescribes a categorical distributional correction, is scalar credit on an individual token sufficient to specify how the student policy should change?

Figure

Figure 1: RouteOPD replaces implicit redistribution with teacher-guided transport, improving average reasoning accuracy and routing fidelity while reducing leakage.

An efficient and common instantiation of OPD, however, leaves each update structurally under-specified. Although the teacher provides a categorical distribution over the vocabulary, a sampled objective exposes one student action and one scalar credit at a visited state. This scalar can indicate whether the sampled token should be encouraged or suppressed, and with what strength. Yet a normalized categorical policy cannot change one probability in isolation: suppressing one token releases mass that must be assigned elsewhere, while increasing one token must draw mass from other alternatives. Thus, scalar credit is not a transport plan. It explicitly identifies at most one side of a redistribution, even though the teacher distribution provides evidence about both student-excess sources and teacher-deficit destinations.

This distinction matters because the missing route is not neutral: it is filled in by student softmax geometry. For logits zz and a sampled token aa, ∇zlog⁡πθ(a∣s)=ea−πθ(⋅∣s)\nabla_z \log \pi_\theta(a \mid s) = \mathbf{e}_a - \pi_\theta(\cdot \mid s). Consequently, a negative credit suppresses aa but produces a direct background logit update over every non-source token, weighted by the student's current probabilities. Even when a scalar estimator recovers a dense objective in expectation, each realized stochastic update still delegates this unspecified redistribution to the student geometry. It can therefore favor alternatives that are already common under the student but exhibit no teacher deficit. Sampled OPD may estimate how strongly to correct a realized action while remaining incomplete about which alternatives should receive that correction. This per-update under-specification motivates explicit control over both sides of the redistribution.

We introduce RouteOPD (Routed On-Policy Distillation), illustrated in Figure 2, to replace implicit redistribution with explicit, teacher-guided probability transport. RouteOPD treats teacher–student disagreement as a local conservation problem: probability removed from student-excess tokens should be reassigned to teacher-deficit tokens. At each student-visited state, it constructs a detached union of teacher and behavior-student top-kk tokens, then decomposes the normalized disagreement into excess source mass and deficit destination mass. Because both distributions are normalized on the common union, the two masses have equal totals; normalizing them yields the source and destination marginals. We connect these marginals with their independent product coupling—the maximum-entropy coupling under fixed marginals. Sampling this coupling produces explicit source-destination routes without materializing a dense quadratic coupling.

For each sampled route (a,b)(a,b), RouteOPD learns the teacher-implied change in pairwise log-odds. The identity ∇z[log⁡πθ(b∣s)−log⁡πθ(a∣s)]=eb−ea\nabla_z[\log \pi_\theta(b \mid s) - \log \pi_\theta(a \mid s)] = \mathbf{e}_b - \mathbf{e}_a cancels the shared log-softmax background and gives zero direct gradient to unrelated logits. The realized direct logit update is therefore localized to the specified source and destination rather than spread across the student's background alternatives. This direct-logit locality complements the probability-level leakage measurements, which also capture softmax normalization and shared-parameter effects.

Multiple sampled routes create a separate consistency challenge. Independently clipping each edge target can violate cycle consistency, so the resulting pairwise demands need not correspond to any jointly realizable set of token scores. RouteOPD instead derives every target as the difference of one bounded teacher potential evaluated at its destination and source. This shared construction makes all pair targets cycle-consistent and jointly realizable. We adapt the potential range using the concentration of teacher-deficit demand: concentrated demand identifies clearer destinations and permits a wider correction budget, whereas diffuse demand yields a more conservative update. The resulting operator specifies source, destination, and magnitude, reuses the scored teacher distribution, and adds only O(k+m)O(k+m) routing overhead after top-kk extraction.

Experiments across four teacher–student settings and four mathematical-reasoning benchmarks establish the effectiveness of explicit routing. Relative to sampled reverse-KL OPD, adaptive RouteOPD improves the four-benchmark average by 2.19–3.61 points across settings, with a mean gain of 2.70 points; paired evaluation intervals over matched problems and samples remain strictly above zero. It exceeds full-vocabulary reverse KL by 1.24 points on average, showing that the gain is not explained merely by access to dense teacher scores, and exceeds fixed-mid routing by 1.20 points, isolating the benefit of adaptive budgeting. The improvement is not a weak-student floor effect: for the strong OpenMath-Nemotron student, the average rises from 79.73 under sampled-RKL to 83.34 under RouteOPD.

Matched interventions support the proposed transport mechanism rather than an unexamined change of loss scale. Holding source identity, target magnitude, coupling weight, and nominal budget fixed, random-background and rank/frequency-matched destinations obtain 62.72 and 63.72 Avg@16, whereas teacher-deficit destinations reach 64.43. On the same frozen diagnostic bank, RouteOPD raises routing fidelity from 35.4% for sampled-RKL to 90.4% and reduces full-vocabulary background leakage from 68.3% to 13.8%. Destination identity therefore changes both the direction of the realized redistribution and downstream reasoning accuracy, forming the causal link predicted by the transport view.

Further controls validate the remaining design choices and their practical cost. Independent edge clipping produces 27.6% cycle violations, while the shared potential eliminates these violations, confirming that its pair targets are jointly realizable. Adaptive budgeting outperforms fixed-low, fixed-mid, fixed-high, and reversed-concentration controls. Finally, the default top-32 union retains over 97% of both teacher and student mass with 96.38% sign agreement. It reaches 65.53 Avg@16 at 2.5% end-to-end overhead, compared with 65.61 at 12.5% overhead for full-vocabulary routing. Thus, explicit transport remains both coherent and sparse rather than trading accuracy for a dense coupling computation.

We make three contributions.

  • A probability-transport view of OPD. We expose a per-update route under-specification in sampled scalar OPD: credit can correct the realized action while leaving its redistribution destination to student geometry. We instead formulate categorical correction as conserved transport from student-excess sources to teacher-deficit destinations.

  • A sparse, integrable routed objective. RouteOPD couples the two marginals, realizes each route through pairwise log-odds with zero direct unrelated-logit gradient, and derives cycle-consistent targets from a shared bounded potential whose range adapts to teacher demand.

  • Effectiveness with causal and practical evidence. Across four settings, RouteOPD outperforms sampled and full-vocabulary reverse-KL OPD. Matched destination interventions and fixed-bank diagnostics link the gains to higher routing fidelity and lower leakage, while target-realization and efficiency controls validate the shared potential, adaptive budget, and sparse construction.

References (73)