What Is Distillation?

Models & Architecture Also known as: model distillation, knowledge distillation

Distillation is a technique for compressing a large AI model into a smaller one by training the smaller "student" model to copy the outputs of the larger "teacher" model. The result is a lighter model that keeps much of the original's ability while running faster and more cheaply on less hardware.

How distillation works

Distillation works by having a small student model learn from a large teacher model rather than from raw data alone. The teacher runs over a set of examples and produces its outputs, and the student trains to reproduce them. Because the teacher's outputs carry more information than a plain right-or-wrong label, including how confident it was across the options, the student can learn more efficiently than it would from the original data by itself.

The payoff is size. A distilled model can be a fraction of the teacher's size while retaining much of its performance, which makes it practical to run where a giant model could not go, such as on a phone or under tight cost limits.

Why distillation matters for AI

Distillation helps close the gap between what large models can do and what most systems can afford to run. State-of-the-art models are powerful but expensive and slow, and distillation produces smaller versions that are cheaper to serve and quick enough for real-time use, with only a modest drop in quality. That trade-off is often worth it in production. At Custom AI Studio, techniques like distillation help us size a model to a client's actual workload, rather than paying for more model than the job needs.

Frequently asked questions.

The stuff we hear most on the first call. Don't see yours? Book a 30-minute conversation.

What is model distillation?
Model distillation is training a small model to imitate a larger one, so the small model inherits much of the large one's ability while being cheaper and faster to run. The large model is the teacher, the small one is the student.
What is the difference between distillation and quantization?
Distillation trains a separate, smaller model to imitate a larger one. Quantization keeps the same model but stores its numbers at lower precision to shrink it. Both cut size and cost, and they are often combined.
Why distill a model?
To make a capable model cheap and fast enough for real use. A distilled model runs on less hardware, responds quicker, and costs less to serve, which matters when a system handles many requests or runs on limited devices.

Want to put AI
to work?

We work with leadership teams to find the right opportunities, define the strategy, and build the systems that move the business forward.