SAdam: A Variant of Adam for Strongly Convex Functions

Guanghui Wang, Shiyin Lu, Weiwei Tu, Lijun Zhang

Abstract

The Adam optimizer is a cornerstone of modern machine learning, prized for its ability to adaptively tune learning rates. However, it has historically struggled to achieve optimal regret bounds for strongly convex functions. This paper introduces SAdam, a variant that modifies the step-size decay and update rules to achieve a logarithmic regret bound of $O(d \log T)$. Empirical results on MNIST, CIFAR-10, and CIFAR-100 demonstrate that SAdam outperforms standard Adam and other baselines in both strongly convex and non-convex deep learning tasks.

Introduction

The Adam optimizer is widely used for its efficiency in general convex and non-convex optimization. Despite its popularity, Adam has not been able to fully exploit the mathematical property of strong convexity. In the paper "SAdam: A Variant of Adam for Strongly Convex Functions," researchers from Nanjing University and 4Paradigm introduce SAdam, a variant designed to bridge the gap between adaptive gradient methods and the theoretical "speed limit" for strongly convex optimization.

The Challenge of Strong Convexity

In Online Convex Optimization (OCO), performance is measured by "regret"—the difference between the cumulative loss of the algorithm and that of the best fixed decision in hindsight. Standard Adam provides a regret bound of $O(\sqrt{T})$, which is optimal for general convex functions. However, many common machine learning problems, such as Support Vector Machines (SVMs) or $\ell_2$-regularized regression, are strongly convex. For these functions, simpler algorithms like Online Gradient Descent (OGD) can achieve a significantly better $O(\log T)$ regret.

Previous attempts to improve Adam, such as AMSgrad, addressed convergence issues in general settings but did not achieve the logarithmic rate for strongly convex functions. SAdam addresses this gap by aligning the adaptive update rules with the geometry of strongly convex landscapes.

The SAdam Algorithm

SAdam introduces two fundamental modifications to the standard Adam framework to achieve optimal performance:

  1. Accelerated Step-Size Decay: Standard Adam employs a step size that decays at $1/\sqrt{t}$. SAdam adopts a $1/t$ decay rate, mimicking the optimal decay for strongly convex OGD.
  2. Modified Update Rule: Standard Adam divides updates by the square root of the second-order momentum ($V_t$). SAdam removes this square root operation. Combined with the $1/t$ decay, this ensures the effective step size scales appropriately to exploit the function's curvature.
  3. Time-Variant Hyperparameters: The algorithm utilizes a time-varying $\beta_2$ parameter to maintain stability and prevent the non-convergence issues observed in the original Adam.

Experimental Evaluation

The researchers evaluated SAdam against several baselines, including Adam, AMSgrad, AdamNC, OGD, SC-Adagrad, and SC-RMSprop, across three standard benchmarks: MNIST, CIFAR-10, and CIFAR-100.

Theoretical Validation: Regret Analysis

In experiments involving $\ell_2$-regularized softmax regression—a classic strongly convex problem—SAdam consistently achieved the lowest regret across all datasets.

Cumulative regret comparison across MNIST, CIFAR-10, and CIFAR-100.

The results confirm the theoretical breakthrough: SAdam achieves an $O(d \log T)$ regret bound, matching the best possible rate for this class of problems. Furthermore, SAdam’s bound is "data-dependent," meaning it performs even better when gradients are sparse or small.

Deep Learning Performance

While designed for strongly convex functions, SAdam generalizes remarkably well to non-convex deep learning tasks. When training a 4-layer Convolutional Neural Network (CNN), SAdam reached the lowest training loss and highest test accuracy on all benchmarks.

Training loss vs. epoch on CIFAR-100.

Key Insights and Future Directions

A primary insight of this work is that the square root in Adam's denominator is actually a bottleneck for strongly convex optimization. By removing it and adjusting the decay, the authors align the optimizer with the natural geometry of strongly convex functions.

Despite these gains, some limitations remain. While SAdam achieves $O(\log T)$ regret in online optimization, this corresponds to a $O(\log T / T)$ convergence rate in stochastic settings, which is slightly short of the optimal $O(1/T)$ rate. Future research may explore "multi-stage" schemes to reach this optimal mark or investigate how SAdam's decay properties interact with more complex neural architectures.

Summary updated

BibTeX
@inproceedings{wang2020sadam,
  author = {Guanghui Wang and Shiyin Lu 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