Stochastic Variance Reduction for Nonconvex Optimization

Sashank J. Reddi, Ahmed Hefny, Suvrit Sra, Barnabás Póczos, Alexander J. Smola

Introduction

In machine learning, we frequently minimize finite-sum loss functions, such as the average loss over $n$ data points. For convex problems, Variance Reduction (VR) techniques like the Stochastic Variance Reduced Gradient (SVRG) algorithm have recently surged in prominence, converging significantly faster than standard Stochastic Gradient Descent (SGD).

However, most modern, high-impact problems—such as training deep neural networks—are strictly nonconvex. Historically, the theoretical benefits of SVRG were tied almost exclusively to convexity. Practitioners defaulted to SGD for nonconvex landscapes because it is computationally cheap per iteration, despite its slow $O(1/\epsilon^2)$ convergence rate. Conversely, full Gradient Descent (GD) is stable but prohibitively expensive for large datasets, requiring $O(n/\epsilon)$ operations. This paper bridges that gap, proving that SVRG is theoretically and empirically superior for the nonconvex landscapes common in deep learning.

The SVRG Approach

The authors analyze SVRG in a nonconvex setting. SVRG operates in "epochs":

  1. Full Gradient Computation: At the start of an epoch, the algorithm calculates a full gradient. While expensive, this happens infrequently.
  2. Variance-Reduced Stochastic Updates: During the epoch, it performs many cheap stochastic updates, using the full gradient to "correct" the update direction. This effectively reduces the noise (variance) of the gradient estimate.

Key Innovations: * Parameter Tuning: The paper provides specific recipes for step sizes and epoch lengths that guarantee convergence in nonconvex territory. * Mini-batching: The authors analyze a mini-batch version of SVRG, proving it allows for linear speedups in parallel computing environments (up to a batch size of $n^{2/3}$). * GD-SVRG: A variant designed for "gradient dominated" functions to achieve global linear convergence. * MSVRG: A hybrid variant combining the best properties of SGD and SVRG.

Theoretical Insights

The headline result is that SVRG requires $O(n + n^{2/3}/\epsilon)$ oracle calls to reach an $\epsilon$-accurate stationary point. This is a factor of $n^{1/3}$ faster than standard Gradient Descent. Furthermore, unlike SGD, which requires a decaying learning rate to handle noise, SVRG can use a fixed step size because the variance reduction naturally "quiets" the noise as the algorithm nears a solution.

Complexity comparison of optimization algorithms

For a specific subclass of nonconvex functions known as "gradient dominated" functions, the authors show SVRG doesn't just find a local stationary point—it converges linearly to the global optimum.

Empirical Results

The authors evaluated their approach by training neural networks (with one fully-connected hidden layer) on standard image classification benchmarks: MNIST, CIFAR-10, and STL-10.

Empirical performance of SGD vs SVRG

In these neural network experiments, SVRG consistently converged faster than a well-tuned SGD in terms of both training loss and the norm of the gradient (the "stationarity gap"). Interestingly, on datasets like CIFAR-10, SVRG also achieved lower test error than SGD, suggesting that the faster convergence does not come at the cost of generalization.

Limitations and Future Work

While the results are promising, there are a few limitations to consider:

  • Stationary Points vs. Global Optima: For general nonconvex functions, the theory only guarantees reaching a "stationary point" (where the gradient is zero). It does not guarantee avoiding poor local minima or saddle points.
  • The "Noise" Benefit: A common critique of variance reduction in deep learning is that the inherent noise in SGD might actually help the model "jump out" of local minima. The authors acknowledge this and suggest a hybrid approach: using SGD for initial exploration and SVRG for final exploitation and refinement.
  • Model Complexity: The experiments focused on relatively simple neural networks. Testing these theoretical gains on massive, modern architectures remains a primary direction for future research.

Summary updated

BibTeX
@inproceedings{reddi2016stochastic,
  author = {Sashank J. Reddi and Ahmed Hefny and Suvrit Sra and Barnabás Póczos and Alexander J. Smola},
  title = {{Stochastic Variance Reduction for Nonconvex Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
  url = {https://openreview.net/forum?id=Sy4_qsZdZH},
}
Figure