[Paper Review] Performance Analysis and Comparison of Distributed Machine Learning Systems
This paper presents a systematic performance analysis of three distributed deep learning training architectures—Parameter Server (PS), Peer-to-Peer (P2P), and Ring Allreduce (RA)—using analytical modeling and empirical evaluation with TensorFlow and Horovod. It demonstrates that RA achieves superior scalability and performance by efficiently overlapping computation and communication and decoupling network usage from the number of workers, while PS and P2P suffer from network congestion and load imbalance.
Deep learning has permeated through many aspects of computing/processing systems in recent years. While distributed training architectures/frameworks are adopted for training large deep learning models quickly, there has not been a systematic study of the communication bottlenecks of these architectures and their effects on the computation cycle time and scalability. In order to analyze this problem for synchronous Stochastic Gradient Descent (SGD) training of deep learning models, we developed a performance model of computation time and communication latency under three different system architectures: Parameter Server (PS), peer-to-peer (P2P), and Ring allreduce (RA). To complement and corroborate our analytical models with quantitative results, we evaluated the computation and communication performance of these system architectures of the systems via experiments performed with Tensorflow and Horovod frameworks. We found that the system architecture has a very significant effect on the performance of training. RA-based systems achieve scalable performance as they successfully decouple network usage from the number of workers in the system. In contrast, 1PS systems suffer from low performance due to network congestion at the parameter server side. While P2P systems fare better than 1PS systems, they still suffer from significant network bottleneck. Finally, RA systems also excel by virtue of overlapping computation time and communication time, which PS and P2P architectures fail to achieve.
Motivation & Objective
- To identify and analyze communication bottlenecks in distributed deep learning training systems.
- To compare the performance of three major system architectures—Parameter Server (PS), Peer-to-Peer (P2P), and Ring Allreduce (RA)—in terms of latency and throughput.
- To investigate how system architecture affects scalability and network utilization during synchronous SGD training.
- To evaluate the overlap between computation and communication time across architectures.
- To provide practical guidance for selecting system architectures and configurations based on hardware and workload characteristics.
Proposed method
- Developed analytical performance models for computation and communication latency in PS, P2P, and RA architectures.
- Modeled total training epoch time as the sum of computation time and communication time, with communication time dependent on data volume and network topology.
- Used TensorFlow and Horovod frameworks to conduct empirical experiments on MNIST dataset to measure throughput and latency.
- Measured performance across varying numbers of workers and parameter server configurations (1PS, 2PS, 4PS) to assess scalability.
- Evaluated communication-computation overlap efficiency, a key factor in training system performance.
- Corroborated analytical models with quantitative experimental results to validate findings on network congestion and performance bottlenecks.
Experimental results
Research questions
- RQ1How do communication bottlenecks differ across PS, P2P, and RA architectures in distributed DNN training?
- RQ2What is the impact of system architecture on training throughput and latency in synchronous SGD?
- RQ3To what extent can communication and computation be overlapped in PS, P2P, and RA systems?
- RQ4How does network congestion scale with the number of workers in PS and P2P systems compared to RA?
- RQ5What architectural choices lead to better scalability and efficient use of network bandwidth in distributed training?
Key findings
- Ring Allreduce (RA) systems achieve scalable performance by decoupling network usage from the number of workers, enabling linear throughput scaling.
- 1PS systems suffer from severe network congestion at the parameter server, leading to poor scalability and non-linear throughput growth.
- P2P systems perform better than 1PS but still face significant network bottlenecks due to shared bandwidth and lack of efficient communication patterns.
- RA systems achieve higher communication-computation overlap than PS and P2P, reducing idle time and improving overall efficiency.
- PS and P2P systems exhibit load imbalance among workers due to varying tensor sizes across DNN layers, exacerbating communication bottlenecks.
- Empirical results with TensorFlow and Horovod confirm that RA outperforms PS and P2P in both throughput and latency, especially at scale.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.