VR-SGD: A Simple Stochastic Variance Reduction Method for Machine Learning

Fanhua Shang, Kaiwen Zhou, Hongying Liu, James Cheng, Ivor W. Tsang, Lijun Zhang, Dacheng Tao, Licheng JiaoIEEE TKDE 2018 · DOI

TL;DR

This paper introduces VR-SGD, a novel stochastic variance reduction method that simplifies existing algorithms like SVRG while achieving faster convergence. By cleverly choosing the "snapshot" and "starting" points for each training epoch, VR-SGD allows for significantly larger learning rates, leading to substantial speedups in practice across various machine learning tasks.

What Problem Does This Paper Address?

Training large-scale machine learning models often involves optimizing a complex objective function that is a sum of many individual component functions (e.g., in empirical risk minimization). Standard gradient descent methods can be too slow for such problems. While stochastic gradient descent (SGD) offers a faster per-iteration cost, its convergence is hampered by noisy gradient estimates. Variance reduction techniques, like SVRG, aim to mitigate this noise by using information from previous epochs to get more accurate gradient estimates. However, existing methods like SVRG and its variants (Prox-SVRG) have specific choices for snapshot and starting points that can be restrictive, and their convergence analysis for non-strongly convex problems is often lacking. This paper seeks to improve upon these methods by offering a simpler, more robust, and faster algorithm that also provides stronger theoretical guarantees.

Methods

The core innovation of VR-SGD lies in its choice of the snapshot point ($\hat{x}_{s-1}$) and the starting point ($\bar{x}_{s-1}$) for each epoch $s$. Unlike SVRG, where both are typically the last iterate of the previous epoch, VR-SGD sets them to the average and last iterate of the previous epoch, respectively. This seemingly small change has significant implications:

  • Larger Learning Rates: The new settings allow VR-SGD to use much larger learning rates (e.g., $1/L$ vs. $1/(10L)$ for SVRG), which is a key driver of its improved speed.
  • Unified Approach for Smooth/Non-Smooth: VR-SGD introduces two distinct update rules: one for smooth objective functions and another for non-smooth ones. This contrasts with some proximal methods that use a single, potentially less efficient, proximal update for both cases.
  • Direct Handling of Non-Strongly Convex Problems: The paper provides convergence guarantees for VR-SGD on non-strongly convex problems, a feat not always achieved by its counterparts.
  • Momentum Acceleration: A momentum-accelerated variant of VR-SGD is also proposed, demonstrating similar performance to state-of-the-art methods with optimal convergence rates.

Datasets

The paper evaluates VR-SGD on several standard machine learning datasets:

  • Adult (a9a)
  • Covtype
  • Epsilon
  • RCV1
  • MNIST

These datasets are commonly used for benchmarking optimization algorithms in tasks like logistic regression, Lasso, and non-convex ERM.

Key Insights and Ideas

  • The Power of Averaging: The paper highlights that using the average of the previous epoch's iterates as the snapshot point (Option II in the paper, or Option I in Algorithm 2) significantly improves robustness and allows for larger learning rates. This suggests that aggregating information from the entire epoch is more beneficial than relying solely on the last iterate.
  • Simplicity Can Be Powerful: VR-SGD achieves superior performance and robustness by making a simple yet effective change to the snapshot/starting point selection, demonstrating that complex algorithmic modifications aren't always necessary for significant gains.
  • Separate Update Rules Matter: The decision to use distinct update rules for smooth and non-smooth components, rather than a single proximal update, proves to be more effective in practice for smooth objectives.
  • Learning Rate Sensitivity: VR-SGD exhibits much better robustness to learning rate selection compared to SVRG, making it easier to tune and apply in real-world scenarios.

Key Results

  • Faster Convergence: VR-SGD consistently converges significantly faster than SVRG and Prox-SVRG across various datasets and problem types (logistic regression, Lasso, non-convex ERM).
  • Competitive with State-of-the-Art: VR-SGD often outperforms or matches state-of-the-art accelerated methods like Katyusha, especially in terms of the number of effective passes over the data.
  • Larger Learning Rates: VR-SGD can utilize much larger learning rates (e.g., $1/L$ vs. $1/(10L)$ for SVRG), which is a primary reason for its speed advantage.
  • Theoretical Guarantees: The paper provides theoretical convergence guarantees for VR-SGD on both strongly convex and non-strongly convex problems, including non-smooth cases, which is a significant advantage over some existing methods.
  • Robustness: VR-SGD shows better robustness to learning rate choices compared to SVRG.

Limitations and Future Work

  • Convergence Analysis Complexity: The paper notes that the chosen snapshot and starting points for VR-SGD make its convergence analysis significantly more challenging than that of SVRG and Prox-SVRG.
  • Mini-batch Extension: The paper discusses extending VR-SGD to mini-batch settings, which is a natural direction for further research.
  • Non-convex Problems: While the paper provides guarantees for non-strongly convex problems, further exploration into its performance on general non-convex objectives is a potential area for future work.
  • Asynchronous Parallelization: The authors suggest that VR-SGD's simpler update rules make it well-suited for asynchronous parallel and distributed implementations.

Summary updated

BibTeX
@article{shang2018vr,
  author = {Fanhua Shang and Kaiwen Zhou and Hongying Liu and James Cheng and Ivor W. Tsang and Lijun Zhang and Dacheng Tao and Licheng Jiao},
  title = {{VR-SGD: A Simple Stochastic Variance Reduction Method for Machine Learning}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2018},
  doi = {10.1109/tkde.2018.2878765},
}
Figure