SAdam: A Variant of Adam for Strongly Convex Functions

Guanghui Wang, Shiyin Lu, Quan Cheng, Weiwei Tu, Lijun Zhang

SAdam is a novel variant of the popular Adam optimizer designed specifically to exploit strong convexity. By making targeted adjustments to Adam's update rules, SAdam improves the theoretical regret bound from $O(\sqrt{T})$ to a data-dependent $O(\log T)$. Beyond its theoretical guarantees, SAdam fixes a known mathematical flaw in previous Adam variants (like AMSgrad) and demonstrates superior empirical performance on both classic optimization tasks and deep learning benchmarks.

The Challenge: Exploiting Curvature

In the realm of optimization, "convexity" is a desirable property, but "strong convexity" is even better. While standard convex functions can be relatively flat, strongly convex functions possess a minimum "curvature" (resembling a bowl). This curvature theoretically allows algorithms to converge much faster.

Adam is the industry standard for deep learning due to its ability to adapt step sizes for each parameter. However, Adam’s theoretical guarantees are built for general convex functions, yielding a "regret" (a measure of sub-optimality) of $O(\sqrt{T})$. For strongly convex problems—which appear frequently in regularized machine learning—optimizers should ideally achieve a tighter $O(\log T)$ regret.

The challenge has been that previous adaptive methods either failed to take full advantage of this curvature or, in the case of variants like AMSgrad, contained subtle theoretical flaws that made their convergence proofs technically invalid.

Introducing SAdam

The authors introduce SAdam (Strongly convex Adam). It maintains the core "adaptive" spirit of Adam but introduces three critical modifications to leverage strong convexity:

  1. Removing the Square Root: Unlike standard Adam, which divides the gradient by the square root of the second moment ($\sqrt{V_t}$), SAdam divides by the second moment directly ($V_t$). This change is inspired by how Online Gradient Descent (OGD) handles strong convexity.
  2. Faster Step-Size Decay: SAdam uses a step size that decays at a rate of $1/t$ rather than the $1/\sqrt{t}$ used in standard Adam.
  3. Controlled Hyperparameters: The algorithm uses time-variant hyperparameters ($\beta_{1t}, \beta_{2t}$) to ensure the step sizes don't fluctuate too wildly, which was a primary cause of non-convergence in the original Adam.

Crucially, the authors also provide a "fix" for a theoretical flaw in AMSgrad and AdamNC by requiring the first-moment hyperparameter ($\beta_{1t}$) to be non-increasing over time, providing a more robust mathematical framework for the entire family of Adam-like optimizers.

Key Insights and Results

The authors evaluated SAdam against a suite of standard benchmarks, including MNIST, CIFAR-10, and CIFAR-100, across both strongly convex ($\ell_2$-regularized softmax regression) and non-convex (CNNs and ResNet-18) tasks.

Theoretical Superiority

The most significant insight is that removing the square root in the denominator of the update rule is the key to unlocking the logarithmic regret bound in an adaptive setting. SAdam achieves a data-dependent $O(d \log T)$ regret bound, significantly tighter than the $O(d \sqrt{T})$ bounds of previous state-of-the-art adaptive methods. Because it is "data-dependent," SAdam automatically adjusts to converge even faster if gradients are sparse.

Empirical Performance on Strongly Convex Tasks

In strongly convex tests, SAdam consistently achieved lower regret than OGD, Adagrad, Adam, AMSgrad, and AdamNC across all datasets.

Regret comparison on MNIST, CIFAR-10, and CIFAR-100 for strongly convex optimization.

Deep Learning Success

Despite being explicitly designed for strongly convex functions, SAdam outperformed all other optimizers when training non-convex deep networks. It reached lower training loss and higher test accuracy faster than standard Adam or AMSgrad.

Test accuracy on CIFAR-100 showing SAdam's rapid convergence.

Limitations and Future Work

While SAdam represents a significant step forward, the authors note a few areas for future exploration:

  • Hyperparameter Sensitivity: The first-moment parameter $\beta_1$ interacts with gradients in complex ways, making it difficult to analyze rigorously.
  • Stochastic Convergence Rates: The paper focuses on "Online" optimization. While these results can be converted to "Stochastic" optimization rates, the resulting $O(d \log T / T)$ rate is not yet the optimal $O(d/T)$. Combining SAdam with multi-stage schemes might bridge this final gap.
  • Non-Convex Theory: The theoretical guarantees are strictly for strongly convex functions. A theoretical explanation for why SAdam works so well in non-convex deep learning landscapes remains an open and exciting question.

Summary updated

BibTeX
@inproceedings{wang2020sadam,
  author = {Guanghui Wang and Shiyin Lu and Quan Cheng and Weiwei Tu and Lijun Zhang},
  title = {{SAdam: A Variant of Adam for Strongly Convex Functions}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=Wjw4g_9UYz},
}
Figure