Abstract
Large models are prevalent in modern machine learning scenarios, including deep learning, recommender systems, etc., which can have millions or even billions of parameters. Parallel algorithms have become an essential solution technique to many large-scale machine learning jobs. In this paper, we propose a model parallel proximal stochastic gradient algorithm, AsyB-ProxSGD, to deal with large models using model parallel blockwise updates while in the meantime handling a large amount of training data using proximal stochastic gradient descent (ProxSGD). In our algorithm, worker nodes communicate with the parameter servers asynchronously, and each worker performs proximal stochastic gradient for only one block of model parameters during each iteration. Our proposed algorithm generalizes ProxSGD to the asynchronous and model parallel setting. We prove that AsyB-ProxSGD achieves a convergence rate of $O(1/\sqrt{K})$ to stationary points for nonconvex problems under constant minibatch sizes, where $K$ is the total number of block updates. Furthermore, we show that when the number of workers is bounded by $O(K^{1/4})$, we can expect AsyB-ProxSGD to achieve linear speedup as the number of workers increases. We implement the proposed algorithm on MXNet and demonstrate its convergence behavior and near-linear speedup on a real-world dataset involving both a large model size and large amounts of data.
Introduction
Modern machine learning faces a dual challenge of scale: massive datasets and massive models. While Stochastic Gradient Descent (SGD) addresses data scale and model parallelism addresses model size, combining them in an asynchronous environment—where workers do not wait for global synchronization—presents significant theoretical and practical hurdles. This paper introduces AsyB-ProxSGD, an algorithm that integrates model parallelism with asynchronous proximal stochastic gradient descent for nonconvex, nonsmooth optimization problems.
Methodology: AsyB-ProxSGD
The proposed algorithm, Asynchronous Block Proximal Stochastic Gradient Descent (AsyB-ProxSGD), operates by partitioning model parameters into $M$ blocks stored across multiple parameter servers. Workers operate independently, pulling a subset of (potentially stale) parameters, computing a stochastic gradient for a single block, and pushing the update back. The parameter servers then apply a proximal operator to handle nonsmooth regularizers (e.g., $L_1$ penalties). This process follows a Partially Asynchronous Protocol (PAP), which assumes a maximum bounded staleness $T$ for updates.
Theoretical Convergence and Speedup
A key contribution of this work is the theoretical guarantee of convergence. The authors prove that AsyB-ProxSGD achieves a convergence rate of $O(1/\sqrt{K})$ for nonconvex objectives, matching the performance of optimal synchronous methods. Furthermore, they establish that linear speedup is achievable provided the number of workers remains within $O(K^{1/4})$, offering a theoretical foundation for scaling distributed training systems.
Experimental Evaluation
The algorithm was evaluated using the Avazu click-through rate prediction dataset, featuring over 14 million samples and 1 million features. The implementation on MXNet demonstrated robust performance in a distributed cloud environment.
As illustrated in Figure 1, increasing the number of workers leads to significant reductions in wall-clock time. With 8 workers, the system achieved an 8.9x wall-clock time speedup. This super-linear speedup is attributed to reduced communication contention and improved resource utilization when the model is distributed across more servers.
Experiments also highlighted the importance of server-side scaling. Figure 4 shows that increasing the number of parameter servers is crucial for maintaining performance, as it prevents the update process from becoming a bottleneck due to long request queues. This demonstrates that for large-scale models, scaling the storage and update infrastructure is as vital as scaling compute workers.
Conclusion
AsyB-ProxSGD provides a theoretically sound and practically efficient approach to training large-scale models. By bridging the gap between model parallelism and asynchronous proximal methods, it enables efficient scaling on modern distributed hardware. Future research directions include the integration of adaptive step sizes and communication-efficient gradient compression techniques.
Summary updated