Momentum-Based Variance Reduction in Non-Convex SGD

Ashok Cutkosky, Francesco Orabona

Abstract

Variance reduction has emerged as a powerful alternative to standard stochastic gradient descent (SGD) for non-convex optimization problems, offering improved convergence rates for finding first-order critical points. However, traditional variance reduction techniques often require carefully tuned learning rates and the use of massive "mega-batches" to achieve these theoretical gains. This paper introduces STORM (STOchastic Recursive Momentum), a novel algorithm that achieves the theoretical "speed limit" for non-convex optimization without requiring mega-batches. By repurposing momentum as a variance-reduction tool and utilizing adaptive learning rates, STORM provides a simpler, highly effective optimizer that requires minimal hyperparameter tuning.

The Challenge of Non-Convex Optimization

Training modern machine learning models, such as deep neural networks, inherently involves navigating complex, non-convex loss landscapes. While SGD is the industry standard due to its simplicity, it suffers from high variance or "noise" because it estimates gradients using only a small sample of data at a time.

To mitigate this, researchers have developed Variance Reduction (VR) techniques like SVRG and SARAH. While theoretically faster than SGD, these methods suffer from two major practical drawbacks:

  1. Mega-batches: They periodically require calculating gradients on enormous batches of data to create checkpoints that reset the accumulated noise. This process is memory-intensive and computationally slow.
  2. Hyperparameter Sensitivity: They demand precisely tuned learning rates and prior knowledge of the data's "noise level" ($\sigma$), making them brittle and difficult to deploy in real-world scenarios.

The authors address these flaws by designing an algorithm that combines the theoretical speed of variance reduction with the practical ease of standard momentum-based SGD.

The STORM Algorithm

The core innovation of STORM lies in its update rule, which resembles the momentum mechanisms in popular optimizers like Adam or RMSProp, but introduces a critical recursive twist.

Instead of simply averaging past gradients, STORM employs the following recursive formula: $$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 formula evaluates two gradients at each step using the same data sample ($\xi_{t+1}$) but at two different points in the model's parameter space ($x_t$ and $x_{t+1}$). This allows the algorithm to continuously "correct" its trajectory.

Furthermore, STORM incorporates an AdaGrad-style adaptive learning rate. The step size automatically scales based on the observed gradients, eliminating the need for manual learning rate schedules or prior knowledge of the data's variance. Crucially, STORM processes data continuously in small batches, entirely removing the need for checkpointing or mega-batches.

Theoretical Insights

The most profound insight of the paper is that a specific variant of momentum can be mathematically proven to reduce the variance of gradient estimates. Rather than just "building up speed," momentum in STORM acts as a filter that scrubs out noise.

Using a sophisticated Lyapunov potential function to track the "energy" of the system, the authors prove that STORM achieves a convergence rate of $O(1/T^{1/3})$. In the realm of non-convex optimization, this matches the optimal rate allowed by information theory—a speed previously only attainable by algorithms relying on massive checkpoint batches.

Empirical Performance

To validate their theoretical findings, the authors evaluated STORM on the CIFAR-10 image recognition benchmark using a ResNet-32 architecture.

Training and Test Performance on CIFAR-10

As illustrated above, STORM demonstrates a clear advantage in optimization speed. It minimizes the training loss significantly faster than popular baselines like Adam and AdaGrad. Furthermore, STORM achieves this performance with default parameters ($w=k=0.1$), whereas other algorithms required extensive grid searches to find optimal learning rates. While primarily designed to optimize the training objective, STORM also achieves test accuracies that are highly competitive with, and slightly better than, AdaGrad.

Limitations and Future Directions

While STORM excels at reducing training loss, the authors note a "generalization gap" where the massive improvements in training speed do not perfectly translate to equivalent leaps in test accuracy. Future work should explore how STORM interacts with standard regularization techniques like weight decay.

Additionally, the theoretical proof relies on selecting a random step from the history of the run as the final output, whereas practitioners almost exclusively use the last step. Bridging this gap between theory and practice remains an open challenge. Finally, exploring whether these first-order variance-reduction techniques can be synergized with second-order methods (like Hessians) presents a promising avenue for future research.

Summary updated

BibTeX
@inproceedings{cutkosky2019momentum,
  author = {Ashok Cutkosky and Francesco Orabona},
  title = {{Momentum-Based Variance Reduction in Non-Convex SGD}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=QpPfIKKgNBr},
}
Figure