Backpropagation
Also known as: Backprop, Backward propagation of errors
Algorithm that computes how much each weight in a neural network contributed to an error, enabling efficient training of multi-layer networks.
Backpropagation is the standard method for computing gradients in neural networks. After a network makes a prediction, a loss function measures how wrong it was. Backpropagation then applies the chain rule of calculus layer by layer, from the output back toward the input, to work out the partial derivative of the loss with respect to every weight. These gradients tell an optimizer such as gradient descent which direction to adjust each weight to reduce the error. The process is repeated over many examples until performance stops improving.
The underlying technique, reverse-mode automatic differentiation, was described by Seppo Linnainmaa in 1970, and Paul Werbos proposed applying it to neural networks in the 1970s. The method became widely known after a 1986 paper in Nature by David Rumelhart, Geoffrey Hinton and Ronald Williams showed that it let multi-layer networks learn useful internal representations. That result helped revive neural network research after the setbacks associated with the perceptron. Several other researchers arrived at similar ideas independently.
Backpropagation is the workhorse behind nearly all deep learning. Software frameworks such as PyTorch and TensorFlow implement it automatically, so developers define a model and the gradients are computed for them. Practical challenges include vanishing and exploding gradients in very deep or recurrent networks, addressed by techniques such as careful initialization, normalization layers and residual connections. Whether the brain uses anything like backpropagation is an open question, since the algorithm's need for precise backward error signals has no obvious biological counterpart.
Key points
- Backpropagation uses the chain rule to compute the gradient of the loss for every network weight.
- A 1986 Nature paper by Rumelhart, Hinton and Williams popularized the method for neural networks.
- Deep learning frameworks compute these gradients automatically through automatic differentiation.
- Whether biological brains learn in a comparable way remains an open research question.
Related entries
Gradient Descent
Optimization method that repeatedly adjusts parameters in the direction that most reduces a function's value, used to train most machine learning models.
Computational model made of interconnected units, loosely inspired by biological neurons, whose connection strengths are learned from data.
Approach to machine learning that trains neural networks with many layers to learn increasingly abstract representations directly from raw data.
British-Canadian computer scientist whose work on neural networks and backpropagation helped launch deep learning, earning a Nobel Prize in Physics.
Early learning algorithm and single-layer neural network, introduced by Frank Rosenblatt in the late 1950s, that learns to sort inputs into two classes.
PyTorch
Open-source machine learning framework combining GPU-accelerated tensors with automatic differentiation, widely used for deep learning research.
Neural network architecture that processes sequences step by step while carrying a hidden state, giving it a form of memory of earlier inputs.
Referenced by
Other entries that discuss or point to Backpropagation.