[논문 리뷰] AlpaGasus: Training A Better Alpaca with Fewer Data
AlpaGasus는 Alpaca의 52k 데이터셋에서 고품질 지시 데이터만 자동으로 필터링하고, 강력한 LLM을 자동 채점자로 사용한 뒤, Alpaca를 능가하고 더 빠른 학습을 제공하는 9k 데이터의 더 작은 모델을 미세조정합니다.
Large language models (LLMs) strengthen instruction-following capability through instruction-finetuning (IFT) on supervised instruction/response data. However, widely used IFT datasets (e.g., Alpaca's 52k data) surprisingly contain many low-quality instances with incorrect or irrelevant responses, which are misleading and detrimental to IFT. In this paper, we propose a simple and effective data selection strategy that automatically identifies and filters out low-quality data using a strong LLM (e.g., ChatGPT). To this end, we introduce AlpaGasus, which is finetuned on only 9k high-quality data filtered from the 52k Alpaca data. AlpaGasus significantly outperforms the original Alpaca as evaluated by GPT-4 on multiple test sets and the controlled human evaluation. Its 13B variant matches $>90\%$ performance of its teacher LLM (i.e., Text-Davinci-003 generating the 52k data) on test tasks. It also provides 5.7x faster training, reducing the training time for a 7B variant from 80 minutes (for Alpaca) to 14 minutes. Moreover, the experiments prove the efficacy of our method across diverse datasets, base models, and LLM filters. Overall, AlpaGasus demonstrates a novel data-centric IFT paradigm that can be generally applied to instruction-tuning data, leading to faster training and better instruction-following models. Our project page is available at: https://lichang-chen.github.io/AlpaGasus/
연구 동기 및 목표
- LLM에 대한 지시 학습(IFT)에서 데이터 품질을 양보다 우선시하도록 동기를 부여한다.
- 강력한 LLM을 평가자로 사용하는 자동 데이터 필터링 방법을 제안하여 IFT 데이터 품질을 향상시킨다.
- 작은 고품질 하위집합이 지시 수행 작업에서 더 큰 노이즈가 많은 데이터세트를 능가할 수 있음을 보인다.
제안 방법
- 강력한 LLM(예: ChatGPT)에게 각 (instruction, input, response) 트리플을 정확도 차원에서 평가하도록 하는 점수 매기기 프롬트를 정의한다.
- Alpaca의 52k 데이터를 점수 임계값으로 필터링하여 AlpaGasus를 미세조정하는 9,229-sample 하위집합을 얻는다.
- 필터링된 9k 데이터에서 동일한 Alpaca IFT 파이프라인으로 기본 모델(LLaMA-계열)을 학습한다.
- GPT-4를 판단자로 사용하여 AlpaGasus와 Alpaca를 여러 테스트 세트와 벤치마크에서 비교 평가한다.
- 일반적(Generic), 롤플레이(Roleplay), 지식(Knowledge), 상식(Commonsense) 영역에서 모델 비교를 검증하고 작업의 세분화를 평가하기 위해 인간 평가를 수행한다.
실험 결과
연구 질문
- RQ1강한 LLM으로 자동 데이터 품질 평가가 더 적은 데이터로 모델을 미세조정할 때 지시 수행 성능을 향상시킬 수 있는가?
- RQ2고품질 필터링 데이터로 학습했을 때 AlpaGasus가 Alpaca 및 다른 비교대상들과 다양한 테스트 세트 및 벤치마크에서 어떤 차이를 보이는가?
- RQ3데이터 품질이 데이터 양보다 IFT에 더 큰 영향을 미치는가—모델 크기 및 기본 아키텍처에 걸쳐?
- RQ4다른 LLM 필터, 기본 모델 및 데이터 유형(기계 생성 vs 사람 작성) 간에 결과가 일반화되는가?
주요 결과
- 9k의 고품질 데이터로 학습한 AlpaGasus가 52k 데이터로 학습한 Alpaca를 네 가지 테스트 세트(Vicuna, Koala, Self-Instruct, WizardLM)에서 크게 능가한다.
- 13B AlpaGasus 모델은 테스트 작업에서 교사 Text-Davinci-003의 성능의 90% 이상에 도달한다.
- AlpaGasus는 4× NVIDIA A100(80GB) GPU에서 7B 학습 시간을 80분에서 14분으로 단축해 학습 시간을 5.7배 더 빠르게 달성한다.
- GPT-4를 판단자로 사용한 평가에서 AlpaGasus가 종종 Alpaca를 능가하는 것으로 나타났으며, 인간 연구에서도 그 우수성이 입증되었다.
- 필터링된 데이터는 기본 모델(LLaMA-1 및 LLaMA-2) 및 다양한 LLM 필터(ChatGPT 및 Claude-2)에서 일반화된다.
- 데이터 품질 필터링은 의의 있는 비용 절감과 빠른 반복을 가져오며 지시 수행 성능을 저해하지 않는다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.