Neural Networks
Running the forward pass…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Neural Networks
Running the forward pass…
SGD, momentum, RMSProp and Adam start from the same point on the same narrow ravine. Step through each update rule, then race them, then turn the ravine and see which ones notice.
Grey rings: equal loss. Dashed yellow ring: loss 0.001, the floor. White dot: the start.
A loss shaped like a ravine: f(x, y) = 0.01x² + 2y², steep across y (curvature 4) and almost flat along x (curvature 0.02, 200 times less). The minimum is at (0, 0). All four optimizers start at (−2.6, 1.1), loss 2.4876, where the gradient is (−0.052, 4.4): 85 times more of it points across the ravine than along it.