Eve: A Gradient Based Optimization Method with Locally and Globally Adaptive Learning Rates

Hiroaki Hayashi, Jayanth Koushik, Graham Neubig

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.

Introduction: The Challenge of Global Learning Rates

Training deep neural networks is essentially a high-dimensional optimization problem. While standard Stochastic Gradient Descent (SGD) uses a single global learning rate for every parameter, adaptive methods like Adam and RMSProp introduced "local" adaptation, giving each parameter its own learning rate based on historical gradients.

However, even these adaptive methods rely on a global learning rate ($\alpha$) that acts as a speed limit for the entire system. To achieve optimal results, practitioners often must manually "decay" this rate over time (e.g., reducing the rate by half every 20 epochs). This introduces additional hyperparameters to tune, often leading to extensive trial-and-error. The authors of "Eve" propose a solution: an optimizer that adapts its global learning rate automatically based on the actual progress of training.

Methodology: Feedback-Driven Adaptation

Eve builds directly upon the Adam optimizer. While Adam tracks the first and second moments of gradients for local adaptation, Eve introduces a new scalar coefficient, $d_t$, to scale the global learning rate. This coefficient is driven by two intuitive feedback signals from the objective function ($f$):

  1. Variation ($|f_t - f_{t-1}|$): If the loss fluctuates wildly between iterations, the optimizer slows down by increasing $d_t$.
  2. Sub-optimality ($f_t - f^*$): If the current loss is far from the expected global minimum ($f^*$), the optimizer speeds up to accelerate progress by decreasing $d_t$.

To ensure stability, Eve employs three mechanisms:

  • Numerator Stabilization: Uses the minimum of the current and previous loss to prevent learning rate explosions during sudden spikes.
  • Clipping: Restricts $d_t$ to a specific range (parameterized by $c$) to prevent the learning rate from becoming infinitesimally small or dangerously large.
  • Smoothing: Utilizes a running average ($\beta_3$) of $d_t$ to ensure smooth transitions in the global learning rate.

Experimental Setup

The authors evaluated Eve across several standard deep learning benchmarks:

  • CIFAR-100: Image classification using a 16-layer Deep Residual Network (ResNet).
  • Penn Treebank (PTB): Character-level language modeling using a 2-layer Gated Recurrent Unit (GRU) network.
  • bAbI-10k: A synthetic question-answering dataset to test performance on reasoning tasks.

Key Results

Eve demonstrates significant performance gains across different architectures. On CIFAR-100, Eve outperformed Adam, Adamax, RMSProp, Adagrad, Adadelta, and SGD by a large margin, achieving a notably lower final loss. In ResNet experiments, Eve's loss curve dropped much more sharply in the early stages of training compared to competing methods.

Comparison of Eve against common optimizers on CIFAR-100 (left) and Penn Treebank (right).

For language modeling on PTB, Eve performed similarly to or slightly better than Adam and Adamax, proving its versatility across both convolutional and recurrent neural architectures.

Insights and Discussion

A primary advantage of Eve is its ability to eliminate the need for manual learning rate decay schedules. In many experiments, Eve outperformed Adam even when Adam was paired with a perfectly tuned manual decay schedule. This suggests that Eve can automatically discover a more effective schedule than human-led grid searches.

Eve's performance compared to various manual learning rate decay schedules.

Furthermore, Eve appears robust to its internal hyperparameters ($c$ and $\beta_3$). Default values ($c=10, \beta_3=0.999$) yielded strong results across vastly different tasks.

Limitations

The main requirement for Eve is knowledge of the global minimum ($f^*$). For many modern deep learning tasks using Cross-Entropy or Mean Squared Error, the global minimum is effectively 0. The authors used $f^* = 0$ for all tests with success. However, for problems where the global minimum is non-zero or unknown, future iterations of Eve may need to estimate $f^*$ dynamically during training.

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{hayashi2016eve,
  author = {Hiroaki Hayashi and Jayanth Koushik and Graham Neubig},
  title = {{Eve: A Gradient Based Optimization Method with Locally and Globally Adaptive Learning Rates}},
  year = {2016},
  eprint = {1611.01505},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.01505},
}
Figure