backpropagation
The computational procedure by which a neural network works backward from its error to calculate how much each internal setting needs adjustment to be more accurate next time.
In plain terms
Imagine that the soup in a restaurant turned out bad, and the chef retraces the steps through the kitchen: who added the salt, who cooked the base stock, who sorted the vegetables. Everyone receives feedback proportional to their contribution to the error, and the next day they work slightly differently. Backpropagation does the same in a neural network, only with millions or billions of numbers instead of people.
The neural network consists of countless tiny 'knobs' (weights), which determine what the system answers. During training, the network guesses, the guess is compared with the correct answer, and the difference is the error. Backpropagation determines which knob is responsible for this error and in which direction it needs to be turned.
This procedure made it possible to train multi-layered, 'deep' networks efficiently. Without it, every knob (parameter) would have to be tried separately, which would be hopelessly slow for models this large. Today's image recognizers, translators and large language models almost all learn this way.
It is important that backpropagation only distributes responsibility. The actual adjustment is performed by another step, optimization, and the finished model no longer applies it during use.
How it works
- Forward calculation: the network receives an example (for instance, an image or the beginning of a sentence) and calculates its own answer layer by layer.
- Error measurement: a so-called loss function compresses into a single number how much the response deviated from the correct one.
- Backpropagation: the error is traced back from the last layer to the first, and using the chain rule of mathematics, the contribution of each weight is calculated. The sum of these values is the gradient.
- Adjustment: the optimization algorithm (such as gradient descent) nudges each weight slightly in the direction in which the error decreases.
- Iteration: this loop runs over millions of examples repeatedly until the network's responses are good enough.
An everyday example
When your phone recognizes your handwriting or the dog in your photo, the underlying model was previously trained on countless examples using backpropagation. You only use the final result: no backpropagation runs while the chatbot responds; that happened during training.
Who is affected
A common misconception
Limits and risks
- It requires massive computation and data: training large models can run for weeks on expensive purpose-built hardware.
- It does not guarantee the best solution, only reduces errors step by step, so the final result depends on the initial settings and the training recipe.
- It only corrects what the error measurement sees: if the training data is bad or biased, the network learns the bias precisely.
- In very deep networks, the backpropagated signal may vanish or explode (vanishing or exploding gradient), which requires special techniques to handle.
Similar, but not the same
- gradient descent – Backpropagation calculates where and how much adjustment is needed, while gradient descent actually performs the adjustment.
- inference – During inference, the trained model only calculates forward and provides an answer; there is no backward progression or weight adjustment.
- reinforcement learning – Reinforcement learning is a learning scenario where the system learns based on rewards, while backpropagation is a computational procedure used in various learning modes.
Related concepts
machine learning, deep learning, model training, automatic differentiation
temporal backtracking
gradient descent, Neural network, loss function, weights, fine-tuning
A brief history
The mathematical core of the method was described by Seppo Linnainmaa in 1970; Paul Werbos proposed it for neural networks in his 1974 doctoral thesis. It was widely popularized by David Rumelhart, Geoffrey Hinton, and Ronald Williams in their 1986 Nature paper.
Where things stand
As of late 2026, this is still the basic procedure for training neural networks, from large language models to image generators. Alternatives are being researched, but in practice none has replaced it.
Also known as
backpropagation · backpropagation · backpropagation · backpropagation learning · backpropagation · back-propagation · backprop · backward pass
Sources
- Rumelhart, Hinton, Williams: Learning representations by back-propagating errors (Nature, 1986)
- Wikipedia: Backpropagation
This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.