Communication-Efficient Distributed Dual Coordinate Ascent

Martin Jaggi, Virginia Smith, Martin Takác, Jonathan Terhorst, Sanjay Krishnan, Thomas Hofmann, Michael I. Jordan

Abstract

Distributed machine learning often faces a significant bottleneck due to network communication latency. We present COCOA (Communication-efficient distributed dual Coordinate Ascent), a framework designed to minimize communication overhead by allowing worker nodes to perform substantial local computation before synchronizing. Empirical evaluations on diverse datasets demonstrate that COCOA achieves up to a 25x speedup over state-of-the-art mini-batch methods while maintaining rigorous convergence guarantees.

Introduction

In large-scale machine learning, data is typically distributed across a cluster of machines. However, the primary performance constraint in these systems is often the network rather than processor speed. Communicating data between machines can be several orders of magnitude slower than local memory access.

Existing distributed optimization methods, such as mini-batch Stochastic Gradient Descent (SGD) or Stochastic Dual Coordinate Ascent (SDCA), frequently encounter a "communication bottleneck." These methods either synchronize too often, wasting time on network latency, or use excessively large batches to reduce communication, which can lead to poor convergence or algorithmic instability. COCOA addresses this by enabling machines to perform more meaningful local work before inter-node communication is required.

The COCOA Framework

COCOA is a primal-dual framework designed for regularized loss minimization, applicable to models such as Support Vector Machines (SVMs), logistic regression, and ridge regression. The core innovation lies in its handling of the dual optimization problem.

In a dual setting, each data point is associated with a dual variable. Since data is partitioned across $K$ machines, the dual variables are naturally partitioned as well. This allows workers to update their local dual variables in parallel without direct conflicts. Key features include:

  • Local Subproblems: Each machine solves a local version of the global optimization problem using its assigned data subset.
  • Algorithmic Flexibility: COCOA serves as a framework where various dual optimizers (e.g., SDCA) can be utilized as local solvers.
  • Tunable Trade-offs: A parameter $H$, representing the number of local iterations, allows users to balance local computation against global communication.
  • Primal-Dual Mapping: Workers communicate only a single weight vector update to a master node, which aggregates these updates to refine the global model.

Experimental Setup

The framework was evaluated using three diverse real-world datasets on a Spark cluster:

  1. Covtype (cov): 522,911 samples, 54 dense features ($n \gg d$).
  2. rcv1: 677,399 samples, 47,236 sparse features.
  3. imagenet: 32,751 samples, 160,000 high-dimensional features ($n \ll d$).

Key Results and Insights

COCOA demonstrates superior performance across various regimes. A critical theoretical advantage is that COCOA "inherits" the convergence rate of its chosen local optimizer. For instance, if the local solver converges geometrically, the global framework follows suit. Unlike standard mini-batch methods, where convergence rates often degrade with increasing batch size, COCOA’s rate depends on the number of workers ($K$), which is typically much smaller than the batch sizes required for massive distributed systems.

Empirical results highlight significant efficiency gains:

  • Communication Efficiency: By performing $H$ local iterations, COCOA reduces communication frequency by a factor of $H$ compared to naive distributed methods. Figure 1 illustrates that COCOA reaches lower suboptimality with significantly fewer communicated vectors.
  • Wall-Clock Speedup: On average, COCOA reached a 0.001-accurate solution 25 times faster than optimized mini-batch competitors. Figure 4 shows the rapid descent of COCOA in terms of wall-clock time on the Cov dataset.
  • Duality Gap: Working in the dual space provides a "free" stopping criterion through the duality gap, offering a guaranteed certificate of proximity to the optimum.

Discussion and Future Work

While COCOA shows robust performance across sparse, dense, and high-dimensional data, several avenues for future research remain. The current theoretical convergence analysis primarily assumes smooth loss functions. Although experiments show excellent results for non-smooth functions like Hinge Loss, formal proofs for these cases are still being developed. Additionally, exploring more aggressive scaling parameters ($\beta_K > 1$) with "safe update" techniques could further enhance performance. Finally, the success of "Local SGD" in empirical tests suggests that the communication-efficient patterns of COCOA might be adaptable to purely primal optimization methods.

Summary updated

BibTeX
@inproceedings{jaggi2014communication,
  author = {Martin Jaggi and Virginia Smith and Martin Takác and Jonathan Terhorst and Sanjay Krishnan and Thomas Hofmann and Michael I. Jordan},
  title = {{Communication-Efficient Distributed Dual Coordinate Ascent}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2014},
}
Figure