arXiv:2610.39020cs.CLOct 2026

Manuscript Offprint

arXiv:2610.39020

Distilling the Shape of Uncertainty: What On-Policy Distillation Learns and How to Predict It

Shiping Yang, Chuanqi Tang, Hossein Hajimirsadeghi, Layla El Asri, Mohammad Amin Shabani, Angel X. Chang

Abstract

On-policy distillation (OPD) is increasingly adopted in the post-training of large language models. However, a stronger teacher may fail to improve the student. Prior work attributes this to a lack of new knowledge, but what that knowledge is remains unclear. We show that OPD learns not only how to branch, i.e., which candidate tokens to consider, but also where to branch, i.e., where to keep reasoning paths open. The existing token-overlap metric captures only the former. We introduce the entropy shape, the sequence of next-token entropies, to characterize the latter, and propose the Entropy Shape Correlation (ESC) to measure student-teacher agreement in entropy shape. Tracking ESC throughout training and intervening on a teacher's entropy while preserving its token preferences, we empirically show that where to branch causally drives OPD gains, independently of how to branch. Finally, we formulate OPD outcome prediction as a teacher selection task and establish an evaluation protocol for it, under which pre-OPD ESC selects the best teacher for both students and outperforms existing predictors. The code is available at the provided link.

1 Introduction

On-policy distillation (OPD) has recently emerged as a standard post-training stage for large language models (LLMs) (Xiao et al., 2026; Yang et al., 2026a). Unlike off-policy distillation, which trains the student on fixed teacher-generated sequences, OPD samples trajectories from the student itself and uses a teacher model to score every token (Agarwal et al., 2024; Gu et al., 2024). The student thus learns on the states it actually visits at inference time, avoiding the distribution mismatch of off-policy training (Bengio et al., 2015; Ranzato et al., 2015), while receiving dense token-level feedback instead of the sparse outcome reward of reinforcement learning (RL) (Yang et al., 2026b).

Despite these advantages, OPD still faces a longstanding issue of distillation: a stronger teacher does not guarantee better distillation (Cho and Hariharan, 2019). In off-policy distillation, this issue is typically attributed to a large distribution gap between the student and teacher (Zhang et al., 2023; Li et al., 2025). This explanation has motivated methods that select or construct teachers for compatibility with the student rather than for performance alone (Xu et al., 2025; Ding et al., 2025; Zhang et al., 2025b). For OPD, recent work shows that a post-trained teacher can yield better distillation than a stronger teacher trained with the same recipe as the student, and attributes this to new knowledge that the teacher acquires through the additional post-training (Li et al., 2026). However, it remains unclear what this new knowledge is, and such analyses only diagnose OPD post hoc. This leaves two open questions: what does the student learn from the teacher in OPD, and can we predict a teacher's gain before training?

To understand what OPD learns, we first test whether the new knowledge is simply the teacher's ability to solve more training problems. We find that OPD gains are unaffected by whether the teacher solves these problems, suggesting that the new knowledge is a general reasoning behavior the teacher follows on both correct and incorrect trajectories. Since this behavior is acquired from post-training, we draw on recent findings that RL post-training shapes reasoning behavior mainly through a small set of high-entropy fork tokens, where the reasoning trajectory branches (Wang et al., 2026). We therefore hypothesize that the new knowledge lies in how the teacher acts at these forks. Specifically, OPD teaches the student where to branch, i.e., at which positions to keep multiple reasoning paths open rather than commit to one, and how to branch, i.e., which candidate tokens to consider at each

∗^{*}Work done during an internship at Borealis AI

Figure

Figure 1: Illustration of where and how to branch on a student rollout (student: R1-Distill-1.5B; teacher: JustRL-1.5B). Left: where to branch. Shaded positions mark mismatches, where the teacher tends to branch (high entropy) while the student does not (low entropy). Right: how to branch. At the first mismatch, the student follows the current path with "point", whereas the teacher spreads probability over "let" and "suppose", typical fork tokens that open alternative reasoning paths. Bold tokens appear among the top-16 candidates of both models. ESC and Overlap@k measure student-teacher agreement on where and how to branch, respectively.

fork (Figure 1). Prior work tracks only the latter during OPD training, through the overlap of the student's and teacher's top-k tokens (Overlap@k) (Li et al., 2026). We characterize the former with the entropy shape (or uncertainty shape), the sequence of next-token entropies along a trajectory: high-entropy positions steer the reasoning path, while low-entropy positions follow it. We then measure student-teacher alignment in entropy shape with the Entropy Shape Correlation (ESC).

We provide both observational and causal evidence that where to branch is a key component of what OPD learns. In the training dynamics, the student's entropy shape progressively aligns with the teacher's in runs that successfully improve the student, and ESC rises alongside the student's performance, whereas in failing runs ESC starts high and quickly plateaus. To test whether this alignment causally drives OPD gains, we construct counterfactual teachers by transplanting the entropy shape of one teacher onto another, which changes where a teacher branches while preserving which candidates it prefers. Experimental results show that a successful teacher's entropy shape alone improves the student, and that ESC can rise independently of Overlap@k, indicating that where to branch is not a byproduct of how to branch.

To predict a teacher's gain before training, we use ESC to measure how far the student's entropy shape is from the teacher's before OPD begins, as OPD gains come from closing this gap. We formulate this prediction as a teacher selection task, in which each predictor ranks the candidate teachers

for a given student. We evaluate predictors by their rank correlation with the realized gains and by the regret of the selected teacher. In our experiments, pre-OPD ESC ranks the teachers correctly and selects the best one for both students, outperforming baseline predictors based on teacher performance, teacher size, and Overlap@k.

Our contributions can be summarized as follows: 1) We identify where to branch as a key component of what OPD learns, characterize it with the entropy shape, and propose ESC to measure student-teacher alignment in entropy shape. 2) We empirically validate, by tracking ESC during training and constructing counterfactual teachers, that where to branch drives OPD gains as a learning signal distinct from how to branch. 3) We formulate OPD outcome prediction as a teacher selection task and establish an initial evaluation suite for it, on which pre-OPD ESC outperforms existing predictors.

References (14)