An Asynchronous Parallel Stochastic Coordinate Descent Algorithm

Ji Liu, Stephen J. Wright, Christopher Ré, Victor Bittorf, Srikrishna Sridhar

Introduction

In the era of big data, optimization problems—such as training Support Vector Machines (SVMs) or Logistic Regression models—often involve millions of variables. While parallel computing is a natural solution, traditional parallel algorithms require strict synchronization. Processor cores must wait for each other to finish a step before moving to the next, creating a massive computational bottleneck.

Previous "lock-free" asynchronous methods, like HOGWILD!, focused primarily on Stochastic Gradient Descent (SGD). This paper tackles Stochastic Coordinate Descent (SCD). In SCD, the algorithm updates only one variable (or coordinate) at a time. The core challenge in parallelizing SCD is managing "staleness": if Core A updates a variable based on a version of the data that Core B is simultaneously changing, will the algorithm still converge, or will the delayed information lead to divergence?

This paper introduces ASYSCD, an asynchronous parallel version of Stochastic Coordinate Descent that allows multiple processor cores to update a shared solution vector simultaneously without expensive synchronization or locking. The authors prove that the algorithm achieves linear convergence for a broad class of "essentially" strongly convex functions and demonstrates near-linear speedups on 40-core systems.

The ASYSCD Algorithm

The authors propose the Asynchronous Stochastic Coordinate Descent (ASYSCD) algorithm, which operates on a shared-memory architecture. The high-level logic proceeds as follows:

  1. Shared Memory: A central vector $x$ is stored in memory accessible by all cores.
  2. Asynchronous Loop: Each core independently and repeatedly:
  3. Randomly selects a coordinate $i$.
  4. Reads the current state of $x$ (which may be slightly "stale" due to concurrent updates by other cores).
  5. Computes the partial derivative (gradient) for that specific coordinate.
  6. Updates that single coordinate in the shared memory using a constant step size.
  7. Delay Bound: The theoretical analysis assumes a maximum "age" or delay ($\tau$) for the updates, representing the maximum number of updates that can occur between a core reading $x$ and writing its update.

A key theoretical contribution of this work is the reliance on "Essential Strong Convexity." This condition is weaker than standard strong convexity, allowing the algorithm to achieve fast, linear convergence even on problems where the solution is not a single unique point (for instance, when the Hessian matrix is rank-deficient).

Performance and Scaling

The authors evaluated their implementation, dubbed DIMMWITTED (DW), across several benchmarks, including synthetic Quadratic Programming (QP) problems, large-scale graph problems (Amazon and DBLP datasets), and standard machine learning benchmarks from LIBSVM (adult, news, rcv, reuters, w8a).

Contrary to concerns that asynchrony might ruin convergence, the authors prove that if the function is essentially strongly convex, the error drops exponentially, mirroring the serial version's linear convergence. Furthermore, the paper identifies a theoretical "sweet spot" for parallelism: near-linear speedup is expected as long as the number of processors is roughly $O(n^{1/2})$ for unconstrained problems and $O(n^{1/4})$ for constrained ones.

In practice, ASYSCD significantly outperformed traditional synchronous methods and established solvers. On the news dataset, ASYSCD finished in 7.22 seconds compared to LIBSVM’s 214.48 seconds. Compared to a parallelized synchronous gradient descent approach (SynGD), ASYSCD was roughly 4x to 30x faster, proving that avoiding synchronization barriers yields massive performance gains.

Speedup on Synthetic Unconstrained QP

As shown above, on synthetic dense problems, the algorithm achieved a nearly 30x speedup on 40 cores, demonstrating excellent scaling when memory contention is low.

Hardware Limitations and Future Directions

While the algorithm is theoretically sound for both sparse and dense data, practical hardware limitations play a significant role in real-world performance.

Speedup on Amazon Dataset

On highly sparse datasets like the Amazon graph problem ($n \approx 561k$), speedups leveled off around 12-14 cores. This plateau is not a failure of the algorithm itself, but rather a limitation of modern CPU architectures—specifically, NUMA (Non-Uniform Memory Access) effects and memory bus saturation caused by multiple cores fighting over the same memory channels.

Additionally, the theoretical proof assumes "consistent reads" (meaning a core sees a valid, albeit old, version of the entire vector). In contrast, the practical implementation is truly lock-free and might read "inconsistent" values mid-update. While this lock-free approach worked exceptionally well in practice, bridging this theoretical gap remains an area for future research. The authors also suggest extending the analysis to "block" coordinate descent, where multiple coordinates are updated simultaneously, which could better utilize certain hardware architectures.

Summary updated

BibTeX
@inproceedings{liu2014asynchronous,
  author = {Ji Liu and Stephen J. Wright and Christopher Ré and Victor Bittorf and Srikrishna Sridhar},
  title = {{An Asynchronous Parallel Stochastic Coordinate Descent Algorithm}},
  booktitle = {International Conference on Machine Learning},
  year = {2014},
  url = {https://openreview.net/forum?id=ryZhUiZu-S},
}
Figure