Backpropagation
The algorithm that computes every weight's gradient in a neural network with the chain rule.
After a forward pass, the error at the output is sent backwards through the network layer by layer. Each layer's error is the next layer's error multiplied by the transposed weights and the slope of the activation:
A weight's gradient is "error at its output times activation at its input". The backward pass costs about the same as the forward pass, which is what makes training networks with millions of weights practical.
See it in action
- Neural networks and backpropagationMulti-layer perceptrons: learned features, activations, the chain rule, and training tricks.
- Convolutional neural networksWeight sharing for images: convolutions, feature maps, pooling and deep vision architectures.
- Recurrent networks and LSTMsNetworks with memory for sequences: recurrence, backpropagation through time, vanishing gradients and gates.