arXiv(opens in a new tab)cs.LGAug 2026Cited by 6 papers on PaperVantage

Manuscript Offprint

arXiv:2608.25643

A Token-Level Analysis of Sampled-Token Reverse-KL On-Policy Distillation

Bing Shao, Jiazheng Zhang, Long Ma, Yujiong Shen, Senjie Jin, Xin Guo, Yuming Yang, Mingxu Chai, Zhiheng Xi, Boyang Liu, Junlin Shang, Tao Gui, Qi Zhang, Xuanjing Huang

Abstract

On-policy distillation (OPD) supervises a student on its own trajectories with token-level signals from a frozen teacher, yet how a sampled loss allocates updates across tokens remains poorly understood. We analyze the gradient of the per-token K2 estimator of reverse KL with respect to the student logits. The ℓ1\ell_{1} norm of this gradient factorizes into the absolute teacher–student log-probability gap and a student-side softmax factor that grows as the sampled token becomes less likely under the student. In our math-distillation runs, these per-token norms are highly non-uniform: low-student-probability tokens account for a disproportionate share of their sum and are also enriched in large teacher–student gaps. As a lightweight intervention suggested by this analysis, we study Surprise-aware Reweighting (SuRe), a detached, bounded weighting rule that further amplifies this existing allocation. Across two Qwen3 student scales, SuRe improves several math metrics over vanilla OPD and shows no clear degradation on the selected out-of-domain benchmarks. Our primary contribution is therefore a gradient-level characterization of reverse-KL OPD trained with the K2 estimator, with SuRe as one empirical instantiation.

1 Introduction

Open language model families increasingly share a multi-stage post-training recipe: supervised fine-tuning (SFT) initializes a general policy, reinforcement learning (RL) develops one or more specialized policies, and a final on-policy distillation stage either transfers capabilities from a large teacher to a lightweight student or consolidates capabilities from multiple policies into a unified model. Qwen3 (Team, 2025), MiMo (Xiaomi, 2026), DeepSeek-V4 (DeepSeek-AI, 2026), Kimi K3 (Team, 2026), and GLM-5 (GLM, 2026) are representative examples of this broader pipeline. On-policy distillation (OPD) keeps training on-policy to reduce distribution shift while providing dense token-level feedback (Lu and Thinking Machines Lab, 2025; Gu et al., 2024b; Agarwal et al., 2024; Yang et al., 2026). Throughout this paper, we study the gradient of the per-token K2 estimator of reverse KL with respect to the student logits. At the level of the immediate per-token distillation signal, the gradient-descent update induced by K2 has the same direction as the unclipped policy-gradient update induced by Kimi K3's detached sampled-token log-ratio OPD reward; Kimi K3 clips that reward for stability (Team, 2026, Sec. 4.1.3). Understanding which tokens receive large gradients, and why they receive them, is the question we take up in this paper.

Many token-level studies use quantities such as entropy or sampled-token probability to analyze, select, or reweight token positions (Wang et al., 2025; Jin et al., 2026; Huang et al., 2026; Ko et al., 2026; Li et al., 2026). These quantities provide useful views of token uncertainty and disagreement. Our focus is complementary: we directly characterize the realized per-token gradient of the sampled OPD loss with respect to the student logits and study how the resulting gradient norms are allocated across sampled trajectories.

For the K2 estimator, a closed-form expansion of this gradient shows that its ℓ1\ell_{1} norm factorizes into an absolute teacher–student gap and the student-side term 1−πS(yt∣ct)1 - \pi_{S}(y_{t} \mid c_{t}). In our runs, low-student-probability positions account for a disproportionate share of the summed per-token norms, and large teacher–student gaps are enriched in the same region. Thus the observed concentration is a joint empirical pattern, rather than a consequence of the student-side factor alone.

To test whether this allocation can guide optimization, we use SuRe (Surprise-aware Reweight-

∗^{*}Equal contribution. †^{\dagger}Corresponding authors.

ing) as a lightweight analysis-inspired intervention. It attaches a detached, bounded per-token weight that mildly up-weights surprise tokens and approaches one for confident tokens, with a single coefficient α\alpha that recovers vanilla OPD at α=0\alpha = 0. SuRe requires no additional reference model, extra forward pass, learned selector, or hard threshold. Distilling Qwen3-8B into Qwen3-1.7B-Base and Qwen3-4B-Base on DeepMath, SuRe improves vanilla OPD by up to +6.7pp on AIME24 and +7.5pp on AMC23 (pass@8) on the 1.7B student and improves several metrics on the 4B student, while showing no clear degradation on the selected OOD benchmarks.

References (26)