Simple Algorithm
Deep Learning · Emergence · 26 min

Knowledge Distillation

Soft targets, dark knowledge and training small models from large ones.

Hinton, Vinyals and Dean hid every 3 from a student network while it learned to imitate a teacher on MNIST. The student never saw a 3, yet after one adjustment of the bias of that class it recognized 98.6% of the 3s in the test set: the teacher's small probabilities on the other digits had described what a 3 looks like. Distillation moves knowledge from large models into small ones, though rarely as completely as it seems, and for language models it raises a question classification never did: whose samples should the student learn from?

What you’ll learn

  • Derive the gradient of the distillation loss at temperature TT, explain the factor T2T^2, and show that at high temperature distillation reduces to matching logits.
  • Explain what soft targets carry, prove that exact class probabilities reduce the variance of the training objective, and weigh the evidence that students often fail to match their teachers.
  • Compare output, feature and self-distillation, and the evidence on teacher–student capacity gaps.
  • Contrast forward- and reverse-KL distillation of language models, derive the reverse-KL gradient, and describe token-level, sequence-level and on-policy distillation.

Soft targets at a temperature

A teacher with logits v\mathbf v and a student with logits z\mathbf z over KK classes are compared through their softmaxes at a common temperature TT: the teacher's soft targets pi=softmax⁡(v/T)ip_i=\softmax(\mathbf v/T)_i and the student's qi=softmax⁡(z/T)iq_i=\softmax(\mathbf z/T)_i. Hinton, Vinyals and Dean (2015) train the student on a weighted sum of two terms: cross-entropy with the soft targets at temperature TT, and cross-entropy with the true labels at T=1T=1, with a considerably smaller weight on the second. Afterwards the student runs at T=1T=1.

L(z)=(1−α) T2 DKL(p ∥ q)+α CE⁡(y,softmax⁡(z)),DKL(p ∥ q)=∑ipilog⁡piqi\loss(\mathbf z)=(1-\alpha)\,T^2\,\KL(\mathbf p\,\|\,\mathbf q)+\alpha\,\operatorname{CE}\big(y,\softmax(\mathbf z)\big),\qquad\KL(\mathbf p\,\|\,\mathbf q)=\sum_ip_i\log\frac{p_i}{q_i}
The KL divergence differs from the soft cross-entropy −∑ipilog⁡qi-\sum_ip_i\log q_i only by the teacher's entropy, a constant for the student, so the two give the same gradients. Conventions differ on which term carries α\alpha; the factor T2T^2 is derived below.
Predict before you look

A teacher's logits for one image are (4, 2, 0, 0)(4,\ 2,\ 0,\ 0). At T=1T=1 its softmax is (0.853, 0.115, 0.016, 0.016)(0.853,\ 0.115,\ 0.016,\ 0.016). What probability does the second class get at T=4T=4?

Show the answer

0.26

Dividing by 4 gives logits (1, 0.5, 0, 0)(1,\ 0.5,\ 0,\ 0) and probabilities (0.427, 0.259, 0.157, 0.157)(0.427,\ 0.259,\ 0.157,\ 0.157). The order is unchanged, but the ratio of the second class to the third falls from e2≈7.4e^2\approx7.4 to e0.5≈1.65e^{0.5}\approx1.65, and the two unlikely classes now carry almost a third of the mass: at T=1T=1 the student would hardly feel them.

DerivationThe gradient, the T² factor and logit matching
  1. ∂C∂zi=−1T∑jpj(δij−qi)=1T (qi−pi)\frac{\partial C}{\partial z_i}=-\frac1T\sum_jp_j(\delta_{ij}-q_i)=\frac1T\,(q_i-p_i)

    With C=−∑jpjlog⁡qjC=-\sum_jp_j\log q_j and ∂log⁡qj/∂zi=(δij−qi)/T\partial\log q_j/\partial z_i=(\delta_{ij}-q_i)/T, and since ∑jpj=1\sum_jp_j=1:

  2. ∂C∂zi≈1T(1+zi/TK−1+vi/TK)=zi−viK T2\frac{\partial C}{\partial z_i}\approx\frac1T\Big(\frac{1+z_i/T}{K}-\frac{1+v_i/T}{K}\Big)=\frac{z_i-v_i}{K\,T^2}

    When TT is large compared with the logits, ex/T≈1+x/Te^{x/T}\approx1+x/T, so qi≈(1+zi/T)/(K+∑jzj/T)q_i\approx(1+z_i/T)/(K+\sum_jz_j/T) and likewise for pip_i. Shift each example's logits to mean zero, ∑jzj=∑jvj=0\sum_jz_j=\sum_jv_j=0, which changes no softmax:

  3. T2 ∂C∂zi → T→∞  zi−viK=∂∂zi 12K∑j(zj−vj)2T^2\,\frac{\partial C}{\partial z_i}\ \xrightarrow{\ T\to\infty\ }\ \frac{z_i-v_i}{K}=\frac{\partial}{\partial z_i}\,\frac1{2K}\sum_j(z_j-v_j)^2

    Two conclusions (Hinton et al., 2015). The soft gradients shrink like 1/T21/T^2, so multiplying the soft term by T2T^2 keeps the balance with the hard term roughly fixed while TT is tuned. And in the limit, distillation is gradient descent on the squared distance between logits, the objective with which Ba and Caruana (2014) trained shallow networks to mimic deep ones:

  4. At moderate TT, errors on very negative logits barely count, since both pip_i and qiq_i are exponentially small there. Hinton et al. argue this can help, because the teacher's training hardly constrained those logits. On MNIST, a student with 300 or more units per layer did about equally well at any TT above 8, while one with only 30 units did best at TT between 2.5 and 4: a small student gains from ignoring the noisiest part of the teacher's output.

python
import torch
import torch.nn.functional as F

def distillation_loss(student_logits, teacher_logits, labels, T=4.0, alpha=0.1):
    """Soft targets at temperature T plus the hard label (Hinton et al., 2015)."""
    log_q = F.log_softmax(student_logits / T, dim=-1)      # student at temperature T
    log_p = F.log_softmax(teacher_logits / T, dim=-1)      # teacher's soft targets
    soft = F.kl_div(log_q, log_p, log_target=True, reduction="batchmean")  # KL(p || q)
    hard = F.cross_entropy(student_logits, labels)          # ordinary loss at T = 1
    return (1 - alpha) * T * T * soft + alpha * hard

# usage: compute the teacher's logits without gradients, then backpropagate into the student
# with torch.no_grad():
#     teacher_logits = teacher(x)
# distillation_loss(student(x), teacher_logits, y).backward()

F.kl_div(input, target) expects log-probabilities as input and computes DKL(target ∥ input)\KL(\text{target}\,\|\,\text{input}), so the student goes first. With reduction="batchmean" the sum is divided by the batch size, which matches the mathematical KL per example.

What soft targets carry

A trained classifier's small probabilities are not noise. In Hinton et al.'s example, an image of a BMW "may only have a very small chance of being mistaken for a garbage truck, but that mistake is still many times more probable than mistaking it for a carrot." That similarity structure, dark knowledge, is what the experiments in the hook and in Model Compression & Efficient Inference transferred. With only 7s and 8s in the transfer set, the MNIST student made 47.3% test errors; lowering the biases of those two classes by 7.6 brought it to 13.2%, so the soft targets on 7s and 8s alone had taught it most of the other eight digits.

Why should soft targets beat the labels they were trained on? One clean answer is statistical.

DerivationProof, and the price of an imperfect teacher
  1. E[ℓ(ey,f)∣x]=∑kpk∗(x) ℓ(ek,f)=ℓ(p∗(x),f)\E\big[\ell(\mathbf e_y,f)\mid\mathbf x\big]=\sum_kp^*_k(\mathbf x)\,\ell(\mathbf e_k,f)=\ell\big(\mathbf p^*(\mathbf x),f\big)

    The loss is linear in its target, so averaging over the label given the input replaces the one-hot vector by its conditional mean:

  2. Var⁡[ℓ(ey,f)]=Var⁡[ℓ(p∗(x),f)]+E[Var⁡(ℓ(ey,f)∣x)]\Var\big[\ell(\mathbf e_y,f)\big]=\Var\big[\ell(\mathbf p^*(\mathbf x),f)\big]+\E\Big[\Var\big(\ell(\mathbf e_y,f)\mid\mathbf x\big)\Big]

    Taking expectations over x\mathbf x gives equal means. The law of total variance splits the one-hot loss's variance into the variance of its conditional mean, which is the distillation loss, plus a nonnegative term; dividing by nn for i.i.d. sums gives the claim:

  3. This is Rao–Blackwellization: the label is one noisy draw from p∗(x)\mathbf p^*(\mathbf x), and the teacher supplies the whole distribution. For a binary input with p∗=0.7p^*=0.7 and a predictor saying 0.60.6, the one-hot loss is 0.5110.511 or 0.9160.916, with variance 0.0350.035, while the distillation loss is always 0.6320.632. A real teacher only estimates p∗\mathbf p^*, and its errors bias the student's objective by −E∑k(pkt−pk∗)log⁡fk(x)-\E\sum_k(p^{\text{t}}_k-p^*_k)\log f_k(\mathbf x). Menon et al. (2021) develop this bias–variance trade-off, which quantifies how much a teacher's approximate class probabilities help: what matters is how close they are to the Bayes probabilities, not merely how often the teacher's top class is right.

Accuracy is not the same as good probabilities. Label smoothing, which trains toward (1−ε)ey+ε1/K(1-\varepsilon)\mathbf e_y+\varepsilon\mathbf 1/K (Reshaping Cross-Entropy), is distillation from a "teacher" that says nothing about which wrong classes are close. Müller, Kornblith and Hinton (2019) found that teachers trained with label smoothing distill much worse: smoothing pulls each class's penultimate representations into tight clusters, erasing the information about resemblances between classes that distillation needs, even though it improves the teacher's own accuracy and calibration.

Students rarely match their teachers. Stanton et al. (2021) measured fidelity, how often the student agrees with the teacher, separately from accuracy. A LeNet-5 distilled into an identical LeNet-5 on MNIST reached over 99% top-1 agreement once given enough data. A ResNet-56 on CIFAR-100 distilled into an identical ResNet-56 stayed far below that, even with extra GAN-generated transfer data, longer training and other interventions. Since the student could represent the teacher exactly, they traced the gap to optimization difficulties, and found that matching the teacher more closely did not always improve the student's accuracy: distillation can help generalization while transferring the teacher's function poorly.

Check your understanding

In Stanton et al.'s self-distillation experiment, a ResNet-56 teacher and an identical ResNet-56 student still disagreed on many CIFAR-100 test images after distillation. Which explanation does this setup rule out?

  1. That the student is optimized imperfectly
  2. That the transfer set is too small to pin down the teacher's function
  3. That the student lacks the capacity to represent the teacher
  4. That fidelity and accuracy can diverge
Show the answer

C. That the student lacks the capacity to represent the teacher

The student has the teacher's architecture, so the teacher's own weights would give perfect agreement: capacity cannot be the bottleneck. The remaining suspects, optimization and the data used for distillation, are what the authors examined.

Who teaches whom, and what is matched

Students that beat their teachers. Furlanello et al. (2018) distilled networks into students with identical architectures, born-again networks, and the students outperformed their teachers significantly in vision and language modeling; with DenseNets they reached validation errors of 3.5% on CIFAR-10 and 15.5% on CIFAR-100, state of the art at the time. A compression story cannot explain that. Allen-Zhu and Li (2023) offered a theory for data with a "multi-view" structure, in which each class can be recognized from several features: independently trained networks of the same architecture pick up different subsets of the features, so their ensemble provably improves test accuracy, and a single model trained to match the ensemble's outputs provably inherits the gain. Their analysis works very differently from boosting or the neural tangent kernel, and they connect self-distillation to the same mechanism.

Capacity gaps. A larger, more accurate teacher is not always a better one. Mirzadeh et al. (2020) found that student accuracy degrades when the gap between student and teacher is large, and inserted an intermediate-sized teacher assistant, distilled from the teacher and then distilling the student. Cho and Hariharan (2019) also found that larger, more accurate models often do not make better teachers, but found multi-step distillation ineffective and recommended stopping the teacher's training early instead. The evidence conflicts on the remedy and agrees on the problem: a small student cannot follow everything a much larger teacher outputs.

VariantWhat the student matchesExample
Soft targetsthe teacher's output distribution at temperature TTHinton et al. (2015), above
Logitsthe teacher's logits, by squared errorshallow networks mimicking deep ones on TIMIT phoneme recognition reached accuracies previously reached only by deep models (Ba & Caruana, 2014)
Hintsan intermediate layer of the teacher, through a learned regressor from the student's narrower layerFitNets trained students deeper and thinner than their teachers (Romero et al., 2015)
Its own predecessora teacher of the same architectureborn-again networks (Furlanello et al., 2018)
A teacher assistantan intermediate model distilled from the large teacherMirzadeh et al. (2020)
The whole function, patientlythe teacher on exactly the same augmented inputs, mixup included, over very long schedulesa ResNet-50 at 82.8% ImageNet top-1 accuracy (Beyer et al., 2022)
The same idea appears elsewhere in this course: a distillation token trained on a convolutional teacher's predictions improved data-efficient vision transformers (ConvNets vs Vision Transformers), self-distillation from a momentum teacher learns features without labels (Non-Contrastive & Self-Distillation Methods), and diffusion models are distilled into few-step samplers (Few-Step Generation).

Distilling language models

A language model's output is a sequence, and the sequence-level distributions p(y∣x)p(\mathbf y\mid\mathbf x) of teacher and student range over exponentially many texts. Three ways to compare them:

  • Token-level. Feed both models the same prefix from the training data (teacher forcing) and match the next-token distribution at every position, ∑tDKL(p(⋅∣y<t,x) ∥ qθ(⋅∣y<t,x))\sum_t\KL\big(p(\cdot\mid\mathbf y_{<t},\mathbf x)\,\|\,q_\theta(\cdot\mid\mathbf y_{<t},\mathbf x)\big). DistilBERT (Sanh et al., 2019) combined such a soft-target loss with masked language modeling and a cosine loss aligning hidden states, and initialized its 6 layers from every other layer of BERT. In its ablations, removing the soft-target term cost 2.96 points of the GLUE average, removing the cosine term 1.46, removing masked language modeling 0.31, and starting from random weights instead of BERT's layers 3.69.
  • Sequence-level. Kim and Rush (2016) approximated the teacher's sequence distribution by its mode: decode each source with beam search and train the student on the teacher's translations. That is, fine-tune on teacher outputs. Their best student ran 10 times faster than its teacher with little loss, beat a student trained without distillation by 4.2 BLEU with greedy decoding (1.7 with beam search), and largely removed the need for beam search; pruning it further left 13 times fewer parameters than the teacher at a cost of 0.4 BLEU.
  • On-policy. Train on sequences the student generates, with the teacher scoring them, which needs the reverse direction of the KL or a mixture of directions.
DerivationForward and reverse KL, and why reverse KL needs the student’s samples
  1. DKL(p ∥ qθ)=Ey∼p[log⁡p(y)−log⁡qθ(y)],∇θDKL(p ∥ qθ)=−Ey∼p[∇θlog⁡qθ(y)]\KL(p\,\|\,q_\theta)=\E_{\mathbf y\sim p}\big[\log p(\mathbf y)-\log q_\theta(\mathbf y)\big],\qquad\nabla_\theta\KL(p\,\|\,q_\theta)=-\E_{\mathbf y\sim p}\big[\nabla_\theta\log q_\theta(\mathbf y)\big]

    Forward KL averages over the teacher's distribution. Its gradient is maximum likelihood on teacher samples, which sequence-level distillation approximates with the teacher's beam output:

  2. DKL(qθ ∥ p)=Ey∼qθ[log⁡qθ(y)−log⁡p(y)]\KL(q_\theta\,\|\,p)=\E_{\mathbf y\sim q_\theta}\big[\log q_\theta(\mathbf y)-\log p(\mathbf y)\big]

    It is unbounded wherever p(y)>0p(\mathbf y)>0 and qθ(y)→0q_\theta(\mathbf y)\to0, so a student too small to fit the teacher spreads its mass to cover everything, including regions where the teacher puts little probability: mass-covering. Reverse KL is unbounded wherever qθ(y)>0q_\theta(\mathbf y)>0 and p(y)→0p(\mathbf y)\to0, so the student avoids text the teacher would not produce, at the risk of dropping some of the teacher's modes: mode-seeking.

  3. ∇θDKL(qθ ∥ p)=Ey∼qθ[∇θlog⁡qθ(y) (log⁡qθ(y)−log⁡p(y))]\nabla_\theta\KL(q_\theta\,\|\,p)=\E_{\mathbf y\sim q_\theta}\Big[\nabla_\theta\log q_\theta(\mathbf y)\,\big(\log q_\theta(\mathbf y)-\log p(\mathbf y)\big)\Big]

    Differentiate through the sampling distribution with the log-derivative trick. The extra term Eqθ[∇θlog⁡qθ]=∇θ∑yqθ(y)=0\E_{q_\theta}[\nabla_\theta\log q_\theta]=\nabla_\theta\sum_{\mathbf y}q_\theta(\mathbf y)=0 drops out:

  4. That is a policy gradient (Fine-Tuning & Aligning Large Models derives REINFORCE) with reward r(y)=log⁡p(y)−log⁡qθ(y)r(\mathbf y)=\log p(\mathbf y)-\log q_\theta(\mathbf y): the student samples its own texts and is pushed toward those the teacher rates as more probable than the student does. MiniLLM (Gu, Dong, Wei & Huang, 2024) minimizes this reverse KL by policy gradient, with a per-token decomposition to reduce variance, sampling partly from the teacher to curb reward hacking, and length normalization; it outperformed standard distillation in instruction following for students from 120 million to 13 billion parameters.

Generalized knowledge distillation (GKD; Agarwal et al., 2024) separates the two choices, which sequences to train on and which divergence DD to use between token-level distributions. With probability λ\lambda a batch is generated by the student, otherwise it comes from a fixed dataset, and the student minimizes the per-token divergence on those prefixes without backpropagating through its own sampling:

LGKD(θ)=Ex Ey∼data or qθ[1Ly∑t=1LyD(p(⋅∣y<t,x) ∥ qθ(⋅∣y<t,x))],DJSD(β)(P ∥ Q)=βDKL(P ∥ M)+(1−β)DKL(Q ∥ M),  M=βP+(1−β)Q\loss_{\text{GKD}}(\theta)=\E_{\mathbf x}\,\E_{\mathbf y\sim\text{data or }q_\theta}\Big[\frac1{L_{\mathbf y}}\sum_{t=1}^{L_{\mathbf y}}D\big(p(\cdot\mid\mathbf y_{<t},\mathbf x)\,\big\|\,q_\theta(\cdot\mid\mathbf y_{<t},\mathbf x)\big)\Big],\qquad D_{\text{JSD}(\beta)}(P\,\|\,Q)=\beta\KL(P\,\|\,M)+(1-\beta)\KL(Q\,\|\,M),\ \ M=\beta P+(1-\beta)Q
The generalized Jensen–Shannon divergence interpolates between the two directions, behaving like forward KL as β→0\beta\to0 and like reverse KL as β→1\beta\to1, and stays bounded even when the supports differ. Training on the student's own prefixes attacks the mismatch between the prefixes seen in training and those met at generation, the exposure bias of Training Recurrent Networks.

On summarization, translation and arithmetic reasoning, GKD with student-generated sequences substantially outperformed the usual distillation methods; the best divergence was task-dependent, with mode-seeking choices giving higher quality and less diverse outputs, and on-policy distillation combined directly with reinforcement-learning fine-tuning, since both train on the student's own samples. Two neighbors of these methods are covered elsewhere: distilling long reasoning traces from a reasoning model into smaller models by fine-tuning on them (Reinforcement Learning for Reasoning), and imitating a stronger model through its text alone, which can copy its style more than its capabilities (Instruction Tuning & Its Data).

Key takeaways

  • The soft cross-entropy at temperature TT has gradient (qi−pi)/T≈(zi−vi)/(KT2)(q_i-p_i)/T\approx(z_i-v_i)/(KT^2) at high TT, which is why the soft term is multiplied by T2T^2, and why the high-temperature limit is logit matching; moderate temperatures ignore the teacher's noisiest, most negative logits.
  • With exact class probabilities as targets, the training objective keeps its expectation and loses variance (Rao–Blackwellization); a real teacher adds bias, so a good teacher needs probabilities close to the true class probabilities, including the resemblances between classes that label smoothing erases.
  • Students rarely reproduce their teachers' functions even with the capacity to (Stanton et al., 2021); identical students can beat their teachers (born-again networks), and much larger teachers are not always better ones.
  • For language models, forward KL on data or teacher outputs (token- or sequence-level distillation) is mass-covering, while reverse KL is mode-seeking and has a policy-gradient form that requires the student's own samples; on-policy methods such as GKD and MiniLLM train on student-generated text, and the best divergence depends on the task.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

At high temperature, how does the gradient of the soft cross-entropy with respect to the student's logits scale with TT, and what compensates for it?

  1. It grows like TT; dividing the soft loss by TT compensates
  2. It does not depend on TT
  3. It shrinks like 1/T1/T; the hard-label term compensates automatically
  4. It shrinks like 1/T21/T^2; multiplying the soft loss by T2T^2 keeps the two terms balanced as TT changes
Show the answer

D. It shrinks like 1/T21/T^2; multiplying the soft loss by T2T^2 keeps the two terms balanced as TT changes

The exact gradient is (qi−pi)/T(q_i-p_i)/T, and at high temperature qi−pi≈(zi−vi)/(KT)q_i-p_i\approx(z_i-v_i)/(KT) for zero-mean logits, so the gradient is about (zi−vi)/(KT2)(z_i-v_i)/(KT^2).

Question 2

In the limit of high temperature, with logits shifted to mean zero for each example, distillation with the T2T^2 factor becomes equivalent to:

  1. Training on the teacher's argmax labels
  2. Minimizing the squared difference between the student's and the teacher's logits
  3. Label smoothing with ε=1\varepsilon=1
  4. Matching the teacher's intermediate features
Show the answer

B. Minimizing the squared difference between the student's and the teacher's logits

T2 ∂C/∂zi→(zi−vi)/KT^2\,\partial C/\partial z_i\to(z_i-v_i)/K, the gradient of 12K∑j(zj−vj)2\frac1{2K}\sum_j(z_j-v_j)^2: logit matching, as in Ba and Caruana (2014).

Question 3

Why can a teacher that outputs the exact class probabilities p∗(y∣x)\mathbf p^*(y\mid\mathbf x) give a better training objective than the true labels themselves?

  1. Because its probabilities are always closer to one-hot than the labels
  2. Because it removes the need for any training data
  3. Because each label is one random draw from p∗(⋅∣x)\mathbf p^*(\cdot\mid\mathbf x), and replacing it by its conditional mean leaves the expected loss unchanged while removing the variance of the draw
  4. Because the teacher's probabilities make the loss convex in the student's weights
Show the answer

C. Because each label is one random draw from p∗(⋅∣x)\mathbf p^*(\cdot\mid\mathbf x), and replacing it by its conditional mean leaves the expected loss unchanged while removing the variance of the draw

The cross-entropy is linear in its target, so E[ℓ(ey,f)∣x]=ℓ(p∗(x),f)\E[\ell(\mathbf e_y,f)\mid\mathbf x]=\ell(\mathbf p^*(\mathbf x),f); by the law of total variance the distillation objective has the same mean and no more variance. An imperfect teacher trades some of that variance for bias.

Question 4

A small student language model qθq_\theta is trained to minimize the reverse divergence DKL(qθ ∥ pteacher)\KL(q_\theta\,\|\,p_{\text{teacher}}) instead of the forward DKL(pteacher ∥ qθ)\KL(p_{\text{teacher}}\,\|\,q_\theta). What behavior should you expect?

  1. Mode-seeking: the student concentrates on outputs the teacher finds likely and avoids text the teacher finds unlikely, possibly ignoring some of the teacher's modes
  2. Mass-covering: the student spreads probability over everything the teacher might say
  3. No difference, since KL divergence is symmetric
  4. The student copies the teacher's sampling temperature
Show the answer

A. Mode-seeking: the student concentrates on outputs the teacher finds likely and avoids text the teacher finds unlikely, possibly ignoring some of the teacher's modes

DKL(q ∥ p)=Ey∼q[log⁡q(y)−log⁡p(y)]\KL(q\,\|\,p)=\E_{y\sim q}[\log q(y)-\log p(y)] is huge wherever the student puts mass the teacher does not, so a student too small to cover everything settles on the teacher's main modes. Its gradient needs samples from the student itself, which is why reverse-KL distillation is trained on-policy.

Further reading

  • C. Buciluă, R. Caruana & A. Niculescu-Mizil, "Model compression," KDD (2006).
  • G. Hinton, O. Vinyals & J. Dean, "Distilling the knowledge in a neural network," arXiv:1503.02531 (2015).
  • S. Stanton, P. Izmailov, P. Kirichenko, A. A. Alemi & A. G. Wilson, "Does knowledge distillation really work?," NeurIPS (2021).
  • R. Agarwal et al., "On-policy distillation of language models: Learning from self-generated mistakes," ICLR (2024).
  • J. Gou, B. Yu, S. J. Maybank & D. Tao, "Knowledge distillation: A survey," International Journal of Computer Vision (2021).