A Proximal Stochastic Gradient Method with Progressive Variance Reduction

Lin Xiao, Tong Zhang

Abstract

We consider the problem of minimizing the sum of two convex functions: one is the average of a large number of smooth component functions, and the other is a general convex function that admits a simple proximal mapping. We assume the whole objective function is strongly convex. Such problems often arise in machine learning, known as regularized empirical risk minimization. We propose and analyze a new proximal stochastic gradient method, which uses a multi-stage scheme to progressively reduce the variance of the stochastic gradient. While each iteration of this algorithm has similar cost as the classical stochastic gradient method (or incremental gradient method), we show that the expected objective value converges to the optimum at a geometric rate. The overall complexity of this method is much lower than both the proximal full gradient method and the standard proximal stochastic gradient method.

Introduction

In modern machine learning, we frequently encounter the problem of regularized empirical risk minimization. This is typically formulated as the minimization of a composite objective function:

$$P(x) = F(x) + R(x)$$

where $F(x) = \frac{1}{n} \sum_{i=1}^n f_i(x)$ represents the average loss over a massive dataset, and $R(x)$ is a regularizer (such as the L1 "Lasso" penalty) that may be non-differentiable but possesses a simple proximal mapping.

Optimizing this function presents a significant trade-off. Full Gradient (FG) methods provide accurate updates and achieve geometric convergence rates, but they are computationally expensive because they require a pass over all $n$ data points for every step. Conversely, Stochastic Gradient (SG) methods are computationally cheap, processing only one data point per iteration. However, the inherent variance in these single-point estimates forces the use of decaying step sizes, which slows the convergence to a sublinear rate. This paper introduces Prox-SVRG, an algorithm designed to bridge this gap by offering the per-iteration cost of SG methods with the stable, geometric convergence of FG methods.

The Prox-SVRG Algorithm

The core innovation of Prox-SVRG is a multi-stage variance reduction scheme. Unlike standard stochastic methods where the gradient noise persists, Prox-SVRG periodically "resets" its gradient estimate using a full-batch snapshot.

The Multi-Stage Scheme

  1. The Snapshot: At the start of each stage (every $m$ iterations), the algorithm computes a full gradient $\nabla F(\tilde{x})$ at a snapshot point $\tilde{x}$.
  2. The Correction: During the inner loop iterations, instead of relying solely on a noisy stochastic gradient $\nabla f_i(x)$, the algorithm uses a modified direction: $$v_k = \nabla f_i(x_{k-1}) - \nabla f_i(\tilde{x}) + \nabla F(\tilde{x})$$ This $v_k$ serves as an unbiased estimate of the full gradient. Crucially, as the algorithm approaches the optimum, the difference between $\nabla f_i(x_{k-1})$ and $\nabla f_i(\tilde{x})$ shrinks, effectively driving the variance of the estimate to zero.

  3. The Proximal Step: To handle the potentially non-smooth regularizer $R(x)$, the algorithm applies a proximal operator to the update, allowing it to maintain the benefits of variance reduction even in the presence of L1 penalties or other constraints.

Memory Efficiency

A significant advantage of Prox-SVRG over previous variance-reduction techniques, such as Stochastic Average Gradient (SAG), is its memory footprint. While SAG requires storing all $n$ previous gradients—which is often impractical for high-dimensional problems—Prox-SVRG only requires storing the snapshot point and its full gradient.

Theoretical and Empirical Results

Complexity and Convergence

The authors provide a rigorous proof that for strongly convex problems, Prox-SVRG achieves a geometric convergence rate. The total number of gradient evaluations required to reach an $\epsilon$-accurate solution is:

$$O\left(\left(n + \frac{L}{\mu}\right) \log\left(\frac{1}{\epsilon}\right)\right)$$

For large-scale datasets where $n$ is very large, this complexity is significantly better than the $O(n \cdot (L/\mu) \log(1/\epsilon))$ required by proximal full gradient methods.

Performance on Real-World Datasets

The algorithm was evaluated on three binary classification datasets:

  • rcv1: Text categorization (20,242 examples, 47,236 features).
  • covertype: Forest cover type (581,012 examples, 54 features).
  • sido0: Pharmacology (12,678 examples, 4,932 features).

In these experiments, Prox-SVRG consistently outperformed standard proximal SGD and accelerated full gradient methods. It matched the performance of memory-intensive methods like Prox-SAG and Prox-SDCA while remaining much simpler to implement and more memory-efficient.

Key Insights

  • Variance Reduction: By "centering" the stochastic estimate using the snapshot, the algorithm ensures that updates become more precise as it nears the optimum.
  • Importance Sampling: The paper demonstrates that sampling data points based on their Lipschitz constants (weighted sampling) can further improve convergence bounds.
  • Proximal Generalization: The research proves that variance reduction is highly effective for composite, non-smooth functions, which are essential for modern sparse learning applications.

Limitations and Future Work

While Prox-SVRG is highly effective, its geometric convergence is theoretically guaranteed primarily for strongly convex objectives. While a "restart" variant exists for non-strongly convex cases, the performance gains are less pronounced. Additionally, the algorithm introduces two hyperparameters—the inner loop length $m$ and the step size $\eta$—which require tuning, though the authors suggest $m$ in the range of $2n$ to $5n$ as a robust starting point. Future research may explore non-uniform sampling and further acceleration of the proximal steps.

Summary updated

BibTeX
@article{xiao2014proximal,
  author = {Lin Xiao and Tong Zhang},
  title = {{A Proximal Stochastic Gradient Method with Progressive Variance Reduction}},
  journal = {SIAM J. Optim.},
  year = {2014},
  url = {https://openreview.net/forum?id=KBjW2i5WTuu},
}
Figure