Distributed Stochastic Variance Reduced Gradient Methods

Jason D. Lee, Tengyu Ma, Qihang LinarXiv 2015

Abstract

Distributed optimization is a cornerstone of modern large-scale machine learning, yet it is frequently hampered by the high cost of communication between nodes. This paper introduces Distributed Stochastic Variance Reduced Gradient (DSVRG) and its accelerated version, DASVRG. The authors establish a theoretical lower bound for communication rounds in distributed first-order methods and prove that DASVRG is communication-optimal, matching this lower bound up to logarithmic factors. Through extensive experiments on large-scale datasets, the authors demonstrate that these algorithms significantly outperform existing methods in communication efficiency, particularly for ill-conditioned problems.

Introduction

As datasets grow beyond the capacity of single machines, distributed computing becomes essential. However, in such environments, the primary bottleneck is often communication complexity—the time spent synchronizing parameters across the network—rather than local computation. While methods like Distributed Dual Coordinate Ascent (DisDCA) and Accelerated Gradient Descent are common, they often require excessive communication rounds or impose high local computational burdens. This research addresses the fundamental limit of communication in distributed optimization and proposes algorithms that reach this theoretical floor.

Methodology

DSVRG: Distributed SVRG

The authors adapt the Stochastic Variance Reduced Gradient (SVRG) algorithm to a distributed setting using a "round-robin" scheme. SVRG achieves linear convergence by periodically computing a full gradient (the "anchor") to reduce the variance of subsequent stochastic updates.

  • Parallel Phase: All $m$ machines compute local batch gradients in parallel to construct a global anchor gradient.
  • Serial Phase: Machines take turns performing iterative stochastic updates. To maintain the unbiasedness required for SVRG's convergence, the authors developed a Data Allocation Procedure. This strategy allows machines to store a small amount of "extra" sampled data, ensuring that stochastic updates remain representative of the global dataset without requiring full data replication.

DASVRG: Distributed Accelerated SVRG

To further optimize performance, the authors integrated DSVRG into a generic acceleration framework (similar to Catalyst). DASVRG is designed to minimize communication rounds, especially when the optimization problem is ill-conditioned (characterized by a high condition number $\kappa$).

Theoretical Lower Bound

A key contribution of this work is the derivation of a communication lower bound. The authors prove that for any distributed first-order method, the number of communication rounds required to reach an accuracy $\epsilon$ is at least: $$\tilde{\Omega}\left(\sqrt{\frac{\kappa}{n}} \log\left(\frac{1}{\epsilon}\right)\right)$$ where $n$ is the number of data points per machine. This bound provides a benchmark against which all distributed first-order algorithms can be measured.

Key Results

The theoretical analysis shows that DASVRG achieves a communication complexity that matches the proven lower bound (up to logarithmic factors).

Theoretical comparison of communication rounds and parallel runtime across various distributed optimization algorithms.

As shown in the table above, DASVRG's communication rounds scale with $\sqrt{\kappa/n}$, making it significantly more efficient than standard DSVRG or other methods like DANE and CoCoA+ in many regimes.

Experimental Validation

The algorithms were tested on standard benchmarks: Covtype, Million Song Dataset, and Epsilon. To simulate high-dimensional challenges, Random Fourier Features (RFF) were used to expand the feature sets.

  • Communication Efficiency: DSVRG and DASVRG required fewer communication rounds than DisDCA and Accelerated Gradient Descent to achieve high accuracy.
  • Robustness to Ill-conditioning: As the regularization parameter $\lambda$ decreases (increasing the condition number $\kappa$), the performance advantage of DASVRG becomes more pronounced.

Discussion and Limitations

While DASVRG is communication-optimal, it introduces a serial bottleneck during the stochastic update phase, where $m-1$ machines remain idle. Additionally, the method requires machines to have sufficient memory to store their partition plus a small amount of auxiliary data. Future research could investigate parallelizing the stochastic updates without compromising communication efficiency or explore higher-order methods that might bypass the first-order lower bound.

Conclusion

DSVRG and DASVRG represent a significant step forward in distributed optimization. By focusing on communication complexity and matching theoretical lower bounds, these algorithms provide a robust and efficient solution for training large-scale machine learning models in bandwidth-constrained environments.

Summary updated

BibTeX
@misc{lee2015distributed,
  author = {Jason D. Lee and Tengyu Ma and Qihang Lin},
  title = {{Distributed Stochastic Variance Reduced Gradient Methods}},
  year = {2015},
  eprint = {1507.07595},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1507.07595},
}
Figure