Prompts Forms Resume Reports ★ Saved ★ Saved★ + Submit a tool
Techniques

Model Distillation

About 1373 characters Updated Nov 30, 2026 35 views AI wiki

Model distillation (knowledge distillation) is a technique that "compresses" the capability of a large model into a small one, so that a cheap small model can also achieve good results.

Core idea

A large model (the teacher) not only gives the answer but also gives a probability distribution over each class. This distribution carries rich information - for example, when recognizing the digit "3", the model may think "probability 0.1 that it looks like 8, probability 0.02 that it looks like 5".

Such "soft labels" carry far more information than the plain correct answer (the hard label "this is 3"). Distillation is having the small model learn the teacher's soft labels.

Why it is called "distillation"

The vast and tangled knowledge in the large model is refined and condensed into its essence and injected into the small model, like distillation and purification.

Application in the large-model era

  • Large model trains small model: use GPT-4 to generate large amounts of high-quality data and train open-source small models (as Alpaca and Vicuna did)
  • On-device deployment: distill capability into 1B to 3B small models that can run on phones and car systems
  • Cost optimization: handle most requests with the small model and route only hard problems to the large model

Related techniques

  • Quantization: compress 16-bit floating-point parameters to 8-bit or 4-bit, shrinking model size 4 to 8 times
  • Pruning: delete unimportant connections or neurons
  • Low-rank decomposition: compress weights with matrix factorization

These are collectively called model compression, and their common goal is to make models smaller and faster.