PASSCoDe: Parallel ASynchronous Stochastic dual Co-ordinate Descent

Cho-Jui Hsieh, Hsiang-Fu Yu, Inderjit S. Dhillon

This paper introduces PASSCoDe, a framework designed to bring the speed of asynchronous parallelism to one of the most popular optimization algorithms in machine learning: Stochastic Dual Coordinate Descent (DCD). By cleverly managing the relationship between primal and dual variables, PASSCoDe achieves near-linear speedups on multi-core systems while maintaining strong theoretical convergence guarantees.

The Synchronization Bottleneck

Many core machine learning models—like Support Vector Machines (SVMs) and Logistic Regression—are solved using $\ell_2$-regularized empirical risk minimization. The "gold standard" for solving these at scale is Stochastic Dual Coordinate Descent (DCD), the engine behind the widely used LIBLINEAR library.

DCD is fast because it maintains a "primal-dual relationship," keeping a version of the model weights ($w$) in memory to avoid expensive data scans. However, parallelizing DCD is tricky:

  1. Synchronous methods (like CoCoA) force threads to wait for each other, creating bottlenecks.
  2. Asynchronous methods often struggle to maintain the $w$ vector correctly. If multiple threads update $w$ at the same time without locking, they might overwrite each other's work (a "race condition"), leading to divergence or incorrect results.

The authors tackle the challenge of how to maintain this primal-dual relationship in a high-speed, asynchronous, multi-core environment.

The PASSCoDe Framework

The authors propose PASSCoDe (Parallel ASynchronous Stochastic dual Co-ordinate Descent) and explore three implementation strategies that trade off between strict memory consistency and raw speed:

Trade-off between scaling and serializability across different synchronization strategies.
  • PASSCoDe-Lock: Uses traditional mutex locks to prevent memory conflicts. While safe, the overhead of locking makes it slower than even a single-threaded serial solver.
  • PASSCoDe-Atomic: Uses "atomic" hardware instructions to update the model weights. This ensures that updates aren't "lost" but allows threads to read slightly stale data. The authors prove that this version still achieves linear convergence.
  • PASSCoDe-Wild: The "Hogwild!" approach—no locks, no atomic operations. It is the fastest version but allows for potential memory conflicts where some updates to $w$ are simply lost.

The "Aha!" Moment in Theory: To justify the "Wild" version, the authors use backward error analysis, a technique from numerical analysis. They show that the solution PASSCoDe-Wild converges to is actually the exact solution to a slightly "perturbed" version of the original problem. Essentially, the noise from the race conditions acts like a slight change to the model's regularizer.

Key Results and Insights

The researchers evaluated PASSCoDe on five standard large-scale benchmark datasets (news20, covtype, rcv1, webspam, kddb), representing a mix of high-dimensional sparse data and lower-dimensional dense data.

Performance comparison of PASSCoDe variants against CoCoA and LIBLINEAR across multiple datasets.
  • Significant Speedups: PASSCoDe-Wild and PASSCoDe-Atomic achieved 6x to 8x speedups using 10 threads across all datasets.
  • Beating the State-of-the-Art: On the webspam dataset, PASSCoDe-Wild reached 99% accuracy in just 1.6 seconds, whereas the synchronized CoCoA algorithm took 11.5 seconds, and the standard serial LIBLINEAR took 10 seconds.
  • Accuracy Preservation: Despite the "wild" updates, the final prediction accuracy of PASSCoDe-Wild was virtually identical to the serial version, confirming that the "perturbation" caused by race conditions is negligible in practice.
  • Primal-Dual Maintenance is Key: The main reason previous asynchronous coordinate descent methods were slow is that they didn't maintain the primal vector $w$. PASSCoDe shows that even if $w$ is updated "dirtily," the speed gains from having it in memory far outweigh the "noise" introduced by asynchrony.

Limitations and Future Work

While the authors proved that PASSCoDe-Wild solves a "perturbed" problem, strictly bounding the size of that perturbation (how much the race conditions actually change the regularizer) remains a task for future research. Additionally, the speedup is slightly less impressive on very dense datasets (like covtype) compared to sparse ones, as the frequency of memory conflicts increases when features overlap heavily. Finally, this work is optimized for shared-memory multi-core systems; extending these specific "wild" primal-dual maintenance tricks to a distributed cluster with high network latency presents a different set of challenges.

Summary updated

BibTeX
@inproceedings{hsieh2015passcode,
  author = {Cho-Jui Hsieh and Hsiang-Fu Yu and Inderjit S. Dhillon},
  title = {{PASSCoDe: Parallel ASynchronous Stochastic dual Co-ordinate Descent}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
  url = {https://openreview.net/forum?id=S1WkSjZO-B},
}
Figure