# Backpropagation (1986)

> The four-page paper that showed how to train networks with hidden layers, and what those layers learn.

Page: https://mralbu.github.io/ai-datasets/p/backprop

## Key facts

- Title: Learning representations by back-propagating errors
- Authors: David E. Rumelhart, Geoffrey E. Hinton, Ronald J. Williams
- Venue: Nature
- Category: Foundations
- Paper: https://doi.org/10.1038/323533a0

## Why it matters

Single-layer perceptrons could not learn even simple functions such as XOR, and there was no practical way to train deeper networks. Backpropagation gave one. The algorithm itself had been described earlier (reverse-mode differentiation by Linnainmaa in 1970, and by Werbos in his 1974 thesis, later applied to neural networks in 1982), but this paper showed what it could do and made it famous. Every neural network on this site is trained with it, through the automatic differentiation in PyTorch, JAX and TensorFlow.

## The idea

Run the network forward, measure the error at the output, then pass error derivatives backwards through the layers with the chain rule to get the gradient for every weight at once. Adjust each weight a little against its gradient, and repeat. Hidden units, which no label describes, end up learning useful features on their own.

## The result

On a task about two family trees, one English and one Italian, the hidden units learned features nobody had specified, such as a person's nationality, generation and branch of the family.

## The data

- Tested on (not on this site): Small synthetic problems such as detecting mirror symmetry in a row of inputs, and learning relations in two family trees (English and Italian).

## Part of

- [Making deep networks trainable](https://mralbu.github.io/ai-datasets/t/deep-nets-trainable.md) (step 1 of 7)
