What are the per-parameter update rules for AdaGrad and RMSProp, why does AdaGrad’s effective step size decay towards zero in deep learning, and for a constant gradient with base learning rate , decay rate and stability constant , what are the effective learning rates after steps under AdaGrad versus RMSProp (at steady state)?
Deep learning, Optimisers
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you understand how cumulative squared gradients differ from an exponential moving average and can compute the resulting step sizes.
Key idea
AdaGrad accumulates without forgetting, so grows without bound and . RMSProp replaces the sum with an exponential moving average , keeping finite ( vs AdaGrad’s at ).
Steps
- AdaGrad update: (starting from ) and (element-wise). Because is summed forever, shrinks monotonically and stalls training in long non-convex runs.
- RMSProp update: and , where forgets old gradients so step sizes respond to recent curvature.
- AdaGrad numerical (): , so .
- RMSProp steady-state numerical: setting gives , so (and even at from , , giving the same ).
Common mistakes
- Forgetting to take the square root of or in the denominator.
- Writing without in RMSProp, which scales by .
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: Using the update convention and , how does Nesterov accelerated gradient (NAG) differ from classical momentum, and for with , , and , what is under each method?
Next in Deep learning: A convolutional layer outputs a tensor of shape (batch size, channels, height, width). Over which axes are the mean and variance computed, how many distinct pairs are computed per batch, and how many learnable scale and shift parameters exist (assuming one pair per channel) for (a) batch normalisation, (b) layer normalisation, (c) instance normalisation and (d) group normalisation with groups?