Backpropagation
Backpropagation tells us how sensitive an error is to the quantities used to compute it. It reuses local derivatives, working backward from the error to the parameters.
Intuition: follow the dependency
Suppose a parameter changes a hidden activation, which changes a prediction, which changes a loss. Its influence is the product of those local sensitivities. If it influences the loss through several paths, add their contributions. The graph above is a map of these dependencies, not a physical signal travelling through a brain.
The chain rule, made reusable
For an intermediate value with downstream values ,
A forward pass stores the values needed by these local derivatives. A backward pass visits operations in reverse dependency order. In a multilayer perceptron with and output , squared-error loss gives
Multiplying this by input gives the derivative for weight . Notice the three factors: error at the output, output weight, and activation slope. A small slope can make a parameter's gradient small even when the prediction error is large.
A small check you can do yourself
In an illustrative scalar calculation, let , , and . Then , , and . Directly writing gives the same answer. A numerical check evaluates ; very small can introduce floating-point cancellation.
Backpropagation computes derivatives. Gradient descent chooses an update using them. These are distinct operations; a correct derivative does not guarantee a good learning rate, useful data or generalization.
Where you will see this
Use the step-by-step explorable to inspect all nine parameter gradients. The planned GPT learning capstone will build on the same differentiation idea at a larger scale.