AI CompendiumA public chart of the language
Home / Training & Inference / Distillation
Training & Inference

Distillation

Training a small model to imitate a big one.

Definition

Training a smaller, cheaper model to reproduce the outputs or probabilities of a larger teacher model, transferring much of the capability into a fraction of the size.

Distillation is how many fast, cheap, domain-specific models are made. You pay the big model once to generate training data, then serve the small one.

Distillation is why small models keep getting better than their size suggests, and it has a second, less discussed use: you can distil a specific capability rather than everything. Take the traces from a frontier reasoning model on your task and train a small model to produce them, and you buy most of the quality for a fraction of the per-call price.

How people use it
Reducing inference cost after a successful prototype.
"The teacher solved it perfectly. Now distil ten thousand of its outputs and serve a model at a tenth the price."
Worked example

Distilling your own workload

Ninety percent of traffic is a narrow extraction task handled by a frontier model.

Run the expensive model over a sample, keep its outputs as training data, and distil a small model on that distribution. You keep the provider as the fallback for hard cases and cut unit cost on the bulk of traffic.

Sources
Related terms