Parallel Coordinate Descent for L1-Regularized Loss Minimization

Joseph K. Bradley, Aapo Kyrola, Danny Bickson, Carlos Guestrin

TL;DR

This paper introduces Shotgun, a parallel coordinate descent algorithm designed to tackle $L_1$-regularized optimization problems like Lasso and sparse logistic regression. Defying the common wisdom that coordinate descent is inherently sequential, the authors prove that Shotgun achieves near-linear speedups up to a strict, data-dependent limit. Shotgun significantly outperforms existing state-of-the-art solvers on massive, high-dimensional datasets.

What Problem Does This Paper Address?

High-dimensional data—where the number of features ($d$) often dwarfs the number of samples ($n$)—is prevalent in fields ranging from genomics to text analysis. To prevent overfitting and encourage sparse solutions, researchers rely heavily on $L_1$-regularization (e.g., Lasso and sparse logistic regression).

While sequential coordinate descent (often called "Shooting") is highly effective for these problems, it updates only one feature at a time. As datasets grow, this sequential bottleneck becomes problematic. Existing parallel frameworks, like parallel Stochastic Gradient Descent (SGD), typically parallelize across samples, which offers little help when the bottleneck is an overwhelming number of features. The authors set out to answer a fundamental question: Can we safely parallelize coordinate descent across features without causing the algorithm to diverge?

Methods

The authors propose Shotgun, an algorithm that selects $P$ features uniformly at random and updates them simultaneously in parallel.

To understand when and why this works, they analyze the interference between parallel updates. If two features are completely uncorrelated, updating them at the same time causes zero interference. However, if they are highly correlated, parallel updates can cause the algorithm to overshoot the optimum and diverge.

Visualizing how feature correlation impacts parallel updates. Uncorrelated features (left) allow for clean parallel progress, while correlated features (right) lead to conflicting updates.

The core theoretical contribution is proving a convergence bound that depends on the spectral radius ($\rho$) of the feature matrix $A^T A$. This allows them to calculate a problem-specific maximum number of parallel updates, $P^* \approx \frac{d}{\rho}$ (without duplicated features). As long as the number of parallel processors $P$ is less than $P^*$, Shotgun is guaranteed to converge with a linear speedup in the number of iterations.

In practice, to maximize performance on multicore hardware, the authors implemented Shotgun asynchronously, using atomic compare-and-swap operations to update shared state without expensive synchronization locks.

Datasets

The algorithm was evaluated on 35 real and synthetic datasets, categorized into four groups:

  • Sparco: A standard benchmark suite for sparse reconstruction with varying dimensions.
  • Single-Pixel Camera: Dense compressed sensing problems ($n \in [410, 4770], d \in [1024, 16384]$).
  • Sparse Compressed Imaging: Synthetic datasets featuring highly sparse random measurement matrices.
  • Large, Sparse Datasets: Massive real-world problems, including a financial text dataset used to predict stock volatility containing 5 million features and 30,000 samples.
  • Zeta & RCV1: Used specifically for evaluating sparse logistic regression performance under different dimensional regimes ($n \gg d$ vs. $d > n$).

Key Insights and Ideas

  • Parallelism is Governed by Data Geometry: The paper beautifully bridges theory and practice by showing that the potential for parallelizing coordinate descent isn't an arbitrary software engineering constraint—it is fundamentally dictated by the spectral radius ($\rho$) of the data matrix.
  • Predictable Limits to Speedup: The theoretical threshold $P^*$ acts as a reliable guide. If you add more processors than $P^*$, the interference overwhelms the algorithm, and it quickly diverges.
Figure 2. Theory for Shotgun’s P (Theorem 3.2) vs. em- pirical performance for Lasso on two datasets. Y-axis has iterations T until EPt[F(x(T ))] came within 0.5% of F(x∗). Thick red lines trace T for increasing P (until too large P caused divergence). Vertical lines mark P∗. Dotted diago- nal lines show optimal (linear) speedups (partly hidden by solid line in right-hand plot).
  • Complementary to SGD: While SGD excels when the number of samples $n$ is massive, Shotgun shines when the number of features $d$ is massive. They are orthogonal solutions to different scaling challenges.

Key Results

  • Lasso Performance: Shotgun consistently outperformed five state-of-the-art Lasso solvers (including L1_LS, FPC_AS, and SpaRSA) across most large-scale datasets. On the massive 5-million-feature financial dataset, sequential Shooting took ~4,900 seconds, while Shotgun cut that down to under 2,000 seconds.
Runtime comparison of various Lasso solvers against Shotgun ($P=8$). Markers above the diagonal line indicate that Shotgun was faster.
  • Logistic Regression: For sparse logistic regression in the high-dimensional regime ($d > n$), Shotgun CDN converged orders of magnitude faster than standard SGD and parallel SGD variants.
  • Linear Iteration Speedup: In terms of pure algorithmic iterations, Shotgun achieved nearly perfect linear speedups up to $P^*$.

Limitations and Future Work

The primary limitation highlighted by the authors is the "memory wall." While Shotgun achieves an 8x speedup in the number of iterations when using 8 cores, the actual wall-clock runtime speedup is closer to 2x–4x. Because coordinate descent requires frequent, random memory accesses to different columns of the data matrix, it lacks temporal locality, causing the algorithm to be bottlenecked by hardware memory bandwidth and latency rather than raw compute power.

For future work, the authors suggest exploring a hybrid algorithm that combines SGD (parallelized over samples) and Shotgun (parallelized over features) to create an optimization framework capable of scaling simultaneously to massive $n$ and massive $d$.

Summary updated

BibTeX
@inproceedings{bradley2011parallel,
  author = {Joseph K. Bradley and Aapo Kyrola and Danny Bickson and Carlos Guestrin},
  title = {{Parallel Coordinate Descent for L1-Regularized Loss Minimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2011},
  url = {https://openreview.net/forum?id=HybQ0oW_bB},
}
Figure