A General Distributed Dual Coordinate Optimization Framework for Regularized Loss Minimization

Shun Zheng, Jialei Wang, Fen Xia, Wei Xu, Tong Zhang

Abstract

Distributed training for regularized loss minimization (RLM) is a cornerstone of large-scale machine learning. However, adapting efficient single-machine methods like Stochastic Dual Coordinate Ascent (SDCA) to distributed environments often faces challenges in theoretical grounding and performance under weak regularization. This paper introduces a novel distributed dual formulation that treats synchronization as an intrinsic part of the optimization process. We propose Distributed Alternating Dual Maximization (DADM) and its accelerated version (Acc-DADM). Our framework is solver-agnostic and demonstrates superior convergence speed and scalability compared to state-of-the-art methods like CoCoA+, especially in poorly conditioned scenarios.

Introduction

In the era of big data, machine learning models are frequently trained on datasets that exceed the memory capacity of a single machine. Data parallelism, where data is partitioned across a cluster, is the standard approach. The primary challenge in this setting is balancing local computation with global communication. While methods like DisDCA and CoCoA have attempted to address this, they often lack a unified theoretical foundation for practical variants or are restricted to specific regularization types (e.g., $L_2$).

We address these limitations by reformulating the RLM problem specifically for distributed systems. By incorporating data partitioning directly into the primal objective, the resulting dual problem naturally dictates the necessary communication steps for synchronization. This approach ensures that the "local" work and "global" consensus are mathematically integrated rather than being treated as separate heuristic steps.

Methodology

Distributed Alternating Dual Maximization (DADM)

DADM is derived from a constrained minimization approach. It operates through a two-step iterative process:

  1. Local Optimization Step: Each node independently optimizes a local dual objective using its assigned data slice. A significant advantage of DADM is its flexibility; it can utilize any local solver, such as prox-SDCA, allowing for hardware-specific optimizations.
  2. Global Synchronization Step: Nodes communicate to synchronize local parameters, updating the global model state to maintain consistency across the cluster.

Accelerated DADM (Acc-DADM)

To further enhance performance, we generalize Nesterov-style acceleration to the distributed dual setting. Acc-DADM introduces an "inner-outer" iteration structure. At each step, the objective is modified with a momentum term. This term acts as a stabilizer, preventing local models from drifting too far from the global consensus. This stabilization is particularly effective when the regularization parameter $\lambda$ is small, which typically makes the optimization problem poorly conditioned and prone to slow convergence in standard distributed methods.

Experimental Evaluation

We evaluated the DADM framework against several large-scale datasets from the LIBSVM repository, representing various data characteristics:

  • HIGGS: 11 million dense samples.
  • covtype: 581,012 medium-density samples.
  • rcv1: 677,399 sparse samples.
  • kdd2010: 19.2 million extremely high-dimensional and sparse samples.

Key Results

Our experiments demonstrate that Acc-DADM consistently outperforms CoCoA+ and basic DADM. The performance gap is most significant under weak regularization (e.g., $\lambda = 10^{-7}$), where CoCoA+ often struggles to converge.

Furthermore, the framework exhibits near-linear scalability. When tested on up to 160 nodes, the number of communication rounds required to reach target accuracy remains relatively stable, indicating high communication efficiency. By allowing for more intensive local computation (larger mini-batches), DADM reduces the frequency of network synchronization, which is the primary bottleneck in distributed environments.

Discussion and Insights

The success of DADM stems from its fundamental reformulation of the optimization problem. By making data partitioning a first-class citizen in the math, the communication steps become a natural consequence of the dual optimization. Additionally, the framework's ability to handle complex regularization, such as the Elastic Net ($L_2-L_1$), makes it highly versatile for high-dimensional datasets where sparsity is desired.

The acceleration in Acc-DADM serves a dual purpose: it provides momentum for faster convergence and acts as an additional regularization term that enforces global consensus. This makes the system robust against the "drift" often seen in distributed stochastic methods.

Conclusion and Future Work

The DADM framework provides a robust and scalable solution for distributed RLM. While highly effective, there are avenues for further improvement. Currently, the acceleration parameter $\kappa$ is chosen empirically; developing a theoretical rule for its selection would enhance the framework's usability. Additionally, the current synchronous nature of the algorithm makes it susceptible to "stragglers" in heterogeneous clusters. Future research into asynchronous variants of DADM could address these bottlenecks. Finally, exploring the relationship between local work intensity and the effectiveness of the momentum parameter $\eta$ could lead to even more efficient distributed optimization strategies.

Summary updated

BibTeX
@article{zheng2017general,
  author = {Shun Zheng and Jialei Wang and Fen Xia and Wei Xu and Tong Zhang},
  title = {{A General Distributed Dual Coordinate Optimization Framework for Regularized Loss Minimization}},
  journal = {J. Mach. Learn. Res.},
  year = {2017},
}
Figure