Entropy-Aware On-Policy Distillation of Language Models

Woogyeol Jin, Taywon Min, Yongjin Yang, Dennis Wei, Yi Zhou, Swanand Ravindra Kadhe, Nathalie Baracaldo, Kimin Lee

Introduction: The Problem with Standard Distillation

Knowledge Distillation (KD) is a foundational technique for compressing massive "teacher" language models into efficient "student" models. Recently, the field has shifted toward on-policy distillation, where the student learns from dense token-level signals along its own generated trajectories rather than mimicking static datasets.

The industry standard objective for this process is Reverse KL Divergence (RKL). However, RKL is inherently "mode-seeking"—it encourages the student to select the teacher's most likely answer and ignore the rest. In complex reasoning tasks like mathematics, where multiple valid logical paths exist, this creates a "diversity collapse." If a teacher is equally split between two valid reasoning steps, RKL forces the student to commit to just one. Consequently, standard distillation retains only about a third of the high-entropy (uncertain) tokens present in the teacher, yielding students that are overconfident, brittle, and prone to unstable learning signals.

The Solution: Entropy-Aware On-Policy Distillation (EOPD)

To address this diversity collapse, researchers introduce Entropy-Aware On-Policy Distillation (EOPD). The core innovation is a hybrid objective function that dynamically adapts to the teacher's confidence level:

  1. The Entropy Switch: EOPD continuously monitors the teacher’s token-level entropy ($H_{te}$).
  2. Confident Regions (Low Entropy): When the teacher is certain, the model applies standard Reverse KL. This maintains training efficiency and focused imitation where the path is clear.
  3. Uncertain Regions (High Entropy): When the teacher is uncertain (entropy exceeds a threshold $\tau$), EOPD switches to Forward KL (FKL). FKL is "mode-covering," forcing the student to spread its probability mass across all the options the teacher considers plausible.
  4. Top-$k$ Truncation for Efficiency: Calculating FKL over a 100k+ token vocabulary is computationally prohibitive. EOPD mitigates this by calculating FKL only over the top 16 most likely tokens. This captures nearly all the probability mass while being 7.37x more memory-efficient than a full calculation.

Key Insights

  • High Entropy is Knowledge, Not Noise: In reasoning tasks, high-entropy tokens typically represent critical "decision points" where logical paths diverge. Forcing a student to ignore these paths stunts its reasoning capabilities.
  • The Instability of RKL: The authors demonstrate that RKL provides noisy, unstable gradient signals when the teacher is uncertain, explaining why some distillation runs fail to converge or exhibit jittery performance.
  • Selective Application: Forward KL is not needed everywhere. By applying it only to the ~15-20% of tokens where the teacher is genuinely unsure, EOPD secures the benefits of diversity without the massive compute overhead of traditional off-policy distillation.

Experimental Setup and Results

The researchers trained and evaluated EOPD using Qwen3 base models (0.6B, 1.7B, and 4B parameters) on rigorous mathematical datasets (MATH and DAPO-Math-14k).

EOPD consistently outperformed standard on-policy distillation and other baselines (like GRPO):

  • Significant Accuracy Gains: Across six math reasoning benchmarks (including MATH500, AIME, and Minerva), EOPD yielded Pass@8 accuracy gains of +1.37 (0.6B), +2.39 (1.7B), and a massive +5.05 (4B) compared to baseline methods.
  • Scalability: The performance gap between EOPD and standard methods widened as the student model size increased, indicating strong scalability.
  • Diversity Preservation: Histogram analyses confirmed that EOPD students maintained a distribution of high-entropy tokens closely matching the 8B teacher, successfully avoiding the entropy collapse seen in standard distillation.
  • Out-of-Domain Generalization: Despite being trained exclusively on math, EOPD models demonstrated improved performance on general knowledge (MMLU-Pro) and graduate-level science (GPQA-Diamond), proving that better uncertainty distillation enhances general reasoning.

Limitations and Future Directions

While highly effective, EOPD has a few limitations. The method relies on a hyperparameter threshold ($\tau=0.8$), which may require tuning for different teacher-student pairs or distinct domains (e.g., coding vs. creative writing). Furthermore, EOPD is inherently dependent on the teacher's quality; if a teacher is "confident but wrong," the student will faithfully distill that error.

Future work may explore more sophisticated mechanisms for selecting tokens for Forward KL, such as evaluating the semantic distance between top-$k$ tokens rather than relying solely on an entropy threshold.

Project Resources: Official GitHub Repository

Summary updated

BibTeX
@inproceedings{jin2026entropy,
  author = {Woogyeol Jin and Taywon Min and Yongjin Yang and Dennis Wei and Yi Zhou and Swanand Ravindra Kadhe and Nathalie Baracaldo and Kimin Lee},
  title = {{Entropy-Aware On-Policy Distillation of Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=J5i09faOOf},
}
Figure