RMSProp

You will learn

How RMSProp divides each step by a running root mean square, so the step no longer depends on the gradient's size.

The right step size depends on the size of the gradient, and different weights see gradients a million times apart. RMSProp keeps a running mean of the squared gradient, the cache, and divides each step by its root, so the step has no units: with a constant gradient of 0.001, 0.5 or 1000 the weight moves by exactly the same 0.0316 on step 1 and walks the same path, reaching -0.0914 after 100 steps at lr 0.01. The decay sets how slowly the cache fills: at 0.99 the same 100 steps end at -1.0261. The spec rmsprop.t27 computes the weight and the cache.

Open the interactive lesson →