Lion: Adversarial Distillation of Closed-Source Large Language Model

Yuxin Jiang, Chunkit Chan, Mingyang Chen, Wei Wang · DOI

Abstract

Knowledge distillation (KD) has become a primary method for transferring the capabilities of massive, proprietary large language models (LLMs) like GPT-4 to smaller, open-source models. However, standard KD often follows a unidirectional path where the student model simply mimics a fixed set of teacher outputs. This paper introduces Lion, an adversarial distillation framework that incorporates an iterative feedback loop. By prompting a teacher model to act as a referee and generator of "hard" instructions tailored to a student's specific weaknesses, the framework significantly enhances the student's reasoning and generation capabilities. The resulting model, Lion-13B, achieves near-parity with ChatGPT on open-ended benchmarks and outperforms previous state-of-the-art open-source models on complex reasoning tasks.

The Challenge of Knowledge Distillation

The current AI landscape is dominated by proprietary models whose internal weights and training data remain inaccessible. To democratize these capabilities, researchers use Knowledge Distillation to train smaller "student" models (e.g., LLaMA) using the outputs of "teacher" models (e.g., ChatGPT).

A major limitation of existing methods is the lack of a feedback mechanism. In human education, a teacher does not just provide a static textbook; they identify where a student struggles and provide more challenging problems to bridge those gaps. Without this tailored learning, student models often become proficient at mimicking the style of the teacher while failing to grasp the underlying reasoning required for complex tasks.

The concept of adversarial distillation: the teacher provides feedback by identifying "hard" instructions where the student fails.

The Lion Framework: Adversarial Learning via Feedback

The authors propose a three-stage adversarial loop that leverages the role-playing adaptability of LLMs to create a "Min-Max Game." In this game, the student tries to minimize the performance gap, while the teacher—acting as both referee and generator—tries to maximize it by finding increasingly difficult tasks.

The Three Stages of Distillation

  1. Imitation Stage: The student model is initially fine-tuned on a training pool of teacher responses to align their basic instruction-following performance.
  2. Discrimination Stage (Teacher as Referee): The teacher model compares its own response to the student's response for every instruction. It assigns scores based on helpfulness and accuracy. Instructions where the student significantly underperforms the teacher (determined by a threshold $\tau$) are flagged as "hard" samples.
  3. Generation Stage (Teacher as Generator): The teacher takes these "hard" samples and generates new, similarly challenging instructions. These new instructions are added back into the training pool for the next iteration.
The detailed workflow of the Lion framework, showing the iterative cycle between the Train Pool, Teacher, Student, Referee, and Generator.

Experimental Setup and Datasets

The process began with the Alpaca dataset (52k instructions). Over three iterations of the adversarial loop, the authors added 18k generated instructions, resulting in a final training set of 70k samples. The model was evaluated across three major benchmarks:

  • Vicuna-Instructions: For open-ended generation.
  • AGIEval: Human-centric standardized exams (SAT, GRE).
  • BIG-Bench Hard (BBH): 23 challenging reasoning tasks.

Key Results and Analysis

Lion-13B demonstrated remarkable efficiency, achieving high performance with a relatively small dataset of 70k samples.

  • Performance Parity: On the Vicuna benchmark, Lion-13B achieved 98.38% of ChatGPT’s capability as assessed by GPT-4, even surpassing the teacher in categories like "Knowledge" and "Common-sense."
  • Reasoning Leap: Lion-13B outperformed Vicuna-13B by 55.4% on BIG-Bench Hard and 16.7% on AGIEval, proving that adversarial feedback is crucial for deep reasoning tasks.
  • Self-Correcting Curators: The results suggest that proprietary LLMs can effectively audit a student's performance and curate a high-quality curriculum without human intervention.

Discussion and Limitations

While Lion represents a significant advancement, a reasoning gap remains; Lion-13B retains approximately 72.5% of ChatGPT's reasoning capability on the most complex tasks. Furthermore, the current model is limited to single-turn interactions and a 1024-token context window. Future work will focus on incorporating multi-turn dialogues and Reinforcement Learning from Human Feedback (RLHF) to further refine safety and conversational fluidity.

Summary updated

BibTeX
@inproceedings{jiang2023lion,
  author = {Yuxin Jiang and Chunkit Chan and Mingyang Chen and Wei Wang},
  title = {{Lion: Adversarial Distillation of Closed-Source Large Language Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=WWczIA7qJuz},
}
Figure