Distilling Step-by-Step! Outperforming Larger Language Models with Less Training Data and Smaller Model Sizes

By Cheng-Yu Hsieh, Chun-Liang Li, Chih-Kuan Yeh, Hootan Nakhost, Yasuhisa Fujii, Alexander J. Ratner, Ranjay Krishna, Chen-Yu Lee, Tomas Pfister. 2023

990 citations recorded by the source corpus.

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 .

Subfields: Artificial Intelligence, Large Language Models, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yejin Choi
  2. Sergey Levine
  3. Mohit Bansal
  4. Dacheng Tao
  5. Percy Liang
  6. Quoc V. Le
  7. Luke S. Zettlemoyer
  8. Hannaneh Hajishirzi

In Large Language Models

  1. Yejin Choi
  2. Nick Haber
  3. Charles Burton Snell
  4. Eric Wallace
  5. Noah D. Goodman
  6. Ximing Lu
  7. Sergey Levine
  8. Eric Zelikman

In Efficiency & Compression

  1. Can Xu
  2. Charles Burton Snell
  3. Peter West
  4. Dawn Song
  5. Dacheng Tao
  6. Lei Li
  7. Noah D. Goodman
  8. Eric Wallace

Citations in the corpus