Proceedings

Optimal Distributed Training With Co-Adaptive Data Parallelism in Heterogeneous Environments

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 29-37.

https://doi.org/10.24963/ijcai.2025/4

Abstract

The computational power required for training deep learning models has been skyrocketing in the past decade as they scale with big data, and has become a very expensive and scarce resource. Therefore, distributed training, which can leverage distributed available computational power, is vital for efficient large-scale model training. However, most previous distributed training frameworks like DDP and DeepSpeed are primarily designed for co-located clusters under homogeneous computing and communication conditions, and hence cannot account for geo-distributed clusters with both computing and communication heterogeneity. To address this challenge, we develop a new data parallel based distributed training framework called Co-Adaptive Data Parallelism (C-ADP). First, we consider a data owner and parameter server that distributes data to and coordinates the collaborative learning across all the computing devices. We employ local training and delayed parameter synchronization to reduce communication costs. Second, we formulate a data parallel scheduling optimization problem to minimize the training time by optimizing data distribution. Third, we devise an efficient algorithm to solve this scheduling problem, and formally prove that the obtained solution is optimal in the asymptotic sense. Experiments on the ImageNet100 dataset demonstrate that C-ADP achieves fast convergence in heterogeneous distributed training environments. Compared to Distributed Data Parallel (DDP) and DeepSpeed, C-ADP achieves 21.6 times and 26.3 times improvements in FLOPS, respectively, and a reduction in training time of about 72% and 47%, respectively.

  1. [Brown et al., 2020] T Brown, B Mann, N Ryder, M Sub- biah, J Kaplan, P Dhariwal, A Neelakantan, P Shyam, G Sastry, and A Askell. Language models are few-shot learners advances. In Proceedings of the 34th Interna- tional Conference on Neural Information Processing Sys- tems, page 33, 2020.
  2. [Chen et al., 2022] Fahao Chen, Peng Li, Celimuge Wu, and Song Guo. Hare: Exploiting inter-job and intra-job par- allelism of distributed machine learning on heterogeneous gpus. In Proceedings of the 31st International Symposium on High-Performance Parallel and Distributed Comput- ing, pages 253-264, 2022.
  3. [Fan et al., 2021] Shiqing Fan, Yi Rong, Chen Meng, Zongyan Cao, Siyu Wang, Zhen Zheng, Chuan Wu, Guop- ing Long, Jun Yang, Lixue Xia, et al. Dapple: A pipelined data parallel approach for training large models. In Pro- ceedings of the 26th ACM SIGPLAN Symposium on Prin- ciples and Practice of Parallel Programming, pages 431- 445, 2021.
  4. [Horn and Johnson, 2012] Roger A Horn and Charles R Johnson. Matrix Analysis. Cambridge University Press, 2012.
  5. [Jayaram Subramanya et al., 2023] Suhas Jayaram Subra- manya, Daiyaan Arfeen, Shouxu Lin, Aurick Qiao, Zhi- hao Jia, and Gregory R Ganger. Sia: Heterogeneity-aware, goodput-optimized ml-cluster scheduling. In Proceedings of the 29th Symposium on Operating Systems Principles, pages 642-657, 2023.
  6. [Li et al., 2020] Shen Li, Yanli Zhao, Rohan Varma, Omkar Salpekar, Pieter Noordhuis, Teng Li, Adam Paszke, Jeff Smith, Brian Vaughan, Pritam Damania, et al. Pytorch dis- tributed: Experiences on accelerating data parallel train- ing. arXiv preprint arXiv:2006.15704, 2020.
  7. [Li et al., 2022] Dacheng Li, Hongyi Wang, Eric Xing, and Hao Zhang. Amp: Automatically finding model parallel strategies with heterogeneity awareness, 2022.
  8. [Liu et al., 2023] Ji Liu, Zhihua Wu, Danlei Feng, Minxu Zhang, Xinxuan Wu, Xuefeng Yao, Dianhai Yu, Yanjun Ma, Feng Zhao, and Dejing Dou. Heterps: Distributed deep learning with reinforcement learning based schedul- ing in heterogeneous environments. Future Generation Computer Systems, 148:106-117, 2023.
  9. [Mo et al., 2024] Zizhao Mo, Huanle Xu, and Chengzhong Xu. Heet: Accelerating elastic training in heterogeneous deep learning clusters. In Proceedings of the 29th ACM In- ternational Conference on Architectural Support for Pro- gramming Languages and Operating Systems, Volume 2, pages 499-513, 2024.
  10. [Narayanan et al., 2019] Deepak Narayanan, Aaron Harlap, Amar Phanishayee, Vivek Seshadri, Nikhil R Devanur, Gregory R Ganger, Phillip B Gibbons, and Matei Zaharia. Pipedream: Generalized pipeline parallelism for dnn train- ing. In Proceedings of the 27th ACM symposium on oper- ating systems principles, pages 1-15, 2019.
  11. [Rasley et al., 2020] Jeff Rasley, Samyam Rajbhandari, Olatunji Ruwase, and Yuxiong He. Deepspeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 3505-3506, 2020.
  12. [Ren et al., 2021] Jie Ren, Samyam Rajbhandari, Reza Yaz- dani Aminabadi, Olatunji Ruwase, Shuangyan Yang, Min- jia Zhang, Dong Li, and Yuxiong He. {Zero-offload}: Democratizing {billion-scale} model training. In 2021 USENIX Annual Technical Conference (USENIX ATC 21), pages 551-564, 2021.
  13. [Sergeev and Balso, 2018] Alexander Sergeev and Mike Del Balso. Horovod: fast and easy distributed deep learning in tensorflow, 2018.
  14. [Shazeer et al., 2018] Noam Shazeer, Youlong Cheng, Niki Parmar, Dustin Tran, Ashish Vaswani, Penporn Koanan- takool, Peter Hawkins, HyoukJoong Lee, Mingsheng Hong, Cliff Young, Ryan Sepassi, and Blake Hecht- man. Mesh-tensorflow: Deep learning for supercomput- ers, 2018.
  15. [Shoeybi et al., 2020] Mohammad Shoeybi, Mostofa Pat- wary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-lm: Training multi-billion pa- rameter language models using model parallelism, 2020.
  16. [Unger et al., 2022] Colin Unger, Zhihao Jia, Wei Wu, Sina Lin, Mandeep Baines, Carlos Efrain Quintero Narvaez, Vinay Ramakrishnaiah, Nirmal Prajapati, Pat McCormick, Jamaludin Mohd-Yusof, et al. Unity: Accelerating {DNN} training through joint optimization of algebraic transfor- mations and parallelization. In 16th USENIX Symposium on Operating Systems Design and Implementation (OSDI 22), pages 267-284, 2022.
  17. [Verbraeken et al., 2020] Joost Verbraeken, Matthijs Wolt- ing, Jonathan Katzy, Jeroen Kloppenburg, Tim Verbelen, and Jan S Rellermeyer. A survey on distributed ma- chine learning. Acm computing surveys (csur), 53(2):1-33, 2020.
  18. [Wang et al., 2022] Qifan Wang, Yi Fang, Anirudh Ravula, Fuli Feng, Xiaojun Quan, and Dongfang Liu. Webformer: The web-page transformer for structure information ex- traction. In Proceedings of the ACM Web Conference 2022, pages 3124-3133, 2022.
  19. [Weisstein, 2023] Eric W. Weisstein. Norm -mathworld, 2023. Accessed: 2023-10-05.
  20. [Yang et al., 2024] Fei Yang, Shuang Peng, Ning Sun, Fangyu Wang, Yuanyuan Wang, Fu Wu, Jiezhong Qiu, and Aimin Pan. Holmes: Towards distributed training across clusters with heterogeneous nic environment. In Proceed- ings of the 53rd International Conference on Parallel Pro- cessing, pages 514-523, 2024.
  21. [Yi et al., 2020] Xiaodong Yi, Shiwei Zhang, Ziyue Luo, Guoping Long, Lansong Diao, Chuan Wu, Zhen Zheng, Jun Yang, and Wei Lin. Optimizing distributed training de- ployment in heterogeneous gpu clusters. In Proceedings of the 16th International Conference on emerging Network- ing EXperiments and Technologies, pages 93-107, 2020.
  22. [Yu et al., 2022] Menglu Yu, Ye Tian, Bo Ji, Chuan Wu, Hridesh Rajan, and Jia Liu. Gadget: Online resource optimization for scheduling ring-all-reduce learning jobs. In IEEE INFOCOM 2022-IEEE Conference on Computer Communications, pages 1569-1578. IEEE, 2022.
  23. [Yuan et al., 2022] Binhang Yuan, Yongjun He, Jared Davis, Tianyi Zhang, Tri Dao, Beidi Chen, Percy S Liang, Christopher Re, and Ce Zhang. Decentralized train- ing of foundation models in heterogeneous environments. Advances in Neural Information Processing Systems, 35:25464-25477, 2022.
  24. [Zhao et al., 2023] Yanli Zhao, Andrew Gu, Rohan Varma, Liang Luo, Chien-Chin Huang, Min Xu, Less Wright, Hamid Shojanazeri, Myle Ott, Sam Shleifer, Alban Des- maison, Can Balioglu, Pritam Damania, Bernard Nguyen, Geeta Chauhan, Yuchen Hao, Ajit Mathews, and Shen Li. Pytorch fsdp: Experiences on scaling fully sharded data parallel, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards