Skip to main content
QUICK REVIEW

[Paper Review] PASSCoDe: Parallel ASynchronous Stochastic dual Co-ordinate Descent

Cho‐Jui Hsieh, Hsiang‐Fu Yu|arXiv (Cornell University)|Apr 6, 2015
Stochastic Gradient Optimization TechniquesComputer Science29 references41 citations
TL;DR

This paper proposes PASSCoDe, a family of asynchronous parallel stochastic dual coordinate descent algorithms that maintain primal variables in shared memory to enable fast, scalable training of $\ell_2$-regularized models. By avoiding locks and using atomic operations, PASSCoDe achieves linear convergence (with atomic writes) and backward error analysis (without locks), outperforming prior parallel solvers in speed and scalability on large datasets.

ABSTRACT

Stochastic Dual Coordinate Descent (SDCD) has become one of the most efficient ways to solve the family of $\ell_2$-regularized empirical risk minimization problems, including linear SVM, logistic regression, and many others. The vanilla implementation of DCD is quite slow; however, by maintaining primal variables while updating dual variables, the time complexity of SDCD can be significantly reduced. Such a strategy forms the core algorithm in the widely-used LIBLINEAR package. In this paper, we parallelize the SDCD algorithms in LIBLINEAR. In recent research, several synchronized parallel SDCD algorithms have been proposed, however, they fail to achieve good speedup in the shared memory multi-core setting. In this paper, we propose a family of asynchronous stochastic dual coordinate descent algorithms (ASDCD). Each thread repeatedly selects a random dual variable and conducts coordinate updates using the primal variables that are stored in the shared memory. We analyze the convergence properties when different locking/atomic mechanisms are applied. For implementation with atomic operations, we show linear convergence under mild conditions. For implementation without any atomic operations or locking, we present the first {\it backward error analysis} for ASDCD under the multi-core environment, showing that the converged solution is the exact solution for a primal problem with perturbed regularizer. Experimental results show that our methods are much faster than previous parallel coordinate descent solvers.

Motivation & Objective

  • Address the challenge of efficiently parallelizing the highly optimized serial DCD algorithm used in LIBLINEAR for shared-memory multi-core systems.
  • Overcome the limitations of synchronized parallel DCD methods, which suffer from poor speedup due to communication and synchronization overhead.
  • Design an asynchronous parallel DCD algorithm that maintains both primal and dual variables to preserve the efficiency of the original DCD method.
  • Analyze convergence and error bounds for different synchronization strategies—locking, atomic operations, and lock-free execution—under shared memory constraints.
  • Demonstrate that the proposed method achieves superior speedup and convergence performance compared to existing parallel and serial solvers on large-scale datasets.

Proposed method

  • Propose three variants: PASSCoDe-Lock (with mutex locking), PASSCoDe-Atomic (using atomic writes to enforce primal-dual consistency), and PASSCoDe-Wild (lock-free, no atomic operations).
  • Each thread independently selects a random dual variable and updates it using the current shared primal variable $\boldsymbol{w}$, which is updated in real time across threads.
  • Enforce the primal-dual relationship $\boldsymbol{w} = \sum_i \alpha_i \boldsymbol{x}_i$ via atomic operations in PASSCoDe-Atomic and via error analysis in PASSCoDe-Wild.
  • Use backward error analysis to show that PASSCoDe-Wild converges to the exact solution of a perturbed primal problem with a modified regularizer.
  • Implement a parallel initialization phase to ensure fair comparison with other solvers, including CoCoA and AsySCD.
  • Exclude initialization time from speedup calculations to fairly evaluate computational efficiency across methods.

Experimental results

Research questions

  • RQ1Can we design an asynchronous parallel DCD algorithm that maintains both primal and dual variables to preserve the efficiency of the serial DCD method?
  • RQ2Does the use of atomic operations in PASSCoDe-Atomic guarantee linear convergence under mild conditions?
  • RQ3What is the theoretical impact of using a lock-free approach (PASSCoDe-Wild) on the final solution quality, and how close is it to the optimal solution?
  • RQ4How does the performance of PASSCoDe compare to existing parallel solvers like CoCoA and AsySCD in terms of convergence speed and scalability?
  • RQ5Can PASSCoDe achieve high speedup (e.g., 6–8× on 10 cores) without sacrificing solution quality on large-scale datasets?

Key findings

  • PASSCoDe-Wild achieves 6–8× speedup over the best serial reference (LIBLINEAR DCD) using 10 cores across all datasets, demonstrating superior scalability.
  • PASSCoDe-Wild is slightly faster than PASSCoDe-Atomic due to reduced overhead from atomic operations, with the performance gap increasing on denser datasets.
  • AsySCD is orders of magnitude slower than PASSCoDe and LIBLINEAR, even with 10 cores, and fails to scale beyond small datasets like news20 due to high memory usage.
  • PASSCoDe-Atomic shows linear convergence under mild conditions, validating its theoretical robustness.
  • PASSCoDe-Wild converges to the exact solution of a primal problem with a perturbed regularizer, proving its solution quality is close-to-optimal.
  • CoCoA performs competitively in early accuracy but eventually converges to the same objective as LIBLINEAR, while PASSCoDe outperforms it in both speed and final objective value.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.