SGD vs. momentum vs. Adam, rescaled: which mechanism buys scale-invariance

The same tilted bowl, run under all three at once. Slide K to multiply every gradient by a constant — SGD's and momentum's steps both grow with K (momentum only averages the gradient); only Adam's RMS normalization cancels K.

Three optimizer trajectories, SGD, momentum, and Adam, descending the same tilted bowl while a slider rescales every gradient by a constant K, viewable in 1D, 2D, or 3D.
Loss vs. iteration for each shown method, log scale.
a:1 20 tilt −25° gradient scale K 1.0×
η 0.120 β1 0.90 β2 0.999
Check the box by the K slider to rescale every gradient by K and watch what happens. Hats denote bias-corrected EMAs (divided by 1−β1t or 1−β2t); β1 sets the gradient averaging for momentum and Adam alike (β1 = 0 turns it off), β2 sets the window of Adam's RMS. Scaling g by K scales Adam's m and √v equally, so K cancels — SGD and momentum have no such cancellation. Drag the 3D surface to rotate it.