Variance-Reduced Methods for Machine Learning

Robert M. Gower, Mark Schmidt, Francis R. Bach, Peter RichtárikProc. IEEE 2020

Abstract

Stochastic optimization lies at the heart of machine learning, and its cornerstone is stochastic gradient descent (SGD), a method introduced over 60 years ago. The last 8 years have seen an exciting new development: variance reduction (VR) for stochastic optimization methods. These VR methods excel in settings where more than one pass through the training data is allowed, achieving a faster convergence than SGD in theory as well as practice. These speedups underline the surge of interest in VR methods and the fast-growing body of work on this topic. This review covers the key principles and main developments behind VR methods for optimization with finite data sets and is aimed at non-expert readers. We focus mainly on the convex setting, and leave pointers to readers interested in extensions for minimizing non-convex functions.

Introduction

In machine learning, we typically aim to minimize a "finite-sum" objective: the average loss across $n$ data points. Traditionally, this is approached via Gradient Descent (GD) or Stochastic Gradient Descent (SGD). GD is precise but computationally expensive, requiring a full gradient calculation over all $n$ points for every step. SGD is fast and cheap per iteration, but its inherent randomness creates "noise" that prevents it from settling at the optimum. This variance forces practitioners to decay the learning rate, leading to slow, sublinear convergence.

The Variance Reduction Breakthrough

Variance Reduction (VR) methods offer the "best of both worlds": the $O(1)$ per-iteration cost of SGD combined with the fast, linear (exponential) convergence of GD. The core innovation is the use of covariates to correct the noisy stochastic gradient. By utilizing stored gradient information or periodic full-gradient "anchors," these methods ensure that the variance of the gradient estimate approaches zero as the algorithm nears the optimum.

Several landmark algorithms have defined this field:

  • SAG (Stochastic Average Gradient): The first major breakthrough, which maintains a memory of gradients to estimate the full gradient.
  • SAGA: An unbiased improvement over SAG that remains highly efficient for large-scale problems.
  • SVRG (Stochastic Variance-Reduced Gradient): A memory-efficient alternative that uses a nested loop structure to periodically reset the gradient estimate.

Theoretical and Empirical Performance

The defining theoretical advantage of VR methods is their iteration complexity. While SGD converges at a sublinear rate of $O(1/k)$, VR methods achieve a linear rate of $O((n + \kappa) \log(1/\epsilon))$, where $\kappa$ is the condition number. This means that to achieve higher precision, one only needs a constant number of additional passes over the data.

Table 1: Comparison of iteration complexity and per-iteration cost for GD, SGD, and VR methods.

Empirically, these methods dominate on classic benchmarks. On the Mushrooms dataset, for instance, VR methods reach high-precision solutions significantly faster than standard SGD or even sophisticated adaptive methods like ADAM.

Figure 1: Distance to the optimum over epochs for various optimization methods on the Mushrooms dataset.

Limitations and Future Directions

Despite their theoretical elegance, VR methods have seen limited adoption in deep learning. The non-convex nature of neural network loss landscapes and the high level of inherent noise in those problems often negate the benefits of variance reduction. Current research is actively exploring non-convex extensions and "Stochastic Newton" methods that incorporate second-order curvature information to further accelerate convergence.

Conclusion

Variance-reduced methods represent a significant advancement in optimization, providing a robust framework for high-precision machine learning on finite datasets. By effectively managing the noise inherent in stochastic sampling, they provide a powerful tool for large-scale convex optimization.

Summary updated

BibTeX
@inproceedings{gower2020variance,
  author = {Robert M. Gower and Mark Schmidt and Francis R. Bach and Peter Richtárik},
  title = {{Variance-Reduced Methods for Machine Learning}},
  booktitle = {Proc. IEEE},
  year = {2020},
  url = {https://openreview.net/forum?id=a_wCAbr-4l},
}
Figure