Distilling the Essence: Efficient Reasoning Distillation via Sequence Truncation

Wei-Rui Chen, Vignesh Kothapalli, Ata Fatahibaarzi, Hejian Sang, Shao Tang +3 more
12/24/2025
cs.CLcs.AI

Official code: weiruichen01/distilling-the-essence (4 stars, BSD-2-Clause, last commit 2026-01-05).

Abstract

Distilling the capabilities from a large reasoning model (LRM) to a smaller student model often involves training on substantial amounts of reasoning data. However, knowledge distillation (KD) over lengthy sequences with prompt (P), chain-of-thought (CoT), and answer (A) sections makes the process computationally expensive. In this work, we investigate how the allocation of supervision across different sections (P, CoT, A) affects student performance. Our analysis shows that selective KD over only the CoT tokens can be effective when the prompt and answer information is encompassed by it. Building on this insight, we establish a truncation protocol to quantify computation-quality tradeoffs as a function of sequence length. We observe that beyond a specific length, longer training sequences provide marginal returns for downstream performance but require substantially higher memory and FLOPs. To this end, training on only the first $50\%$ of tokens of every training sequence can retain, on average, $\approx91\%$ of full-sequence performance on math benchmarks while reducing training time, memory usage, and FLOPs by about $50\%$ each. Codes are available at https://github.com/weiruichen01/distilling-the-essence.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

Distilling the Essence: Efficient Reasoning Distillation via Sequence Truncation

41PythonDec 23, 20259 months agoBSD-2-Clause

Similar Papers

Cite this paper

@article{chen2025distilling,
  title  = {Distilling the Essence: Efficient Reasoning Distillation via Sequence Truncation},
  author = {Wei-Rui Chen and Vignesh Kothapalli and Ata Fatahibaarzi and Hejian Sang and Shao Tang and Qingquan Song and Zhipeng Wang and Muhammad Abdul-Mageed},
  year   = {2025},
  eprint = {2512.21002},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.21002v2}
}

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

Discussion