Backpropagation applies the chain rule from a neural network's output toward its input to compute the gradient of a loss with respect to every parameter.
For squared loss , let and . The chain rule gives and . A gradient descent step of size uses and , with every derivative evaluated at the same pre-update weights.
For hidden activations and class probabilities , a one-hot label has log-likelihood . Put and . Then
These follow from the chain rule and give single-observation stochastic gradient descent updates for the negative log-likelihood.

Articles by others on the same topic (2)

Backpropagation is an algorithm used for training artificial neural networks. It is a supervised learning technique that helps adjust the weights of the network to minimize the difference between the predicted outputs and the actual target outputs. The term "backpropagation" is short for "backward propagation of errors," signifying its two-step process: forward pass and backward pass.
Backpropagation by Ciro Santilli 40 Updated 2025-07-16
Video 1.
What is backpropagation really doing? by 3Blue1Brown (2017)
Source. Good hand-wave intuition, but does not describe the exact algorithm.