[论文解读] A Survey on Knowledge Distillation of Large Language Models
本综述分析知识蒸馏(KD)如何将能力从专有 LLM 转移到开源模型,重点关注数据增强、技能提升和纵向应用。
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: extit{algorithm}, extit{skill}, and extit{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.
研究动机与目标
- 解释 KD 在 LLM 时代的作用,包括模型压缩、能力转移和自我提升。
- 描述数据增强如何增强 KD 并实现面向技能的蒸馏。
- 提供对 KD 方法的结构化分类:算法、技能蒸馏和纵向应用。
- 讨论跨领域的实际影响并勾勒未来研究方向。
提出的方法
- 基于三大支柱:算法、技能蒸馏和纵向应用,提出对 LLM 的 KD 分类。
- 提出一个包含四个阶段的通用蒸馏流水线:引导教师、种子知识输入、蒸馏知识生成和学生训练。
- 将知识提取和蒸馏形式化为两个核心目标,并用定义输入融合和学习损失的方程。
- 突出数据增强作为生成面向特定技能的情境丰富训练数据的关键范式。
- 描述知识提取方法(标注、扩充、数据筛选、特征、反馈、自我知识)。
- 回顾蒸馏策略,包括有监督微调、偏离/最小化、强化学习和排序优化。
实验结果
研究问题
- RQ1KD 如何缩小专有 LLM 与开源 LLM 之间的性能差距?
- RQ2数据增强和提示在有效 KD 中扮演什么角色?
- RQ3哪种分类法最能覆盖 LLM 的 KD 方法、技能和领域特定应用?
- RQ4在纵向领域应用 KD 的实际意义与挑战是什么?
主要发现
- KD 具有三大核心作用:提升能力、压缩模型以提高效率,以及通过自生成知识实现自我提升。
- 数据增强是 LLM KD 的一个组成部分,能够生成高质量、领域特定的训练数据,超越传统的扩展。
- 结构化的分类法(算法、技能蒸馏、纵向应用)组织 KD 方法并指导未来研究。
- 蒸馏推动诸如指令执行、推理、对齐和多模态整合等多种技能。
- 纵向应用将 LLM 蒸馏为法律、医疗、金融、科学等领域的特定需求,提高实际适用性。
- 该综述强调 KD 的伦理与合规使用,并指出未解问题与未来工作方向。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。