Back to Glossary
Artificial Intelligence

Backpropagation

Backpropagation computes gradients of the loss function with respect to model weights for training.

Definition

Backpropagation (backward propagation of errors) is the fundamental algorithm for training neural networks. It computes the gradient of the loss function with respect to each weight in the network by applying the chain rule of calculus, working backwards from the output layer to the input layer. These gradients are then used by an optimizer (SGD, Adam) to update weights. Backpropagation requires: (1) Forward pass — compute predictions, (2) Loss calculation, (3) Backward pass — compute gradients, (4) Weight update. This cycle repeats millions of times during training. Modern GPUs accelerate backpropagation via Tensor Cores.

Related Keywords

backpropagationbackpropgradient computationneural network training

Explore Harch Corp's GPU Cloud

Leverage backpropagation in our carbon-aware GPU cloud infrastructure in Morocco.