Layered gradient accumulation and modular pipeline parallelism: fast and efficient training of large language models
Not on the map. Why?
Abstract (arXiv)
The advent of the transformer has sparked a quick growth in the size of language models, far outpacing hardware improvements. (Dense) transformers are expected to reach the trillion-parameter scale in the near future, for which training requires thousands or even tens of thousands of GPUs. We investigate the challenges of training at this scale and beyond on commercially available hardware. In particular, we analyse the shortest possible training time for different configurations of distributed training, leveraging empirical scaling laws for language models to estimate the optimal (critical) batch size. Contrary to popular belief, we find no evidence for a memory wall, and instead argue that the real limitation -- other than the cost -- lies in the training duration. In addition to this analysis, we introduce two new methods, textitlayered gradient accumulation and textitmodular pipeline parallelism, which together cut the shortest training time by half. The methods also reduce data movement, lowering the network requirement to a point where a fast InfiniBand connection is not necessary. This increased network efficiency also improve on the methods introduced with the ZeRO optimizer, reducing the memory usage to a tiny fraction of the available GPU memory.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 25 of its 33 references that are in the map. First posted on arXiv 4 Jun 2021.
Builds on
25 of 33 references.
References · 25
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
13 more
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2017Mixed Precision Trainingcited by 1,156
- 2016Training Deep Nets with Sublinear Memory Costcited by 848
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
- 2017Don't Decay the Learning Rate, Increase the Batch Sizecited by 320
- 2018An Empirical Model of Large-Batch Trainingcited by 281
- 2021ZeRO-Infinity: Breaking the GPU Memory Wall for Extreme Scale Deep Learningcited by 256
- 2018Measuring the Effects of Data Parallelism on Neural Network Trainingcited by 193
- 2020Memory-Efficient Pipeline-Parallel DNN Trainingcited by 134
- 20211-bit Adam: Communication Efficient Large-Scale Training with Adam's Convergence Speedcited by 75
- 2018On the Computational Inefficiency of Large Batch Sizes for Stochastic Gradient Descentcited by 25
- 2021Critical Parameters for Scalable Distributed Learning with Large Batches and Asynchronous Updatescited by 17
- 2016On Unbounded Delays in Asynchronous Parallel Fixed-Point Algorithmscited by 7
Built on by
Citing papers per year: 2024: 3; 2025: 1; 2026: 2.
6 papers.
- 2024PosterLlama: Bridging Design Ability of Langauge Model to Contents-Aware Layout Generationcited by 35
- 2024ArzEn-LLM: Code-Switched Egyptian Arabic-English Translation and Speech Recognition Using LLMscited by 3
- 2024ResumeAtlas: Revisiting Resume Classification with Large-Scale Datasets and Large Language Modelscited by 1
- 2025Beyond Imaging: Vision Transformer Digital Twin Surrogates for 3D+T Biological Tissue Dynamicscited by 0
- 2026Foundation Models for Medical Imaging: Status, Challenges, and Directionscited by 0
- 2026Leveraging LLMs for Multi-File DSL Code Generation: An Industrial Case Studycited by 0
- 2026Leveraging LLMs for Multi-File DSL Code Generation: An Industrial Case Study27 Apr 2026
- 2026Foundation Models for Medical Imaging: Status, Challenges, and Directions17 Feb 2026
- 2025Beyond Imaging: Vision Transformer Digital Twin Surrogates for 3D+T Biological Tissue Dynamics21 Aug 2025
- 2024ResumeAtlas: Revisiting Resume Classification with Large-Scale Datasets and Large Language Models26 Jun 2024
- 2024ArzEn-LLM: Code-Switched Egyptian Arabic-English Translation and Speech Recognition Using LLMs26 Jun 2024
- 2024PosterLlama: Bridging Design Ability of Langauge Model to Contents-Aware Layout Generation1 Apr 2024