Fast Stochastic Variance Reduced Gradient Method with Momentum Acceleration for Machine Learning

Fanhua Shang, Yuanyuan Liu, James Cheng, Jiacheng ZhuoarXiv 2017

Abstract

This paper introduces FSVRG (Fast Stochastic Variance Reduced Gradient), a streamlined optimization algorithm that combines the variance reduction of SVRG with Nesterov-style momentum. By utilizing a single auxiliary variable and one momentum weight, FSVRG achieves optimal convergence rates while maintaining lower per-iteration complexity than previous state-of-the-art methods like Katyusha. Empirical results across diverse benchmarks demonstrate that FSVRG is significantly faster in "wall-clock" time, making it a highly efficient solution for large-scale machine learning problems.

Introduction

In the era of big data, machine learning models are typically trained by minimizing "finite-sum" loss functions averaged over millions of samples. While Stochastic Gradient Descent (SGD) is the standard approach due to its low per-iteration cost, its high variance often leads to slow convergence near the optimal solution.

To address this, researchers developed Variance Reduction methods (e.g., SVRG, SAGA) that achieve linear convergence for strongly convex problems. However, these methods lacked the "acceleration" seen in deterministic optimization (like FISTA). Previous attempts to accelerate stochastic methods, most notably the Katyusha algorithm, succeeded theoretically but resulted in complex designs with multiple auxiliary variables and high computational overhead. FSVRG was developed to provide the speed of acceleration with the simplicity and low overhead of SVRG.

The FSVRG Algorithm

FSVRG integrates three key innovations to achieve its performance:

  1. Variance Reduction: Like standard SVRG, it uses a "snapshot" of the full gradient at the start of each epoch to correct the direction of stochastic updates, ensuring the variance vanishes as the algorithm converges.
  2. Simplified Nesterov Momentum: FSVRG introduces a novel update rule that incorporates momentum using only a single auxiliary variable ($y$) and one momentum weight ($\theta_s$). This is a major simplification over Katyusha, which requires two of each, thereby reducing the arithmetic operations required per iteration.
  3. Growing Epoch Size: Instead of fixed-length epochs, FSVRG allows the number of inner iterations to grow over time. This strategy focuses computational effort on stochastic updates as the algorithm nears the solution, further accelerating convergence.

Theoretically, FSVRG achieves the optimal convergence rate for both strongly convex ($O(\log(1/\epsilon))$) and non-strongly convex ($O(1/T^2)$) problems.

Experimental Evaluation

The algorithm was evaluated on seven diverse machine learning benchmarks, including IJCNN, Protein, Covtype, and SUSY for logistic regression and Lasso, high-dimensional sparse datasets like Rcv1 and Sido0, and MNIST for non-smooth SVM implementations. These datasets range from tens of thousands to 5 million samples.

Key Results and Performance

The empirical results highlight FSVRG's dual advantage in theoretical efficiency and practical speed.

Performance comparison of FSVRG against SVRG, SVRG++, and Katyusha. The y-axis represents the objective value minus the best known minimum. The top row measures convergence by effective passes (data epochs), while the bottom row measures actual wall-clock time in seconds.

As illustrated in the figure above:

  • Theoretical Optimality: In terms of "effective passes" (top row), FSVRG matches or exceeds the performance of Katyusha, confirming its theoretical acceleration.
  • Wall-Clock Efficiency: When measuring actual running time (bottom row), FSVRG's advantage becomes even more pronounced. Because it has lower per-iteration complexity, it reaches high-precision solutions (e.g., $10^{-12}$) in significantly less time than its competitors.
  • Robustness: FSVRG performed consistently well across a wide range of regularization parameters ($\lambda$), demonstrating that it is less sensitive to hyperparameter tuning than previous accelerated methods.

Conclusion

FSVRG proves that stochastic acceleration can be achieved without complex, multi-variable architectures. By carefully designing the momentum update, the authors created an algorithm that is both theoretically optimal and practically superior in wall-clock performance. While the current theoretical analysis focuses on smooth functions, empirical extensions to non-smooth losses (like SVMs) show great promise, marking a clear path for future research in unified stochastic optimization frameworks.

Summary updated

BibTeX
@misc{shang2017fast,
  author = {Fanhua Shang and Yuanyuan Liu and James Cheng and Jiacheng Zhuo},
  title = {{Fast Stochastic Variance Reduced Gradient Method with Momentum Acceleration for Machine Learning}},
  year = {2017},
  eprint = {1703.07948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.07948},
}
Figure