STORM+: Fully Adaptive SGD with Momentum for Nonconvex Optimization

Kfir Y. Levy, Ali Kavis, Volkan CevherarXiv 2021

Abstract

In this work, we investigate stochastic non-convex optimization problems where the objective is an expectation over smooth loss functions, and the goal is to find an approximate stationary point. The most popular approach to handling such problems is variance reduction techniques, which are known to obtain tight convergence rates matching lower bounds. Nevertheless, these techniques require careful maintenance of anchor points and appropriately selected "mega-batchsizes," leading to a challenging hyperparameter tuning problem. Recently, STORM [Cutkosky and Orabona, 2019] demonstrated that recursive momentum can avoid anchor points and large batchsizes while maintaining optimal rates. However, STORM relies on knowing the smoothness and gradient norm bounds. We propose STORM+, a new method that is completely parameter-free, does not require large batch-sizes, and obtains the optimal $O(1/T^{1/3})$ rate. STORM+ builds on the STORM algorithm with a novel approach to adaptively set the learning rate and momentum parameters.

Introduction

Training modern machine learning models, particularly deep neural networks, is a complex balancing act of hyperparameter tuning. While Stochastic Gradient Descent (SGD) remains the industry workhorse, its performance is highly sensitive to the selection of the learning rate and momentum. In the pursuit of more efficient optimization, researchers have turned to Variance Reduction (VR) techniques. These methods are mathematically optimal, reaching stationary points at the theoretical "speed limit" of $O(1/T^{1/3})$.

Despite their theoretical appeal, traditional VR methods like SVRG or SARAH are difficult to implement in practice. They typically require "anchor points" (periodic full gradient calculations) and massive "mega-batches," which increase computational overhead and introduce new hyperparameters to tune. STORM+ addresses these practical hurdles by providing a fully adaptive, parameter-free framework that retains the optimal convergence properties of VR without the tuning burden.

The Evolution from STORM to STORM+

STORM+ builds upon the foundation of the STORM algorithm, which introduced a recursive momentum template to eliminate the need for mega-batches. The core of this approach is a "corrected momentum" term:

$$d_{t+1} = \nabla f(x_{t+1}, \xi_{t+1}) + (1 - a_{t+1})(d_t - \nabla f(x_t, \xi_{t+1}))$$

This update mechanism uses two gradient evaluations at the same noise level ($\xi_{t+1}$) but at different positions ($x_t$ and $x_{t+1}$). This specific structure allows the algorithm to cancel out variance over time. However, the original STORM algorithm had a significant limitation: it required the user to know the "smoothness" ($L$) of the loss function and a bound on the gradient norms to set the learning rate and momentum correctly.

STORM+ removes these requirements through a novel joint adaptation strategy:

  1. Adaptive Momentum ($a_t$): The momentum parameter is adjusted based on the history of gradient norms. If gradients are large or noisy, the momentum adjusts automatically to maintain stability.
  2. Adaptive Learning Rate ($\eta_t$): Inspired by the logic of AdaGrad, the step size is scaled based on the history of the momentum estimates.
  3. Interplay and Feedback: Crucially, STORM+ links these two parameters. The learning rate depends on the momentum parameters, creating a feedback loop that ensures stability without requiring prior knowledge of the objective's smoothness constant.

Theoretical Contributions

STORM+ provides several significant theoretical advancements over its predecessors:

  • Optimal Convergence: The paper proves that STORM+ achieves the optimal $O(1/T^{1/3})$ convergence rate for stochastic non-convex optimization.
  • Tighter Bounds: STORM+ improves upon the original STORM guarantees by removing a $(\log T)^{3/4}$ factor from the convergence rate, resulting in a tighter theoretical bound.
  • Deterministic Speedup: In "noiseless" or deterministic settings, the algorithm automatically adapts to a faster $O(1/\sqrt{T})$ rate.
  • Parameter-Free Optimality: The method demonstrates that it is possible to achieve optimal rates without knowing hidden problem constants like smoothness ($L$) or noise variance ($\sigma$).

Empirical Evaluation

The authors evaluated STORM+ on the CIFAR-10 dataset using a ResNet34 architecture. The algorithm was compared against standard optimizers including SGD with momentum, Adam, AdaGrad, and the original STORM.

Key Results

  • Training Performance: In the training phase, STORM and STORM+ outperformed Adam and SGD in terms of both training loss and accuracy. This suggests that the variance reduction properties of the algorithm are highly effective at navigating the training landscape.
  • Generalization: While STORM+ performed competitively, the authors noted that Adam maintained a slight edge in test accuracy. This "generalization gap" is a known phenomenon where adaptive methods may sometimes overfit training data more than standard SGD.
  • Robustness: STORM+ proved to be robust across different settings, achieving high performance without the extensive hyperparameter sweeps required by SGD or the original STORM.

Limitations and Future Work

While STORM+ represents a significant step toward tuning-free optimization, it faces certain trade-offs:

  • Computational Cost: Each iteration of STORM+ requires two gradient evaluations (at $x_t$ and $x_{t+1}$ using the same sample). This makes each step approximately twice as expensive as a standard SGD step, though this is often offset by faster convergence in terms of total iterations.
  • Generalization Gap: Future research is needed to understand how adaptive momentum affects the "flatness" of the minima found by the optimizer and how to close the gap in test accuracy compared to Adam.
  • Initial Step Size: Although the algorithm is theoretically parameter-free, it still benefits from a basic initial step-size selection. Making the very first step truly automatic remains an area for further exploration.

Conclusion

STORM+ successfully bridges the gap between the theoretical optimality of variance reduction and the practical necessity of adaptive, tuning-free optimization. By linking learning rate and momentum in a joint adaptive process, it provides a robust tool for non-convex optimization that eliminates the need for mega-batches and manual constant tuning.

Summary updated

BibTeX
@misc{levy2021storm,
  author = {Kfir Y. Levy and Ali Kavis and Volkan Cevher},
  title = {{STORM+: Fully Adaptive SGD with Momentum for Nonconvex Optimization}},
  year = {2021},
  eprint = {2111.01040},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.01040},
}
Figure