Large Programs

Home / How LLMs Work

How LLMs Work

Backpropagation: How a Network Learns From Its Mistakes

Backpropagation is the method that works out how to adjust each weight in a neural network after it makes an error. A simple explanation with a team analogy.

27 November 2026 · 2 min read

When a neural network gives a wrong answer, it has to change. But a network has a very large number of weights. Which ones should change, and by how much? Backpropagation is a method for working that out.

A network with gradients worked out backward from the output, then an optimizer step that updates the weights.

What Wikipedia says

Backpropagation is a gradient computation method commonly used for training a neural network. It efficiently computes how the loss, a number that measures how wrong the network is, changes with respect to each weight. It does this by passing the calculation backward, one layer at a time, from the output layer to the input layer. That avoids repeating the same calculations.

A team analogy

Imagine a relay team that lost a race. To improve, the coach starts at the finish line and asks how much each runner, from the last back to the first, added to the lost time. That is an analogy for the backward pass. A network is not a relay team, but the idea of working back from the result is the same.

Backpropagation is not the whole learning step

Wikipedia points out that, strictly speaking, backpropagation only computes the gradient. How the gradient is then used, for example to change the model's parameters in the opposite direction of the gradient, is a separate step, such as stochastic gradient descent. People often use the word loosely for the whole learning process.

Who invented it

Wikipedia says backpropagation had multiple discoveries and partial discoveries, with a tangled history and terminology. It is also called "reverse mode of automatic differentiation". So it is not credited here to one person.

A 1986 paper

A well-known 1986 paper in Nature by David Rumelhart, Geoffrey Hinton and Ronald Williams, "Learning representations by back-propagating errors", describes back-propagation as a learning procedure for networks of neurone-like units. According to its abstract, the procedure repeatedly adjusts the weights of the connections to reduce the difference between the network's actual output and the desired output. The authors say that, as a result, internal "hidden" units come to represent important features of the task, and that this ability to create useful new features distinguishes back-propagation from other learning procedures. This is the authors' own description. It does not settle who first discovered the method, which the section above leaves open.

See how LLMs learn, what is deep learning and what are parameters.

Sources