What is backpropagation?
Backpropagation is how a neural network works out which of its weights caused an error, so each can be nudged to make the next answer better.
Rung 1 Explain like I'm 6
Imagine a team of kids passing a ball down a line to throw it into a bucket. The last kid throws and misses, too far to the left. The coach walks back up the line. She tells the last kid, "Aim a bit more right." She tells the kid before, "Your pass made it harder, pass a bit straighter." And so on, all the way to the start, telling each kid how much their bit caused the miss.
Next time, everyone fixes their own small part, and the ball lands closer. A neural network learns the same way. Walking back up the line to share out the blame is called backpropagation.
Rung 2 High-school level
A neural network makes a guess by passing numbers forward through layers. Each connection has a weight. Training means finding weights that make good guesses.
First we measure how wrong a guess is with a loss, a single number: bigger means worse. Then we ask, for every weight: if I nudged this weight up a little, would the loss go up or down, and by how much? That rate of change is a derivative, and the list of all of them is the gradient.
Backpropagation is the method that computes the whole gradient efficiently. It starts at the loss and works backwards through the layers, using the chain rule from calculus: if y depends on h and h depends on w, then dy/dw = dy/dh × dh/dw. Each layer only needs the slope passed back from the layer after it.
Backpropagation and gradient descent work as a pair. Backprop finds the direction downhill; gradient descent takes a small step that way. Repeat millions of times and the network learns. The method was made famous by a 1986 paper by Rumelhart, Hinton and Williams [1].
Check yourself: What is the difference between backpropagation and gradient descent?
Backpropagation computes how the loss changes with each weight; gradient descent uses those numbers to update the weights.
Rung 3 Undergraduate level
A two-weight network shows backpropagation in neural networks end to end, using the chain rule.
Network: h = ReLU(w₁·x), y = w₂·h, loss L = ½(y − t)². Values: x = 2, w₁ = 0.5, w₂ = 3, target t = 2.
Forward pass (save every intermediate value):
- h = ReLU(0.5 × 2) = 1
- y = 3 × 1 = 3
- L = ½(3 − 2)² = 0.5
Backward pass (multiply local slopes, from the loss back):
- ∂L/∂y = y − t = 1
- ∂L/∂w₂ = ∂L/∂y × h = 1 × 1 = 1
- ∂L/∂h = ∂L/∂y × w₂ = 1 × 3 = 3
- ∂L/∂w₁ = ∂L/∂h × ReLU′ × x = 3 × 1 × 2 = 6 (ReLU′ = 1 because its input was positive)
Gradient descent step with learning rate 0.02: w₁ = 0.5 − 0.02 × 6 = 0.38, w₂ = 3 − 0.02 × 1 = 2.98. Run forward again: h = 0.76, y ≈ 2.265, L ≈ 0.035. The loss fell from 0.5.
Two points generalise. The backward pass reuses ∂L/∂h for everything below it, so no work is repeated. And it needs the forward values (h, x), which is why training stores activations and uses far more memory than inference.
In matrix form, a layer y = Wx passes back ∂L/∂x = Wᵀ·∂L/∂y and gets ∂L/∂W = ∂L/∂y·xᵀ.
Check yourself: In the example, why is ∂L/∂w₁ larger than ∂L/∂w₂?
Its path to the loss passes through w₂ = 3 and input x = 2, which multiply the error signal along the way.
Rung 4 Graduate level
Why it is cheap. Backpropagation is reverse-mode automatic differentiation, which Baydin et al. call a special case of AD [2]. For a function with many inputs and one output, such as a loss over millions of weights, reverse mode gets the full gradient in one backward pass. Its cost is a small constant times one forward evaluation: guaranteed under 6 and typically 2 to 3 [2]. Forward mode would need one pass per weight.
Memory is the price. Reverse mode must keep intermediate values, and storage can grow with the number of operations [2]. Gradient checkpointing saves only some activations and recomputes the rest: Chen et al. (2016) cut memory for an n-layer network to O(√n) for one extra forward pass, taking a 1,000-layer residual network from 48 GB to 7 GB at about 30% more run time [3].
Vanishing and exploding gradients. The gradient for an early layer is a product of many factors. If they are mostly below 1 it shrinks towards zero; above 1 it blows up. Sigmoid's slope is at most 0.25, so deep sigmoid stacks starved early layers. ReLU-style activations, careful initialisation, normalisation and residual connections keep gradients usable.
Backpropagation through time. A recurrent network is unrolled across time steps and backprop is run on the unrolled graph. Long sequences make the products longer, so these problems are worst there, one reason transformers replaced recurrent networks.
Precision. Gradients span a wide range of sizes, so low-precision training needs scaling tricks. DeepSeek-V3 (2024) ran most matrix multiplies, forward and backward, in FP8 while keeping attention, normalisation and the output head in higher precision; at smaller test scales its loss stayed within 0.25% of a BF16 baseline [7].
Rung 5 PhD level
History. Reverse-mode differentiation predates its fame in AI. Linnainmaa's 1970 work is often cited as its first published description; Werbos (1974) and others applied it to networks; Rumelhart, Hinton and Williams (1986) showed it learns useful internal features [1][2]. The AD and neural-network communities developed it largely separately [2].
Is it biologically plausible? Backprop sends errors back through the same weights used going forward. Brains have no obvious way to do this "weight transport". Lillicrap et al. showed that fixed random feedback weights can still train networks about as well as backprop on several tasks, because the forward weights learn to align with the feedback [4]. How well such rules scale to deep modern networks is unresolved.
Avoiding the backward pass. Hinton's Forward-Forward algorithm (2022) replaces the forward and backward passes with two forward passes, one on real data and one on negative data [5]. Zeroth-order methods estimate gradients from forward passes alone: MeZO (2023) fine-tuned a 30B-parameter model on one 80 GB A100, where backprop could fit only 2.7B, using up to 12× less memory [6]. Both trade sample efficiency for memory or locality.
Open problems:
- Why plain gradient methods work on non-convex losses with billions of parameters.
- Non-differentiable steps (discrete choices, sampling) need estimators that add bias or variance.
- Low-precision theory: how few bits gradients can use before training diverges.
- Locality: backprop must finish the forward pass before learning, which limits pipelining across devices and online learning.
Check yourself: What is the "weight transport" problem?
Backprop needs the forward weights to carry error signals backwards, and there is no known way for brains to do that.
Rung 6 State of the art: what experts work on now
Last checked 19 November 2026.
As of 2026-11-19.
Backpropagation is still how essentially every large model is trained. Recent work changes how cheaply it runs, not what it computes.
Fewer bits. DeepSeek-V3 (December 2024) reported the first validation of FP8 mixed-precision training on an extremely large model, with forward and backward matrix multiplies in FP8 [7]. NVIDIA (September 2025, revised March 2026) went further: a 12B-parameter model pretrained on 10 trillion tokens in the 4-bit NVFP4 format reached loss and downstream accuracy comparable to an FP8 baseline [8]. Halving bits roughly halves memory traffic for weights, activations and gradients.
Memory, not maths, is the limit. Stored activations for the backward pass are why training needs far more memory than inference. Recomputation [3] and low precision [7][8] are standard answers.
Alternatives remain niche. Forward-only methods [5][6] and random-feedback rules [4] are active research, mainly for memory-limited fine-tuning and brain-inspired learning. None has matched backprop for pretraining large models.
The 1986 idea [1] is unchanged; its numbers keep getting smaller.
Sources
- Rumelhart, Hinton, Williams: Learning representations by back-propagating errors (Nature 323) (1986)
- Baydin, Pearlmutter, Radul, Siskind: Automatic differentiation in machine learning: a survey (JMLR) (2018)
- Chen, Xu, Zhang, Guestrin: Training Deep Nets with Sublinear Memory Cost (2016)
- Lillicrap, Cownden, Tweed, Akerman: Random feedback weights support learning in deep neural networks (2014)
- Hinton: The Forward-Forward Algorithm: Some Preliminary Investigations (2022)
- Malladi et al.: Fine-Tuning Language Models with Just Forward Passes (MeZO) (2023)
- DeepSeek-AI: DeepSeek-V3 Technical Report (2024)
- NVIDIA: Pretraining Large Language Models with NVFP4 (2025)