Lune

ASPLOS2024Top-tier venue

AdaPipe: Optimizing Pipeline Parallelism with Adaptive Recomputation and Partitioning

Zhenbo Sun, Huanqi Cao, Yuanwei Wang, Guanyu Feng, Shengqi Chen, Haojie Wang, Wenguang Chen

Abstract

Large language models (LLMs) have demonstrated powerful capabilities, requiring huge memory with their increasing sizes and sequence lengths, thus demanding larger parallel systems. The broadly adopted pipeline parallelism introduces even heavier and unbalanced memory consumption. Recomputation is a widely employed technique to mitigate the problem but introduces extra computation overhead.

This paper proposes AdaPipe, which aims to find the optimized recomputation and pipeline stage partitioning strategy. AdaPipe employs adaptive recomputation to maximize memory utilization and reduce the computation cost of each pipeline stage. A flexible stage partitioning algorithm is also adopted to balance the computation between different stages. We evaluate AdaPipe by training two representative models, GPT-3 (175B) and Llama 2 (70B), achieving up to 1.32× and 1.22× speedup on clusters with NVIDIA GPUs and Ascend NPUs respectively.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

19 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter Training cites ZeRO: memory optimizations toward training trillion parameter models
  • CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter Training cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness cites Language Models are Few-Shot Learners
  • Fire-Flyer AI-HPC: A Cost-Effective Software-Hardware Co-Design for Deep Learning cites ZeRO: memory optimizations toward training trillion parameter models
  • Fire-Flyer AI-HPC: A Cost-Effective Software-Hardware Co-Design for Deep Learning cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • Fire-Flyer AI-HPC: A Cost-Effective Software-Hardware Co-Design for Deep Learning cites Language Models are Few-Shot Learners
  • Efficient large-scale language model training on GPU clusters using megatron-LM cites ZeRO: memory optimizations toward training trillion parameter models
  • Efficient large-scale language model training on GPU clusters using megatron-LM cites Language Models are Few-Shot Learners
  • Efficient large-scale language model training on GPU clusters using megatron-LM cites ZeRO-Offload: Democratizing Billion-Scale Model Training
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators cites ZeRO: memory optimizations toward training trillion parameter models
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators cites Language Models are Few-Shot Learners
  • MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective Accelerators cites ZeRO-Offload: Democratizing Billion-Scale Model Training
  • Efficient Distributed MLLM Training with Cornstarch cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Efficient Distributed MLLM Training with Cornstarch cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • ZeRO-Offload: Democratizing Billion-Scale Model Training cites ZeRO: memory optimizations toward training trillion parameter models
  • Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization cites ZeRO: memory optimizations toward training trillion parameter models
  • Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-Optimization cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers19

  1. CrossPipe: Towards Optimal Pipeline Schedules for Cross-Datacenter TrainingTiancheng Chen, Ales Kubicek, Langwen Huang, Torsten HoeflerUSENIX ATC 2025 · 20 citations
  2. Fire-Flyer AI-HPC: A Cost-Effective Software-Hardware Co-Design for Deep LearningWei An, Xiao Bi, Guanting Chen, Shanhuang Chen et al.SC 2024 · 20 citations
  3. Mist: Efficient Distributed Training of Large Language Models via Memory-Parallelism Co-OptimizationZhanda Zhu, Christina Giannoula, Muralidhar Andoorveedu, Qidong Su et al.EuroSys 2025 · 8 citations
  4. MEPipe: Democratizing LLM Training with Memory-Efficient Slice-Level Pipeline Scheduling on Cost-Effective AcceleratorsZhenbo Sun, Shengqi Chen, Yuanwei Wang, Jian Sha et al.EuroSys 2025 · 7 citations
  5. Efficient Distributed MLLM Training with CornstarchInsu Jang, Runyu Lu, Nikhil Bansal, Ang Chen et al.ICML 2026 · 6 citations

Builds on16

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra et al.NeurIPS 2022 · 5,493 citations
  3. ZeRO: memory optimizations toward training trillion parameter modelsSamyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong HeSC 2020 · 852 citations
  4. ZeRO-Offload: Democratizing Billion-Scale Model TrainingJie Ren, Samyam Rajbhandari, Reza Yazdani Aminabadi, Olatunji Ruwase et al.USENIX ATC 2021 · 657 citations
  5. Efficient large-scale language model training on GPU clusters using megatron-LMDeepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley et al.SC 2021 · 576 citations

Related papers

  1. Obscura: Concealing Recomputation Overhead in Training of Large Language Models with Bubble-filling Pipeline TransformationYuzhou Huang, Yapeng Jiang, Zicong Hong, Wuhui Chen et al.USENIX ATC 2025 · 4 citations
  2. BPipe: Memory-Balanced Pipeline Parallelism for Training Large Language ModelsTaebum Kim, Hyoungjoo Kim, Gyeong-In Yu, Byung-Gon ChunICML 2023 · 34 citations
  3. Mario: Near Zero-cost Activation Checkpointing in Pipeline ParallelismWeijian Liu, Mingzhen Li, Guangming Tan, Weile JiaPPoPP 2025 · 4 citations
  4. DynaPipe: Dynamic Layer Redistribution for Efficient Serving of LLMs with Pipeline ParallelismHongxin Xu, Tianyu Guo, Xianwei ZhangNeurIPS 2025 · 4 citations
  5. HelixPipe: Efficient Distributed Training of Long Sequence Transformers with Attention Parallel Pipeline ParallelismGeng Zhang, Shenggan Cheng, Xuanlei Zhao, Ziming Liu et al.PPoPP 2026 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines