Home Knowledge Base Knowledge Distillation

Knowledge Distillation is the model compression technique where a large, high-accuracy "teacher" model transfers its learned knowledge to a smaller, faster "student" model by training the student to match the teacher's soft probability outputs rather than the hard ground-truth labels — capturing the dark knowledge encoded in the teacher's inter-class similarity structure.

Why Soft Labels Carry More Information Than Hard Labels

A hard label says "this is a cat" (one-hot: [0, 0, 1, 0]). The teacher's soft output says "this is 85% cat, 10% lynx, 4% dog, 1% horse." The 10% lynx probability encodes the teacher's knowledge that cats and lynxes share visual features — information completely absent from the hard label. By learning from soft targets, the student acquires structural knowledge about the relationships between classes that would require far more data to learn from hard labels alone.

The Distillation Framework

Distillation in Practice

Limitations

Distillation quality is bounded by the teacher's accuracy on the target domain. A teacher that struggles on medical text will not produce useful soft labels for a medical student model. Teacher errors are inherited by the student, sometimes amplified.

Knowledge Distillation is the most reliable technique for shipping large-model intelligence in small-model form factors — compressing months of teacher training compute into a student that runs on a mobile device or edge accelerator.

knowledge distillationteacher student modelmodel compression distillationsoft label trainingdark knowledge transfer

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.