DistiLLM:迈向大语言模型的精简蒸馏
DistiLLM: Towards Streamlined Distillation for Large Language Models
AI总结:
DistiLLM提出一种高效的大语言模型知识蒸馏框架,通过偏斜KL散度损失和自适应离策略方法,在保持学生模型性能的同时实现最高4.3倍加速。
摘要:
知识蒸馏(KD)被广泛用于将教师模型压缩为更小的学生模型,在保持模型能力的同时降低推理成本和内存占用。然而,当前针对自回归序列模型(如大语言模型)的KD方法缺乏标准化的目标函数。此外,近期使用学生生成输出来解决训练与推理不匹配问题的做法显著增加了计算成本。为解决这些问题,我们提出DistiLLM,一个更有效且高效的自回归语言模型KD框架。DistiLLM包含两个组成部分:(1)一种新颖的偏斜Kullback-Leibler散度损失,我们揭示并利用了其理论性质;(2)一种自适应离策略方法,旨在提高利用学生生成输出的效率。包括指令遵循任务在内的大量实验表明,DistiLLM在构建高性能学生模型方面具有有效性,同时与近期KD方法相比实现了最高4.3$\ imes$的加速。
英文摘要:
Knowledge distillation (KD) is widely used for compressing a teacher model to a smaller student model, reducing its inference cost and memory footprint while preserving model capabilities. However, current KD methods for auto-regressive sequence models (e.g., large language models) suffer from missing a standardized objective function. Moreover, the recent use of student-generated outputs to address training-inference mismatches has significantly escalated computational costs. To tackle these issues, we introduce DistiLLM, a more effective and efficient KD framework for auto-regressive language models. DistiLLM comprises two components: (1) a novel skew Kullback-Leibler divergence loss, where we unveil and leverage its theoretical properties, and (2) an adaptive off-policy approach designed to enhance the efficiency in utilizing student-generated outputs. Extensive experiments, including instruction-following tasks, demonstrate the effectiveness of DistiLLM in building high-performing student models while achieving up to 4.3$\times$ speedup compared to recent KD methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。