Skip to main content
QUICK REVIEW

[Paper Review] AdaX: Adaptive Gradient Descent with Exponential Long Term Memory

Wenjie Li, Zhaoyang Zhang|arXiv (Cornell University)|Apr 21, 2020
Advanced Vision and ImagingComputer Science27 references24 citations
TL;DR

AdaX proposes a novel adaptive optimization algorithm that replaces Adam's exponential moving average of past gradients with an exponential long-term memory mechanism to stabilize training and improve convergence. Theoretically proven to converge in both convex and non-convex settings, AdaX outperforms Adam and matches SGD with momentum across vision and NLP benchmarks, especially in generalization and robustness to hyperparameter choices.

ABSTRACT

Although adaptive optimization algorithms such as Adam show fast convergence in many machine learning tasks, this paper identifies a problem of Adam by analyzing its performance in a simple non-convex synthetic problem, showing that Adam's fast convergence would possibly lead the algorithm to local minimums. To address this problem, we improve Adam by proposing a novel adaptive gradient descent algorithm named AdaX. Unlike Adam that ignores the past gradients, AdaX exponentially accumulates the long-term gradient information in the past during training, to adaptively tune the learning rate. We thoroughly prove the convergence of AdaX in both the convex and non-convex settings. Extensive experiments show that AdaX outperforms Adam in various tasks of computer vision and natural language processing and can catch up with Stochastic Gradient Descent.

Motivation & Objective

  • To address Adam’s instability and non-convergence issues in non-convex optimization, particularly its tendency to converge to suboptimal local minima.
  • To overcome the limitations of Adam’s exponential moving average in the second moment calculation, which leads to unstable learning rates and poor generalization.
  • To design a theoretically sound adaptive optimizer that maintains fast convergence while improving generalization performance.
  • To empirically validate AdaX’s superiority over Adam, AdamW, AMSGrad, and SGD with momentum across diverse deep learning tasks.
  • To demonstrate that AdaX is robust to hyperparameter tuning, especially in the choice of $eta_2$ and learning rate.

Proposed method

  • AdaX replaces Adam’s exponential moving average of squared gradients with an exponential long-term memory mechanism that accumulates past gradient information over time.
  • The second moment in AdaX is computed as an exponentially weighted sum of all past squared gradients, ensuring persistent memory of historical gradient behavior.
  • The learning rate is adaptively scaled using the inverse square root of the long-term memory matrix, similar to Adam but with improved stability.
  • AdaX uses a modified update rule that maintains the first-order momentum while replacing the adaptive denominator with a more stable, cumulative gradient memory.
  • The algorithm is theoretically proven to converge in both convex and non-convex settings, with convergence rates comparable to AMSGrad.
  • AdaX is implemented with a default $eta_2 = 10^{-4}$, which is shown to be robust and computationally efficient.

Experimental results

Research questions

  • RQ1Does Adam’s fast convergence in non-convex problems lead to suboptimal solutions due to unstable second moment estimation?
  • RQ2Can replacing Adam’s exponential moving average with an exponential long-term memory mechanism eliminate non-convergence and improve generalization?
  • RQ3How does AdaX compare to Adam, AdamW, AMSGrad, and SGD with momentum in terms of convergence speed and final performance across vision and NLP tasks?
  • RQ4Is AdaX robust to hyperparameter choices, particularly $eta_2$ and initial learning rate, in practical training scenarios?
  • RQ5Can AdaX achieve performance comparable to SGD with momentum while maintaining the fast convergence of adaptive methods?

Key findings

  • AdaX outperforms Adam and AdamW on CIFAR-10, achieving a test top-1 accuracy of 94.5% compared to AdamW’s 92.1%.
  • On ImageNet with ResNet-18, AdaX-W achieved a top-1 accuracy of 75.58%, significantly outperforming AdamW (68.27%) and AMSGrad(W) (68.76%).
  • On ImageNet with ResNet-50, AdaX-W achieved 75.58% top-1 accuracy, approaching SGDM’s 77.12% while converging faster and with higher training accuracy.
  • AdaX demonstrated robustness to learning rate and $eta_2$ hyperparameters, with minimal performance drop across different settings, especially when $eta_2 = 10^{-4}$.
  • In language modeling on the One Billion Word dataset, AdaX matched the performance of SGD with momentum, showing strong generalization and fast convergence.
  • Runtime benchmarks showed AdaX-W was nearly as efficient as AdamW, with only a 1.8% increase in training time on ImageNet (50.74h vs. 50.10h), indicating minimal computational overhead.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.