Home Knowledge Base Knowledge Distillation

Knowledge Distillation is the model compression technique where a smaller student network is trained to replicate the behavior of a larger teacher network — learning not just from hard labels but from the teacher's soft probability distributions (dark knowledge) that encode inter-class similarities and decision boundaries, producing compressed models that retain 90-99% of the teacher's performance at a fraction of the size and compute.

Hinton's Key Insight

A trained classifier's output logits contain far more information than the one-hot ground truth labels. When a digit classifier predicts "7" with 90% confidence, the remaining 10% distributed over "1" (5%), "9" (3%), "2" (1%), etc. encodes structural knowledge about digit similarity. Training a student to match this full distribution transfers this relational knowledge — hence "dark knowledge."

Standard Distillation Loss

L = α · L_CE(student_logits, hard_labels) + (1-α) · T² · KL(softmax(teacher_logits/T) || softmax(student_logits/T))

Distillation Variants

Applications in LLMs

Knowledge Distillation is the transfer learning paradigm that compresses the intelligence of large models into small ones — making state-of-the-art AI capabilities accessible on devices and at scales where the original models cannot run.

model distillation knowledgeteacher student trainingdark knowledge transferlogit distillationfeature distillation

Explore 500+ Semiconductor & AI Topics

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