Abstract
Many machine learning models, such as logistic regression (LR) and support vector machine (SVM), can be formulated as composite optimization problems. Recently, many distributed stochastic optimization (DSO) methods have been proposed to solve large-scale composite optimization problems, showing better performance than traditional batch methods. However, most of these DSO methods lack sufficient scalability. In this paper, we propose a novel DSO method called SCOPE (Scalable Composite Optimization for Learning) and implement it on the fault-tolerant distributed platform Apache Spark. SCOPE is designed to be both computation-efficient and communication-efficient. Theoretical analysis demonstrates that SCOPE achieves a linear convergence rate when the objective function is convex. Empirical results on real-world datasets show that SCOPE outperforms state-of-the-art distributed learning methods on Spark, including both batch learning methods and other DSO methods.
Introduction
In the era of "Big Data," machine learning models like Logistic Regression (LR) and Support Vector Machines (SVM) are often formulated as composite optimization problems—finding optimal parameters by minimizing a loss function across millions or billions of data points. While Stochastic Optimization (SO) is the gold standard for these problems, traditional sequential versions cannot handle massive datasets stored across clusters.
Existing Distributed Stochastic Optimization (DSO) methods often encounter two primary obstacles:
- Communication Bottlenecks: Many methods require workers to communicate with a central master node after every small mini-batch, leading to significant network latency.
- Platform Mismatch: Popular frameworks like Apache Spark utilize a Bulk Synchronous Parallel (BSP) model, which is often incompatible with the fine-grained, asynchronous updates required by some advanced optimization algorithms.
SCOPE was developed to address these issues, providing a method that is both computation-efficient and communication-efficient while fitting seamlessly into Spark’s architecture.
Methodology
SCOPE is built on a Master-Worker framework and draws inspiration from Stochastic Variance Reduced Gradient (SVRG). It introduces three critical modifications to ensure scalability:
- Local Stochastic Optimization: Unlike standard distributed SVRG, SCOPE workers perform many iterations of stochastic optimization locally on their own subset of data. This drastically reduces the frequency of cluster-wide synchronizations.
- Proximal Term (The "c" Parameter): To handle non-IID data distributions where local data may differ significantly from the global set, SCOPE adds a term $c(u_{k,m} - w_t)$ to the local update rule. This acts as a "leash," ensuring local updates do not drift too far from the global parameter.
- Efficient Synchronization: The algorithm synchronizes only twice per outer iteration: once to compute a full gradient and once to average the locally updated parameters. This fits the MapReduce/BSP model of Spark perfectly.
Experimental Setup
The authors evaluated SCOPE on four large-scale datasets:
- MNIST-8M: 8.1 million instances of handwritten digits.
- epsilon: 400,000 instances with 2,000 features.
- KDD12: 73 million instances and 1.4 million features.
- Data-A: 106 million instances (260GB).
Key Results and Insights
SCOPE consistently outperformed state-of-the-art baselines, including MLlib (L-BFGS), Splash, and CoCoA+. On the KDD12 dataset, SCOPE reached high-accuracy solutions significantly faster than its competitors.
One of the most striking results was the observation of super-linear speedup. As shown in the scalability analysis, doubling the number of cores more than doubled the processing speed. The authors attribute this to better cache hit ratios when data is partitioned across more machines' local memories.
Furthermore, SCOPE demonstrated high stability. Unlike methods like Splash, which can show high variance during training, SCOPE’s objective value decreased smoothly, confirming its effectiveness as a variance-reduction method.
Conclusion and Future Work
SCOPE provides a robust solution for distributed composite optimization by prioritizing communication efficiency. While the current theoretical proofs rely on strong convexity and the implementation is synchronous, the method sets a high bar for performance on Spark. Future research may explore asynchronous versions of SCOPE to further mitigate the impact of "straggler" nodes in heterogeneous clusters.
Summary updated