On this page
What Is Knowledge Distillation?Key TakeawaysHow Does Knowledge Distillation Work?What Are Soft Labels?Why Is Knowledge Distillation Important for Robotics?Knowledge Distillation vs. QuantizationFrequently Asked QuestionsThe Bottom LineSourcesRelated termsWhat Is Knowledge Distillation?
Knowledge distillation is a machine learning technique in which a model is trained using information produced by another model, often with the goal of transferring capabilities from a larger model to a smaller one.
The model providing guidance is commonly called the teacher, while the model being trained is called the student.
For example, a robotics company may use a large computer vision model to help train a smaller model that can run efficiently on a robot's onboard processor.
This is useful when a capable model is too computationally expensive to deploy directly.
Key Takeaways
- Knowledge distillation transfers useful predictive behavior from one model to another.
- A smaller student model may require less memory and computing power than its teacher.
- Distillation does not guarantee that the student will reproduce every capability of the teacher.
How Does Knowledge Distillation Work?
Imagine a large AI model trained to recognize thousands of objects.
It produces predictions containing information about how likely different categories are.
A smaller model is then trained using examples and information from the larger model's outputs.
Rather than learning only from a hard label such as box, the student may learn from the teacher's broader probability distribution.
For example, the teacher might assign a high probability to box, a smaller probability to container, and a low probability to chair.
These relative predictions can provide information about relationships between categories.
The student learns to produce similar outputs while using a smaller architecture.
What Are Soft Labels?
A traditional classification label may identify one correct category.
A soft label contains a distribution across several categories.
For example:
- Box: 85%
- Container: 12%
- Chair: 3%
These percentages are illustrative.
Soft labels can communicate information beyond the single most likely category.
In knowledge distillation, training may use temperature scaling to adjust the probability distribution and reveal additional relationships.
The student can also be trained using original ground-truth labels.
Why Is Knowledge Distillation Important for Robotics?
Robots frequently operate with limited memory, electrical power, and cooling.
A large model that performs well on a data center GPU may be unsuitable for an embedded device.
Distillation can help developers create a smaller model that preserves useful portions of the larger model's behavior.
For example, a vision model used in a warehouse robot could be distilled into a version with lower memory requirements and faster inference.
However, actual improvements depend on model architecture, training, and hardware compatibility.
Knowledge Distillation vs. Quantization
Both can help make models more efficient, but they work differently.
Knowledge distillation trains a model to reproduce useful behavior learned by another model.
Quantization changes the numerical representation of model values, often reducing precision to improve efficiency.
A smaller student model can also be quantized.
The methods can therefore be combined.
Frequently Asked Questions
Does knowledge distillation always require a smaller student model?
No. Teacher-student training can also be used to transfer behavior between differently structured or similarly sized models.
Can distillation make a student model better than its teacher?
In some tasks or evaluations, a student may perform better, but this is not guaranteed.
The Bottom Line
Knowledge distillation helps transfer useful AI capabilities into models that may be more practical to deploy. It is especially valuable when Physical AI applications require capable models within limited computing resources.
Sources
Black Scarab Weekly
Follow the physical AI economy
Get Black Scarab news, deep research, and practical analysis in one clear Thursday briefing.