[Paper Review] AutoDDL: Automatic Distributed Deep Learning with Near-Optimal Bandwidth Cost
AutoDDL is a framework for automatic distributed deep learning that achieves asymptotically optimal communication costs by leveraging OneFlow’s SBP tensor abstraction with a novel Partial-Sum state. It uses an exhaustive performance model and heuristic search to find near-optimal, per-layer parallelization strategies, reducing end-to-end training time by up to 71.5% compared to expert-tuned Megatron on VGG models.
Recent advances in deep learning are driven by the growing scale of computation, data, and models. However, efficiently training large-scale models on distributed systems requires an intricate combination of data, operator, and pipeline parallelism, which exerts heavy burden on machine learning practitioners. To this end, we propose AutoDDL, a distributed training framework that automatically explores and exploits new parallelization schemes with near-optimal bandwidth cost. AutoDDL facilitates the description and implementation of different schemes by utilizing OneFlow's Split, Broadcast, and Partial Sum (SBP) abstraction. AutoDDL is equipped with an analytical performance model combined with a customized Coordinate Descent algorithm, which significantly reduces the scheme searching overhead. We conduct evaluations on Multi-Node-Single-GPU and Multi-Node-Multi-GPU machines using different models, including VGG and Transformer. Compared to the expert-optimized implementations, AutoDDL reduces the end-to-end training time by up to 31.1% and 10% for Transformer and up to 17.7% and 71.5% for VGG on the two parallel systems, respectively.
Motivation & Objective
- Address the challenge of high communication overhead in distributed training of large-scale deep learning models.
- Overcome the limitations of existing frameworks that use sub-optimal communication strategies due to restricted search spaces.
- Enable automatic, efficient, and scalable distributed training with minimal user intervention by integrating performance modeling and heuristic search.
- Achieve asymptotically optimal communication costs across diverse model architectures and hardware configurations.
- Provide a practical, automated solution that outperforms expert-optimized baselines like Megatron and Summa in real-world settings.
Proposed method
- Define a new, expanded search space for distributed training strategies using OneFlow’s Split, Broadcast, and Partial Sum (SBP) tensor abstractions.
- Introduce a Partial-Sum tensor state to enable communication-avoiding algorithms that achieve asymptotic optimality, similar to 2.5D DMM.
- Construct a detailed performance model to estimate communication and computation costs for each candidate strategy in the search space.
- Implement heuristic search algorithms to efficiently explore the large strategy space and identify near-optimal configurations.
- Automate configuration generation and code synthesis for selected strategies using OneFlow’s native support for SBP operations.
- Integrate with pipeline parallelism and support per-layer strategy selection to adapt to varying layer sizes and structures.
Experimental results
Research questions
- RQ1Can a systematic search space be defined that includes asymptotically communication-optimal distributed training strategies for deep neural networks?
- RQ2How can automatic configuration search be made efficient and scalable while maintaining near-optimal communication costs?
- RQ3To what extent can automatic framework design outperform expert-tuned, hand-optimized baselines like Megatron in real-world distributed training?
- RQ4What is the impact of per-layer strategy selection on overall training efficiency in models with heterogeneous layer structures?
- RQ5Can the integration of Partial-Sum states in the SBP abstraction enable communication-avoiding algorithms that match theoretical lower bounds?
Key findings
- AutoDDL reduces end-to-end training time by up to 31.1% and 10% for Transformer models on Multi-Node-Single-GPU and Multi-Node-Multi-GPU systems, respectively.
- For VGG models, AutoDDL achieves up to 71.5% and 17.7% reduction in training time on Multi-Node-Single-GPU and Multi-Node-Multi-GPU systems compared to Megatron.
- The selected AutoDDL strategies reduce intermediate activation communication costs by nearly half compared to Megatron, with a relative ratio of 96:180 in one experiment.
- AutoDDL’s search process completes in minutes on a personal laptop, demonstrating low overhead and practicality for real-world deployment.
- AutoDDL outperforms both Megatron and Summa in all experiments, even when pipeline parallelism is enabled, due to its optimized communication patterns.
- The framework successfully identifies distinct, layer-specific strategies—such as different splits for the last three dense layers of VGG13—demonstrating the value of per-layer optimization.
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.