Backpropagation

A network can contain many weights between an input and its prediction. Backpropagation works backwards through those calculations to find how each weight contributed to a change in the loss.

12 sections · 10 questions · 4 coding challenges

1 / 12

Which Earlier Weight Helped Produce the Mistake?

BOTIE

When a network gives a wrong answer, we can compare its final prediction with the target. But the prediction may have passed through many layers. An early weight did not produce the answer directly, so we need to work out how its influence travelled through the later calculations.

Backpropagation draws on the chain rule and earlier work on reverse differentiation. The 1986 paper by Rumelhart, Hinton and Williams helped demonstrate its value for learning the hidden representations of neural networks. The central problem was assigning a useful adjustment signal to connections far from the output.

We record the calculations on the way forward. Starting from the loss, we then pass derivatives backward through those same operations, reusing intermediate results. Each derivative says how a small local change would affect the final loss. Backpropagation computes those sensitivities; an optimiser uses them to choose the actual weight updates.

Sources for this history