Skip to content

AdaGrad

Adaptive Gradient — an optimizer that picks an individual effective step size for every parameter.

Formula

Accumulator of squared gradients:

\[ G_t=G_{t-1}+g_t^2 \]

Update:

\[ w_{t+1}=w_t-\frac{\eta}{\sqrt{G_t}+\varepsilon}\,g_t \]

Parameters with large gradients get a small step, while those with small gradients get a relatively large one.

The Main Problem

\(G_t\) only grows: the algorithm never forgets its history. The denominator becomes huge over time, the effective step becomes tiny, and training almost stops.

This is exactly what Adam fixes by replacing the sum with an exponential average.

See Also

← All Terms