Adaptive Learning Rates

Adaptive learning rate algorithms are extensions of gradient descent that automatically adjust the learning rate for each parameter during training. Instead of using a single global learning rate, they maintain individual learning rates that change over time based on gradient history in order to reduce oscillations and improve convergence by moving quickly along dimensions where gradients are small, and slowing down where they are large.

Formally, these methods still follow the same update rule,

but the learning rate now depends on the parameter’s past gradients.

  1. AdaGrad (Adaptive Gradient) keeps track of the cumulative sum of squared gradients, and divides the base learning rate by the square root of this accumulated quantity:

    This approach quickly decays learning rate for frequently updated weights, but may shrink too much, halting learning over time.
    ⠀
  2. RMSProp modifies AdaGrad to avoid the problem of vanishing learning rates by focusing on recent rather than cumulative gradient history. It replaces the sum of squared gradients with an exponentially decaying moving average, such that

    Here, (typically around ) determines how much weight is given to the past. By reacting primarily to recent gradients, RMSProp maintains a stable step size even in non-stationary settings such as recurrent networks or online learning tasks.
    ⠀
  3. Adam (Adaptive Moment Estimation) builds on RMSProp by incorporating momentum, effectively combining the first and second moments of the gradient. It keeps one moving average of the gradients themselves and another of their squares:

    Because both averages are initially biased toward zero, Adam applies a correction