Learning What to Distill: Bilevel Top-K Token Selection for Self-Distillation in Large Language Models

Heng Liang, Xinwen Zhang, Hongchang Gao
10/5/2026
cs.LG
distillation

No confident code implementation found for this paper.

Abstract

Large language models have shown strong reasoning capabilities, but their high inference costs make knowledge distillation an important approach for transferring such capabilities to compact models in resource-constrained scenarios. On-policy self-distillation further reduces the reliance on external large teacher models while improving the reasoning ability of compact language models.

Show full abstract

However, existing methods typically either distill all token positions uniformly or select tokens using fixed heuristic criteria, assigning the same distillation strength to the selected positions rather than adaptively learning which tokens are most beneficial for distillation. To address these limitations, we propose BiToK-SD (Bilevel Top-K Token Selection for Self-Distillation), a bilevel-optimization-based token selection method that learns where distillation should be applied during on-policy self-distillation. Specifically, BiToK-SD is formulated as a bilevel optimization problem, where the lower-level problem models Top-K token selection as a differentiable threshold-based relaxation, allowing the selected positions to adapt as the student policy evolves, while the upper-level problem performs knowledge distillation on the selected positions. Experiments on mathematical reasoning benchmarks show that BiToK-SD achieves the best average performance among all compared methods while requiring only lightweight additional computation.

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{liang2026learning,
  title  = {Learning What to Distill: Bilevel Top-K Token Selection for Self-Distillation in Large Language Models},
  author = {Heng Liang and Xinwen Zhang and Hongchang Gao},
  year   = {2026},
  eprint = {2610.07247},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.07247v1}
}

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/2610.07247.svg)](https://codeofpaper.com/paper/2610.07247)

Discussion