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

DDK:蒸馏领域知识以构建高效的大语言模型

DDK: Distilling Domain Knowledge for Efficient Large Language Models

Alibaba Group(阿里巴巴集团);The University of Sydney(悉尼大学);The Chinese University of Hong Kong(香港中文大学);University of Waterloo(滑铁卢大学)
Jiaheng Liu, Chenchen Zhang, Jinyang Guo, Yuanxing Zhang, Haoran Que, Ken Deng, Zhiqi Bai, Jie Liu, Ge Zhang, Jiakai Wang, Yanan Wu, Congnan Liu, Wenbo Su, Jiam… 展开作者

Jiaheng Liu, Chenchen Zhang, Jinyang Guo, Yuanxing Zhang, Haoran Que, Ken Deng, Zhiqi Bai, Jie Liu, Ge Zhang, Jiakai Wang, Yanan Wu, Congnan Liu, Wenbo Su, Jiamang Wang, Lin Qu, Bo Zheng

AI总结:

本文提出LLM蒸馏框架DDK,通过根据教师与学生模型间的领域性能差异平滑动态调整蒸馏数据集组成,显著提升学生模型性能并大幅超越现有基线方法。

摘要:

尽管大语言模型(LLMs)在各种应用中展现出先进的智能能力,但它们仍面临巨大的计算和存储需求。知识蒸馏(KD)已成为一种有效策略,通过从高性能LLM(即教师模型)转移知识来提升较小LLM(即学生模型)的性能。当前LLM蒸馏的主流技术通常使用黑盒模型API生成高质量的预训练和对齐数据集,或通过修改损失函数进行白盒蒸馏,以更好地从教师LLM转移知识。然而,这些方法忽略了学生与教师LLM在不同领域间的知识差异。这导致对性能差距极小的领域过度关注,而对差距较大的领域关注不足,从而降低了整体性能。本文提出了一种名为DDK的新LLM蒸馏框架,它根据教师与学生模型间的领域性能差异,平滑地动态调整蒸馏数据集的组成,使蒸馏过程更加稳定有效。广泛评估表明,DDK显著提升了学生模型的性能,大幅优于持续预训练基线和现有知识蒸馏方法。

英文摘要:

Despite the advanced intelligence abilities of large language models (LLMs) in various applications, they still face significant computational and storage demands. Knowledge Distillation (KD) has emerged as an effective strategy to improve the performance of a smaller LLM (i.e., the student model) by transferring knowledge from a high-performing LLM (i.e., the teacher model). Prevailing techniques in LLM distillation typically use a black-box model API to generate high-quality pretrained and aligned datasets, or utilize white-box distillation by altering the loss function to better transfer knowledge from the teacher LLM. However, these methods ignore the knowledge differences between the student and teacher LLMs across domains. This results in excessive focus on domains with minimal performance gaps and insufficient attention to domains with large gaps, reducing overall performance. In this paper, we introduce a new LLM distillation framework called DDK, which dynamically adjusts the composition of the distillation dataset in a smooth manner according to the domain performance differences between the teacher and student models, making the distillation process more stable and effective. Extensive evaluations show that DDK significantly improves the performance of student models, outperforming both continuously pretrained baselines and existing knowledge distillation methods by a large margin.

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

↑