Skip to content
StackDecode
AI & ML Atlas
Neural NetworksoptimiserInteractive simulation

RMSProp

AdaGrad with a moving average, so the step size does not die out.

The idea

Instead of summing all past squared gradients, RMSProp keeps an exponentially decaying average. Recent gradients matter most, so the effective learning rate adapts to the current slope without shrinking to zero. It was proposed in a Coursera lecture by Geoffrey Hinton.

v ← ρv + (1−ρ)g², θ ← θ − η g / √(v + ε)

Watch it run

This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.

  • current weights
  • minimum
  • last update

Start somewhere on the bowl. Rings are lines of equal loss; the minimum is at the centre.

step:
0
loss:
3.4617
1/42

Loss landscape seen from above: a long narrow valley. Final loss 0.0003.

Step by step

  1. 1Compute the gradient g.
  2. 2Update v = ρv + (1 − ρ)g².
  3. 3Divide: θ ← θ − η·g / (√v + ε).
  4. 4Repeat.

Where it is used

Recurrent networks and reinforcement learning.

Watch out for

Has no momentum term and needs a learning-rate choice.

Related