Abstract
Distributed machine learning often suffers from the "straggler problem," where the slowest node bottlenecks the entire cluster under Bulk Synchronous Parallel (BSP) execution. This paper presents ASYNC, a framework built on Apache Spark that enables asynchronous execution and efficient gradient history management. By decoupling worker progress and employing a "history recovery" technique, ASYNC achieves up to a 4x speedup over standard synchronous methods in Spark’s MLlib while maintaining comparable accuracy.
Introduction
In distributed machine learning, the standard "Bulk Synchronous Parallel" (BSP) approach requires every worker to process a batch of data and wait for the entire cluster to finish before updating the model. This synchronization creates a significant bottleneck known as the straggler problem, where a single slow machine or network glitch can stall the entire training process. While asynchronous methods exist, they are difficult to implement on popular cloud engines like Apache Spark. Furthermore, variance-reduced algorithms like SAGA require a history of gradients, which is traditionally expensive to store and communicate in a distributed setting.
The ASYNC Framework
ASYNC extends the Spark API to provide a robust environment for asynchronous distributed learning. It consists of three primary components:
- ASYNCcoordinator: Manages bookkeeping for system-specific parameters (e.g., worker status, staleness) and application-specific task results.
- ASYNCbroadcaster: Facilitates the asynchronous broadcasting of model parameters between the master and individual workers.
- ASYNCscheduler: Implements Customized Consistency Models (CCMs) via a dynamic dependency graph, allowing developers to define staleness thresholds (e.g., limiting how many steps a worker can lead).
History Recovery
A key innovation in ASYNC is the "History Recovery" trick. Instead of broadcasting bulky historical gradients, ASYNC stores previous model parameters on the master. Workers "recover" historical gradients by subtracting recent model parameters from previously broadcasted ones. This mathematical shortcut drastically reduces communication overhead, making algorithms like SAGA practical for large-scale cloud deployments.
Experimental Evaluation
The researchers evaluated ASYNC using three large-scale benchmarks: rcv1_full.binary (851 MB), mnist8m (19 GB), and epsilon (12 GB).
Key Results
- Framework Efficiency: In synchronous mode, ASYNC performs identically to Spark’s native MLlib, indicating no overhead "tax" for the new architecture.
- Resilience to Stragglers: In simulations with controlled delays, asynchronous SGD (ASGD) achieved a 2x speedup over synchronous SGD.
- Real-world Performance: Using straggler patterns derived from production clusters (Google, Microsoft Bing), ASYNC's asynchronous SAGA (ASAGA) outperformed the synchronous version by 3.5x to 4x on the
mnist8mandepsilondatasets. - Reduced Latency: For the
mnist8mdataset, worker wait time dropped from ~42ms per iteration in SAGA to only ~9ms in ASAGA.
Discussion and Conclusion
ASYNC demonstrates that the robustness of Spark can be combined with the high performance of asynchronous parameter servers. By treating gradient history as a reconstructible entity rather than a stored one, ASYNC enables scalable, variance-reduced optimization. While currently focused on linear models, future work involves extending these adaptive consistency models to complex non-linear architectures and further optimizing fault tolerance in highly asynchronous environments.
Summary updated