Optimistic Adaptive Acceleration for Optimization.

Jun-Kun Wang, Xiaoyun Li, Ping LiarXiv 2019

Abstract

Standard adaptive optimizers like AMSGrad are inherently reactive, utilizing historical gradient information to adjust learning rates. This paper introduces OPT-AMSGrad, an optimistic acceleration framework that transforms these methods into proactive algorithms. By incorporating a two-level update scheme and gradient extrapolation, OPT-AMSGrad predicts future gradients to accelerate convergence. Empirical results across computer vision and natural language processing tasks demonstrate that OPT-AMSGrad achieves faster training and superior generalization compared to traditional adaptive methods.

Introduction

In deep learning, the efficiency of the optimization algorithm directly impacts training time and final model performance. While adaptive methods like Adam and AMSGrad have become industry standards due to their parameter-wise learning rate adjustments, they remain "historical" in nature. They look backward at past gradients to determine the next step.

Researchers from Baidu Research propose a shift toward "optimistic" optimization. By borrowing concepts from optimistic online learning—where predictors are used to minimize regret in predictable environments—they developed OPT-AMSGrad. This algorithm attempts to "look ahead" by guessing the next gradient before processing the next mini-batch.

The OPT-AMSGrad Framework

The core innovation of OPT-AMSGrad is its "two-level" update structure, which distinguishes it from the standard AMSGrad algorithm. Instead of updating model parameters directly from the current gradient, the algorithm maintains an auxiliary "hidden" variable, denoted as $\tilde{w}$.

The OPT-AMSGrad algorithm and its underlying structure, showing the interaction between hidden states and model parameters.

As shown in Algorithm 2, the process involves:

  1. Hidden State Update: The hidden variable $\tilde{w}_{t+1}$ is updated using the current stochastic gradient $g_t$ and the adaptive learning rate components ($\theta_t, \hat{v}_t$).
  2. Optimistic Parameter Step: The actual model parameters $w_{t+1}$ used for the next gradient evaluation are computed by taking an additional step from the hidden variable. This step is guided by $m_{t+1}$, a prediction of the future gradient $g_{t+1}$.

Gradient Prediction via Extrapolation

To generate the prediction $m_{t+1}$, the authors employ Regularized Approximated Minimal Polynomial Extrapolation (RAMPE). This technique uses a sliding window of the most recent gradients (typically $r=5$) to estimate the limit of the gradient sequence. By treating the optimization path as a predictable sequence rather than purely stochastic noise, the algorithm can effectively "extrapolate" the next likely direction of descent.

Geometric Intuition and the H3 Assumption

The success of OPT-AMSGrad relies on the quality of the gradient predictor. However, the authors prove that the prediction does not need to be perfect to provide a benefit. The theoretical framework introduces the H3 assumption, which posits that the predicted gradient $m_t$ should maintain an "acute angle" with the true gradient $g_t$.

Illustration of the H3 assumption: the algorithm benefits as long as the predicted gradient falls within the shadowed region (acute angle to the true gradient).

This geometric requirement ensures that the "optimistic" step generally aligns with the actual descent direction, leading to the observed acceleration effect in nonconvex landscapes.

Empirical Evaluation

The researchers evaluated OPT-AMSGrad against standard AMSGrad and Optimistic-Adam across several benchmarks:

  • Image Classification: On CIFAR-10 and CIFAR-100 using ResNet-18 and ResNet-50 architectures, OPT-AMSGrad consistently reached lower training loss faster than its counterparts.
  • Noisy Benchmarks: Using MNIST variants with random or image backgrounds, the algorithm demonstrated robustness to noise while maintaining its speed advantage.
  • Sentiment Analysis: In NLP tasks using LSTMs on the IMDB dataset, the proactive updates led to improved convergence rates.

Key findings include a visible "acceleration effect" in the early stages of training and improved final test accuracy, suggesting that the optimistic steps help the optimizer navigate toward better local minima.

Conclusion

OPT-AMSGrad bridges the gap between optimistic online learning and stochastic nonconvex optimization. By utilizing gradient extrapolation within a two-level update framework, it provides a proactive approach to deep learning optimization. While the method introduces a minor computational overhead for extrapolation, the gains in convergence speed and generalization make it a compelling alternative to traditional reactive adaptive optimizers.

Summary updated

BibTeX
@misc{wang2019optimistic,
  author = {Jun-Kun Wang and Xiaoyun Li and Ping Li},
  title = {{Optimistic Adaptive Acceleration for Optimization.}},
  year = {2019},
  eprint = {1903.01435},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.01435},
}
Figure