Gradient
Lesson 7.3MathModel~55 min

Backpropagation

Follow the blame backwards through a computation graph, one node at a time.

Module 7 · 0/11 done

Every calculation is a graph

Write any calculation as a diagram: values flow left to right through little operations — multiply, add, square. This is a computational graph. Here’s L=(a⋅b+c)2L = (a \cdot b + c)^2, broken into steps: d=a⋅bd = a \cdot b, then e=d+ce = d + c, then L=e2L = e^2.

Computing the values left to right is the forward pass. Now the question that matters for learning: how much does L change if we nudge each of the inputs?