Knowledge Distillation

Knowledge distillation trains a smaller "student" model to reproduce the behavior of a larger "teacher" model, learning from the teacher's outputs rather than only from labels. The result is a compact model that retains much of the teacher's capability while being cheaper and faster to run.

Definition

Knowledge Distillation

Introduced by Hinton and colleagues, distillation transfers the "dark knowledge" in a teacher's full probability distribution — not just its top answer — to a smaller student. The student is trained to match these soft targets, which carry richer information than hard labels and help it generalize.

Distillation is a key tool for deploying capable models under tight latency and cost budgets, and for creating small on-device models. It is often combined with quantization and pruning, and modern variants distill from large language models to produce efficient specialized ones.

Frequently asked questions

What is Knowledge Distillation?

Knowledge distillation trains a smaller "student" model to reproduce the behavior of a larger "teacher" model, learning from the teacher's outputs rather than only from labels. The result is a compact model that retains much of the teacher's capability while being cheaper and faster to run.

Sources

Related terms

← Full AI & prompt engineering glossary

Put Knowledge Distillation to work with Prompeteer, the Agentic Contextual AI Platform →