arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.16937cs.LGcs.AIcs.CL
收藏

TAID:用于语言模型高效知识迁移的时间自适应插值蒸馏

TAID: Temporally Adaptive Interpolated Distillation for Efficient Knowledge Transfer in Language Models

Sakana AI;Kyoto University(京都大学);NINJAL(日本国立国语研究所);Tohoku University(东北大学);RIKEN(理化学研究所)

Makoto Shing, Kou Misaki, Han Bao, Sho Yokoi, Takuya Akiba

AI总结:

提出时间自适应插值蒸馏(TAID),通过动态插值学生与教师分布,解决容量差距、模式平均与坍缩,提升蒸馏效率,并开发了TAID-LLM-1.5B和TAID-VLM-2B两个高效模型。

摘要:

因果语言模型已展现出卓越的能力,但其规模对资源受限环境中的部署构成了重大挑战。知识蒸馏是一种广泛使用的技术,用于将知识从大型教师模型迁移到小型学生模型,为模型压缩提供了一种有前景的方法。一个重要的遗留问题在于教师模型与学生模型之间的主要差异,即显著的容量差距、模式平均和模式坍缩,这些在蒸馏过程中构成了障碍。为了解决这些问题,我们引入了时间自适应插值蒸馏(TAID),一种新颖的知识蒸馏方法,通过自适应中间分布动态插值学生和教师分布,逐步从学生的初始分布转向教师的分布。我们提供了理论分析,证明TAID能够防止模式坍缩,并实证展示了其在解决容量差距的同时平衡模式平均和模式坍缩的有效性。我们的综合实验表明,TAID在指令微调和预训练场景中,跨多种模型规模和架构均表现出优越性能。此外,我们通过开发两个最先进的紧凑基础模型展示了TAID的实际影响:用于语言任务的TAID-LLM-1.5B和用于视觉-语言任务的TAID-VLM-2B。这些结果证明了TAID在创建高性能和高效模型方面的有效性,推动了更易获取的人工智能技术的发展。

英文摘要:

Causal language models have demonstrated remarkable capabilities, but their size poses significant challenges for deployment in resource-constrained environments. Knowledge distillation, a widely-used technique for transferring knowledge from a large teacher model to a small student model, presents a promising approach for model compression. A significant remaining issue lies in the major differences between teacher and student models, namely the substantial capacity gap, mode averaging, and mode collapse, which pose barriers during distillation. To address these issues, we introduce $\textit{Temporally Adaptive Interpolated Distillation (TAID)}$, a novel knowledge distillation approach that dynamically interpolates student and teacher distributions through an adaptive intermediate distribution, gradually shifting from the student's initial distribution towards the teacher's distribution. We provide a theoretical analysis demonstrating TAID's ability to prevent mode collapse and empirically show its effectiveness in addressing the capacity gap while balancing mode averaging and mode collapse. Our comprehensive experiments demonstrate TAID's superior performance across various model sizes and architectures in both instruction tuning and pre-training scenarios. Furthermore, we showcase TAID's practical impact by developing two state-of-the-art compact foundation models: $\texttt{TAID-LLM-1.5B}$ for language tasks and $\texttt{TAID-VLM-2B}$ for vision-language tasks. These results demonstrate TAID's effectiveness in creating high-performing and efficient models, advancing the development of more accessible AI technologies.

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

↑