Backward Error Analysis: What Gradient Descent Follows
An interactive live film: on the book's narrow valley in 3D, gradient descent steps stay closer to the gradient flow of the modified loss f + (eta/4)|grad f|^2 than to the flow of f; change eta and drag the start while a chart measures both gaps.
Narration
Here is the long valley, with gradient descent as amber dots, step k at time k times eta.
The green curve is the gradient flow of f. It matches gradient descent only to first order in eta, and the dots drift off it.
The rest of the narration is in the book's Companion.
More from Chapter 20
Interactive1:45Flow Matching: Velocity Fields and the Continuity EquationChapter 20
Preview1:28From a Residual Network to a Neural ODEChapter 20
Preview1:27Gradient Flow: Gradient Descent With Infinitely Small StepsChapter 20
Preview1:26Memory by Orthogonal Projection (HiPPO)Chapter 20
Preview1:36Momentum Methods: Second-Order ODEChapter 20
Preview1:34Probability Flow ODE: Deterministic Paths, Identical MarginalsChapter 20
Preview1:46Rectified Flow: Straightening by RetrainingChapter 20