Skip to main content
QUICK REVIEW

[Paper 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)|May 3, 2023
Topic ModelingComputer Science15 citations
TL;DR

The paper introduces Distilling step-by-step, a method that uses LLM-generated rationales to train small task-specific models, achieving better data efficiency and deployment efficiency than finetuning or distillation and often outperforming LLMs with much smaller models.

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 .

Motivation & Objective

  • Motivate deploying practical, memory-efficient models by reducing reliance on giant LLMs.
  • Develop a data-efficient training paradigm that leverages LLM rationales as supervision for small models.
  • Show that smaller models trained with rationales can outperform LLMs with significantly less data and compute.
  • Demonstrate data and model size reductions across multiple NLP benchmarks.

Proposed method

  • Prompt LLMs to generate labels with rationales using few-shot Chain-of-Thought prompting.
  • Train a small model in a multi-task setup to predict both labels and rationales, enabling test-time label-only predictions.
  • Use task prefixes to switch between [label] and [rationale] outputs, allowing rationale generation as auxiliary supervision during training.
  • Compare against standard finetuning and standard distillation under varying data regimes (labeled and unlabeled).
  • Evaluate across four NLP benchmarks to assess data efficiency, model size, and performance.

Experimental results

Research questions

  • RQ1Can LLM-generated rationales provide useful supervision to train smaller models with less labeled or unlabeled data?
  • RQ2Do smaller, rationale-guided models outperform LLMs and traditional baselines in data- and compute-constrained settings?
  • RQ3How does multi-task rationale-label training compare to single-task rationale or label generation approaches?
  • RQ4What are the data- and model-size thresholds where Distilling step-by-step surpasses large LLM performance?
  • RQ5Does unlabeled data augmentation further enhance performance under this framework?

Key findings

  • Distilling step-by-step achieves better performance than standard finetuning with far fewer labeled examples across all four datasets.
  • Distilling step-by-step outperforms standard task distillation with less unlabeled data across the same benchmarks.
  • Smaller models (e.g., 220M T5) can outperform a 540B PaLM few-shot CoT setup on several tasks using a fraction of data.
  • The approach enables outperforming LLMs with up to thousands of times smaller models and reduced data requirements.
  • Multi-task training with separate rationale and label outputs consistently yields gains over joint single-task training.
  • Unlabeled data augmentation further improves performance, helping to close gaps on tasks with limited data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.