Distributed Mini-Batch SDCA

Martin Takác, Peter Richtárik, Nathan SrebroarXiv 2015

Abstract: We present an improved analysis of mini-batched stochastic dual coordinate ascent for regularized empirical loss minimization (i.e. SVM and SVM-type objectives). Our analysis allows for flexible sampling schemes, including where data is distribute across machines, and combines a dependence on the smoothness of the loss and/or the data spread (measured through the spectral norm).

Introduction

Stochastic optimization methods, particularly Stochastic Dual Coordinate Ascent (SDCA), have become staples in machine learning for training models like Support Vector Machines (SVMs). By updating a model using a single randomly chosen data point at each step, these methods achieve high efficiency on large datasets. However, the sequential nature of standard SDCA presents a significant bottleneck in modern high-performance computing environments where parallel processing across multiple CPU cores or distributed machines is required.

To address this, researchers often employ mini-batching: processing multiple data points simultaneously and aggregating their updates. The primary challenge in mini-batching is "overshooting," where independent updates on similar data points combine to push the model away from the optimum. This paper provides a refined theoretical analysis of mini-batch SDCA (mSDCA), demonstrating that by accounting for both loss smoothness and the spectral norm of the data, significant parallel speedups can be achieved without sacrificing convergence rates.

The mSDCA Framework

The authors introduce mSDCA, a variant of SDCA designed for parallel and distributed environments. The algorithm is analyzed using the Expected Separable Overapproximation (ESO) framework, which allows for a more nuanced understanding of how parallel updates interact.

Algorithm 1: The mSDCA algorithm for minibatch stochastic dual coordinate ascent.

Key technical components of the method include:

  • Weighted Updates: Rather than standard updates, mSDCA utilizes a relaxed update rule governed by a weight vector ($v$). These weights are derived from data properties to prevent updates from "clashing" during parallel execution.
  • Flexible Sampling: The analysis moves beyond simple global random sampling to include Distributed Sampling. This accurately models real-world clusters where data is partitioned across $C$ machines, and each machine independently selects a local mini-batch.
  • Spectral Norm Integration: The analysis incorporates the spectral norm ($\sigma^2$) of the data matrix, which measures the degree of overlap or "clumping" among data points. This allows for a tighter bound on the safe mini-batch size.

Empirical Evaluation

The approach was evaluated on four standard LIBSVM benchmarks: epsilon (dense, 400k samples), rcv1 (sparse text categorization), news20 (high-dimensional, 1.3M features), and real-sim. These datasets represent a range of sparsity and dimensionality, providing a robust test for the theoretical claims.

Empirical performance of mSDCA across various datasets and distribution settings, showing linear speedups and comparisons with CoCoA+.

Key Findings

  1. Linear Speedup and Data Spread: The theory suggests that linear speedups are achievable as long as the mini-batch size ($b$) remains below the inverse of the spectral norm ($1/\sigma^2$). Experiments confirm that increasing $b$ reduces the required iterations almost linearly up to this threshold.
  2. Distributed Efficiency: A critical insight is that partitioning data across machines (distributed sampling) has a negligible impact on the total number of iterations required. As shown in the results for rcv1 and news20, convergence behavior remains consistent whether data is processed on 1 machine or 16, provided the total mini-batch size is constant.
  3. Comparison with CoCoA+: When compared to the CoCoA+ framework—a popular general framework for distributed dual optimization—the specialized analysis for mSDCA provides strictly better convergence guarantees for the same problem class.

Conclusion

This work demonstrates that distributed mini-batch SDCA is a highly effective tool for large-scale regularized empirical loss minimization. By leveraging the spectral norm of the data, practitioners can determine optimal mini-batch sizes that maximize parallel efficiency. While communication overhead remains a practical consideration for very small local mini-batches, the theoretical foundation provided here justifies the broad application of SDCA in large-scale distributed clusters.

Summary updated

BibTeX
@misc{takac2015distributed,
  author = {Martin Takác and Peter Richtárik and Nathan Srebro},
  title = {{Distributed Mini-Batch SDCA}},
  year = {2015},
  eprint = {1507.08322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1507.08322},
}
Figure