GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

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

Ask a big model why, not just what, and train a small model to predict both. A 770M model beats 540B PaLM's few-shot accuracy on ANLI with 80% of the data, and rationales cost nothing at serving time.

Breakdown by FDE Interviews · 12 min read · Updated

About the original · 2023
AUTHORS
Hsieh, Li, Yeh, Nakhost, et al.
FROM
University of Washington, Google Cloud AI Research, Google Research
PUBLISHED
May 2023 · arXiv preprint
CITED BY
1,200Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 20% of this breakdown.

01

The paper in one minute

The standard ways to get a small task model are fine-tuning on human labels or distillation: label unlabeled data with a big model and train on its labels. Both need lots of data to match the big model. This paper treats the big model as a source of reasoning, not just labels.

Step 1. Prompt the large model (540B PaLM) with about ten worked examples, each an input, a written rationale and a label, so that for every new input it writes a rationale and a label. For a word problem about carpeting a room, the rationale says area is length times width; the label is the expression.

Step 2. Train a small T5 model on two tasks over the same inputs. With the prefix [label] it learns to output the label; with [rationale] it learns to write the rationale. The loss is the label loss plus λ times the rationale loss. At inference only the label task runs, so the deployed model is as fast as any fine-tuned T5 and never needs the large model.

On four datasets (e-SNLI and ANLI for inference, CommonsenseQA, SVAMP word problems), the method beat standard fine-tuning and standard distillation at every data size and model size tested. It matched full-data fine-tuning with 12.5% of e-SNLI, 25% of ANLI, 75% of CQA and 80% of SVAMP. With human labels, T5 models from 220M to 11B beat PaLM's few-shot chain-of-thought on all four tasks; with only unlabeled data, on three of four. Putting rationale and label into one output sequence, instead of two tasks, sometimes did worse than no rationales.

THE IDEA, VISUALLY
TEACHER WRITES RATIONALES, STUDENT LEARNS TWO TASKS 540B PaLM, ~10 worked examples in the prompt rationale: "Area = length × width…" label: (11 × 15) − 16 for every unlabeled input T5 student, same input, two prefixes: [label] input → label (used at inference) [rationale] input → rationale (training only) loss = label loss + λ × rationale loss λ is not reported in the paper DATA NEEDED TO BEAT FULL-DATA FINE-TUNING (FIG. 4) e-SNLI (549K) 12.5% ANLI (17K) 25% CQA (8.8K) 75% SVAMP (720) 80% T5-220M; share of the human-labeled training set used smallest model to beat PaLM's few-shot CoT with labels: 220M on e-SNLI, 770M on ANLI and SVAMP, 11B on CQA T5-220M, FULL DATA (TABLES 1-2) standard one sequence multi-task e-SNLI 88.38 88.88 89.51 ANLI 43.58 43.50 49.58 CQA 62.19 61.37 63.29 SVAMP 62.63 63.00 65.50 rationale + label as one target can hurt (ANLI, CQA) rationales from 20B GPT-NeoX instead: 89.12, 48.15, 63.25, 63.00 TEACHER'S OWN SCORE VS FINE-TUNED T5-220M e-SNLI PaLM ~73.0 T5 88.38 ANLI PaLM ~65.5 T5 43.58 CQA PaLM ~76.8 T5 62.19 SVAMP PaLM ~74.0 T5 62.63 T5 = T5-220M, standard fine-tuning; PaLM read off Fig. 6. On e-SNLI, plain fine-tuning already beats the teacher by 15. UNLABELED DATA ONLY (FIGURE 7) student beat the teacher on 3 of 4 tasks with T5-11B; on SVAMP (720 examples) it matched only after adding 2,305 unlabeled ASDiv problems
The student learns to write the teacher's reasoning as a second task, then serves labels alone. Rationales mattered most where the task needed reasoning (ANLI +6.0) and least where plain fine-tuning was already strong (e-SNLI +1.1).
Research notes: the problem, approach and results
12.5%

share of e-SNLI's labeled data T5-220M needed with rationales to beat standard fine-tuning on all of it

+6.0

accuracy points on ANLI from adding PaLM rationales to T5-220M fine-tuning (43.58 to 49.58)

700x

how much smaller the 770M T5 is than the 540B PaLM it beat on ANLI and SVAMP with human labels

THE PROBLEM

Teams prompt a huge model for a narrow task because a small model would need many labeled examples to match it. Serving the huge model costs memory and latency, and labeling data costs people.

THE IDEA

Prompt the large model with a few worked examples so it writes a rationale and a label for each training input. Train a small model on two tasks with prefixes: predict the label, and generate the rationale. At inference, run only the label task.

THE RESULT

Across four tasks, rationales let T5 models match full-data fine-tuning with 12.5% to 80% of the labels. A 770M T5 beat 540B PaLM's few-shot chain-of-thought on ANLI with 80% of the data, where standard fine-tuning never caught up. Training rationale and label as one output sequence was worse than two tasks.

02

Why it matters to an FDE

A common deployment pattern: a customer prompts a large API model for a classification, extraction or routing task, it works, and then the bill and the latency arrive at production volume. The fix is a small fine-tuned model, but the customer has few labels. This paper is the recipe for that move.

Rationales stretch scarce labels. The large model is already being called; asking it to explain its answer costs extra output tokens per example, once, at training time. In return the small model needs a fraction of the labeled data, and at inference it emits only the label, so serving cost does not change.

The gain depends on the task. Rationales added 6.0 points on ANLI, a hard inference task, but about 1 point on e-SNLI and CQA. On e-SNLI, plain fine-tuning of a 220M model already beat PaLM's few-shot accuracy by about 15 points. Check whether the task needs reasoning before paying for rationales.

The student can beat the teacher. On e-SNLI and others, students trained only on PaLM's labels and rationales scored above PaLM's own few-shot accuracy. A small specialist trained on many teacher outputs can average out teacher mistakes; an FDE should measure on gold labels rather than assume the teacher is the ceiling.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 149 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    How the data and size savings break down, which design choices mattered, and three misreadings

    Free account
  2. 04How it works

    Prompting for rationales, the multi-task loss, the baselines, models and datasets

    Premium
  3. 05The numbers that matter

    Ablation tables, data reductions, model-size comparisons and the teacher's own accuracy

    Premium
  4. 06Try it yourself

    Recompute the reductions and gaps, then train a toy student with and without rationales

    Premium
  5. 07Where it breaks

    Teacher errors, unreported settings, small test sets, model-family limits and slips

    Premium
  6. 08Using it on a deployment

    Turning a prompted LLM workflow into a small fine-tuned model with rationale supervision

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →