Skip to content

AI Glossary · Concepts

What is Knowledge Distillation?

Knowledge Distillation

Knowledge distillation trains a small 'student' model to imitate a larger 'teacher' model, transferring much of the teacher's capability into a model that's cheaper and faster to run. It's a main way the strong-but-expensive becomes small-enough-to-ship.

Also known as: distillation, model distillation

· Updated · Chain of Thought

AI Engineering

  • 1 explainer
  • 7 episodes
  • 1 guest clip
  • 1 source

Distillation takes a large, capable “teacher” model and uses its outputs to train a much smaller “student.” Instead of learning only from raw labels, the student learns from the teacher’s richer signal — its probability distributions over answers, which Hinton, Vinyals and Dean called “soft targets” in the 2015 paper that named the technique — and ends up punching above the weight its size would suggest. The result is a model that keeps a lot of the teacher’s quality at a fraction of the cost and latency.

It’s one of the main techniques behind capable small models, alongside quantization and good fine-tuning. The limits: the student rarely matches the teacher exactly, it inherits the teacher’s biases and blind spots, and distilling someone else’s model can run into licensing and terms-of-use questions. Used well, it’s how a frontier-grade capability gets cheap enough to run at scale.

Hear it from the guest

“You can try to squeeze as much knowledge, for example, with knowledge distillation into one b model. It will never be as smart as a three b model. That's a fact.”

Quotes lightly edited to remove filler words.

Sources

Go deeper

From the conversation