AI & automation

What is model distillation?

Model distillation is training a smaller, cheaper model to reproduce the outputs of a larger one on a particular task. The result answers faster and costs less per request, usually with a narrower skill set.

How it works

You run thousands of your real inputs through a strong model and save its answers. Those pairs become training data for a small model, which learns to mimic them. If the task is steady and high volume, such as tagging support tickets, the small model can match the big one's accuracy at a fraction of the cost and delay.

When it makes sense

  • You send the same type of request millions of times.
  • Delay matters, such as responses within a phone call.
  • The model must run on a device or a modest server.

Cautions

The student rarely matches the teacher on unusual inputs, so measure on held-out examples including edge cases. Check the provider's terms: some prohibit using outputs to train competing models. Plan to refresh the data if your business rules change. For low volume, the engineering effort costs more than it saves.

Questions, answered

Distillation is a use of fine-tuning where the training data comes from another model's answers.

Only for the narrow task it was trained on. Keep the large model for open-ended requests.

By the Stegnor team · Updated