Northeastern University · CS 7150 · Fall 2026
Six interactive pieces building up to Adam: how momentum averages out noisy gradients, the exponential moving average and bias correction that make that averaging precise (plus a companion piece on why the recurrence is exactly a geometric series), the trouble a single learning rate has with an anisotropic bowl, the mean/RMS diagnostic Adam adds on top, and why its update is scale-invariant. Conditioning has another side too — how network design (activations, initialization, depth) fights the same problem — covered in the initialization unit.
A smooth bowl with a high-frequency ripple on top. Plain gradient descent gets stuck bouncing inside one ripple; momentum's exponential moving average of the gradient cancels the alternating ripple and rides the bowl down.
Open the explainer →Raw data against three averages overlaid — the raw exponential moving average, the bias-corrected version, and a plain equal-weighted average forever — each with its own show/hide checkbox, so you can see exactly what the correction buys you.
Open the explainer →Cut a strip of length 1 geometrically — (1−β), (1−β)β, (1−β)β², … — and those exact pieces turn out to be the weights the EMA recurrence puts on each past sample. Reveal the cuts one at a time and watch the weighted sum converge to the same number the recurrence gives directly.
Open the explainer →A bowl that's steep in one direction and shallow in another. Adjust the anisotropy, watch a single learning rate zig-zag or crawl, then switch to per-axis rates and see the difference — in a 1D per-axis slice, a 2D contour map, or a 3D surface.
Open the explainer →A synthetic gradient stream with adjustable drift, sign-flip frequency, and noise, and the running mean and RMS drawn live — the exact gap that tells Adam when to slow down.
Open the explainer →The same descent run side by side under all three while a slider multiplies every gradient by K. SGD's and momentum's steps both grow with K; only Adam's barely change — isolating RMS normalization as the mechanism that buys scale-invariance.
Open the explainer →