Adam Optimizer › Worked Example: Tracing One Parameter Through 5 Steps
Language AI HandbookAll chapters Adam Optimizer › Worked Example: Tracing One Parameter Through 5 StepsOne section · Sections in this chapter6 / 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
Let's trace a single parameter through five Adam update steps to make the mechanics concrete. Suppose the parameter starts at , and receives gradients over five steps. We'll use the standard hyperparameters: , , , .
Initialize: , .
Step 1 (, ):
Notice that after bias correction, and . The bias correction brings the estimates in line with the actual gradient magnitude at step 1, giving an effective step of exactly . In other words, early in training the Adam update approximates a step of constant size in the gradient direction, regardless of gradient magnitude. This is the trust region interpretation of Adam.
Step 2 (, ):
The parameter continues to decrease, with each step sized close to . This is characteristic of Adam in early training: the per-parameter normalization makes step sizes roughly equal to the global learning rate , giving predictable training dynamics regardless of gradient scale.
By step 5, the moment estimates have accumulated enough history that the bias corrections become smaller. The first moment is now a smooth average of all five gradients, pointing consistently in the positive direction (since all gradients are positive). The second moment has accumulated a sense of the typical gradient magnitude squared, and the effective step size is settling toward a stable value. This accumulation phase is what makes Adam's convergence so reliable: within a few dozen steps, it has calibrated per-parameter step sizes that remain appropriate throughout the rest of training. If you were to plot the effective learning rate over time, you would see it start near during the bias-dominated early steps, then gradually settle as stabilizes around the true mean squared gradient. This settling process takes longer for parameters with smaller gradients, because their grows more slowly and the bias correction factor remains significant for more steps.