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.
a:120tilt−25°gradient scale K1.0×
η0.120β10.90β20.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.