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

大语言模型知识蒸馏综述

A Survey on Knowledge Distillation of Large Language Models

University of Maryland(马里兰大学);Microsoft(微软公司);University of Technology Sydney(悉尼科技大学);Peking University(北京大学);The University of Sydney(悉尼大学);The University of Hong Kong(香港大学)

Xiaohan Xu, Ming Li, Chongyang Tao, Tao Shen, Reynold Cheng, Jinyang Li, Can Xu, Dacheng Tao, Tianyi Zhou

AI总结:

本文系统综述了大语言模型知识蒸馏在能力迁移、模型压缩与自我改进中的作用,并提出算法、技能、垂直化三维框架及数据增强策略,为后续研究提供指导。

摘要:

在大语言模型(LLMs)时代,知识蒸馏(KD)作为一种关键方法,用于将GPT-4等领先的闭源大语言模型的高级能力迁移到LLaMA和Mistral等开源模型中。此外,随着开源大语言模型的蓬勃发展,KD在压缩这些模型以及通过将模型自身作为教师来促进其自我改进方面也发挥着至关重要的作用。本文对KD在大语言模型领域中的作用进行了全面综述,重点阐述了其在向较小模型传授高级知识方面的关键功能,以及其在模型压缩和自我改进中的效用。本综述围绕三个基础支柱精心组织:算法、技能和垂直化——全面考察了KD机制、特定认知能力的增强及其在不同领域的实际应用。至关重要的是,本综述探讨了数据增强(DA)与KD之间复杂的相互作用,说明了DA如何作为KD框架内的一种强大范式来提升大语言模型的性能。通过利用DA生成上下文丰富、面向特定技能的训练数据,KD超越了传统边界,使开源模型能够接近其闭源对手所特有的上下文适应能力、伦理对齐能力和深层语义洞察力。本工作旨在为研究人员和实践者提供一份具有洞察力的指南,详细概述当前KD方法并提出未来的研究方向。重要的是,我们坚决倡导遵守规范大语言模型使用的法律条款,确保大语言模型KD的伦理和合法应用。相关的Github仓库可在https://github.com/Tebmer/Awesome-Knowledge-Distillation-of-LLMs获取。

英文摘要:

In the era of Large Language Models (LLMs), Knowledge Distillation (KD) emerges as a pivotal methodology for transferring advanced capabilities from leading proprietary LLMs, such as GPT-4, to their open-source counterparts like LLaMA and Mistral. Additionally, as open-source LLMs flourish, KD plays a crucial role in both compressing these models, and facilitating their self-improvement by employing themselves as teachers. This paper presents a comprehensive survey of KD's role within the realm of LLM, highlighting its critical function in imparting advanced knowledge to smaller models and its utility in model compression and self-improvement. Our survey is meticulously structured around three foundational pillars: \textit{algorithm}, \textit{skill}, and \textit{verticalization} -- providing a comprehensive examination of KD mechanisms, the enhancement of specific cognitive abilities, and their practical implications across diverse fields. Crucially, the survey navigates the intricate interplay between data augmentation (DA) and KD, illustrating how DA emerges as a powerful paradigm within the KD framework to bolster LLMs' performance. By leveraging DA to generate context-rich, skill-specific training data, KD transcends traditional boundaries, enabling open-source models to approximate the contextual adeptness, ethical alignment, and deep semantic insights characteristic of their proprietary counterparts. This work aims to provide an insightful guide for researchers and practitioners, offering a detailed overview of current methodologies in KD and proposing future research directions. Importantly, we firmly advocate for compliance with the legal terms that regulate the use of LLMs, ensuring ethical and lawful application of KD of LLMs. An associated Github repository is available at https://github.com/Tebmer/Awesome-Knowledge-Distillation-of-LLMs.

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

↑