Distillation vs Fine-tuning
31 sourced facts · updatedDistillation or fine-tuning: what is the difference?
Distillation is a kind of fine-tuning. Both train a model further on examples; what differs is where the examples come from. In fine-tuning a team supplies its own labeled examples to teach a task, a format or a style. In distillation the examples come from a larger teacher model, and the aim is a smaller student that mimics it. The sources also note that much of what is called distillation is ordinary fine-tuning with direction from another model. [1][2][3][4]
In the knowledge graph: The student is a small model taught further on what the teacher produced.
The difference between Distillation and Fine-tuning
| Distillation | Fine-tuning | |
|---|---|---|
| Where the training examples come from | From a teacher: a larger, more capable model answers questions, and its answers and reasoning are recorded for the student. [1][2] | From the team: examples collected, labeled by an LLM judge, reviewed by hand and split into held-out sets. When examples are scarce, a larger model can write more. [5][6] |
| What it aims to teach | To mimic a larger model: the aim is to capture its reasoning offline and let smaller, faster models serve it. [7] | A task, a format or a style: reflexes such as the format of the input, not facts, which change. [3] |
| What decides quality | How much of the teacher is captured: a student trained on exact reasoning traces generally outperformed one trained on summaries. In Anthropic's test, a pretrained model trained on full transcripts scored 80.4% on SWE-bench Verified, against 71.8% on summarized ones. [8][9] | Data quality, not quantity: throwing masses of data at training does not give a good outcome, and a smaller golden set trained with heavier weight beats unfiltered traces. [10][11] |
| The teacher | Central: the student is bounded by the guiding signal. A large teacher-student gap can steer the student the wrong way, and on-policy distillation helps only when the two are highly aligned. [12][13] | Optional. Where a larger model is used as a teacher, the strongest one is not always best: a much more capable teacher can produce traces the student cannot learn from. [14] |
| How it goes wrong | A thin copy that is worse than its base: variants distilled on only 4k to 10k teacher samples were reported to change style rather than capability, and one external test saw more hallucination and slower runs. [15][16] | Regressions and forgetting: each tune fixed its target but caused regressions in other things, and full SFT on domain tasks can degrade general performance. [17][18] |
| How to check it | Compare the student with its base model before shipping, and evaluate it on a benchmark such as SWE-bench Verified. [15][19] | Evaluate on held-out sets and check the metrics before deploying, and score the tune on what it forgot as well as what it learned. [20][21] |
When to use Distillation
- You want a smaller, faster model that serves what a large one can do. Microsoft Research reported a 22M-parameter tile encoder distilled from a billion-parameter teacher within 3% of the original at roughly 50 times less compute. [7][22]
- You have access to a strong teacher whose reasoning you can record: transcripts of the teacher's reasoning are the most valuable distillation data, much more useful than the output alone. [23][24]
When to use Fine-tuning
- The model's output format or behavior is off, and you can curate examples of the right behavior yourself. [25][10]
- You want a cheap way to specialize a model: LoRA freezes the base weights and trains only a few added parameters, which gives tiny checkpoints and lets several tunes share one base model. [26][27]
Using Distillation and Fine-tuning together
The two stack. A distilled student is a small model taught further on what the teacher produced, and a tiny on-device model is usually tuned on a dataset created synthetically with a larger model. One example: a 270M-parameter model went from 46% to over 90% function-calling success after tuning on synthetic data, reported by Google. [2][28][29]
Does a smaller student keep what the teacher knew?
Less as it shrinks. R1 distilled into smaller Qwen2.5 models scores lower on AIME, MATH and GPQA the smaller the student, and distilled models may do worse in general if tuned to a narrow set of benchmarks. [30][31]