Backpropagation
Backpropagation is the method neural networks use to work out how much each weight contributed to an error, so that training can adjust every weight in the right direction.
A neural network learns by making a prediction, measuring how wrong it was and nudging its weights to be less wrong next time. The hard part is knowing which of millions or billions of weights to nudge, and by how much. Backpropagation answers that. Starting from the error at the output, it works backwards through the network one layer at a time, using the chain rule from calculus to calculate how a small change in each weight would change the error. That collection of numbers is the gradient.
Training then alternates two passes. In the forward pass, a batch of examples flows through the network and produces predictions, which are compared with the correct answers to give a loss. In the backward pass, backpropagation computes the gradient of that loss. An optimiser such as gradient descent then moves each weight a small step in the direction that reduces the loss. Strictly, backpropagation is only the gradient calculation, though the word is often used for the whole training procedure.
Its efficiency is the point. Working out each weight's effect separately would repeat the same calculations over and over. Backpropagation reuses intermediate results as it moves backwards layer by layer, so the whole gradient comes out of a few matrix multiplications per layer. Mathematicians know the general technique as reverse-mode automatic differentiation.
The history is tangled. Precursors appeared in control theory in the 1950s and 1960s, Seppo Linnainmaa published the general reverse-mode method in the 1970s, and Paul Werbos applied it to neural networks in the form now standard in 1982. The paper that made it famous was Learning representations by back-propagating errors by David Rumelhart, Geoffrey Hinton and Ronald Williams, published in Nature in October 1986. It showed that hidden layers trained this way came to represent useful features of a task, which simpler earlier methods could not achieve.
Today almost nobody writes backpropagation by hand; machine learning frameworks such as Keras do it automatically. Every large language model, image generator and speech recogniser in the news was trained with it.
It is the procedure a neural network uses to assign blame for a mistake. After the network makes a prediction and the error is measured, backpropagation works backwards through the layers to calculate how much each weight contributed, so training can adjust them all to reduce the error. Backpropagation calculates the gradient: how the error would change if each weight changed. Gradient descent uses that gradient to update the weights, taking a small step in the direction that lowers the error. The two work together in every training step. It was discovered several times. Seppo Linnainmaa published the general method in the 1970s, Paul Werbos applied it to neural networks in 1982, and a 1986 Nature paper by David Rumelhart, Geoffrey Hinton and Ronald Williams popularised it and showed what it could do. Yes, during training. Pre-training, fine-tuning and reinforcement learning from human feedback all compute gradients with backpropagation. When a model is simply answering questions, which is called inference, no backpropagation happens and the weights do not change.Common questions
What is backpropagation in simple terms?
What is the difference between backpropagation and gradient descent?
Who invented backpropagation?
Do large language models use backpropagation?
Search for "backpropagation explained", "chain rule neural networks" or "reverse-mode automatic differentiation" for explanations at different levels of mathematics. Good sources include university course notes, the machine learning courses from major providers and the original 1986 Nature paper. Accounts of who invented backpropagation differ, so prefer histories that cite the primary papers.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.