Backpropagation explained in plain terms means the method a neural network uses to learn from its mistakes by sending the error backwards through its layers and adjusting the connections that caused it. The central question is how a network with many layers knows which of its settings to change after a wrong answer, and the short answer is that it calculates how much each connection contributed to the error and updates each one in proportion.
Think of a team that loses a match and watches the recording together. Each player sees where their own positioning went wrong, and each one adjusts their play for the next match.
Backpropagation is that review session, done mathematically. The network measures how wrong its answer was, traces the blame back through every layer, and nudges each connection a little in the direction that would have made the answer better.
Key takeaways
- Backpropagation is how neural networks learn from their errors.
- It sends the error backwards through the network, layer by layer.
- Each connection is adjusted in proportion to its contribution to the error.
- It works by applying the chain rule from calculus, one layer at a time.
- Repeated small adjustments over many examples are what training is.
What backpropagation is
Backpropagation, short for backward propagation of errors, is an algorithm for training neural networks. A neural network is made of layers of simple units connected by weights, which are numbers that control how strongly one unit influences the next. When the network makes a prediction, the input passes forward through the layers, and the final output is compared with the correct answer to produce an error.
Backpropagation takes that error and works backwards. Starting at the output, it calculates how the error changes as each weight changes, producing a gradient for every weight in the network. Those gradients say whether each weight should go up or down, and by how much, to reduce the error.
The network then updates its weights by a small step in the direction the gradients suggest. One update changes almost nothing, but thousands of updates across many examples gradually shape the network into a system that makes accurate predictions.
Our guide to neural networks explains the layered structure that backpropagation trains. Without that structure there would be nothing for the error to travel back through.
How backpropagation works
The process has two passes. In the forward pass, an input travels through the network, each layer transforming it, until an output appears. The output is compared with the correct answer using a loss function, which produces a single number describing how wrong the network was.
In the backward pass, the algorithm applies the chain rule, a method from calculus for working out how a change in one quantity affects another through a chain of steps. It starts at the loss and moves backwards, calculating the gradient for each layer in turn. Each layer’s gradient depends on the gradient of the layer after it, so the error flows back through the whole network like a message passed down a line.
Once the gradients are known, an optimisation method updates the weights. The simplest method takes a small step against the gradient, scaled by a learning rate that controls how large each step is. A learning rate that is too large can overshoot the best settings, while one that is too small makes training crawl.
The network repeats this cycle for every example in the training data, many times over. Each cycle is a small correction, and the corrections accumulate into learning.
The role of gradients and the chain rule
A gradient is a measure of how much a small change in one value would change another value. In a neural network, the gradient of the loss with respect to a weight tells the network whether increasing that weight would increase or decrease the error, and by how much. That is exactly the information needed to improve.
The chain rule is what makes this practical for deep networks. A deep network is a long chain of transformations, and working out the effect of an early weight on the final error directly would be enormously complicated. The chain rule breaks the problem into local steps: each layer only needs to know how its own output affects the next layer, and those local pieces multiply together to give the full picture.
This local calculation is also what makes backpropagation efficient. Each layer reuses the gradients computed by the layer after it, so the whole backward pass costs roughly the same as the forward pass, even for networks with many layers.
Our guide to transformer models describes an architecture whose many layers are all trained this way. Every attention layer and every feed-forward layer in a transformer is adjusted by backpropagation.

Comparing forward and backward passes
| Aspect | Forward pass | Backward pass |
|---|---|---|
| Direction | Input toward output | Error toward input |
| Purpose | Make a prediction | Work out how to improve |
| What it computes | Layer outputs | Gradients for every weight |
| Key tool | Weighted sums and activations | The chain rule |
| Result | An answer and an error | A set of weight updates |
Problems backpropagation can face
One well-known problem is the vanishing gradient. In a deep network, the gradients are multiplied layer by layer as they travel backwards, and if those multiplications keep shrinking the values, the gradients reaching the early layers become tiny. Those layers then barely learn, even though they may hold the most basic and important features.
The opposite problem is the exploding gradient, where the multiplications grow the values until the updates become so large that training becomes unstable. Both problems come from the same cause: a long chain of multiplications that drifts away from a useful size.
Several designs help with these problems. Normalisation layers keep the values in each layer within a sensible range. Residual connections give the error a shortcut past some layers, so it reaches early layers without being multiplied away. Careful choice of activation functions also keeps gradients healthy.
The choice of learning rate matters too. A rate that is too high makes the network jump around and never settle, while a rate that is too low means the network learns so slowly that training takes far longer than it should. Many training runs adjust the rate as they go, starting larger and shrinking it as the network improves.
Where backpropagation is used
Backpropagation is used to train almost every neural network in practical use. Image recognition systems, language models, speech recognition, and recommendation engines are all trained with it. Whenever a model learns from labelled examples by adjusting its internal weights, backpropagation is almost certainly the mechanism doing the adjusting.
It is also used in systems that learn by trial and error, where the error signal comes from a reward rather than a correct answer. The same backward flow of information tells the network which of its choices led to good outcomes and which led to bad ones.
Backpropagation is not the only way to train a model, but it is by far the most widely used, because it is efficient and it scales to networks with many layers and many weights. Alternatives exist for special cases, yet they are rarely chosen for large-scale training.
Backpropagation checklist
- Start with a forward pass: the network must predict before it can learn.
- Measure the error with a loss function suited to the task.
- Let the error flow backwards, layer by layer, using the chain rule.
- Update each weight in proportion to its gradient.
- Choose a learning rate that is neither too large nor too small.
- Watch for vanishing or exploding gradients in deep networks.
- Use normalisation and residual connections to keep gradients healthy.
- Repeat the cycle over many examples: learning is cumulative.
- Check the model on held-out data, not only on training results.
Frequently asked questions
What is backpropagation?
Backpropagation is the algorithm that trains neural networks by sending the error from a prediction backwards through the network. It calculates how much each connection contributed to the error, then adjusts each connection in the direction that would reduce the error.
Why is it called backpropagation?
It is called backpropagation because the error is propagated backwards, from the output layer toward the input layer. The forward pass produces a prediction, and the backward pass carries the information about the error in the opposite direction.
What is a gradient?
A gradient measures how much a small change in one value would change another value. In training, the gradient of the error with respect to each weight tells the network whether that weight should increase or decrease, and by how much, to make the error smaller.
What is the chain rule in backpropagation?
The chain rule is a method from calculus for working out how a change passes through a chain of steps. Backpropagation uses it to calculate gradients layer by layer, with each layer building on the gradient of the layer after it, so the whole network can be updated efficiently.
What is the vanishing gradient problem?
The vanishing gradient problem happens when gradients shrink as they travel backwards through a deep network, leaving the early layers with almost no signal to learn from. Normalisation, residual connections, and suitable activation functions are the usual ways to keep gradients healthy.
Can a neural network learn without backpropagation?
Other training methods exist, but backpropagation is the standard for large networks because it is efficient and scales well. Alternatives are used only in special cases, such as when gradients cannot be calculated, and they rarely match backpropagation for general training.
The bottom line
Backpropagation explained in one line is this: the network makes a prediction, measures how wrong it was, sends that error backwards through its layers, and nudges every connection a little toward a better answer.
It is a simple idea with remarkable reach. One algorithm, repeated over many examples, is enough to train networks that recognise images, understand language, and make decisions, and it remains the engine at the heart of almost all modern deep learning.







