Adam Optimizer › Visualizing Adam's Adaptive Behavior
Language AI HandbookAll chapters Adam Optimizer › Visualizing Adam's Adaptive BehaviorOne section · Sections in this chapter13 / 18 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
To understand how Adam adapts to different gradient patterns, let's build visualizations that trace the moment estimates and effective learning rates for parameters with different gradient histories.



The visualization confirms the core intuition: parameters that receive large, frequent gradients get a smaller effective learning rate, while parameters that receive rare or small gradients get a larger boost. The global learning rate is a reference, with the adaptive normalization adjusting each parameter up or down based on its gradient history.


The ill-conditioned quadratic (where the curvature in the -direction is 10x steeper than in ) illustrates where adaptive learning rates shine. SGD with momentum oscillates across the narrow valley because it must use a conservative learning rate to avoid overshooting in the steep -dimension. Adam's adaptive normalization effectively uses a different learning rate along each dimension, letting it move along the valley directly. The same geometry appears in transformer loss surfaces: some parameter directions are far stiffer than others, which is one important reason Adam dominates transformer training.
