Jargonautica
How the Machinery Works

Backpropagation

The method for working out which of a model’s millions of internal settings were responsible for a mistake. The model makes a prediction, the error is measured, and that error is then traced backwards through the layers so each setting can be nudged by the right amount in the right direction. Without a way to assign blame across so many numbers, training a large network would be impossible.

Technical view

It is an efficient application of the chain rule from calculus, computing the gradient of the loss with respect to every parameter in roughly the same time as a single forward pass. This efficiency is the whole point; a naive approach would be hopelessly slow. In practice it is handled by automatic differentiation built into frameworks such as PyTorch, so practitioners rarely implement it directly, but understanding it explains most of why models train the way they do.


Part of AI Terminology Index, section: How the Machinery Works.

How it connects

Backpropagation links to 9 other terms. The faint lines are links between those terms. See it in the full graph.

Loss FunctionLoss FunctionNeural NetworkNeural NetworkGradient DescentGradient DescentGradientGradientDerivative and the Chain RuleDerivative and the …TrainingTrainingLayersLayersPerceptronPerceptronGradient CheckpointingGradient Checkpoint…Backpropagation