Abstract
The scale of modern datasets necessitates the development of efficient distributed optimization methods for machine learning. We present a general-purpose framework for the distributed environment, CoCoA, that has an efficient communication scheme and is applicable to a wide variety of problems in machine learning and signal processing. We extend the framework to cover general non-strongly convex regularizers, including L1-regularized problems like lasso, sparse logistic regression, and elastic net regularization, and show how earlier work can be derived as a special case. We provide convergence guarantees for the class of convex regularized loss minimization objectives, leveraging a novel approach in handling non-strongly convex regularizers and non-smooth loss functions. The resulting framework has markedly improved performance over state-of-the-art methods, as we illustrate with an extensive set of experiments on real distributed datasets.
Introduction
In the era of "Big Data," training machine learning models often requires distributing the workload across a cluster of machines because a single machine lacks the necessary memory or processing power. However, distributed systems face a significant bottleneck: communication between machines is often orders of magnitude slower than local computation.
Existing methods, such as mini-batch Stochastic Gradient Descent (SGD), attempt to mitigate this by increasing the mini-batch size to reduce communication frequency. Unfortunately, this often leads to a degradation in the mathematical convergence rate, eventually performing no better than simple gradient descent. Furthermore, many distributed algorithms are "brittle," requiring extensive hyperparameter tuning and only supporting specific types of objective functions.
The CoCoA Framework
The authors propose CoCoA (Communication-Efficient Distributed Dual Coordinate Ascent), a primal-dual framework that treats distributed optimization as a series of local subproblems. Instead of calculating a global gradient, each machine solves a simplified quadratic approximation of the global objective using only its local data.
Key technical features include:
- Solver-Agnosticism: CoCoA allows researchers to use any local solver (e.g., coordinate descent, GLMNET, or BLITZ) on individual machines.
- Tolerance for Inexactness: The framework provides convergence guarantees even if local subproblems are only solved approximately. This allows the system to ignore "stragglers" (slow machines) by stopping their local work early.
- Flexible Communication: Users can tune the balance between local computation and global synchronization to adapt to different network speeds.
Versatility Across Objective Functions
A major contribution of CoCoA is its ability to handle a wide variety of optimization problems, including those with non-strongly convex regularizers (like the $L_1$ penalty in Lasso). Rather than using traditional "smoothing" techniques that can alter the final solution, the authors introduced a novel "bounded support modification" that preserves sparsity while satisfying convergence requirements.
As illustrated in the table above, the framework categorizes problems into different cases based on the smoothness of the loss function $\ell$ and the convexity of the regularizer $r$, providing a unified approach for diverse machine learning tasks.
Experimental Evaluation
The framework was evaluated on four large-scale, real-world datasets: url (2M samples), epsilon (400k samples), kddb (19M samples), and webspam (350k samples). These represent a mix of high-dimensional and high-volume data common in web search and recommendation systems.
Key Results
- Significant Speedups: In head-to-head comparisons for Lasso regression, CoCoA outperformed established methods like ADMM, OWL-QN, and mini-batch SGD. On the
webspamdataset, CoCoA converged 50x faster than the next best method. - Scalability: Unlike mini-batch methods, CoCoA’s convergence rate does not degrade as more machines are added to the cluster.
- Robustness: The framework requires minimal tuning. While other methods require careful selection of step sizes, CoCoA’s default parameters provided state-of-the-art performance across all tested datasets.
Limitations and Future Work
While CoCoA is highly effective, its current theoretical guarantees are strictly for convex optimization problems, meaning it does not directly apply to non-convex deep learning models. Additionally, the version presented operates in synchronous rounds, where all machines must finish their local work before a global update. Future research into asynchronous versions and the incorporation of second-order (Hessian) information could further improve performance and mitigate the impact of straggler nodes.
Summary updated