Backpropagation (1986): The Algorithm Every Model Still Trains With
A four-page Nature paper, a chain-rule trick with a longer pedigree, and the loop inside every modern training run

Contents
Every large model you have used, from an image generator to a chatbot, learned its behaviour through the same loop. Show the network an example, see how wrong it is, work out which of its billions of numbers deserves the blame, nudge each one a little, repeat. The “work out which number deserves the blame” step has a name: backpropagation. It was popularised in a four-page paper in Nature in October 1986, and almost nothing about the core idea has been replaced since.
The history is more tangled than the tidy “1986” suggests, and the algorithm is smaller than its reputation. This post takes both in turn: where it came from, what it does, and why a technique with a forty-year pedigree still sits underneath the biggest training runs in the world.
The problem it solved
A neural network, in the sense explained in what a model actually is, is a pile of numbers (weights) arranged in layers. Feed an input through, and an answer comes out. Training means adjusting the weights until the answers improve.
The simplest network, Frank Rosenblatt’s perceptron, had one layer of adjustable weights, and a clean rule for adjusting them. The story of that machine and its limits is in the perceptron. One layer cannot represent some simple functions (the XOR pattern is the textbook example, and Minsky and Papert’s 1969 book made the point at length), but adding hidden layers fixes that in principle. The catch was that nobody had a widely adopted way to train them. If a hidden unit in the middle of the network contributes to a wrong answer, how much of the error is its fault, and which direction should its weights move?
That is the credit-assignment problem, and it is the whole subject. A rule that updates the output layer is easy, because you can see the error directly. A rule for the layers behind it needs a way to carry blame backwards.
The idea in one paragraph
Think of the network as a chain of simple functions, each feeding the next. The final error is a function of the output, which is a function of the last hidden layer, which is a function of the one before. Calculus has a rule for the derivative of a chain of functions: the chain rule. It says the sensitivity of the end result to something early on is the product of the sensitivities at each link in between.
Backpropagation applies that rule in an order that avoids redundant work. First run the network forwards and keep every intermediate value. Then start at the error and walk backwards, one layer at a time, reusing the product computed for the layer after. When the walk finishes, every weight has a number attached telling it how much the error would change if it moved by a tiny amount. That number is the gradient, and the update is a small step in the opposite direction.
The efficiency matters more than it sounds. Wikipedia’s summary of the algorithm points out that the saving comes from multiplying a vector by each layer’s weight matrix on the way back, rather than multiplying whole matrices forwards, which would track every possible path a change could take. The cost of the backward pass is of the same order as the cost of the forward pass. A network with a billion weights does not need a billion separate experiments to find its gradients; it needs about two passes.
A runnable version
The smallest honest example has one input, one hidden unit and one output. This is plain Python, with the derivatives written out by hand so each line of the backward pass is visible:
| |
Running it prints a loss that falls at each step (0.8810, 0.7938, 0.7310). Three lines carry the idea. dy is the error at the output. dh is that error passed back through w2. dw1 is the error passed back again through the tanh and onto the first weight. Everything a modern framework does for a transformer is this, applied to tensors and automated.
Modern libraries build the backward pass for you. You write the forward computation and the framework records it, then replays it in reverse. This is called automatic differentiation, and it explains why researchers can invent exotic architectures without deriving gradients by hand. The attention mechanism in attention explained and the whole stack in the Transformer paper are trained by exactly this machinery.
A longer pedigree than 1986
The date in the title belongs to the paper that made the idea famous. The mathematics is older, and the history is a textbook case of an idea being found more than once.

- 1970. Seppo Linnainmaa, in a Master’s thesis at the University of Helsinki, described the reverse mode of automatic differentiation, the general technique of which backpropagation is a special case.
- 1974. Paul Werbos, in his Harvard doctoral thesis, proposed using it to train multilayer networks. He published more explicitly on applying it to neural networks in the early 1980s.
- 1985 to 1986. David Rumelhart, Geoffrey Hinton and Ronald Williams worked it through as a learning procedure for networks of neurone-like units, with a technical report in 1985 and the Nature paper, “Learning representations by back-propagating errors”, in volume 323, pages 533 to 536, in 1986. A longer treatment appeared in the Parallel Distributed Processing volumes the same year.
Why does the 1986 paper get the credit? Accounts of the period generally credit it with two things the earlier work had not. It demonstrated that hidden units trained this way develop useful internal representations: in the paper’s examples, units end up encoding features of the problem that nobody programmed in. And it reached the right audience at the right moment, when cognitive scientists and psychologists, who were the readership of the PDP books, were looking for an alternative to symbolic rules. The older work existed, in engineering and control theory; the cognitive-science community had not seen it.
That is the part worth holding on to. The 1986 contribution was a demonstration and a persuasion, built on mathematics that other people had already worked out. Credit for ideas rarely follows the order in which they were discovered.
Why it did not take over immediately
If the algorithm was known in 1986, why did deep learning wait until AlexNet in 2012? The answer is a list of practical limits that took decades to lift.
Compute and data. Training a deep network takes many passes over a lot of examples. The machines and datasets of the late 1980s were tiny. Yann LeCun’s group did apply backpropagation to handwritten zip-code recognition in 1989, which was a real early success, but the networks were small, and the hardware needed for something bigger came later through an unlikely route, described in how gaming GPUs became AI hardware.
Vanishing gradients. Multiplying many small numbers together makes a very small number. In a deep network, or in a recurrent network unrolled across a long sequence, the gradient reaching the early layers can shrink towards zero, so those layers barely learn. Sepp Hochreiter analysed this in his 1991 diploma thesis, and his later work with Jürgen Schmidhuber produced one of the main fixes, covered in LSTM (1997). The shortcut connections in ResNet attacked the same problem in a different way, by giving the gradient a direct route back.
Local minima and plateaus. Backpropagation computes a gradient, and gradient descent follows it downhill. It can settle in a local minimum of the error rather than the global one, and flat regions of the error surface slow it down. In practice, very large networks turned out to be more forgiving than the early worry suggested, but the guarantee never arrived. It is an empirical success story.
Fashion. Between the late 1980s and the 2000s, other methods looked better on the benchmarks that mattered. The funding mood swings between those eras are told in the AI winters, and neural networks spent a long stretch out of favour.
What backpropagation does not do
A common confusion is that backpropagation is the learning. It is one half of it. Backpropagation answers a narrow question: given the current weights and one batch of examples, what is the gradient of the loss with respect to every weight? A separate component, the optimiser, decides what to do with that answer. Plain gradient descent subtracts a multiple of the gradient. Popular variants keep running averages to smooth the steps. Both consume the same gradients.
It also does not choose the architecture, the loss or the data. Those decisions carry most of the weight in how well a model ends up. The four stages of building a chat model, from pretraining through instruction tuning to human feedback, are laid out in the four stages of a chat model, and every one of them runs backpropagation inside it. The loop is the same whether the loss measures next-word prediction or a reward from human raters.
Finally, backpropagation has an awkward relationship with biology. The backward pass needs each weight to know a quantity computed by distant units in a different direction of travel, and nobody has found a clear counterpart in the brain. Hinton, who shared the 2024 Nobel Prize in Physics with John Hopfield for foundational work on artificial neural networks, has spent much of his later career asking whether the brain learns by something similar. The question is open, and the engineering works whether or not the answer is yes.
The cost at scale
Training and running are different workloads, a split explained in training vs inference. Backpropagation is the reason training costs so much more. The backward pass takes memory to hold every intermediate value from the forward pass, and compute of the same order as the forward pass itself. During inference you only need the forward half, which is why a model you could never train at home can often still be run there.
That asymmetry shapes the hobbyist’s options too. Fine-tuning a model with a technique like LoRA still runs backpropagation, but only through a small set of added weights, so the memory bill shrinks. The loop does not change; the number of weights it has to track does.
The honest summary
Backpropagation is an application of the chain rule, organised so that blame for an error can be assigned to every weight in about the cost of one extra pass. It was found several times, and the 1986 version made it a working tool for a generation of researchers. For the following quarter-century it waited for data, hardware and a few architectural fixes, and then it carried the whole deep-learning boom.
If you want one thing to take away, make it the shape of the loop: forward, loss, backward, update. Strip away the tensors, the GPUs and the billions of parameters, and a model learns by repeating those four steps until the loss stops falling.
Sources: Rumelhart, Hinton and Williams, “Learning representations by back-propagating errors”, Nature 323 (1986) · Backpropagation, Wikipedia · Paper record at the Machine Learning Anthology · The Nobel Prize in Physics 2024 · Long short-term memory, Wikipedia




