Skip to main content
QUICK REVIEW

[Paper Review] Lion: Adversarial Distillation of Proprietary Large Language Models

Yuxin Jiang, Chunkit Chan|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science9 citations
TL;DR

This paper introduces Lion, an adversarial distillation framework that uses a three-stage loop (imitation, discrimination, generation) to transfer knowledge from a proprietary LLM to an open-source student model, achieving strong open-ended generation and reasoning with only 70k training data.

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.

Motivation & Objective

  • Motivate efficient knowledge transfer from proprietary LLMs to open-source students without requiring access to teacher weights.
  • Incorporate feedback by identifying hard instructions where student performance lags behind the teacher.
  • Develop an iterative three-stage loop (imitation, discrimination, generation) to progressively improve the student.
  • Demonstrate Lion-13B can approach or exceed state-of-the-art open-source baselines on generation and reasoning tasks.
  • Showcase data efficiency with a fixed training budget (~70k data) and assess cross-task performance on diverse benchmarks.

Proposed method

  • Use a three-role setup where a proprietary LLM acts as Teacher, Referee, and Generator via prompts; a lightweight Student LLM is trained to imitate the Teacher.
  • Imitation stage trains the Student to align its outputs with the Teacher’s for given instructions.
  • Discrimination stage uses the Referee to measure the discrepancy between Teacher and Student on each instruction and identifies hard samples.
  • Generation stage prompts the Generator (the Teacher) to create new hard instructions mirroring the hard sample distribution, and optionally adds hard/easy samples to expand the data pool.
  • Maintain two data pools: a Train Pool with seed-like instructions and a Cache Pool that aggregates evaluated/high-discrepancy samples for ongoing assessment.
  • Iteratively regenerate and curate data to implement a min-max style optimization where hard samples are amplified to challenge the Student.

Experimental results

Research questions

  • RQ1Can adversarial knowledge distillation bridge the gap between a proprietary teacher LLM and an open-source student without access to teacher gradients?
  • RQ2How data-efficient can distillation be while maintaining strong instruction-following and reasoning abilities?
  • RQ3How does Lion-13B perform on open-ended generation and challenging reasoning benchmarks relative to open-source baselines like Vicuna-13B and to ChatGPT?
  • RQ4Does the three-stage imitation–discrimination–generation loop yield sustained performance gains over multiple iterations?

Key findings

  • Lion-13B achieves 98.38% of ChatGPT’s capabilities on Vicuna-Instructions (Setting avg).
  • Lion-13B outperforms Vicuna-13B by 55.4% on BIG-Bench Hard (BBH) average and by 16.7% on AGIEval relative to Vicuna-13B.
  • Lion-13B retains about 72.5% of ChatGPT’s reasoning capability on AGIEval and about 74% on BBH, indicating strong zero-shot reasoning performance for an open-source model.
  • Lion-7B and Lion-13B show superior open-ended generation compared to multiple baselines; Lion-13B closes the gap to ChatGPT on several task categories and even surpasses Vicuna baselines in many cases.
  • The framework demonstrates data efficiency, achieving competitive performance with around 70k training examples and no human-annotated data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.