Custom AI models for the enterprise · New York · LondonSecurityResearchContact sales
Finetune the World
Glossary

Knowledge distillation: definition, math and practical numbers

Knowledge distillation trains a smaller student model to reproduce a larger teacher model’s behaviour, so the student runs far cheaper while keeping most of the teacher’s quality on the target task.

Definition#

Knowledge distillation (Hinton et al. 2015) trains a student on the teacher’s output distribution rather than only on hard labels. With teacher logits , student logits and temperature , the classic objective mixes a soft-target term with the usual loss:

The factor keeps gradient magnitudes comparable across temperatures. For LLMs, teacher logits are often unavailable (API models), so enterprises use sequence-level distillation: generate teacher outputs, filter them with verifiers and judges, and fine-tune the student on the survivors.

Practical guide: LLM distillation; service: model distillation.

Bring us one task. We’ll show you what a specialist model can do.

A 45-minute briefing with a senior research engineer. You leave with a feasibility read, a data plan and a fixed quote, whether or not you hire us.

Book a briefing →