arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.11615cs.CLcs.AI
收藏

面向LLM的Token自适应知识蒸馏

LLM-Oriented Token-Adaptive Knowledge Distillation

Zhejiang University(浙江大学);Tencent Youtu Lab(腾讯优图实验室)

Xurong Xie, Zhucun Xue, Jiafu Wu, Jian Li, Yabiao Wang, Xiaobin Hu, Yong Liu, Jiangning Zhang

AI总结:

本文提出AdaKD框架,通过统一token难度指标驱动的LATF模块动态调整蒸馏焦点和IDTS策略差异化调节温度,实现token自适应知识蒸馏,有效提升LLM压缩性能。

摘要:

知识蒸馏(KD)是压缩大规模语言模型(LLMs)的关键技术,然而现有的基于logit的方法通常采用静态策略,与学生模型的动态学习过程不匹配。这些方法通常不加区分地对待所有token,并应用单一固定的温度,导致知识转移效果次优。为了解决这些局限性,我们提出了面向LLM的Token自适应知识蒸馏(AdaKD),这是一种新颖的框架,能够将蒸馏过程适应于每个token的实时学习状态。AdaKD由统一token难度指标驱动的两个协同模块组成。首先,我们的损失驱动的自适应Token聚焦(LATF)模块通过监控学生的学习稳定性来动态调整蒸馏焦点,在每个训练阶段将计算资源集中在最有价值的token上。其次,我们引入了逆难度温度缩放(IDTS),一种反直觉但有效的token级温度策略。它对困难token采用低温进行针对性错误纠正,对简单token采用高温鼓励学生从教师完整平滑的输出分布中学习,从而增强泛化能力。作为即插即用框架,AdaKD能持续提升多种蒸馏方法在多种模型架构和基准上的性能。

英文摘要:

Knowledge distillation (KD) is a key technique for compressing large-scale language models (LLMs), yet prevailing logit-based methods typically employ static strategies that are misaligned with the dynamic learning process of student models. These methods typically treat all tokens indiscriminately and apply a single, fixed temperature, resulting in suboptimal knowledge transfer. To address these limitations, we propose LLM-Oriented Token-Adaptive Knowledge Distillation (AdaKD), a novel framework that adapts the distillation process to the real-time learning state of each token. AdaKD consists of two synergistic modules driven by a unified token difficulty metric. First, our Loss-Driven Adaptive Token Focusing (LATF) module dynamically adjusts the distillation focus by monitoring the student's learning stability, concentrating computational resources on the most valuable tokens at each training phase. Second, we introduce Inverse Difficulty Temperature Scaling (IDTS), a counterintuitive yet effective token-level temperature strategy. It employs low temperatures for difficult tokens for targeted error correction, and high temperatures for easy tokens to encourage students to learn from the teacher's complete and smooth output distribution, thereby enhancing generalization. As a plug-and-play framework, AdaKD can consistently improve the performance of various distillation methods on multiple model architectures and benchmarks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑