Backpropagation
The training process that moves error information backward through a neural network so its weights can be updated.
Which way does the error travel?
Consider a tiny model with input 3 and weight 2. Its output is the product, 6. The target is 5 and the loss is half the squared difference. This example follows just one weight so every factor is visible.
- Forward calculation
The error is 6 − 5 = 1. Half its square is 0.5. The model retains the intermediate values needed by the backward calculation.
- Local derivatives
The loss changes with output at a rate of 1 here. The output changes with weight at a rate of 3, the current input.
- Chain rule
Multiply the two factors to get the gradient of loss with respect to weight, 1 × 3 = 3. Backpropagation computes this derivative efficiently through connected operations.
Who changes the weight?
The optimizer uses the gradient. A simple gradient descent step with learning rate 0.1 changes the weight to 2 − 0.1 × 3 = 1.7. A new forward pass gives output 5.1 and loss 0.005. Computing the gradient and choosing the update are separate operations.

What changes in a larger network?
Where a value influences the loss along several paths, the backward pass accumulates their contributions. The same chain rule applies even when the intermediate values are arrays and many parameters share work.
Follow the idea
Loss Function · Identify the quantity being differentiated.
Deep Learning · Locate weights and connections in a larger model.
Source · Dive into Deep Learning on forward and backward propagation
Return to Backpropagation in the A–Z glossary