Definition
Knowledge distillation is a machine learning method used to compress a large, complex neural network (the teacher) into a smaller, more efficient network (the student). The student model is trained to replicate the output probabilities of the teacher model rather than just the ground truth labels. This process allows the student to capture nuanced patterns and relationships learned by the teacher, resulting in a model that maintains high accuracy while requiring fewer computational resources and memory for deployment.
Summary
Knowledge distillation is a model compression technique where a smaller student model learns to mimic the behavior of a larger teacher model.
Key Concepts
- Teacher-Student Model
- Model Compression
- Soft Targets
- Efficiency
Use Cases
- Deploying models on edge devices
- Reducing inference latency
- Lowering cloud computing costs
Code Example
| |