重新审视温度在大语言模型蒸馏中的作用
Rethinking the Role of Temperature in Large Language Model Distillation
AI 导读
一项 arXiv 研究重新审视大语言模型蒸馏中温度参数 τ 的作用,指出以往 RKL 优于 FKL 的结论源于忽略了温度的对比。分析发现温度的不对称效应:τ 大幅丰富 FKL 的非主导 token 信号,却主要缩放 RKL 梯度,故 τ=1 时 RKL 更优,而更高温度下 FKL 在指令遵循基准上一致超越 RKL。温度还提升了更广泛的蒸馏目标,使简单 KL 方法能媲美近期 SOTA 蒸馏方案。
正文 · 原文
Abstract:Reverse Kullback-Leibler (RKL) divergence is widely favored over forward KL (FKL) in large language models (LLM) distillation, yet this preference is largely based on comparisons that omit the temperature $\tau$, overlooking its central role in softening teacher distributions and improving knowledge transfer. In this work, we revisit temperature in LLM distillation and show that it fundamentally changes the comparison between FKL and RKL. Our analysis reveals an asymmetric effect: temperature substantially enriches FKL with non-dominant token signals, whereas it mainly rescales RKL gradients, causing FKL to benefit much more from $\tau$ scaling than RKL. This asymmetry overturns the standard empirical conclusion: although RKL outperforms FKL at $\tau=1$, FKL consistently surpasses RKL at higher temperatures across instruction-following benchmarks. Moreover, the impact of temperature is not limited to FKL; it improves a broader family of distillation objectives, enabling simple KL-based methods to achieve competitive performance against recent state-of-the-art LLM distillation approaches.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2606.00306 [cs.LG] |
| (or arXiv:2606.00306v2 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2606.00306 arXiv-issued DOI via DataCite |
Submission history
From: Hoang-Chau Luong [view email]
[v1]
Fri, 29 May 2026 19:32:21 UTC (60 KB)
[v2]
Fri, 27 Nov 2026 07:51:54 UTC (63 KB)
来源:arXiv cs.AI · arxiv.org