Skip to main content
QUICK REVIEW

[论文解读] Lion: Adversarial Distillation of Proprietary Large Language Models

Yuxin Jiang, Chunkit Chan|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science被引用 9
一句话总结

本文引入 Lion,一种对抗性蒸馏框架,使用三阶段循环(模仿、判别、生成)将知识从专有 LLM 传递给开源学生模型,在仅有 70k 训练数据的情况下实现强大的开放式生成与推理。

ABSTRACT

The practice of transferring knowledge from a sophisticated, proprietary large language model (LLM) to a compact, open-source LLM has garnered considerable attention. Previous works have focused on a unidirectional knowledge distillation way by aligning the responses of the student model with those of the teacher model to a set of instructions. Nevertheless, they overlooked the possibility of incorporating any reciprocal "feedback"--identifying challenging instructions where the student model's performance falls short--to boost the student model's proficiency iteratively. To this end, we propose a novel adversarial distillation framework for a more efficient knowledge transfer. Leveraging the versatile role adaptability of LLMs, we prompt the teacher model to identify "hard" instructions and generate new "hard" instructions for the student model, creating a three-stage adversarial loop of imitation, discrimination, and generation. By applying this adversarial framework, we successfully transfer knowledge from ChatGPT to a student model (named Lion), using a mere 70k training data. Our results show that Lion-13B not only achieves comparable open-ended generation capabilities to ChatGPT but surpasses conventional state-of-the-art (SOTA) instruction-tuned models like Vicuna-13B by 55.4% in challenging zero-shot reasoning benchmarks such as BIG-Bench Hard (BBH) and 16.7% on AGIEval. Code and model can be found at https://github.com/YJiangcm/Lion.

研究动机与目标

  • 在不需要访问教师权重的前提下,推动将专有 LLM 的知识高效转移给开源学生。
  • 通过识别学生在教师之下表现的困难指令来纳入反馈。
  • 开发一个迭代的三阶段循环(模仿、判别、生成)以持续改进学生。
  • 证明 Lion-13B 在生成与推理任务上可接近或超越开源基线的最新水平。
  • 展示在固定训练预算(~70k 数据)下的数据效率,并在多样化基准上评估跨任务表现。

提出的方法

  • 使用一个包含三个角色的设置,其中专有 LLM 通过提示承担教师、裁判和生成器的角色;一个轻量级的 Student LLM 被训练以模仿教师。
  • 模仿阶段训练学生使其输出与教师在给定指令下的输出对齐。
  • 判别阶段使用裁判评估教师与学生在每个指令上的差异,并识别困难样本。
  • 生成阶段提示生成器(教师)创建新的困难指令,以反映困难样本分布,并可选地添加困难/简单样本以扩展数据池。
  • 维护两个数据池:一个训练池包含种子样本指令,另一个缓存池聚合已评估/高差异样本以供持续评估。
  • 迭代地重新生成并整理数据,以实现极小极大风格的优化,其中将困难样本放大以挑战学生。

实验结果

研究问题

  • RQ1在无法访问教师梯度的情况下,对抗性知识蒸馏是否能够弥合专有教师 LLM 与开源学生之间的差距?
  • RQ2在保持强指令遵循和推理能力的同时,蒸馏的数 数据效率可以达到多高?
  • RQ3相较于 Vicuna-13B 等开源基线以及 ChatGPT,Lion-13B 在开放式生成和具有挑战性的推理基准上的表现如何?
  • RQ4三阶段的模仿–判别–生成循环是否在多轮迭代中带来持续的性能提升?

主要发现

  • Lion-13B 在 Vicuna-Instructions(Setting avg)上达到 ChatGPT 能力的 98.38%。
  • Lion-13B 相对于 Vicuna-13B,在 BIG-Bench Hard (BBH) 平均上领先 55.4%,在 AGIEval 上领先 16.7%。
  • Lion-13B 在 AGIEval 上保留约 72.5% 的 ChatGPT 推理能力,在 BBH 上约 74%,表明对开源模型的强零-shot 推理性能。
  • Lion-7B 与 Lion-13B 在开放式生成方面优于多项基线;在若干任务类别上 Lion-13B 拉近与 ChatGPT 的差距,在许多情况下甚至超过 Vicuna 基线。
  • 该框架展示了数据效率,在大约 70k 的训练示例且无人工标注数据的情况下实现了竞争力的表现。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。