A Sufficient Condition for Convergences of Adam and RMSProp

Fangyu Zou, Li Shen, Zequn Jie, Weizhong Zhang, Wei Liu

Introduction

In the landscape of deep learning, Adam and RMSProp have become the standard for optimization. As adaptive stochastic gradient descent (SGD) algorithms, they automatically tune learning rates for individual parameters, enabling efficient training of complex neural networks. However, a significant theoretical gap exists: these algorithms can diverge even on simple problems, failing to find a solution where standard SGD might succeed. This paper, presented at CVPR 2019, introduces a new, easy-to-verify Sufficient Condition (SC) that guarantees the convergence of these optimizers in non-convex settings.

The Divergence Problem

Adaptive methods use a "second-order moment"—a running average of squared gradients—to scale updates. Research by Reddi et al. (2018) highlighted that if this running average is not managed carefully, the "effective" learning rate can increase inappropriately, causing the optimizer to overshoot the global minimum indefinitely.

Figure 4(a): Average regret $R_t/t$ over iterations for different parameter settings. The blue line ($r=0.0$) represents the divergent case where regret fails to vanish.

As shown in Figure 4(a), standard implementations (often corresponding to $r=0$ in the authors' framework) can result in high average regret that does not diminish over time, signifying a failure to converge to the optimal solution.

Methods: The Sufficient Condition and Weighted AdaEMA

The authors propose a theoretical framework that unifies RMSProp, Adam, and their variants under a "Generic Adam" umbrella. Their primary contribution is the Sufficient Condition (SC), which consists of four requirements for convergence. The most critical requirement is that the parameter $\theta_t$ (controlling the weight of the current squared gradient) must be non-decreasing and eventually approach 1.

This is derived from a novel perspective called Weighted AdaEMA. The authors prove that Adam is mathematically equivalent to a version of AdaGrad where historical gradients are given exponential weights. If the second-order moment parameter $\theta$ is held constant (e.g., the common default of 0.999), the algorithm effectively "forgets" the past too quickly, over-weighting recent noisy gradients. By scheduling $\theta_t$ to increase toward 1, the optimizer maintains a more stable long-term trend.

Experimental Validation

The authors validated their theory using a synthetic 1D non-convex counterexample designed to trigger divergence in standard Adam, as well as standard benchmarks like MNIST (LeNet) and CIFAR-100 (ResNet-18).

Figure 4: Comprehensive results on the synthetic counterexample. Subplots (a-c) show regret convergence, while (d-f) show the parameter $x_t$ successfully reaching the minimum at -1.0 when the Sufficient Condition is met.

In the synthetic tests (Figure 4), the "Safe Adam" (GAdam) successfully converged to the minimum ($x_t = -1.0$) as predicted, while the standard version remained stuck. On real-world datasets like CIFAR-100, GAdam achieved higher test accuracy and lower training loss than both standard RMSProp and AMSGrad. For instance, a growth schedule for $\theta$ significantly outperformed the divergent constant-$\theta$ versions.

Conclusion

This work provides a critical safety net for practitioners using adaptive optimizers. By simply scheduling hyperparameters like $\beta_2$ (or $\theta$) to increase over time, rather than keeping them constant, researchers can guarantee convergence without the computational overhead of larger batch sizes or more restrictive update rules like AMSGrad. While finding the optimal schedule still requires tuning, the Sufficient Condition offers a clear mathematical path toward more robust deep learning optimization.

Summary updated

BibTeX
@inproceedings{zou2019sufficient,
  author = {Fangyu Zou and Li Shen and Zequn Jie and Weizhong Zhang and Wei Liu},
  title = {{A Sufficient Condition for Convergences of Adam and RMSProp}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.01138},
}
Figure