Last reviewed:
What is AI model distillation? Definition and business implications
Distillation is a technique that transfers the knowledge of a large AI model (teacher model) to a smaller model (student model), while preserving most of the performance. It enables the deployment of lightweight models with reduced inference cost, viable on more modest infrastructures.
The concept was formalised by Hinton, Vinyals, and Dean in 2015 in the paper Distilling the Knowledge in a Neural Network. In its original form, the student model learns to imitate the outputs (probabilities, logits) of the teacher model, in addition to the right answers: the authors combine the two objectives through a weighted average. The student thus learns not only the right answers, but also the relative confidence the teacher model assigns to each alternative. This so-called soft information carries far more learning signal than binary labels alone. A second method, sequence-level distillation (Kim and Rush, 2016), trains the student on text produced by the teacher: this is how the DeepSeek-R1-Distill models were made, fine-tuned on 800,000 samples curated with DeepSeek-R1. DistilBERT (Sanh et al., 2019) is the historical example: according to its authors, it retains 97% of BERT's performance on the GLUE benchmark while being 40% smaller and 60% faster at inference. Several families of small open models are officially produced by distillation: Llama 3.2 1B and 3B (Meta, from the outputs of Llama 3.1 8B and 70B), Gemma 2 2B and 9B and then the whole Gemma 3 range (Google), or the six DeepSeek-R1-Distill models (from 1.5 to 70 billion parameters, built on Qwen 2.5 and Llama 3). A small model is not necessarily a distilled one: only its publisher's documentation can tell. And distillation does not guarantee that all of the teacher's capabilities are kept.
Concrete example
Illustrative case. A customer-service SME handles 8,000 conversations per month with an AI agent. Assumptions: each conversation uses 15,000 input tokens in total (instructions, knowledge base, history) and 1,000 output tokens. With Claude Sonnet 5.5, billed at 2 dollars per million input tokens and 10 dollars per million output tokens, inference costs 320 dollars per month. With Gemma 3 27B, an open model trained by distillation, offered by the host DeepInfra at 0.08 dollars for input and 0.16 dollars for output, it falls to about 11 dollars: almost 30 times less, a saving of about 3,700 dollars per year. Published prices checked on 29 October 2026. The calculation leaves out hosting on your own servers and evaluation time, and says nothing about quality: a smaller model often answers less well, and the gap is measured on a sample of real annotated conversations before any switch.
FAQ
What is distillation of an AI model?
It is a technique that transfers the knowledge of a large model, called the teacher, to a smaller model, called the student, while preserving most of the performance. It lets you deploy lightweight models that are cheaper to run at inference and viable on more modest infrastructure.
How does the student learn from the teacher?
In the original method (Hinton, Vinyals and Dean, 2015), the student model learns to imitate the teacher's outputs, that is, the probabilities it assigns to each possible answer, in addition to the right answers. This so-called soft information carries far more learning signal than the right answers alone. Another method trains the student on text written by the teacher: this is how the DeepSeek-R1-Distill models were made.
What does distillation change on the bill?
It can sharply cut inference cost. In an illustrative case (8,000 conversations per month, 15,000 input and 1,000 output tokens per conversation, published prices checked on 29 October 2026), Claude Sonnet 5.5 costs 320 dollars per month and Gemma 3 27B, trained by distillation, about 11 dollars with the host DeepInfra. The quality gap has to be measured on your own conversations before any switch.
Are models we know produced by distillation?
Yes. The historical example is DistilBERT, which retains 97% of BERT's performance on the GLUE benchmark while being 40% smaller and 60% faster at inference, according to its authors. Several families of small open models are produced by distillation, such as Llama 3.2 (1B and 3B), Gemma 2 (2B and 9B), Gemma 3 and the DeepSeek-R1-Distill models (from 1.5 to 70 billion parameters).
What question should we ask our IT director about this?
"Is the flagship model we use justified, or would a distilled model suffice?" To answer it, compare a distilled model's outputs objectively against your current model on 100 real cases, check whether it can run locally or on a sovereign cloud (which reduces dependence on a foreign provider), and re-evaluate the choice regularly, for example with a quarterly benchmark.
See also
Further reading
Distilling the Knowledge in a Neural Network, Hinton et al., 2015
Sources
- Distilling the Knowledge in a Neural Network, Hinton, Vinyals & Dean, arXiv:1503.02531, 2015. https://arxiv.org/abs/1503.02531
- DistilBERT, a distilled version of BERT, Sanh et al., arXiv:1910.01108, 2019. https://arxiv.org/abs/1910.01108
- Llama 3.2: Revolutionizing edge AI and vision, Meta AI, September 2024 (1B and 3B trained with logits from Llama 3.1 8B and 70B, then distillation). https://ai.meta.com/blog/llama-3-2-connect-2024-vision-edge-mobile-devices/
- Gemma 2: Improving Open Language Models at a Practical Size, Google DeepMind, arXiv:2408.00118, 2024 (2B and 9B trained with distillation). https://arxiv.org/abs/2408.00118
- DeepSeek-R1, model card, DeepSeek-AI, Hugging Face (six dense distilled models from 1.5B to 70B, based on Qwen 2.5 and Llama 3). https://huggingface.co/deepseek-ai/DeepSeek-R1
- Sequence-Level Knowledge Distillation, Kim & Rush, EMNLP 2016, arXiv:1606.07947 (student trained on text generated by the teacher). https://arxiv.org/abs/1606.07947
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning, DeepSeek-AI, arXiv:2501.12948 (distilled models fine-tuned on 800,000 samples). https://arxiv.org/abs/2501.12948
- Gemma 3 Technical Report, Google DeepMind, arXiv:2503.19786, 2025 (all Gemma 3 models trained with distillation). https://arxiv.org/abs/2503.19786
- Claude API pricing, Anthropic (Claude Sonnet 5.5: $2 input and $10 output per million tokens). https://claude.com/pricing
- DeepInfra pricing (gemma-3-27b-it: $0.08 input and $0.16 output per million tokens). https://deepinfra.com/pricing