Skip to main content

How models are made training pipeline · stage 4

Distillation: how small models learn from big onespractitioner-perspective methodology · key facts carry official sources

Logit distillation versus data distillation, why nearly every open-weight family distils, and what the "distilled" label means when choosing a model. Practitioner depth; the one-page explainer lives on the Learn site.

What this guide covers

Distillation = a small model learns from a big one instead of learning straight from raw data.

The original method is Hinton et al.'s soft-label distillation (source in the list at the end).
It passes not just the hard verdict “the answer is cat” but the probability distribution:
six-tenths cat-like, three-tenths dog-like, one-tenth fox-like.

Inter-class similarity carries more information than a hard label.
In the LLM era this route split into two branches.

Two branches: logits versus data

Logits distillation runs teacher and student together, using the teacher's output distribution as the training signal.

DistilBERT is the public example: same-architecture self-distillation, parameters halved,
60% faster, retaining 97% of language understanding (the paper's figures).

Logit-level distillation is rarer and rarer among open-weight families — the teacher is too big to run.

Data distillation only needs the teacher to generate data; the student does ordinary SFT.
The LLaMA 2 paper states plainly: the 13B and 34B were trained on dialogue data generated by the 70B.

DeepSeek-R1 distilled its own long chain-of-thought samples into a series of small models,
from 1.5B up to 70B, with the official paper giving a results table per size.
This is the official example of “chain-of-thought distillation”.

The MiniCPM lineage writes distillation in as a formal stage of its training pipeline (the paper's wording).

Why every open-weight family distils

Three reasons, each with a checkable official source:

  • Cheap: data distillation needs no teacher resident in memory — the cost structure equals ordinary SFT.
  • Fast: small models are cheap to infer, paying off both on edge devices and GPU farms (the same ledger as “over-training” in the pre-training guide).
  • Licence: most family licences allow re-training models on their outputs (each licence text governs; this site does not interpret terms).

What "distilled" means when choosing

This site follows the same discipline as the S53 derived-marker:
only lineages the vendor itself declares get marked “distilled/derived”.
The basis is the model card's base_model field, or explicit text in papers and technical reports.
No guessing, no inference from “looks similar”.

What it means factually: a distilled model's capability ceiling is bounded by its teacher.
What the teacher cannot do, it most likely cannot do.

But small models can beat the teacher on narrow tasks.
The 7B distilled from R1 outperforms several much larger general models on math evaluations (the official paper's figures).

“Distilled” is not a pejorative label. It tells you where the weight lineage comes from.
Read it as provenance when choosing, not as a quality verdict.

Licences: distilling does not escape the base terms

Does training a new model on some model's outputs fall under the original model's licence?
Each licence is worded differently; Llama's and Gemma's terms each carry extra conditions (licence texts in the list at the end).

This site's stance matches the site-wide legal page:
index only, quote only, no licence interpretation, no legal advice.

How this differs from the Learn site

The one-page explainers live on the Learn site: knowledge distillation
and pruning (the other compression route).

This guide covers the cost structure of the two distillation branches, the official examples, how to read the label when choosing, and the licence boundary.
The “derived from X” marker on this site's family cards (S53) uses exactly this guide's lineage yardstick.

Sources

  • The original knowledge-distillation paper (arXiv 1503.02531, Hinton et al., soft-label distillation; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/1503.02531
  • DistilBERT paper (arXiv 1910.01108, the public example of halving BERT via self-distillation; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/1910.01108
  • MiniCPM paper (arXiv 2404.06395, a small-model lineage whose training includes a distillation stage; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2404.06395
  • DeepSeek-R1 paper (arXiv 2501.12948, the official route of distilling 1.5B–70B small models from R1; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2501.12948
  • LLaMA 2 paper (arXiv 2307.09288, the official statement that 13B/34B were distilled from 70B-generated data; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2307.09288
  • Gemma technical report (arXiv 2403.08295, trained on the Gemini technology stack; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2403.08295
  • Llama Community License text page (entry to the official licence text; fetched directly, HTTP 200, 2026-10-20):https://www.llama.com/llama-license/
  • Gemma Terms of Use text page (entry to the official licence text; fetched directly, HTTP 200, 2026-10-20):https://ai.google.dev/gemma/terms

Base source snapshot: 2026-10-20; item-specific additions and check scope appear in the text and source labels. Check original specifications, methods and conditions.