Robots Atlas>ROBOTS ATLAS
Training

Self-Distillation

2019ActivePublished: 2 September 2026Updated: 2 September 2026Published
Key innovation
Showed that a model can learn from itself — its own softened predictions, earlier checkpoints, or deeper layers — without training a larger separate teacher network.
Category
Training
Abstraction level
Pattern
Operation level
TrainingPost-trainingModel
Use cases
Improving accuracy without changing the architectureRegularization and better model calibrationDepth-wise scalable inference on edge devicesTraining convolutional networks and language modelsAn alternative to distillation when no teacher model is available

How it works

Instead of a separate teacher, the supervisory signal comes from the model itself. (1) Iterative variant (Born-Again): a model is trained, then an identical copy is trained using the softened predictions of the previous generation as targets; the process can be repeated. (2) In-network variant (Be Your Own Teacher): the network is split into sections with auxiliary classifiers; deeper (more accurate) sections act as a teacher for shallower ones via a distillation loss on logits and/or features. (3) Prediction-based variant: the model learns from its own averaged/softened outputs. In all variants the loss combines the ordinary hard-label loss with a KL divergence between student and teacher predictions, scaled by a softmax temperature.

Problem solved

Classic knowledge distillation requires training a separate, large teacher model, which is costly and not always feasible. Self-distillation removes that dependency: it improves a model’s accuracy and regularization without an extra network, and the in-network variant enables depth-wise scalable inference on edge devices.

Components

Self-teacherProvides the supervisory signal (soft targets) for the student.

The source of soft targets coming from the model itself: deeper layers, a previous generation of weights, or averaged/softened predictions.

StudentThe model being optimized.

The same or identically parameterized model (or its shallower section) trained to match the self-teacher’s soft targets.

Distillation lossCombines supervision from hard labels and from soft targets.

A combination of a hard-label loss (cross-entropy) and a KL divergence between the softened predictions of student and teacher, scaled by temperature.

Implementation

Implementation pitfalls
Temperature selectionMedium

A temperature that is too low or too high degrades the soft-target signal.

Fix:Tune temperature on a validation set; typically T>1.
Distillation loss weightingMedium

Overweighting the KL loss can hurt hard-label accuracy.

Fix:Balance the coefficient between CE and KL; validate both metrics.
Cost of the iterative variantMedium

Successive generations (Born-Again) multiply training time.

Fix:Limit the number of generations; monitor diminishing returns.

Evolution

Original paper · 2019 · ICCV 2019 · Linfeng Zhang
Be Your Own Teacher: Improve the Performance of Convolutional Neural Networks via Self Distillation
Linfeng Zhang, Jiebo Song, Anni Gao, Jingwei Chen, Chenglong Bao, Kaisheng Ma
2015
Knowledge Distillation (Hinton et al.)

Introduction of knowledge distillation with a separate teacher and soft targets — the base mechanism for self-distillation.

2018
Born-Again Neural Networks (Furlanello et al.)
Inflection point

A student identical to the teacher outperforms it — an early, iterative variant of self-distillation.

2019
Be Your Own Teacher (Zhang et al.)
Inflection point

In-network self-distillation: deeper layers teach shallower ones; coined the “self distillation” method.

2020
Self-Distillation Amplifies Regularization in Hilbert Space (Mobahi et al.)

Theoretical explanation: self-distillation iterations progressively limit the function basis, amplifying regularization.

Hyperparameters (configurable axes)

Softmax temperatureHigh

Scales the softness of teacher predictions; critical for the quality of the distillation signal.

Distillation loss weightHigh

Balance between the hard-label loss and the distillation (KL) loss.

Number of generationsMedium

Number of self-distillation iterations in the Born-Again variant.

Number of sections / auxiliary classifiersMedium

Splitting the network into sections with auxiliary classifiers in the in-network variant.

Parallelism

Parallelism level
Conditionally parallel

The in-network (deep→shallow) variant trains in parallel in a single run; the iterative (Born-Again) variant is sequential across generations.

Scope
Training

Hardware requirements

Primary

A training technique independent of hardware; runs on any accelerator (most commonly GPU).