Efficient and Automatic 3D Parallelism Strategies Search via Contrastive Reinforcement Learning Pretrained Neural Networks
Abstract
As deep learning models grow in complexity and parameter, many researchers have attracted their attention to distributed training and hybrid parallel strategies. However, current methods are often based on dynamic programming, leading to a large time cost. There exist only a limited number of approaches to exploring deep learning techniques, and these approaches demand considerable time for online training. In this paper, we develop the Automatic 3D Parallelism Strategies Search (APSS), which is an efficient strategy search algorithm based on a pre-trained neural network and a heuristic policy. APSS initially employs a heuristic policy in conjunction with the training cluster environment to derive candidate strategies. Subsequently, a Deep Pipeline Strategy Network (DPSN) is proposed to provide a detailed pipeline partition for each candidate strategy. APSS utilizes an offline pre-training method called Contrastive Reinforcement Learning (CRL) to pre-train DPSN, eliminating the need for real data collection and fine-tuning during subsequent application. In search speed, APSS achieves enhancements by an order of magnitude faster than AMP, a prominent framework based on the open-source DeepSpeed. In terms of the quality of parallel strategies, APSS can still identify the optimal strategy. The source code will be made publicly available on GitHub1.
BibTeX
@inproceedings{ou2025efficient,
author = {Jie Ou and Xiaowang Li and Yueming Chen and Jiahong Qian and Teng Su and Wenhong Tian},
title = {{Efficient and Automatic 3D Parallelism Strategies Search via Contrastive Reinforcement Learning Pretrained Neural Networks}},
booktitle = {DSAA},
year = {2025},
url = {https://openreview.net/forum?id=hCbVamJVhV},
}Ask Althea to put this paper to the test.
Loading related content...