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

Zebang Shen, Hui Qian, Tongzhou Mu, Chao ZhangIJCAI 2017

Abstract

Nowadays, algorithms with fast convergence, small memory footprints, and low per-iteration complexity are particularly favorable for artificial intelligence applications. In this paper, we propose a doubly stochastic algorithm with a novel accelerating multi-momentum technique to solve large scale empirical risk minimization problem for learning tasks. While enjoying a provably superior convergence rate, in each iteration, such algorithm only accesses a mini batch of samples and meanwhile updates a small block of variable coordinates, which substantially reduces the amount of memory reference when both the massive sample size and ultra-high dimensionality are involved. Specifically, to obtain an ε-accurate solution, our algorithm requires only O(log(1/ε)/sqrt(ε)) overall computation for the general convex case and O((n+sqrt{nκ})log(1/ε)) for the strongly convex case. Empirical studies on huge scale datasets are conducted to illustrate the efficiency of our method in practice.

Introduction

Modern machine learning faces a "double whammy": datasets with massive sample sizes ($n$) and ultra-high dimensionality ($d$). Traditional optimization methods typically address only one of these dimensions effectively. Stochastic Gradient Descent (SGD) and its variance-reduced variants (like SVRG) handle large $n$ by using mini-batches but often require full-vector operations, making them computationally expensive when $d$ is huge. Conversely, Randomized Block Coordinate Descent (RBCD) methods handle large $d$ by updating coordinate blocks but usually require a full pass over $n$ samples to compute partial gradients.

"Doubly stochastic" algorithms attempt to solve both issues simultaneously by sampling both data points and coordinates in each iteration. However, achieving Nesterov-style acceleration in this doubly stochastic setting is challenging due to the noise introduced by two sources of randomness. This paper introduces the Accelerated Doubly Stochastic Gradient (ADSG) algorithm, which bridges this gap using a novel multi-momentum technique.

The ADSG Algorithm

ADSG utilizes a multi-momentum technique to stabilize and accelerate the optimization process. The algorithm maintains four variables ($x, y, z,$ and a snapshot $\tilde{x}$) and incorporates three distinct types of momentum:

  1. Historical Momentum: Leverages previous stochastic gradients to maintain a consistent search direction.
  2. Negative Momentum: Inspired by the Katyusha algorithm, this acts as an "anchor" to prevent the current estimate from drifting too far from a stable snapshot, effectively curbing the variance from double randomness.
  3. Momentum in Expectation: Provides additional weight to the most recent progress in coordinate updates.

To ensure practical efficiency, the authors developed ADSG II. This implementation uses auxiliary variables to ensure that each iteration's cost scales with the block size rather than the total dimension $d$, making it highly efficient for the extremely sparse, high-dimensional datasets common in web-scale applications.

Theoretical Analysis

ADSG achieves state-of-the-art theoretical complexity. For strongly convex problems, it reaches an overall complexity of $O((n + \sqrt{n\kappa}) \log(1/\epsilon))$, where $\kappa$ is the condition number. This matches the optimal rates of accelerated stochastic methods while maintaining the low per-iteration cost of coordinate descent.

Table 1: Comparison of per-iteration sample access (S.A.), variable operations (V.O.), and total complexity for various optimization methods. ADSG achieves optimal rates with minimal per-iteration overhead.

As shown in Table 1, ADSG is the only method that achieves $O(1)$ sample access and $O(\Omega)$ (block size) variable operations per iteration while maintaining optimal global convergence rates for both general and strongly convex cases.

Empirical Evaluation

The algorithm was evaluated on four massive datasets from the LibSVM repository: news20-binary, kdd2010-raw, avazu-app, and url-combined. These datasets represent typical large-scale challenges with millions of samples and features.

Figure 1: Convergence performance of ADSG (red line) compared to SVRG, MRBCD, and Katyusha across multiple datasets and regularization settings.

Experimental results demonstrate that ADSG consistently reaches lower suboptimality faster than state-of-the-art competitors. While methods like Katyusha have similar theoretical convergence rates per data pass, ADSG's lower per-iteration cost translates to significant gains in actual wall-clock time.

Conclusion

ADSG provides a robust solution for large-scale Empirical Risk Minimization (ERM) problems by combining the benefits of variance reduction, coordinate descent, and a novel multi-momentum acceleration. Its ability to handle both massive $n$ and $d$ with optimal complexity makes it a powerful tool for modern AI applications. Future work may involve extending these techniques to non-convex optimization landscapes typical of deep learning.

Summary updated

BibTeX
@inproceedings{shen2017accelerated,
  author = {Zebang Shen and Hui Qian and Tongzhou Mu and Chao Zhang},
  title = {{Accelerated Doubly Stochastic Gradient Algorithm for Large-scale Empirical Risk Minimization}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=SkZq64zubH},
}
Figure