# Model distillation

> Model distillation is a technique for training a smaller, cheaper "student" model to imitate the outputs of a larger "teacher" model, so that it keeps much of the larger model's quality on a task while running faster.

Also called: distillation, knowledge distillation, teacher-student training, distilled model. Category: Models and training. Source: https://aibuildindex.com/glossary/distillation

## In the index

- Model training: median $4,720, middle half $850 to $14,400, 448 priced briefs (https://aibuildindex.com/skills/model-training)
- LLM fine-tuning: median $3,500, middle half $420 to $13,700, 78 priced briefs (https://aibuildindex.com/cost/llm-fine-tuning)

Large models give strong results but are slow and expensive to run at volume. Distillation transfers what a large model does on a task into a smaller one. The big model acts as a teacher, generating answers or probabilities for many examples, and the smaller student model is trained to reproduce them. Many compact models released by providers are made this way, and businesses can use the same idea to cut running costs once a task is well defined.

## How it works

A distillation project for a business task usually looks like this:

1. **Choose the task.** Something narrow and repeated at high volume, such as classifying support tickets or extracting fields from emails.
2. **Generate teacher outputs.** Run a capable large model over a large set of real or [synthetic](https://aibuildindex.com/glossary/synthetic-data) inputs and record its answers, sometimes including its confidence for each option.
3. **Review the outputs.** Teacher mistakes become student mistakes, so a sample is checked and errors are corrected.
4. **Train the student.** [Fine-tune](https://aibuildindex.com/glossary/fine-tuning) a smaller model on the teacher's outputs, which serve as its [training data](https://aibuildindex.com/glossary/training-data).
5. **Compare.** Measure the student against the teacher on held-out examples, and decide whether the quality drop is acceptable for the savings.

Some providers offer built-in workflows for this, where stored outputs from a large model are used to fine-tune a smaller one from the same provider. Model licences and provider terms may restrict using one company's model outputs to train a competing model, so that needs checking.

Distillation is often combined with [quantization](https://aibuildindex.com/glossary/quantization) to shrink the student further.

## What it means for cost

Distillation is an investment made to reduce running costs. It adds work up front: generating and reviewing teacher outputs, training, evaluating and deploying the student. It pays off when volume is high and the task is stable, because each request then goes to a cheaper, faster model.

For low-volume or fast-changing tasks, the effort rarely pays back. Ask a builder to show the expected volume, the current per-request cost on the large model, the quality gap on your examples, and how the student will be retrained when the task changes.

## Common questions

### Is a distilled model as good as the original?

Usually slightly less capable overall, but often close on the specific task it was distilled for. The aim is not to match the teacher everywhere, only on the job that matters.

### How is distillation different from fine-tuning?

Distillation is a kind of fine-tuning where the training examples come from a larger model rather than from people. The training step is similar; the source of the examples is what differs.

### Can I distil a model from any provider?

Not always. Some providers' terms limit using their outputs to train other models, and open-weight licences vary. Check the terms before planning a distillation project.

## Related terms

- [Small language model](https://aibuildindex.com/glossary/small-language-model): A small language model is a compact language model with far fewer parameters than leading large models, built to be cheaper and faster to run, often on modest hardware or devices, while handling focused tasks well.
- [Fine-tuning](https://aibuildindex.com/glossary/fine-tuning): Fine-tuning is the process of further training an existing AI model on a smaller set of task-specific examples so that it reliably adopts a particular behaviour, format, tone or specialised skill.
- [Quantization](https://aibuildindex.com/glossary/quantization): Quantization is a technique that stores an AI model's numbers at lower precision, which makes the model smaller and faster to run on cheaper hardware at the cost of a usually small loss in quality.
- [Training data](https://aibuildindex.com/glossary/training-data): Training data is the set of examples a machine learning model learns from, such as labelled images, past transactions or question-and-answer pairs, and its quality, coverage and rights largely decide how well the finished model performs.
- [Synthetic data](https://aibuildindex.com/glossary/synthetic-data): Synthetic data is artificially generated data that mimics the patterns of real data, used to train or test AI systems when real examples are scarce, sensitive or missing rare cases.
