Skip to content
Back to course

12.5 Backpropagation

Backpropagation is how a network learns from its mistakes. After a forward pass, the error between the prediction and the true answer is measured, then propagated backward through the layers using the chain rule to compute how much each weight contributed to the error. An optimiser then nudges the weights to reduce that error.

DataModelPredictAdjustrepeat & improve
Forward pass, loss, backward pass, weight update — repeated each training step.

Imagine a student in Addis taking a mock exam, seeing which questions they got wrong, and reviewing exactly those weak topics before the next test. Backpropagation tells the network which 'weak weights' to fix and by how much.

Scenario

During training your loss does not go down at all and gradients are near zero in early layers. What is a reasonable first suspicion?

Check your understanding

1/4 · 40 XP

What is the main purpose of backpropagation?