Adaptive DNN Partitioning Method for Pipeline Parallel Training with Time-Varying Resources
Pipeline parallelism provides a flexible and scalable approach for training large deep neural networks (DNNs). To realize efficient pipeline parallel training, deploying model partitions that adapt to the resource configurations is crucial. However, due to the time-varying nature prevalent in real-world applications, model partitions can quickly become outdated, resulting in imbalanced workload distribution. Consequently, maintaining load-balanced model partitions under time-varying resource scenarios poses a challenge. In this paper, we propose an adaptive partitioning method that dynamically adjusts model partitions in response to variations in available resources, ensuring high training efficiency. First, we derive the execution duration model and redistribution cost model of pipeline training systems. Then, we perform a joint optimization of the two factors with the goal of minimizing the training time. Based on this, we implement a prototype system called ARPipe, in which a Fast Partitioning Decision (FPD) algorithm is proposed to quickly determine optimized model partitions. Experimental evaluations show that under real-world circumstances with time-varying hardware resources, ARPipe can reduce training time by up to 30% in comparison to the state-of-the-art method GPipe when training the ResNet50 model on the CIFAR10 dataset.
Authors
- Shuangwu Chen (ORCID: https://orcid.org/0000-0003-2817-9738)
- Mingrui Zhu (ORCID: https://orcid.org/0000-0002-4179-7701)
- Shubo Deng (ORCID: https://orcid.org/0000-0003-2211-006X)
- Jian Yang (ORCID: https://orcid.org/0000-0002-7329-4738)
- Xiaofeng Jiang (ORCID: https://orcid.org/0000-0001-7595-2397)
- Zhi Ling (ORCID: https://orcid.org/0009-0006-5022-7256)
Institutions
- University of Science and Technology of China (CN)
Publication Details
- Published
- 2024-12-13
- DOI
- https://doi.org/10.1109/icftic64248.2024.10912960
- Primary Topic
- Power Systems and Technologies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- National Key Research and Development Program of China