Collective Communication Performance Evaluation for Distributed Deep Learning Training
Source abstract
Abstract
In distributed deep learning, the improper use of the collective communication library can lead to a decline in deep learning performance due to increased communication time. Representative collective communication libraries such as MPI, GLOO, and NCCL exhibit varying performance based on server environment and communication architecture. In this study, we investigate three key aspects to evaluate the performance of the collective communication libraries in a distributed deep learning setting in an intra-node environment. First, we conduct a comparison and analysis of collective communication library performance within common distributed deep learning architectures, such as parameter servers and ring all-reduce methods. Second, we evaluate the performance of these libraries in different environments, including various container platforms and bare metal setups, considering the scalability and flexibility advantages offered by cloud virtualization. Last, to ensure practicality, we assess the libraries’ performance in a Linux shell and within the PyTorch framework. In the cross-docker virtualization environment, NCCL shows up to 213% higher latency compared to single docker, while GLOO exhibits 36% lower latency in single docker than in cross docker, and NCCL achieves up to 345% lower execution time in all-reduce operations compared to other libraries (MPI and GLOO). These findings will inform the selection of an appropriate collective communication library for designing effective distributed deep learning environments.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Memory and Neural Computing · Ferroelectric and Negative Capacitance Devices · Stochastic Gradient Optimization Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Supercomputing Technology Research Center, Electronics and Telecommunications Research Institute, Daejeon 34054, Republic of Korea
Department of Computer Engineering, Korea Aerospace University, Goyang 10540, Republic of Korea
Funding
National Research Foundation of Korea
References (31)
Show source-provided references
1. SoftMemoryBox II: A Scalable, Shared Memory Buffer Framework for Accelerating Distributed Training of Large-Scale Deep Neural Networks10.1109/ACCESS.2020.3038112 ↗
2. Wu, J., Gan, W., Chen, Z., Wan, S., and Lin, H. (2023). AI-Generated Content (AIGC): A Survey. arXiv.
3. Dryden, N., Maruyama, N., Moon, T., Benson, T., Yoo, A., Snir, M., and Van Essen, B. (2018). Aluminum: An Asynchronous, GPU-Aware Communication Library Optimized for Large-Scale Training of Deep Neural Networks on HPC Systems, Lawrence Livermore National Lab. (LLNL). Technical Report.10.1109/MLHPC.2018.8638639 ↗
4. Gropp, W., Lusk, E., and Skjellum, A. (1999). Using MPI: Portable Parallel Programming with the Message-Passing Interface, MIT Press.10.7551/mitpress/7056.001.0001 ↗
5. Arnold, S. (2017, June 14). Writing Distributed Applications with PyTorch. Available online: https://sebarnold.net/posts/writing_distributed_apps_pytorch_20170614/note.pdf.
6. Nccl 2.0
7. Cho, S., Hong, J., Choi, J., and Han, H. (2019, January 8–12). Multithreaded double queuing for balanced CPU-GPU memory copying. Proceedings of the 34th ACM/SIGAPP Symposium on Applied Computing, Limassol, Cyprus.10.1145/3297280.3297426 ↗
8. (2023, July 16). Infographic: Big Three Dominate the Global Cloud Market—Statista.com. Available online: https://www.statista.com/chart/18819/worldwide-market-share-of-leading-cloud-infrastructure-service-providers/.
9. Lin, C.Y., Pai, H.Y., and Chou, J. (2018, January 19–21). Comparison Between Bare-metal, Container and VM using Tensorflow Image Classification Benchmarks for Deep Learning Cloud Platform. Proceedings of the 8th International Conference on Cloud Computing and Services Science (CLOSER 2018), Funchal, Portugal.10.5220/0006680603760383 ↗
10. Xu, P., Shi, S., and Chu, X. (2017, January 10–11). Performance evaluation of deep learning tools in docker containers. Proceedings of the 2017 3rd International Conference on Big Data Computing and Communications (BIGCOM), Chengdu, China.10.1109/BIGCOM.2017.32 ↗
11. An introduction to docker and analysis of its performance
12. Kurtzer, G.M., Sochat, V., and Bauer, M.W. (2017). Singularity: Scientific containers for mobility of compute. PLoS ONE, 12.10.1371/journal.pone.0177459 ↗
13. Dryden, N., Moon, T., Jacobs, S.A., and Van Essen, B. (2016, January 14). Communication quantization for data-parallel training of deep neural networks. Proceedings of the 2016 2nd Workshop on Machine Learning in HPC Environments (MLHPC), Salt Lake City, UT, USA.10.1109/MLHPC.2016.004 ↗
14. Zhang, H., Zheng, Z., Xu, S., Dai, W., Ho, Q., Liang, X., Hu, Z., Wei, J., Xie, P., and Xing, E.P. (2017, January 12–14). Poseidon: An efficient communication architecture for distributed deep learning on GPU clusters. Proceedings of the 2017 USENIX Annual Technical Conference (USENIX ATC 17), Santa Clara, CA, USA.
15. Parameter server for distributed machine learning
16. Bandwidth optimal all-reduce algorithms for clusters of workstations10.1016/j.jpdc.2008.09.002 ↗
17. Towards an optimized distributed deep learning framework for a heterogeneous multi-GPU cluster10.1007/s10586-020-03144-9 ↗
18. Zhao, Y., Gu, A., Varma, R., Luo, L., Huang, C.C., Xu, M., Wright, L., Shojanazeri, H., Ott, M., and Shleifer, S. (2023). Pytorch FSDP: Experiences on scaling fully sharded data parallel. arXiv.10.14778/3611540.3611569 ↗
19. Awan, A.A., Chu, C.H., Subramoni, H., and Panda, D.K. (2018, January 23–26). Optimized broadcast for deep learning workloads on dense-GPU InfiniBand clusters: MPI or NCCL?. Proceedings of the 25th European MPI Users’ Group Meeting, Barcelona, Spain.10.1145/3236367.3236381 ↗
20. Scalable algorithms for MPI intergroup allgather and allgatherv10.1016/j.parco.2019.04.015 ↗
21. A high-performance, portable implementation of the MPI message passing interface standard10.1016/0167-8191(96)00024-5 ↗
22. Sergeev, A., and Del Balso, M. (2018). Horovod: Fast and easy distributed deep learning in TensorFlow. arXiv.
23. Optimization of collective communication operations in MPICH10.1177/1094342005051521 ↗
24. Graham, R.L., Woodall, T.S., and Squyres, J.M. (2005, January 11–14). Open MPI: A flexible high performance MPI. Proceedings of the Parallel Processing and Applied Mathematics: 6th International Conference, PPAM 2005, Poznań, Poland. Revised Selected Papers 6.
25. xCCL: A Survey of Industry-Led Collective Communication Libraries for Deep Learning10.1007/s11390-023-2894-6 ↗
26. Empirical Performance Evaluation of Communication Libraries for Multi-GPU based Distributed Deep Learning in a Container Environment
27. Li, S., Zhao, Y., Varma, R., Salpekar, O., Noordhuis, P., Li, T., Paszke, A., Smith, J., Vaughan, B., and Damania, P. (2020). Pytorch distributed: Experiences on accelerating data parallel training. arXiv.10.14778/3415478.3415530 ↗
28. Balaji, A., and Allen, A. (2018). Benchmarking automatic machine learning frameworks. arXiv.
29. Enabling rootless Linux Containers in multi-user environments: The udocker tool10.1016/j.cpc.2018.05.021 ↗
30. Grupp, A., Kozlov, V., Campos, I., David, M., Gomes, J., and López García, Á. (2019, January 15–19). Benchmarking deep learning infrastructures by means of tensorflow and containers. Proceedings of the International Conference on High Performance Computing, Dublin, Ireland.10.1007/978-3-030-34356-9_36 ↗
31. Ibrahim, K.Z., Nguyen, T., Nam, H.A., Bhimji, W., Farrell, S., Oliker, L., Rowan, M., Wright, N.J., and Williams, S. (2021, January 15). Architectural requirements for deep learning workloads in hpc environments. Proceedings of the 2021 International Workshop on Performance Modeling, Benchmarking and Simulation of High Performance Computer Systems (PMBS), St. Louis, MO, USA.10.1109/PMBS54543.2021.00007 ↗