Skip to main content
QUICK REVIEW

[Paper Review] Coordinate Descent Face-Off: Primal or Dual?

Dominik Csiba, Peter Richtárik|arXiv (Cornell University)|May 29, 2016
Stochastic Gradient Optimization TechniquesComputer Science6 references8 citations
TL;DR

This paper provides a rigorous theoretical and empirical comparison of primal and dual randomized coordinate descent (RCD) for L2-regularized empirical risk minimization, showing that data structure—particularly sparsity and feature distribution—can reverse conventional intuition: primal RCD may outperform dual RCD even when n ≫ d, and vice versa. Surprisingly, a single sampling strategy minimizes both iteration count and overall computational complexity.

ABSTRACT

Randomized coordinate descent (RCD) methods are state-of-the-art algorithms for training linear predictors via minimizing regularized empirical risk. When the number of examples ($n$) is much larger than the number of features ($d$), a common strategy is to apply RCD to the dual problem. On the other hand, when the number of features is much larger than the number of examples, it makes sense to apply RCD directly to the primal problem. In this paper we provide the first joint study of these two approaches when applied to L2-regularized ERM. First, we show through a rigorous analysis that for dense data, the above intuition is precisely correct. However, we find that for sparse and structured data, primal RCD can significantly outperform dual RCD even if $d \ll n$, and vice versa, dual RCD can be much faster than primal RCD even if $n \ll d$. Moreover, we show that, surprisingly, a single sampling strategy minimizes both the (bound on the) number of iterations and the overall expected complexity of RCD. Note that the latter complexity measure also takes into account the average cost of the iterations, which depends on the structure and sparsity of the data, and on the sampling strategy employed. We confirm our theoretical predictions using extensive experiments with both synthetic and real data sets.

Motivation & Objective

  • To resolve the long-standing question of whether primal or dual RCD is superior for L2-regularized ERM in different data regimes.
  • To challenge the conventional wisdom that primal RCD is better when n ≫ d and dual RCD when d ≫ n, especially in sparse or structured data.
  • To identify a unified sampling strategy that minimizes both the number of iterations and the overall expected computational complexity of RCD.
  • To provide a theoretical framework that links data structure (sparsity, feature distribution) to the relative performance of primal and dual RCD.
  • To validate theoretical predictions with extensive experiments on synthetic and real-world datasets, including news and leukemia data.

Proposed method

  • Theoretical analysis of RCD convergence rates for both primal and dual formulations of L2-regularized ERM, using smoothness and convexity assumptions on the loss functions.
  • Derivation of convergence bounds dependent on data matrix structure, particularly the spectral properties of X and X^T, leading to a single quantity that determines the performance gap.
  • Introduction of a unified sampling strategy that optimizes both iteration count and overall expected complexity, accounting for sparsity and computational cost per iteration.
  • Empirical evaluation using synthetic data with controlled sparsity (nnz ∈ {1%, 10%, 100%}) and real datasets (news, leukemia) to test theoretical predictions.
  • Runtime comparison based on number of passes through nonzero entries in X, with error tracking over iterations to assess convergence speed.
  • Use of worst-case matrix constructions based on theoretical bounds to test robustness and validate the derived performance metrics.

Experimental results

Research questions

  • RQ1Does the conventional wisdom that primal RCD is better when n ≫ d and dual RCD when d ≫ n hold for all data types, including sparse and structured data?
  • RQ2Can a single sampling strategy minimize both the number of iterations and the overall expected computational complexity of RCD, despite differing costs per iteration?
  • RQ3How does data sparsity and feature distribution (e.g., skewed nonzero patterns) affect the relative performance of primal vs dual RCD?
  • RQ4To what extent do theoretical convergence bounds align with empirical performance on real-world datasets with non-uniform sparsity?
  • RQ5Can the theoretical performance gap between primal and dual RCD be quantified using a single structural quantity derived from the data matrix and its transpose?

Key findings

  • For dense data, the conventional intuition holds: primal RCD outperforms dual RCD when n ≫ d, and dual RCD outperforms primal RCD when d ≫ n.
  • For sparse and structured data, primal RCD can significantly outperform dual RCD even when n ≫ d, and dual RCD can be much faster than primal RCD even when d ≫ n.
  • The performance of primal vs dual RCD is determined by a single structural quantity related to the data matrix and its transpose, which captures the interplay between sparsity and feature distribution.
  • A single sampling strategy minimizes both the bound on the number of iterations and the overall expected complexity of RCD, despite varying per-iteration costs.
  • Empirical results on the news dataset (d ≫ n, 0.03% density) confirm that dual RCD is faster due to skewed feature sparsity, matching theoretical predictions.
  • On the leukemia dataset (d ≫ n, 100% density), primal RCD is faster, with a runtime ratio of T_P / T_D ≈ 0.5, confirming the theoretical superiority of the primal approach in dense settings.

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.