Skip to content

Backpropagation

An algorithm that calculates gradients for all weights of the network, moving from the output to the input. It makes the training of deep neural networks possible.

How it works

  1. The network makes a prediction and receives an error at the output.
  2. The error 'flows' back: each layer learns how its weights affected the outcome.
  3. A gradient is calculated for each weight — the direction in which the error decreases.
  4. The weights are updated in the direction of the negative gradient.

Why it is important

Without backpropagation, we wouldn't know which of the millions of weights is 'responsible' for the error. The algorithm connects the output error to each parameter inside the network — this is the foundation of all deep learning.

Relation to other concepts

The size of the update step is determined by the learning rate, and the process is repeated over epochs until the error stops decreasing.

See also

← All terms