Part 09 / Topic 4 of 6
Backpropagation
Training needs the gradient of the loss with respect to every weight. Backpropagation computes them all in one backward sweep: start with the loss's gradient at the output, and apply the chain rule layer by layer back to the input. Each layer multiplies the incoming gradient by its own local derivative and passes it on.
Nothing more than Part 2's chain rule, organised. The optimizer (plain gradient descent here) then nudges every weight against its gradient.
🧪 Quick quiz
- What does backpropagation compute?
Show the answer
The gradient of the loss with respect to every weight, via the chain rule — the optimizer then uses those gradients to update the weights.
Done here? The practice set for Part 9 — 4 exercises with solutions — is on the part page.