the.ai

Optimization / Training

verified

Adam

Different parameters need different step sizes, and nobody can tune them individually. Adam gives each one its own, derived from how large and how variable its gradients have recently been: parameters with small, steady gradients take bigger steps, and noisy ones take smaller. It is the default because it works without much tuning.

Viz primitive · update-spectrumbeta2 = 1 · bars = 8

8 values. The left group decays steeply; the right group is 100% of the way to flat, and reads flatter than the left.

Per-parameter step sizes before and after Adam's scaling. Drag the second moment decay down to watch the smoothing come apart, and the update go back to tracking whichever parameter happened to spike.

1

Reviewed by opendroid · 2026-08-04