Backpropagation

Last updated October 10, 2026

What is Backpropagation in simple terms?

In simple terms, backpropagation is how a neural network learns from its mistakes. After a wrong guess, it traces the error backward to see what to nudge, then makes tiny corrections, over and over, millions of times.

Backpropagation explained

Backpropagation is the core algorithm used to train neural networks, which works out how much each internal connection contributed to a wrong answer so that each one can be adjusted slightly, making the network's next prediction a little more accurate.

A neural network learns by adjusting the strengths of the connections between its nodes — its weights — until it produces good answers. But with a large network containing millions or billions of these connections, how do you know which ones to change, and by how much, after a wrong prediction? That's the problem backpropagation solves, and it's the engine behind nearly all modern deep learning. The name is short for "backward propagation of error," which captures the idea neatly: the network makes a prediction going forward, you measure how wrong it was, and then you send that error signal backward through the network to figure out how much each connection contributed to the mistake.

Here's the intuition. When the network gets something wrong, the error at the output isn't equally everyone's fault — some connections pushed harder toward the wrong answer than others. Backpropagation works out, layer by layer from the output back toward the input, exactly how much each connection was responsible for the error. Connections that contributed more to the mistake get adjusted more; connections that mattered less get adjusted less. In the underlying math, that measure of how much a connection is to blame is called a gradient — the partial derivative of the error with respect to a given weight, which is just a precise figure for how much a tiny change in that weight would change the final error. Backpropagation works all of these gradients out efficiently by applying the chain rule of calculus — the rule for tracing how a small nudge in one place ripples through a chain of steps to affect the end result. Each weight is then nudged a tiny amount in the direction that would have reduced the error. Do this once and the network barely improves. Do it across a huge number of examples, millions of times over, and those countless small corrections accumulate into a network that performs its task remarkably well. Backpropagation is usually paired with a method called gradient descent, which decides the direction and size of each nudge; backpropagation efficiently computes what's needed, and gradient descent applies it.

What makes backpropagation so important historically is that it made training deep networks practical. The idea of layered neural networks had existed for decades, but without an efficient way to assign credit and blame across many layers, training them was impractical. Backpropagation provided that — a method efficient enough to tune enormous networks — and it is one of the methods deep learning is built on, alongside the much larger datasets and faster hardware that arrived later. You don't need the underlying calculus to grasp what it accomplishes: it's the systematic process of learning from error, tracing responsibility backward and making small corrections, repeated until the network gets good. Almost every neural network you've heard of, from image recognizers to the large language models behind today's chatbots, was trained using backpropagation.

Real-world example of Backpropagation

A recycling company trains a neural network to sort items on a conveyor belt from camera images: plastic bottle, aluminum can, glass or cardboard. Early in training it labels a crushed can as cardboard. The training software measures how wrong that answer was, and backpropagation carries the error backward through the network, layer by layer, working out for every one of its millions of connections how much that connection contributed to the error. Gradient descent then adjusts each connection by its share, and the next batch of images goes in. Nobody on the team writes any of that calculation out. In PyTorch, one of the most widely used tools for building neural networks, the whole backward pass is a single instruction, called backward, that runs once per batch, many thousands of times over a training run, until the model sorts items it has never seen well enough to go on the line.

Frequently asked questions about Backpropagation

What is the difference between backpropagation and gradient descent?

They work as a pair but do different jobs. Backpropagation is the method that figures out how much each connection in the network contributed to the error — it efficiently calculates the needed adjustment for every weight. Gradient descent is the method that actually uses those calculations to update the weights, deciding the size and direction of each step toward a better answer. In short, backpropagation computes the corrections and gradient descent applies them; training a network typically uses both together on every batch of examples.

How does backpropagation work?

The network first makes a prediction in a forward pass, and the result is compared with the correct answer to measure the error. Backpropagation then sends that error backward through the network, layer by layer, using the chain rule of calculus to work out how much each connection was responsible for it — a quantity known as the gradient. Each weight is adjusted slightly to reduce the error next time — connections that contributed more to the mistake get larger adjustments. Repeating this across millions of examples gradually tunes all the connections until the network's predictions become more accurate.

Why is backpropagation important?

Because it's what makes training deep neural networks practical. Layered networks had been imagined long before they worked in practice; the missing piece was an efficient way to assign credit and blame across many layers and update millions of connections sensibly. Backpropagation supplied that, and together with larger datasets and faster hardware it became one of the foundations of deep learning. Nearly every powerful neural network in use today — image recognizers, speech systems, large language models — was trained using it.