Stochastic Nested Variance Reduction for Nonconvex Optimization

Dongruo Zhou, Pan Xu, Quanquan Gu

TL;DR

This paper introduces SNVRG, a novel algorithm that significantly speeds up finding approximate solutions to complex, non-convex optimization problems by using a "nested" approach to reduce variance in gradient estimates. This leads to better theoretical guarantees and practical performance compared to existing methods, especially for large-scale machine learning tasks.

What Problem Does This Paper Address?

Many real-world problems, particularly in machine learning (like training deep neural networks), involve optimizing non-convex functions. Finding the absolute best solution (global minimum) is often computationally intractable. Instead, researchers aim to find "good enough" solutions, such as points where the gradient is small (first-order stationary points) or points that are likely local minima (second-order stationary points). Existing methods like SVRG and SCSG use variance reduction techniques to speed up this process, but they still have limitations, especially concerning how their performance scales with the number of data points ($n$). The authors aim to improve these scaling properties and develop algorithms that find these approximate solutions more efficiently.

Methods

The core innovation is Stochastic Nested Variance-Reduced Gradient descent (SNVRG). Unlike conventional methods that use one or two reference points to estimate gradients, SNVRG employs a nested structure with $K+1$ reference points and gradients. This "nested" approach allows for a more aggressive reduction in the variance of the gradient estimates.

For finding first-order stationary points, SNVRG achieves a better gradient complexity, meaning it requires fewer gradient computations to reach a desired accuracy.

To find local minima, SNVRG is combined with the Neon2 algorithm. Neon2 is a first-order method that efficiently finds negative curvature directions, allowing the optimization process to escape saddle points and find local minima. The paper proposes two variants: SNVRG + Neon2$^{\text{finite}}$ for finite-sum problems and SNVRG + Neon2$^{\text{online}}$ for general stochastic problems.

Datasets

The paper uses the following standard image datasets for experimental evaluation:

  • MNIST: Handwritten digits dataset.
  • CIFAR10: Image classification dataset.
  • SVHN: Street View House Numbers dataset.

Key Insights and Ideas

  • Nested Variance Reduction: The key insight is that by using multiple "nested" layers of reference points and gradients, the variance of the stochastic gradient estimate can be reduced much more effectively than with simpler variance reduction techniques. This is analogous to how multiple stages of filtering can achieve a cleaner signal.
  • Improved Scaling: The nested approach leads to theoretical improvements in gradient complexity that depend less on the number of data points ($n$), which is crucial for large-scale datasets.
  • Combining SNVRG with Negative Curvature: The paper demonstrates that SNVRG's efficiency in finding stationary points can be effectively combined with Neon2's ability to escape saddle points, leading to faster convergence to local minima.
  • Third-Order Smoothness Advantage: The authors show that if the objective function has third-order smoothness, their algorithms can achieve even faster convergence rates to local minima, highlighting the benefit of exploiting higher-order properties of the objective function.

Key Results

  • First-Order Stationary Points: SNVRG achieves a gradient complexity of $\tilde O(n\land\epsilon^{-2}+\epsilon^{-3}\land n^{1/2}\epsilon^{-2})$, which is better than existing methods like SVRG and SCSG.
  • Local Minima (Finite-Sum): SNVRG + Neon2$^{\text{finite}}$ achieves a gradient complexity of $\tilde{O}(n^{1/2}\epsilon^{-2}+n\epsilon_H^{-3}+n^{3/4}\epsilon_H^{-7/2})$, outperforming SVRG + Neon2$^{\text{finite}}$.
  • Local Minima (Stochastic): SNVRG + Neon2$^{\text{online}}$ achieves $\tilde{O}(\epsilon^{-3}+\epsilon_H^{-5}+\epsilon^{-2}\epsilon_H^{-3})$ gradient complexity, which is better than SVRG + Neon2$^{\text{online}}$ and Natasha2 in certain regimes.
  • Experimental Validation: Experiments on image classification tasks (MNIST, CIFAR10, SVHN) show that SNVRG outperforms baseline algorithms, supporting the theoretical findings.

Limitations and Future Work

  • Third-Order Smoothness: While the paper shows benefits from third-order smoothness for finding local minima, this is an additional assumption not always met in practice.
  • Parameter Tuning: As with many optimization algorithms, the performance can be sensitive to parameter choices, and the paper relies on grid search for tuning.
  • Practical Implementation: While the theoretical benefits are clear, the practical implementation of the nested structure might introduce some overhead.

The authors suggest that their algorithms push the frontier of first-order stochastic optimization for finding local minima. Future work could explore further theoretical analyses or applications in specific domains.

Summary updated

BibTeX
@article{zhou2020stochastic,
  author = {Dongruo Zhou and Pan Xu and Quanquan Gu},
  title = {{Stochastic Nested Variance Reduction for Nonconvex Optimization}},
  journal = {J. Mach. Learn. Res.},
  year = {2020},
  url = {https://openreview.net/forum?id=GBn5sa8cmDO},
}
Figure