Language Model Distillation: A Temporal Difference Imitation Learning Perspective
Zishun Yu, Shangzhe Li, Xinhua Zhang
TL;DR
This work reframes language model distillation as a temporal-difference imitation-learning problem and exploits the intrinsic sparsity of language distributions by introducing a top-$p$ action subset. By defining a top-$p$ MDP and a corresponding top-$p$ soft Bellman operator, the authors prove contraction and near-optimality guarantees, enabling efficient TD-based distillation with reduced computational burden. They implement a practical Bellman Distill (BD) method based on IQL, using top-$p$ masking, policy projection, and $\chi^2$ regularization, and demonstrate strong, scalable gains across GPT-2, OPT, and Qwen-2.5 families in offline distillation settings, with faster training and robust Rouge-L and win-rate improvements. The approach provides a principled, plug-and-play framework for TD-style IL in large discrete action spaces and highlights the value of action-space priors in distillation.
Abstract
Large language models have led to significant progress across many NLP tasks, although their massive sizes often incur substantial computational costs. Distillation has become a common practice to compress these large and highly capable models into smaller, more efficient ones. Many existing language model distillation methods can be viewed as behavior cloning from the perspective of imitation learning or inverse reinforcement learning. This viewpoint has inspired subsequent studies that leverage (inverse) reinforcement learning techniques, including variations of behavior cloning and temporal difference learning methods. Rather than proposing yet another specific temporal difference method, we introduce a general framework for temporal difference-based distillation by exploiting the distributional sparsity of the teacher model. Specifically, it is often observed that language models assign most probability mass to a small subset of tokens. Motivated by this observation, we design a temporal difference learning framework that operates on a reduced action space (a subset of vocabulary), and demonstrate how practical algorithms can be derived and the resulting performance improvements.
