An MLP with several hidden layers has potentially millions of parameters spread across every layer's weight matrix and bias vector. Gradient descent needs the gradient of the loss with respect to every one of them. This note explains backpropagation: not a new optimisation algorithm, but an efficient way of computing that entire gradient — for every parameter, in every layer — using exactly two passes through the network, by systematically applying the multivariate chain rule from the output layer backward to the input.
In this lesson
- Learning objectives
- The two-pass algorithm
- Why the chain rule, and why "backward"
- Two practical prerequisites for backpropagation to work
- Worked example
Before you start
The full lesson, with worked examples and exercise solutions, is for members.
Read the full lessonNew to SelfMadeQuant.com? See membership options or browse the Financial Machine Learning syllabus.