Skip to main content
QUICK REVIEW

[논문 리뷰] Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes

Cheng-Yu Hsieh, Chunliang Li|arXiv (Cornell University)|2023. 05. 03.
Topic ModelingComputer Science인용 수 15
한 줄 요약

본 논문은 Distilling step-by-step를 소개합니다. 이 방법은 LLM이 생성한 합리적 근거를 활용하여 소형 작업 특화 모델을 훈련시키고, 파인튜닝이나 디스틸레이션보다 데이터 효율성과 배포 효율성을 높이며, 훨씬 작은 모델로도 종종 LLMs를 능가합니다.

ABSTRACT

Deploying large language models (LLMs) is challenging because they are memory inefficient and compute-intensive for practical applications. In reaction, researchers train smaller task-specific models by either finetuning with human labels or distilling using LLM-generated labels. However, finetuning and distillation require large amounts of training data to achieve comparable performance to LLMs. We introduce Distilling step-by-step, a new mechanism that (a) trains smaller models that outperform LLMs, and (b) achieves so by leveraging less training data needed by finetuning or distillation. Our method extracts LLM rationales as additional supervision for training small models within a multi-task framework. We present three findings across 4 NLP benchmarks: First, compared to both finetuning and distillation, our mechanism achieves better performance with much fewer labeled/unlabeled training examples. Second, compared to few-shot prompted LLMs, we achieve better performance using substantially smaller model sizes. Third, we reduce both the model size and the amount of data required to outperform LLMs; our finetuned 770M T5 model outperforms the few-shot prompted 540B PaLM model using only 80% of available data on a benchmark, whereas standard finetuning the same T5 model struggles to match even by using 100% of the dataset. We release the code at: https://github.com/google-research/distilling-step-by-step .

연구 동기 및 목표

  • 거대한 LLM에 대한 의존도를 줄여 실용적이고 메모리 효율적인 모델 배치를 촉진한다.
  • 소형 모델에 대한 감독으로 LLM의 합리적 근거를 활용하는 데이터 효율적 학습 패러다임을 개발한다.
  • 합리적 근거로 훈련된 더 작은 모델이 현저하게 적은 데이터와 계산으로 LLM를 능가할 수 있음을 보여준다.
  • 여러 NLP 벤치마크에 걸쳐 데이터 및 모델 크기 감소를 입증한다.

제안 방법

  • few-shot Chain-of-Thought prompting을 사용하여 합리적 근거를 가진 레이블을 생성하도록 LLM에 프롬프트를 제시한다.
  • 레이블과 합리적 근거를 모두 예측하도록 다중 작업 설정에서 소형 모델을 훈련하여 테스트 시 레이블만 예측을 가능하게 한다.
  • 작업 접두어를 사용하여 [label]과 [rationale] 출력 간에 전환하고, 훈련 중 보조 감독으로서 합리적 근거 생성을 가능하게 한다.
  • 레이블 있는/없는 데이터의 다양한 설정에서 표준 파인튜닝 및 표준 디스틸레이션과 비교한다.
  • 데이터 효율성, 모델 크기 및 성능을 평가하기 위해 네 가지 NLP 벤치마크에 대해 평가한다.

실험 결과

연구 질문

  • RQ1LLM이 생성한 합리적 근거가 더 적은 레이블링 또는 비레이블 데이터로 더 작은 모델을 훈련시키는 데 유용한 감독으로 제공될 수 있는가?
  • RQ2데이터 및 계산 제약 환경에서 더 작고 합리적 근거로 안내된 모델이 LLM과 전통적 기준선을 능가하는가?
  • RQ3다중 작업 합리적 근거-레이블 학습이 단일 작업의 합리적 근거 또는 레이블 생성 접근법과 어떻게 비교되는가?
  • RQ4Distilling step-by-step가 대형 LLM 성능을 능가하는 데이터 및 모델 크기 임계값은 무엇인가?
  • RQ5이 프레임워크하에서 비레이블 데이터 증강이 성능을 더 향상시키는가?

주요 결과

  • Distilling step-by-step는 네 가지 데이터셋 전부에서 표준 파인튜닝보다 훨씬 적은 수의 레이블 예제로 더 나은 성능을 달성한다.
  • Distilling step-by-step는 같은 벤치마크에서 비레이블 데이터가 더 적은 상태에서도 표준 작업 증류를 능가한다.
  • 더 작은 모델(예: 220M T5)이 여러 작업에서 소량의 데이터로 540B PaLM의 few-shot CoT 설정을 능가할 수 있다.
  • 이 접근법은 수천 배 더 작은 모델과 감소된 데이터 요구사항으로 LLM을 능가하는 것을 가능하게 한다.
  • 별도의 합리적 근거 및 레이블 출력을 사용하는 다중 작업 학습이 단일 작업 학습을 결합하는 것보다 일관되게 향상된다.
  • 비레이블 데이터 증강은 성능을 더욱 개선하고 데이터가 제한된 작업에서 격차를 줄이는 데 도움이 된다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.