arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.19754cs.CL
收藏

GOLD:通过分布外引导的语言数据生成实现广义知识蒸馏

GOLD: Generalized Knowledge Distillation via Out-of-Distribution-Guided Language Data Generation

Huawei Technologies Canada Co. Ltd.(华为技术加拿大有限公司)

Mohsen Gholami, Mohammad Akbari, Cindy Hu, Vaden Masrani, Z. Jane Wang, Yong Zhang

AI总结:

本文提出GOLD框架,通过分布外引导的迭代反馈机制生成数据以改进LLM知识蒸馏,并引入基于能量的OOD评估处理噪声数据,在10个NLP任务上平均超越现有方法和LLM分别达5%和14%。

摘要:

从大语言模型(LLM)中进行知识蒸馏对于语言模型的高效部署至关重要。先前的工作提出了利用LLM生成数据来准备蒸馏模型。我们认为,利用LLM生成数据容易主要从原始内容分布的中心进行采样。这一局限性阻碍了蒸馏模型学习真实的底层数据分布,并使其遗忘分布的尾部(概率较低的样本)。为此,我们提出了GOLD,一个与任务无关的数据生成与知识蒸馏框架,该框架为LLM采用了一种迭代的分布外(out-of-distribution)引导反馈机制。因此,生成的数据提高了蒸馏模型的泛化能力。我们还引入了一种基于能量的OOD评估方法来处理带噪声的生成数据。我们在自然语言处理(NLP)中的10个不同分类任务和序列到序列任务上进行了广泛实验,结果表明GOLD分别优于现有方法和LLM,平均提升分别为5%和14%。我们还将展示所提出的方法适用于探索较少和新颖的任务。代码已公开。

英文摘要:

Knowledge distillation from LLMs is essential for the efficient deployment of language models. Prior works have proposed data generation using LLMs for preparing distilled models. We argue that generating data with LLMs is prone to sampling mainly from the center of original content distribution. This limitation hinders the distilled model from learning the true underlying data distribution and to forget the tails of the distributions (samples with lower probability). To this end, we propose GOLD, a task-agnostic data generation and knowledge distillation framework, which employs an iterative out-of-distribution-guided feedback mechanism for the LLM. As a result, the generated data improves the generalizability of distilled models. An energy-based OOD evaluation approach is also introduced to deal with noisy generated data. Our extensive experiments on 10 different classification and sequence-to-sequence tasks in NLP show that GOLD respectively outperforms prior arts and the LLM with an average improvement of 5% and 14%. We will also show that the proposed method is applicable to less explored and novel tasks. The code is available.

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

↑