IN THIS BREAKDOWN · 10 SECTIONS
You can read 22% of this breakdown.
The paper in one minute
Big models and ensembles generalize better, but they are expensive to run. Hinton, Vinyals and Dean compare it to insects: a larval form built for feeding and an adult form built for travel. Training can afford a cumbersome model; deployment needs a small one. Distillation moves what the cumbersome model learned into the small one.
The key observation is about what a trained classifier knows. Besides the right answer, it assigns probabilities to every wrong answer, and those small probabilities differ in informative ways: an image of a BMW might get a tiny chance of being a garbage truck but a much smaller chance of being a carrot. That pattern encodes how the model generalizes. Training a small model only on correct labels throws it away.
The method is to train the small model to match the big model's probabilities, its soft targets, instead of or as well as the labels. Most of the useful information sits in probabilities so small they barely affect the loss, so the softmax is "heated": logits are divided by a temperature T before the softmax, which flattens the distribution and makes the small probabilities count. The student is trained at the same temperature on these soft targets, usually with a smaller second loss on the true labels, and then used at temperature 1. The soft-target loss is multiplied by T² so its gradients keep the same scale as T changes. At very high temperature, distillation reduces to matching the teacher's logits, which an earlier method by Caruana and colleagues did directly.
On MNIST, a small net trained on soft targets nearly matched the large regularized net (74 errors against 67), against 146 errors when trained on labels. It even learned to recognize the digit 3 without seeing a single 3 in its transfer set. In Google's speech recognition, one distilled acoustic model captured most of a 10-model ensemble's improvement. The paper also trains specialist models for confusable classes on a 100-million-image dataset.
Research notes: the problem, approach and results
of the 10-model ensemble's frame-accuracy gain kept by one distilled model (Table 1: 58.9% to 60.8% of 61.1%)
MNIST test errors for a small net with soft targets against the same net trained on labels (Section 3)
frame accuracy with soft targets against hard labels when training on only 3% of the speech data (Table 5)
The best models are often large or ensembles of many models, too expensive to run for every user. Training a small model directly on the labels throws away what the big model learned about which wrong answers are nearly right.
Train the small model on the big model's output distribution softened by a temperature T in the softmax, so the small probabilities of wrong classes become visible, plus a small weight on the true labels. At high temperature this reduces to matching logits. For very large datasets, also train specialist models on confusable classes.
On MNIST, a small net trained on soft targets made 74 test errors against 146 when trained normally (the large net made 67). In Android voice search, one distilled acoustic model reached 60.8% frame accuracy against 61.1% for a 10-model ensemble and 58.9% for the baseline, keeping the ensemble's WER of 10.7%.
Why it matters to an FDE
Distillation is the standard way to turn a capable but expensive model into one a customer can afford to run, and modern LLM distillation descends from this paper.
Use the big model to label, the small model to serve. A common pattern: an expensive model produces outputs or probabilities on the customer's data, and a small model is trained on them. This paper shows why that works better than training the small model on labels alone: the teacher's distribution over alternatives carries extra information per example.
Soft targets stretch small datasets. With only 3% of the speech training data, a model trained on soft targets reached 57.0% frame accuracy against 44.5% with labels, close to the 58.9% of a model trained on everything. When a customer has little labeled data but access to a strong model, distillation is often the cheapest path to a good small model.
Distillation transfers part of the gain, not all of it. One distilled model kept about 86% of an ensemble's frame-accuracy improvement. Set expectations accordingly: the student approaches the teacher, it does not reliably match it.
Understand the mechanism. Try it on a real problem.
Unlock this breakdown and 290 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
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
Soft targets, temperature, the combined loss, logit matching, specialists and two misreadings
Free account - 04How it works
The objective, the gradient at high temperature, MNIST and speech setups, and specialist ensembles
Premium - 05The numbers that matter
MNIST errors, the speech ensemble table, the 3% data result and the specialist gains
Premium - 06Try it yourself
Check the T-squared rule, distill a toy classifier from 150 examples, and recheck the tables
Premium - 07Where it breaks
Classification scope, workshop-scale evidence, bias calibration, capacity gaps and hard-label weight
Premium - 08Using it on a deployment
Distilling a classifier from a large model, picking the temperature, and checking calibration
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
