mlsanityData to 7 Oct 2026

Pipeline Parallelism with Controllable Memory

arXiv 2405.15362 ↗First posted 24 May 2024cs.LG cs.CL cs.DCcited by 11

Not on the map. Why?

Abstract (arXiv)

Pipeline parallelism has been widely explored, but most existing schedules lack a systematic methodology. In this paper, we propose a framework to decompose pipeline schedules as repeating a building block, and show that the lifespan of the building block decides the peak activation memory of the pipeline schedule. Guided by the observations, we find that almost all existing pipeline schedules, to the best of our knowledge, are memory inefficient. To address this, we introduce a family of memory efficient building blocks with controllable activation memory, which can reduce the peak activation memory to 1/2 of 1F1B without sacrificing efficiency, and even to 1/3 with comparable throughput. We can also achieve almost zero pipeline bubbles while maintaining the same activation memory as 1F1B. Our evaluations demonstrate that in pure pipeline parallelism settings, our methods outperform 1F1B by from 7% to 55% in terms of throughput. When employing a grid search over hybrid parallelism hyperparameters in practical scenarios, our methods demonstrate a 16% throughput improvement over the 1F1B baseline for large language models. The implementation is open-sourced at https://github.com/sail-sg/zero-bubble-pipeline-parallelism.

Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 17 of its 24 references that are in the map. First posted on arXiv 24 May 2024.

Builds on

17 of 24 references.

References · 17

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  3. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  4. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  5. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
  6. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  7. 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
  8. 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
  9. 2017Asynchronous Decentralized Parallel Stochastic Gradient Descentcited by 159
  10. 2018PipeDream: Fast and Efficient Pipeline Parallel DNN Trainingcited by 116
  11. 2020DAPPLE: A Pipelined Data Parallel Approach for Training Large Modelscited by 100
  12. 2021Chimera: Efficiently Training Large-Scale Neural Networks with Bidirectional Pipelinescited by 68
5 more
  1. 2019PipeMare: Asynchronous Pipeline Parallel DNN Trainingcited by 54
  2. 2023Zero Bubble Pipeline Parallelismcited by 39
  3. 2023Hanayo: Harnessing Wave-like Pipeline Parallelism for Enhanced Large Model Training Efficiencycited by 20
  4. 2022On Optimizing the Communication of Model Parallelismcited by 19
  5. 2017AMPNet: Asynchronous Model-Parallel Training for Dynamic Neural Networkscited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 5.

11 papers.