[논문 리뷰] Lion: Adversarial Distillation of Proprietary Large Language Models
이 논문은 Lion을 소개합니다, 세 단계 순환(모방, 판별, 생성)을 사용하여 독점 LLM에서 오픈 소스 학생 모델로 지식을 전달하는 적대적 증류 프레임워크로, 70k 학습 데이터로도 강력한 개방형 생성 및 추론을 달성합니다.
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 데이터)로 데이터 효율성을 입증하고 다양한 벤치마크에서 교차 작업 성능을 평가합니다.
제안 방법
- 교사, 심판, 제너레이터 역할을 프롬프트로 수행하는 3-역할 설정을 사용합니다; 경량화된 Student LLM이 Teacher를 모방하도록 학습됩니다.
- 모방 단계에서 Student가 주어진 지시에 대해 Teacher의 산출물과 일치하도록 학습합니다.
- 판별 단계에서 심판을 사용하여 지시마다 교사와 학생 간의 차이를 측정하고 어려운 샘플을 식별합니다.
- 생성 단계에서 제너레이터(교사)가 어려운 샘플 분포를 반영하는 새로운 어려운 지시를 만들도록 프롬프트를 제공하고, 선택적으로 하드/쉬운 샘플을 추가하여 데이터 풀을 확장합니다.
- 두 개의 데이터 풀을 유지합니다: 시드 같은 지시문이 있는 Train Pool과 ongoing 평가를 위한 높은 차이의 샘플을 모은 Cache Pool.
- 데이터를 반복적으로 재생성하고 큐레이션하여 최소-최대(min-max) 스타일의 최적화를 구현하고 어려운 샘플을 확폭해 학생을 도전하게 만듭니다.
실험 결과
연구 질문
- RQ1적대적 지식 증류가 교사 그래디언트에 접근 없이 독점 교사 LLM과 오픈 소스 학생 사이의 격차를 메울 수 있을까?
- RQ2강한 지시 수행 및 추론 능력을 유지하면서 증류는 데이터 효율적으로 얼마나 가능할까?
- RQ3Lion-13B는 Vicuna-13B 같은 오픈 소스 벤치마크 및 ChatGPT에 비해 개방형 엔드 생성 및 도전적인 추론 벤치마크에서 어떻게 수행하는가?
- 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에서 ChatGPT의 추론 능력의 약 72.5%, BBH에서 약 74%를 유지하여 오픈 소스 모델로서 강한 제로샷 추론 성능을 나타냅니다.
- Lion-7B 및 Lion-13B는 여러 벤치마크에서 개방형 엔드 생성이 우수하며; Lion-13B는 여러 작업 범주에서 ChatGPT에 근접하거나 벤치마크 중 다수에서 Vicuna 벤치마크를 능가합니다.
- 프레임워크는 데이터 효율성을 입증하여 약 70k 학습 예제로도 경쟁력 있는 성능을 달성하고 인간이 주석한 데이터 없이도 가능함을 보여줍니다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.