Automatic Graph Partitioning for Very Large-scale Deep Learning
Not on the map. Why?
Abstract (arXiv)
This work proposes RaNNC (Rapid Neural Network Connector) as middleware for automatic hybrid parallelism. In recent deep learning research, as exemplified by T5 and GPT-3, the size of neural network models continues to grow. Since such models do not fit into the memory of accelerator devices, they need to be partitioned by model parallelism techniques. Moreover, to accelerate training for huge training data, we need a combination of model and data parallelisms, i.e., hybrid parallelism. Given a model description for PyTorch without any specification for model parallelism, RaNNC automatically partitions the model into a set of subcomponents so that (1) each subcomponent fits a device memory and (2) a high training throughput for pipeline parallelism is achieved by balancing the computation times of the subcomponents. In our experiments, we compared RaNNC with two popular frameworks, Megatron-LM (hybrid parallelism) and GPipe (originally proposed for model parallelism, but a version allowing hybrid parallelism also exists), for training models with increasingly greater numbers of parameters. In the pre-training of enlarged BERT models, RaNNC successfully trained models five times larger than those Megatron-LM could, and RaNNC's training throughputs were comparable to Megatron-LM's when pre-training the same models. RaNNC also achieved better training throughputs than GPipe on both the enlarged BERT model pre-training (GPipe with hybrid parallelism) and the enlarged ResNet models (GPipe with model parallelism) in all of the settings we tried. These results are remarkable, since RaNNC automatically partitions models without any modification to their descriptions; Megatron-LM and GPipe require users to manually rewrite the models' descriptions.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 21 of its 29 references that are in the map. First posted on arXiv 30 Mar 2021.
Builds on
21 of 29 references.
References · 21
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,601
- 2016Training Deep Nets with Sublinear Memory Costcited by 825
- 2019Big Transfer (BiT): General Visual Representation Learningcited by 766
- 2018Beyond Data and Model Parallelism for Deep Neural Networkscited by 177
- 2018Mesh-TensorFlow: Deep Learning for Supercomputerscited by 168
9 more
- 2020Memory-Efficient Pipeline-Parallel DNN Trainingcited by 133
- 2018PipeDream: Fast and Efficient Pipeline Parallel DNN Trainingcited by 116
- 2020HetPipe: Enabling Large DNN Training on (Whimpy) Heterogeneous GPU Clusters through Integration of Pipelined Model Parallelism and Data Parallelismcited by 46
- 2018Supporting Very Large Models using Automatic Dataflow Graph Partitioningcited by 43
- 2018Efficient and Robust Parallel DNN Training through Model Parallelism on Multi-GPU Platformcited by 28
- 2020torchgpipe: On-the-fly Pipeline Parallelism for Training Giant Modelscited by 26
- 2018Exploring Hidden Dimensions in Parallelizing Convolutional Neural Networkscited by 23
- 2019XPipe: Efficient Pipeline Model Parallelism for Multi-GPU DNN Trainingcited by 20
- 2017AMPNet: Asynchronous Model-Parallel Training for Dynamic Neural Networkscited by 12
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 2; 2024: 1; 2025: 2.
6 papers.
- 2023A Hybrid Tensor-Expert-Data Parallelism Approach to Optimize Mixture-of-Experts Trainingcited by 47
- 2021AxoNN: An asynchronous, message-driven parallel framework for extreme-scale deep learningcited by 15
- 2025FlexPipe: Adapting Dynamic LLM Serving Through Inflight Pipeline Refactoring in Fragmented Serverless Clusterscited by 9
- 2024Model Parallelism on Distributed Infrastructure: A Literature Review from Theory to LLM Case-Studiescited by 7
- 2023DISCO: Distributed Inference with Sparse Communicationscited by 2
- 2025Balanced and Elastic End-to-end Training of Dynamic LLMscited by 0
- 2025FlexPipe: Adapting Dynamic LLM Serving Through Inflight Pipeline Refactoring in Fragmented Serverless Clusters13 Oct 2025
- 2025Balanced and Elastic End-to-end Training of Dynamic LLMs20 May 2025
- 2024Model Parallelism on Distributed Infrastructure: A Literature Review from Theory to LLM Case-Studies6 Mar 2024
- 2023A Hybrid Tensor-Expert-Data Parallelism Approach to Optimize Mixture-of-Experts Training11 Mar 2023
- 2023DISCO: Distributed Inference with Sparse Communications22 Feb 2023
- 2021AxoNN: An asynchronous, message-driven parallel framework for extreme-scale deep learning25 Oct 2021