A Unified Analysis of AdaGrad With Weighted Aggregation and Momentum Acceleration

Li Shen, Congliang Chen, Fangyu Zou, Zequn Jie, Ju Sun, Wei Liu · DOI

TL;DR

This paper introduces AdaUSM, a novel optimization algorithm that unifies adaptive learning rates and momentum techniques for deep learning. It provides a theoretical convergence guarantee for non-convex settings and offers a new perspective on understanding popular optimizers like Adam and RMSProp.

What Problem Does This Paper Address?

Training deep neural networks often involves solving complex, non-convex optimization problems. While adaptive learning rate methods (like AdaGrad, Adam) and momentum-based methods (like Heavy Ball, Nesterov Accelerated Gradient) have proven effective individually, there's a theoretical gap in understanding their combined power, especially in challenging non-convex scenarios. Existing methods often lack a unified theoretical framework, making it difficult to compare and understand their underlying mechanisms. This paper aims to bridge this gap by proposing a unified algorithm and analysis.

Methods

The core contribution is the AdaUSM (Adaptive Unified Stochastic Momentum) algorithm. It combines two key innovations:

  1. Unified Stochastic Momentum (USM): This scheme generalizes both the Heavy Ball (HB) and Nesterov Accelerated Gradient (NAG) momentum methods into a single framework using an interpolation factor $\lambda$. This allows for more flexible momentum behavior.
  2. Weighted Adaptive Learning Rate: Instead of the standard accumulation of squared gradients, AdaUSM uses a weighted sum of past gradients. This allows recent gradients to have more influence, reflecting the idea that they might better capture local geometry. This weighted approach unifies the learning rate mechanisms of AdaGrad, AccAdaGrad, Adam, and RMSProp.

The authors also provide a theoretical analysis, establishing an $\mathcal{O}(\log(T)/\sqrt{T})$ convergence rate for AdaUSM in the non-convex stochastic setting, particularly when using polynomially growing weights.

Datasets

The paper uses standard deep learning datasets for evaluation:

  • MNIST
  • CIFAR10
  • CIFAR100
  • Tiny-ImageNet

These datasets are used with various deep learning models, including LeNet, GoogLeNet, DenseNet, and ResNet.

Key Insights and Ideas

  • Unification is Powerful: The paper demonstrates that by unifying adaptive learning rates and momentum, a more robust and theoretically sound optimizer can be developed. AdaUSM acts as a general framework that encompasses many existing popular optimizers.
  • New Perspective on Adam/RMSProp: The authors show that the adaptive learning rates of Adam and RMSProp can be seen as special cases of AdaUSM's weighted learning rate, specifically when exponentially growing weights are used. This provides a novel theoretical lens for understanding these widely-used algorithms.
  • Theoretical Guarantees for Non-Convexity: Achieving theoretical convergence guarantees for adaptive methods in non-convex settings is notoriously difficult. AdaUSM's analysis provides a significant step forward in this area.
  • Weighted Gradients Matter: The idea that recent gradients are more informative than older ones is intuitively appealing. The weighted approach in AdaUSM formalizes this, and the experiments suggest it leads to better performance.

Key Results

  • Theoretical Convergence: AdaUSM achieves an $\mathcal{O}(\log(T)/\sqrt{T})$ convergence rate in the non-convex stochastic setting. This is a significant theoretical result, especially for adaptive methods.
  • Experimental Performance: In experiments, AdaHB (AdaUSM with $\lambda=0$, i.e., Heavy Ball momentum) and AdaNAG (AdaUSM with $\lambda=1$, i.e., NAG momentum) generally outperformed SGD with momentum, AdaGrad, AdaEMA, Adam, and AMSGrad across various deep learning models and datasets. They often showed faster training loss reduction and higher test accuracy.
  • Efficiency: AdaHB and AdaNAG were observed to be more efficient and robust than other tested optimizers, particularly in terms of training speed and generalization.

Limitations and Future Work

  • Assumptions: The theoretical analysis relies on standard assumptions like Lipschitz continuity of gradients and bounded second-order moments of noisy gradients. While these are common, they might not hold in all practical scenarios.
  • Parameter Tuning: While AdaUSM provides a unified framework, the optimal choice of weights $\{a_t\}$ and momentum parameters still requires careful tuning, as is common with most optimizers.
  • Future Work: The paper suggests that the unified framework could be extended to other optimization problems and that further exploration of different weight choices $\{a_t\}$ could yield even better performance. The connection to Adam and RMSProp also opens avenues for deeper theoretical understanding of these algorithms.

Summary updated

BibTeX
@article{shen2018unified,
  author = {Li Shen and Congliang Chen and Fangyu Zou and Zequn Jie and Ju Sun and Wei Liu},
  title = {{A Unified Analysis of AdaGrad With Weighted Aggregation and Momentum Acceleration}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2018},
  doi = {10.48550/arxiv.1808.03408},
}
Figure