Introduction
The paper introduces Stochastic Nested Variance Reduced Gradient (SNVRG), a novel optimization algorithm designed to accelerate training for nonconvex problems, such as deep neural networks. By utilizing a hierarchy of "nested" reference points to stabilize noisy gradient estimates, SNVRG achieves significantly better theoretical gradient complexity and faster practical convergence than previous state-of-the-art methods like SVRG and SCSG.
The Problem: Variance in Stochastic Optimization
In machine learning, training often involves solving "finite-sum" optimization problems to minimize an average loss over $n$ data points. For nonconvex models like deep neural networks, finding the absolute global minimum is generally NP-hard. Instead, the goal is to find an $\epsilon$-approximate stationary point—a location where the gradient is nearly zero.
Standard Stochastic Gradient Descent (SGD) is the standard tool for this, but it suffers from "noise" because it estimates gradients using only small batches of data. This variance slows down convergence. Previous "Variance Reduction" techniques, such as SVRG, improved upon SGD by occasionally computing a full gradient to "anchor" the stochastic steps. However, these methods still exhibit a heavy dependency on the total number of data points ($n$) or the required accuracy ($\epsilon$). The authors sought to answer: Can we reduce the variance even faster without making extra assumptions?
Methodology: Nested Variance Reduction
The core innovation of SNVRG is its nested structure.
- Standard SVRG: Uses two reference points—the current iterate and a "snapshot" taken at the start of an epoch. It uses the difference between gradients at these two points to correct the current noisy gradient.
- SNVRG: Instead of relying on just one snapshot, SNVRG utilizes $K+1$ nested reference points, creating a hierarchy of snapshots. The algorithm runs in multiple loops; inner loops use more recent, local snapshots to keep the gradient estimate highly accurate, while outer loops update broader snapshots less frequently.
By carefully choosing the number of nested loops ($K \approx \log \log n$) and the batch sizes for each level, the authors ensure that the variance of the gradient estimate decays much faster than in traditional methods.
Key Insights
- The Power of Nesting: The critical realization is that a single anchor point (as in SVRG) is insufficient to optimally suppress noise in a nonconvex setting. By creating a recursive "nested" correction, SNVRG breaks the $n^{2/3}$ complexity barrier that limited previous algorithms.
- Better Complexity Regimes: SNVRG is particularly powerful when the dataset size $n$ is large. It achieves a gradient complexity that is strictly better than SVRG and the more recent SCSG across various regimes.
- Versatility: While designed for general nonconvex functions, SNVRG also sets a new theoretical speed record for "gradient-dominated" functions, which behave somewhat like convex functions near the minimum.
Results
Theoretical Speedup
For smooth nonconvex functions, SNVRG improves the best-known gradient complexity. Specifically, when $n$ is roughly $1/\epsilon^2$, SNVRG is faster than its predecessor (SCSG) by a factor of $n^{1/6}$.
Empirical Performance
The authors evaluated SNVRG on three standard image classification benchmarks (MNIST, CIFAR-10, and SVHN) training a LeNet convolutional neural network. In head-to-head tests against SGD, SGD-momentum, ADAM, and SCSG, SNVRG consistently achieved lower training loss and lower test error across all three datasets. Furthermore, experimental plots demonstrate that SNVRG converges more smoothly and reaches a better solution faster than ADAM, a common industry standard for deep learning.
Limitations and Future Work
- Memory Overhead: SNVRG requires storing $K$ reference gradients. While $K$ is small (logarithmic relative to $n$), this still consumes more memory ($O(Kd)$ space) than standard SGD or SVRG.
- Hyperparameter Tuning: Like many variance reduction methods, SNVRG introduces several parameters (loop lengths $T_l$ and batch sizes $B_l$) that may require careful tuning for different architectures.
- Nonsmooth Problems: The current theory focuses on smooth functions. Extending this approach to "nonsmooth" problems (like those using L1 regularization) via proximal gradient methods is a promising next step.
- Lower Bounds: While SNVRG is "near-optimal" for finite-sum problems, the absolute theoretical lower bound for general stochastic nonconvex optimization remains an open question.
Summary updated