| ISSUE 375/456 · COMPUTER SCIENCE |
~4 MIN |
FOUNDATION / MODEL TRAINING · READING DATE 2027-10-11 · OCTOBER 2027 — LANGUAGE MODELS AND MEASUREMENT
How a smaller model learns from a larger one
START HERE
A pupil can learn from an answer and also from how the teacher compares alternatives. Here, a model is a computer program whose numerical settings are learned from examples. Knowledge distillation is training one model to imitate answers or probability estimates produced by another. The receiving model can be smaller, but copying behaviour is not the same as transferring every ability or every fact.
|
/ WHY NOW
For a support tool that sorts incoming messages, a large model might be too expensive to run on every request. Its responses can instead provide training signals for a smaller model that performs the narrower job more cheaply.
|
/ THE IDEA
The source model is conventionally called the teacher and the receiving model the student. One approach supplies the teacher’s probabilities across answer categories, not only its single winning category. Those softer targets tell the student which alternatives the teacher regarded as plausible. Training adjusts the student’s numerical settings to reduce disagreement with those targets. A temperature can soften the teacher’s probability distribution so small differences among alternatives become more visible. Other forms of distillation use complete generated answers. In either case, what transfers depends on the examples and training objective.
THE FORMAL IDEA
teacher target = [P(delivery), P(refund), P(account)]
| P means probability; the three entries correspond to the same three categories for teacher and student. | | The entries add to one. Training seeks agreement across the list, rather than only checking which entry is largest. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
For one message, teacher target = [0.6, 0.3, 0.1]. A hard winning label would say only "delivery". Student A outputs [0.6, 0.3, 0.1]; student B outputs [0.6, 0.1, 0.3]. Change the target to [0.6, 0.1, 0.3]: B now matches exactly, although the winning label remains delivery.
|
The changed probabilities teach a distinction that a single label hides. Both students choose delivery, but they disagree about the second most plausible interpretation. A training signal can preserve that extra structure.
/ SO WHAT?
This can produce a useful specialist without requiring the student to reproduce the teacher’s entire range. Build a separate evaluation using real support messages and check the mistakes that matter, such as missing an urgent account problem. A student may inherit teacher errors, and a teacher’s confident output is not independent evidence that the target is correct.
ONE CAVEAT |
| The probabilities are invented. A smaller architecture has limited capacity, and imitation on one collection does not guarantee matching behaviour elsewhere. Distillation reduces some deployment costs but still requires generating data, training and checking results. |
KEEP THIS
A student can learn relationships among alternatives when the teacher supplies more than the winning label.
|
NEXT: Why a thermometer needs time to catch up
|