# Knowledge Distillation

- **Canonical URL:** https://getaimath.com/dictionary/knowledge-distillation/
- **Topics:** [Model Training & Optimization](https://getaimath.com/dictionary/category/model-training-and-optimization/)
- **Last updated:** 2026-11-25

## What is Knowledge Distillation?

**In one sentence:** Knowledge distillation trains a small "student" model to copy the behavior of a big "teacher" model.

The big model is smart but slow and expensive. The small student learns from the teacher's answers, and often from its full probability scores, which carry extra hints. The student ends up much smaller but keeps much of the teacher's skill.

![How an AI Goes to School: 3 Steps from Bookworm to Assistant — Simple 3-step cartoon showing an AI 1. Reading the whole library (Pre-training) to become a Bookworm, 2. Practicing polite Q&A with a teacher (Fine-tuning), and 3. Getting thumbs-up and thumbs-down feedback from humans (RLHF).](https://getaimath.com/diagrams/model-training-and-optimization.png)
*Napkin Diagram (Model Training & Optimization): First the model reads the internet to learn facts; next it practices answering questions; finally humans coach its manners.*

## What is an example of Knowledge Distillation?

A company might distill a 400-billion-parameter model into a 7-billion-parameter model that runs on a laptop.

## Why does Knowledge Distillation matter?

Distillation is a main way to make AI cheaper, faster and able to run on phones.

## Related Concepts

- [Proximal Policy Optimization (PPO)](https://getaimath.com/dictionary/proximal-policy-optimization-ppo/): PPO is a reinforcement learning method that improves a model in small, careful steps so it does not change too much at once.
- [Model Compression](https://getaimath.com/dictionary/model-compression/): Model compression is any technique that makes an AI model smaller or faster while keeping most of its quality.
- [Direct Preference Optimization (DPO)](https://getaimath.com/dictionary/direct-preference-optimization-dpo/): DPO is a simpler way to do preference tuning that trains directly on "better vs worse" answer pairs, without a separate reward model.
- [Pruning](https://getaimath.com/dictionary/pruning/): Pruning removes parts of a neural network that contribute little, making the model smaller and faster.
- [Reinforcement Learning from Human Feedback (RLHF)](https://getaimath.com/dictionary/reinforcement-learning-from-human-feedback-rlhf/): RLHF is a way to improve a chatbot by having people rate its answers and then training it to give the kinds of answers people prefer.
- [Sparsity](https://getaimath.com/dictionary/sparsity/): Sparsity means that many of the numbers in a model are zero or unused, so the computer can skip them.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/knowledge-distillation/)
