2025-03-11 · 进阶 · 机器学习 · 自然语言处理

DistiLLM-2: A Contrastive Approach Boosts the Distillation of LLMs

DISTILLM-2通过对比方法提升大型语言模型(LLM)的蒸馏效果,显著提高了学生模型在多种任务中的性能。

更新于 2025-04-03。作者:Jongwoo Ko、Tianyi Chen、Sungnyun Kim、Tianyu Ding、Luming Liang、Ilya Zharkov、Se-Young Yun。

中文摘要

尽管在大语言模型(LLMs)中蒸馏取得了成功,但大多数先前的研究都是将相同的损失函数应用于教师和学生生成数据。这些策略忽略了损失函数和数据类型之间的协同作用,导致学生模型性能提升不足。为了解决这个问题,我们提出了DistiLLM-2,这是一种对比方法,通过利用这种协同作用,同时提高教师响应的可能性并降低学生响应的可能性。我们广泛的实验表明,DistiLLM-2不仅能在包括指令遵循和代码生成在内的广泛任务中构建高性能的学生模型,还支持多样性应用,如偏好对齐和视觉-语言扩展。这些发现突出了对比方法通过有效地对齐教师和学生模型在多种数据类型上的性能,提升LLM蒸馏效率的潜力。

英文摘要

Despite the success of distillation in large language models (LLMs), most prior work applies identical loss functions to both teacher- and student-generated data. These strategies overlook the synergy between loss formulations and data types, leading to a suboptimal performance boost in student models. To address this, we propose DistiLLM-2, a contrastive approach that simultaneously increases the likelihood of teacher responses and decreases that of student responses by harnessing this synergy. Our extensive experiments show that DistiLLM-2 not only builds high-performing student models across a wide range of tasks, including instruction-following and code generation, but also supports diverse applications, such as preference alignment and vision-language extensions. These findings highlight the potential of a contrastive approach to enhance the efficacy of LLM distillation by effectively aligning teacher and student models across varied data types.

解读

一句话总结

DISTILLM-2通过对比方法提升大型语言模型(LLM)的蒸馏效果,显著提高了学生模型在多种任务中的性能。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源