---
title: Backpropagation: How a Network Learns From Its Mistakes | Large Programs
description: 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.
canonical: https://www.largeprograms.com/backpropagation-how-neural-networks-learn-from-mistakes/
---

[Home](/) / [How LLMs Work](/category/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.](/img/backprop.svg)

## What the source 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

The source 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

The source 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.

## Related reading

See [how LLMs learn](/how-do-llms-learn/), [what is deep learning](/what-is-deep-learning/) and [what are parameters](/what-are-parameters-in-ai/).

## Sources

- [https://en.wikipedia.org/wiki/Backpropagation](https://en.wikipedia.org/wiki/Backpropagation)
- [https://doi.org/10.1038/323533a0](https://doi.org/10.1038/323533a0)

[Read this page as Markdown (.md)](/backpropagation-how-neural-networks-learn-from-mistakes.md)

## Keep reading

[![](/img/hero/art-ai-art-and-music-basics.svg)](/ai-art-and-music-basics/)

How LLMs Work

### [How AI Makes Music: A Beginner's Look](/ai-art-and-music-basics/)

Models can generate melodies and songs by learning patterns in sound. What that means for musicians.

[![](/img/hero/art-chain-of-thought-prompting-showing-your-working.svg)](/chain-of-thought-prompting-showing-your-working/)

How LLMs Work

### [Chain-of-Thought Prompting: Showing the Steps](/chain-of-thought-prompting-showing-your-working/)

Asking a language model to show intermediate steps can improve its answers to hard problems. What the research found and how it is like showing your working in maths.

[![](/img/hero/art-computer-vision-how-computers-see.svg)](/computer-vision-how-computers-see/)

How LLMs Work

### [Computer Vision: How Computers Make Sense of Pictures](/computer-vision-how-computers-see/)

Computer vision is the field that teaches computers to get useful information from images and video. Tasks, examples and a reminder that a computer does not see like you.
