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

面向大型语言模型的直接偏好知识蒸馏

Direct Preference Knowledge Distillation for Large Language Models

Shanghai Jiao Tong University(上海交通大学);Tsinghua University(清华大学);Microsoft Research(微软研究院);The Chinese University of Hong Kong(香港中文大学)

Yixing Li, Yuxian Gu, Li Dong, Dequan Wang, Yu Cheng, Furu Wei

AI总结:

本文提出面向大型语言模型的直接偏好知识蒸馏(DPKD)方法,通过分布散度构建隐式奖励与偏好损失,将蒸馏重构为优化隐式奖励及提升教师输出偏好两阶段,在120M至13B参数模型上验证了其优于基线的有效性。

摘要:

在大型语言模型(LLMs)领域,知识蒸馏(KD)是将教师模型能力迁移到学生模型的关键技术。然而,现有的KD方法在LLMs的蒸馏中面临局限与挑战,包括传统KL散度的效率不足和测量能力欠缺。研究表明,LLMs可以作为隐式奖励函数,我们将其定义为KL散度的补充。在本工作中,我们提出了面向LLMs的直接偏好知识蒸馏(DPKD)。DPKD利用分布散度来表示偏好损失和隐式奖励函数。我们将LLMs的KD重新构建为两个阶段:首先优化包含隐式奖励和反向KL散度的目标,然后提升教师输出相对于学生输出的偏好概率。我们在多个数据集上对参数规模从120M到13B的LLMs进行了实验与分析,证明了我们DPKD方法的广泛适用性与有效性。同时,我们通过实验和理论分析证明了所引入的隐式奖励和输出偏好机制在KD中的价值与有效性。DPKD方法在输出响应精确度和精确匹配百分比上均优于基线方法。代码和数据可在https://aka.ms/dpkd获取。

英文摘要:

In the field of large language models (LLMs), Knowledge Distillation (KD) is a critical technique for transferring capabilities from teacher models to student models. However, existing KD methods face limitations and challenges in distillation of LLMs, including efficiency and insufficient measurement capabilities of traditional KL divergence. It is shown that LLMs can serve as an implicit reward function, which we define as a supplement to KL divergence. In this work, we propose Direct Preference Knowledge Distillation (DPKD) for LLMs. DPKD utilizes distribution divergence to represent the preference loss and implicit reward function. We re-formulate KD of LLMs into two stages: first optimizing and objective consisting of implicit reward and reverse KL divergence and then improving the preference probability of teacher outputs over student outputs. We conducted experiments and analysis on various datasets with LLM parameters ranging from 120M to 13B and demonstrate the broad applicability and effectiveness of our DPKD approach. Meanwhile, we prove the value and effectiveness of the introduced implicit reward and output preference in KD through experiments and theoretical analysis. The DPKD method outperforms the baseline method in both output response precision and exact match percentage. Code and data are available at https://aka.ms/dpkd.

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

↑