Skip to main content
Cloud & AI Hub
Browse
Glossary AI Directory Playgrounds Models Prompts Explainers Strategy Matrix Benchmark Decoder

Knowledge Distillation

Training a small, cheap model to imitate a large one's outputs — the standard route to frontier-quality behavior on a narrow task at a fraction of the cost.

What is distillation?

Distillation transfers capability from a large “teacher” model to a small “student”: generate high-quality outputs with the teacher, then fine-tune the student on them. The student never matches the teacher in general — but on a defined task, a distilled 8B model routinely matches a frontier model at 10–100× lower inference cost and latency.

Why it matters commercially

Distillation is the standard endgame of LLM cost optimization: prototype on the best model available, collect its outputs on your real traffic, distill into a small model, route the narrow high-volume task to it. It’s also how small open models got good — most competitive sub-10B models are trained heavily on outputs of larger ones (the R1-distill family made this explicit for reasoning).

Distillation vs quantization vs fine-tuning

Frequently confused, cleanly different: quantization shrinks the same model’s numeric precision; fine-tuning adjusts a model on your examples; distillation is fine-tuning where the training data is another model’s outputs. They stack — a distilled student, quantized to 4-bit, is the classic edge-deployment recipe.

The catch: licensing and drift

Many providers’ terms restrict using their outputs to train competing models — read them before building a business on distilled data. And the student inherits the teacher’s mistakes at collection time: teacher hallucinations become baked-in student beliefs, so filter the training set with evals or verifiable checks first.

What people get wrong

  • Distilling before the task is stable. Every prompt or scope change means regenerating data and retraining; distill after product behavior settles.
  • Expecting general capability. The student mimics the teacher on the training distribution; off-distribution it degrades much faster than the teacher.
  • Skipping the quality filter. “Train on everything the teacher said” transfers errors as faithfully as skills.

Historical figures and technical concepts for informational purposes only. Not technical, professional, legal, or financial advice. Sources: Official Documentation.