Randomized Dual Coordinate Ascent with Arbitrary Sampling

Zheng Qu, Peter Richtárik, Tong ZhangarXiv 2014

Introduction

In the landscape of large-scale machine learning, Stochastic Dual Coordinate Ascent (SDCA) has emerged as a cornerstone for solving regularized empirical risk minimization (ERM) problems. While highly effective, traditional SDCA analyses were often constrained by specific sampling regimes—typically picking a single data point uniformly at each iteration. This paper introduces Quartz, a generalized primal-dual algorithm that supports "arbitrary sampling." By providing a unified theoretical framework, Quartz accommodates serial, parallel, and distributed optimization under a single umbrella, offering a more flexible approach to big data challenges.

Problem Statement

Training models on massive datasets requires optimization methods that can scale across diverse hardware architectures. Prior to Quartz, coordinate ascent methods faced three primary limitations:

  1. Rigid Sampling Requirements: Theoretical guarantees were largely restricted to serial updates or specific mini-batch sizes, limiting their applicability to varied parallel environments.
  2. Indirect Convergence Analysis: Most existing proofs focused on the convergence of the dual objective first, subsequently bounding the primal-dual gap. This indirect approach often resulted in complex, loose bounds that did not accurately reflect practical performance.
  3. Distributed Complexity: Extending these methods to distributed systems where data is non-separable (i.e., features are shared across multiple examples) presented significant theoretical hurdles.

Quartz was designed to address these gaps by providing a method flexible enough for any hardware setup—from single-core CPUs to massive clusters—while maintaining a direct and simple proof of convergence.

The Quartz Framework

The Quartz algorithm (named after its authors: Qu, Richtárik, and Zhang) is built upon several key technical innovations:

Arbitrary Sampling

At each iteration, Quartz selects a random subset of dual variables to update. This subset can be chosen according to any user-defined distribution, provided that every example has a non-zero probability of being selected. This flexibility allows the algorithm to adapt to the specific constraints of the underlying hardware or the geometry of the data.

Expected Separable Overapproximation (ESO)

The "secret sauce" of Quartz is the use of ESO parameters ($v_i$). These parameters act as data-informed step sizes that account for the sparsity and overlap of the dataset. If the data is sparse (meaning features do not overlap significantly), Quartz can take more aggressive steps, leading to faster convergence. This formalizes the relationship between data geometry and optimization speed.

Direct Primal-Dual Analysis

Unlike its predecessors, Quartz is analyzed by directly bounding the decrease of the primal-dual error in expectation. This approach yields a cleaner linear convergence rate and provides a more transparent measure of success for practitioners.

Key Insights and Theoretical Results

Linear Convergence

The authors prove that Quartz achieves a linear convergence rate: $$E[P(w^t) - D(\alpha^t)] \le (1 - \theta)^t \epsilon_0$$ where $P(w^t) - D(\alpha^t)$ represents the primal-dual gap at iteration $t$. This result matches the best-known bounds for serial SDCA while extending them to the arbitrary sampling setting.

Data-Driven Speedups

Quartz provides a theoretical foundation for "data-driven speedups." In mini-batch settings, the algorithm predicts that if one selects $\tau$ examples that are feature-disjoint, a perfect $\tau$-fold speedup is achieved. The theory effectively interpolates between perfectly sparse and fully dense data, allowing for accurate performance predictions across different datasets.

Importance Sampling

By utilizing non-uniform sampling distributions—specifically importance sampling based on the norm of data points—Quartz can significantly outperform uniform sampling. This is particularly beneficial for unbalanced datasets where certain examples carry more information than others.

Experimental Validation

The authors validated Quartz using several large-scale benchmarks, including astro-ph, CCAT, cov1, w8a, ijcnn1, and webspam. These datasets represent a wide spectrum of sizes, feature counts, and sparsity levels.

The experiments confirmed that the theoretical speedup factors derived in the paper are remarkably accurate predictors of actual wall-clock performance. While the theoretical primal update rule in Quartz is somewhat conservative to ensure stability across all sampling distributions, the algorithm remains highly competitive. In practice, increasing the "aggressiveness" of the update (e.g., Quartz-100$\theta$) allows it to match or exceed the performance of state-of-the-art methods like Prox-SDCA.

Conclusion and Future Work

Quartz represents a significant step forward in unifying stochastic coordinate methods. It provides the first distributed SDCA-like method with a robust analysis for non-separable data and offers a predictive theory that aligns closely with empirical results.

However, some avenues for improvement remain. Quartz is currently a "standard" stochastic method and does not yet incorporate Nesterov-style acceleration. Future research into "Accelerated Quartz" could potentially yield even faster convergence rates ($1/t^2$) for non-strongly convex problems. Additionally, while the ESO parameters provide great flexibility, they require a pre-processing pass over the data, which adds a minor overhead to the training pipeline.

Summary updated

BibTeX
@misc{qu2014randomized,
  author = {Zheng Qu and Peter Richtárik and Tong Zhang},
  title = {{Randomized Dual Coordinate Ascent with Arbitrary Sampling}},
  year = {2014},
  eprint = {1411.5873},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.5873},
}
Figure