How does RMSProp fix AdaGrad's diminishing step size, and for starting from with , and , what are and under (a) AdaGrad () and (b) RMSProp () with ?
Linear algebra and optimisation, Adaptive optimisers
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you understand why AdaGrad stalls on long runs and can compute both adaptive updates by hand.
Key idea
AdaGrad accumulates the sum of all past squared gradients , so grows forever and the effective step shrinks towards zero. RMSProp replaces the cumulative sum with an exponential moving average , forgetting old gradients.
Steps
- Write the common update rule: given gradient , update the squared-gradient accumulator and then step , where is the base learning rate and is a small stability constant.
- (a) AdaGrad step 1: , , so and .
- (a) AdaGrad step 2: , , so and . Notice the denominator grew from to even though the gradient got smaller.
- (b) RMSProp step 1 (decay rate ): , , so and .
- (b) RMSProp step 2: , , so and . Because old gradients decay, the effective learning rate stays active instead of stalling.
Common mistakes
- Forgetting to square the gradient when updating .
- Omitting in real implementations: here is given to simplify the arithmetic, whereas in practice prevents division by zero.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Linear algebra and optimisation: Minimise starting from with initial velocity , learning rate and momentum . Compute and using (a) heavy-ball momentum (, ) and (b) Nesterov accelerated gradient (, ). How do the two updates differ?
Next in Linear algebra and optimisation: For what values of the constant is convex, for what values is it strictly convex, and what is its minimum when ?