Backpropagation

Also known as: Backprop

Category: Foundations of ML/AI

The algorithm used to compute gradients of the loss function with respect to each weight in a neural network, enabling training via gradient descent.

Full Explanation

Backpropagation (backprop) is the fundamental algorithm for training neural networks, computing how much each weight contributes to the overall error by propagating gradients backward through the network. It applies the chain rule of calculus layer by layer, from the output layer back to the input layer. The forward pass computes predictions, the loss is calculated, and then backpropagation computes the gradient of the loss with respect to every parameter. These gradients are then used by an optimizer to update the weights. Backpropagation makes training deep networks computationally feasible by reusing intermediate computations. The algorithm was popularized by Rumelhart, Hinton, and Williams in 1986, though its mathematical foundations were established earlier. Nearly all modern deep learning training relies on backpropagation through automatic differentiation frameworks.

Related Terms

More in Foundations of ML/AI

Explore More