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 gt=2 with base learning rate η=0.1, decay rate ρ=0.9 and stability constant ϵ=0, what are the effective learning rates after 100 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 Gt=Gt−1+gt2 without forgetting, so Gt grows without bound and ηeff=η/Gt+ϵ→0. RMSProp replaces the sum with an exponential moving average vt=ρvt−1+(1−ρ)gt2, keeping ηeff finite (0.05 vs AdaGrad’s 0.005 at t=100).

Steps

  1. AdaGrad update: Gt=Gt−1+gt2 (starting from G0=0) and θt=θt−1−ηGt+ϵgt (element-wise). Because gt2≥0 is summed forever, η/Gt shrinks monotonically and stalls training in long non-convex runs.
  2. RMSProp update: vt=ρvt−1+(1−ρ)gt2 and θt=θt−1−ηvt+ϵgt, where ρ∈(0,1) forgets old gradients so step sizes respond to recent curvature.
  3. AdaGrad numerical (gt=2,η=0.1,t=100): G100=100×22=400, so ηeff=0.1400=0.120=0.005.
  4. RMSProp steady-state numerical: setting vt=vt−1=v∗ gives v∗=0.9 v∗+0.1(4)  ⟹  v∗=4, so ηeff=0.14=0.05 (and even at t=100 from v0=0, v100=4(1−0.9100)≈3.9999, giving the same 0.05).

Common mistakes

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 vt=βvt−1+∇f(⋅) and θt=θt−1−ηvt, how does Nesterov accelerated gradient (NAG) differ from classical momentum, and for f(θ)=12θ2 with θ0=1, v0=4, β=0.5 and η=0.5, what is θ1 under each method?
Next in Deep learning: A convolutional layer outputs a tensor of shape (N,C,H,W)=(8,12,16,16) (batch size, channels, height, width). Over which axes are the mean and variance computed, how many distinct (μ,σ2) 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 G=3 groups?