Improving Stochastic Gradient Descent with Feedback

Jayanth Koushik, Hiroaki Hayashi

TL;DR

Eve is a novel optimization algorithm that enhances the popular Adam optimizer by automatically tuning the global learning rate on the fly. By using real-time feedback from the objective function—specifically tracking loss volatility and distance to the global minimum—Eve eliminates the need for tedious manual learning rate decay scheduling while outperforming or matching state-of-the-art optimizers.

What Problem Does This Paper Address?

While adaptive gradient methods like Adam, RMSprop, and Adadelta are widely celebrated for adjusting learning rates locally for each individual parameter, they still suffer from a major bottleneck: the global learning rate.

To get the best performance out of these optimizers, practitioners must carefully tune the initial global learning rate and pair it with a manual decay schedule (such as exponential or time-based decay). This introduces highly sensitive hyperparameters, like decay strength, which require expensive grid searches to optimize. If the decay is too aggressive, training stalls; if it's too slow, the loss diverges or bounces around areas of high curvature. This paper addresses the challenge of removing this manual tuning step by making the global learning rate dynamically adaptive.

Methods

The authors introduce Eve, an extension of the Adam optimizer that incorporates a feedback loop from the objective function to dynamically scale the global learning rate $\alpha_t$.

Eve introduces a scalar coefficient, $d_t$, to compute the step size as $\alpha_t = \alpha_1 / d_t$, where $\alpha_1$ is the initial learning rate. The tracking term $d_t$ relies on two intuitive insights about the objective function's behavior:

  1. Variability ($|f_t - f_{t-1}|$): Measures how much the loss changes between consecutive iterations. If the loss is highly volatile, it indicates noisy gradients, and the global learning rate should be reduced.
  2. Sub-optimality ($f_t - f^*$): Measures how far the current loss is from the expected global minimum ($f^*$). If the model is far from the minimum, it should take larger steps to make rapid progress; as it nears the minimum, it should take smaller, more precise steps.

To prevent a vicious cycle where an increasing loss accidentally blows up the learning rate, the authors stabilize the algorithm by using $\min\{f_t, f_{t-1}\} - f^*$ in the denominator, clipping $d_t$ to a designated range $[1/c, c]$, and smoothing the final coefficient using an exponential moving average (parameterized by $\beta_3$).

Datasets

The authors evaluated Eve across three distinct tasks and architectures:

  • CIFAR-100: Used to train a 16-layer Deep Residual Network (ResNet) with roughly 680,000 parameters for image classification.
  • Penn Treebank (PTB): Used to train a 2-layer character-level Gated Recurrent Unit (GRU) network for language modeling.
  • bAbI-10k (Question 14): Used to evaluate hyperparameter sensitivity on a question-answering task utilizing a dual-GRU architecture.

Key Insights and Ideas

  • Feedback-Driven Global Adaptation: Instead of blindly decaying the learning rate based on the time step (assuming training progress is perfectly linear or predictable), Eve lets the actual state of the loss function guide the optimization velocity.
  • The Practicality of $f^* = 0$: A potential limitation of Eve is that it requires knowing the global minimum ($f^*$). However, the authors point out that modern deep learning models typically rely on implicit regularization (like dropout and batch normalization) rather than explicit weight decay. Under standard cross-entropy or mean squared error losses, the global minimum $f^*$ is simply $0$, making Eve immediately applicable to most practical architectures without extra configuration.
  • Hyperparameter Robustness: Although Eve introduces two new hyperparameters ($\beta_3$ and $c$), empirical testing showed that the default values ($\beta_3 = 0.999, c = 10$) consistently yielded optimal or near-optimal performance across entirely different tasks, meaning it successfully reduces overall tuning effort.

Key Results

  • Superiority in CNNs: When training a ResNet on CIFAR-100, Eve outperformed Adam, Adamax, RMSprop, Adagrad, Adadelta, and SGD with Nesterov momentum by a wide margin, converging significantly faster and achieving a lower final loss.
  • Competitive in RNNs: On the Penn Treebank dataset, Eve performed comparably to the best-performing baselines, tracking closely with Adam and Adamax.
Figure 2: Training loss comparison. In both experiments, Eve achieves similar or lower loss than other optimizers.
  • Outperforming Manual Decay Schedules: When compared against Adam paired with meticulously tuned manual decay policies (exponential, $1/t$, and $1/\sqrt{t}$), Eve still demonstrated faster convergence without requiring any tuning of the decay strength parameter.
Figure 3: Results of comparing Eve with learning rate decay strategies. Plot (a) shows the best results for Adam with different decays. The final loss values are similar to that of Eve, but Eve converges faster, and does not require the tuning of an additional parameter. This can be an important factor as shown in plot (b). For suboptimal decay strengths, the performance of Adam varies a lot.

Limitations and Future Work

The primary limitation of Eve is its dependency on knowing the global minimum $f^*$. While setting $f^* = 0$ works perfectly for networks regularized via dropout or batch normalization, this assumption breaks down if explicit weight decay (L2 regularization) is added directly to the loss function, as the true minimum will no longer be zero.

As a direction for future work, the authors suggest developing heuristics to dynamically estimate and update $f^*$ on the fly during training, which would expand Eve's compatibility to explicitly regularized loss landscapes.

Summary updated

Abstract

Adaptive gradient methods for stochastic optimization adjust the learning rate for each parameter locally. However, there is also a global learning rate which must be tuned in order to get the best performance. In this paper, we present a new algorithm that adapts the learning rate locally for each parameter separately, and also globally for all parameters together. Specifically, we modify Adam, a popular method for training deep learning models, with a coefficient that captures properties of the objective function. Empirically, we show that our method, which we call Eve, outperforms Adam and other popular methods in training deep neural networks, like convolutional neural networks for image classification, and recurrent neural networks for language tasks.
BibTeX
@misc{koushik2016improving,
  author = {Jayanth Koushik and Hiroaki Hayashi},
  title = {{Improving Stochastic Gradient Descent with Feedback}},
  year = {2016},
  eprint = {1611.01505},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.01505},
}
Figure