Accelerated Doubly Stochastic Gradient Algorithm for Large-scale Empirical Risk Minimization

Zebang Shen, Hui Qian, Tongzhou Mu, Chao ZhangarXiv 2023 · DOI

Abstract

In modern machine learning, Empirical Risk Minimization (ERM) problems often involve both a massive number of samples ($n$) and ultra-high dimensionality ($d$). Existing stochastic methods typically focus on one dimension of randomness—either sampling data points (SGD) or coordinates (RBCD). This paper introduces the Accelerated Doubly Stochastic Gradient (ADSG) algorithm, which simultaneously samples both data and coordinates. By utilizing a novel triple-momentum technique, ADSG achieves the optimal accelerated convergence rate while maintaining a minimal memory footprint and low per-iteration complexity. Empirical results on massive, high-dimensional datasets demonstrate that ADSG outperforms state-of-the-art solvers in both theoretical complexity and practical wall-clock time.

1. Introduction

The challenge of massive-scale learning lies in the "two bigs": large $n$ and large $d$. Standard Stochastic Gradient Descent (SGD) variants, such as SVRG or Katyusha, sample data points but update the entire $d$-dimensional parameter vector, which becomes prohibitive as $d$ grows. Conversely, Randomized Block Coordinate Descent (RBCD) methods update small coordinate blocks but often require a full pass over $n$ samples per iteration.

"Doubly stochastic" methods aim to combine these approaches by sampling both samples and coordinates. However, achieving Nesterov-style acceleration in this doubly stochastic setting has remained a significant theoretical and practical hurdle. ADSG bridges this gap, providing an algorithm that is both doubly stochastic and optimally fast.

2. The ADSG Algorithm

The core of ADSG is a multi-momentum framework designed to stabilize the variance introduced by double sampling while accelerating convergence. The algorithm incorporates three distinct momentum components:

  • Historical Momentum: Weights previous stochastic gradients to maintain direction, similar to classical Nesterov acceleration.
  • Negative Momentum: Inspired by the "Katyusha" algorithm, this acts as a "magnet" pulling the current iterate toward a stable snapshot point, effectively controlling the variance from stochastic sampling.
  • Momentum in Expectation: A novel coupling step that specifically accelerates the progress of coordinate updates.

To ensure practical efficiency, the authors implement a "lazy update" scheme (ADSG II/III). This allows the algorithm to avoid full $d$-dimensional updates at every step, touching only the specific coordinate blocks being sampled. This reduces the per-iteration cost to $O(\Omega)$, where $\Omega$ is the block size, rather than $O(d)$.

3. Theoretical Analysis

ADSG achieves theoretical optimality for both general convex and strongly convex objectives. As shown in the comparison table below, ADSG matches the convergence rates of the best single-stochastic accelerated methods (like Katyusha) but with significantly lower per-iteration variable operations (V.O.).

Comparison of convergence rates and per-iteration costs for various optimization methods.

For strongly convex problems, ADSG reaches an $\epsilon$-accurate solution in $O(d(n + \sqrt{n\kappa}) \log(1/\epsilon))$ total complexity, where $\kappa$ is the condition number. This matches the best known accelerated rates while benefiting from $O(1)$ sample access and $O(\Omega)$ variable operation costs per iteration.

4. Experimental Evaluation

The algorithm was evaluated on four massive, high-dimensional datasets from the LibSVM repository: news20-binary, kdd2010-raw, avazu-app, and url-combined. These datasets feature up to 19.2 million samples and 3.2 million features, providing a rigorous test for coordinate-descent-based methods.

Key findings from the experiments include:

  • Wall-Clock Speedup: ADSG consistently converged faster than state-of-the-art solvers like SVRG, Katyusha, and MRBCD in terms of actual execution time.
  • Memory Efficiency: By updating only blocks of coordinates, ADSG avoids the memory bottlenecks associated with full-vector operations, which is critical for production systems handling millions of features.
  • Robustness: The variance control mechanisms (negative momentum) proved essential in maintaining stability despite the high noise inherent in doubly stochastic sampling.

5. Conclusion and Future Work

ADSG represents a significant advancement in large-scale optimization, offering the "best of both worlds": the theoretical convergence of accelerated stochastic methods and the practical efficiency of coordinate descent. While highly effective for smooth, block-separable regularizers, future work includes extending these guarantees to non-separable regularizers and exploring the application of doubly stochastic acceleration in non-convex settings, such as deep learning.

Summary updated

BibTeX
@misc{shen2023accelerated,
  author = {Zebang Shen and Hui Qian and Tongzhou Mu and Chao Zhang},
  title = {{Accelerated Doubly Stochastic Gradient Algorithm for Large-scale Empirical Risk Minimization}},
  year = {2023},
  eprint = {2304.11665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.11665},
}
Figure