Home Knowledge Base Knowledge Distillation

Knowledge Distillation is the model compression technique where a smaller "student" network is trained to mimic the output behavior of a larger, more accurate "teacher" network — transferring the teacher's learned knowledge through soft probability distributions rather than hard labels, enabling deployment of compact models that retain 90-99% of the teacher's accuracy at a fraction of the size and computation.

Core Idea (Hinton et al., 2015)

Distillation Loss

$L = \alpha \cdot T^2 \cdot KL(p^T_{teacher} || p^T_{student}) + (1-\alpha) \cdot CE(y, p_{student})$

Types of Distillation

TypeWhat's TransferredExample
Response-basedFinal layer outputs (logits)Classic Hinton distillation
Feature-basedIntermediate layer activationsFitNets, attention transfer
Relation-basedRelationships between samplesRelational KD, CRD
Self-distillationSame architecture, deeper→shallowerBorn-Again Networks
Online distillationMultiple models teach each otherDeep Mutual Learning

LLM Distillation

Practical Guidelines

Knowledge distillation is the primary technique for deploying large models in resource-constrained environments — from compressing BERT for mobile deployment to creating smaller LLMs from GPT-class teachers, distillation bridges the gap between research-scale accuracy and production-scale efficiency.

knowledge distillationteacher student networkmodel distillationdistill knowledgesoft label

Explore 500+ Semiconductor & AI Topics

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