Backpropagation by hand
Run a tiny model forwards to get its error, then send the blame backwards with the chain rule. This is how every network finds its gradient.
10 minute readOne thing to try6 questionsFree
Read the whole lesson free
Make a free account to read on, try the interactive parts, answer the 6 practice questions and keep your progress.
What this lesson covers
- Forward pass: compute and store every intermediate value, ending with the loss.
- Backward pass: walk the steps in reverse, multiplying by each step's local slope.
- One forward and one backward pass give the gradient for every parameter at once.