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

Bing Shao, Jiazheng Zhang, Long Ma, Yujiong Shen, Senjie Jin +7 more
8/26/2026
cs.LGcs.CL

No confident code implementation found for this paper.

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 $\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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shao2026tokenlevel,
  title  = {A Token-Level Analysis of Sampled-Token Reverse-KL On-Policy Distillation},
  author = {Bing Shao and Jiazheng Zhang and Long Ma and Yujiong Shen and Senjie Jin and Xin Guo and Yuming Yang and Mingxu Chai and Zhiheng Xi and Tao Gui and Qi Zhang and Xuanjing Huang},
  year   = {2026},
  eprint = {2608.25643},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.25643v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.25643.svg)](https://codeofpaper.com/paper/2608.25643)

Discussion