Lune

PPoPP2025Top-tier venue

Mario: Near Zero-cost Activation Checkpointing in Pipeline Parallelism

Weijian Liu, Mingzhen Li, Guangming Tan, Weile Jia

Abstract

Large language models have to be trained in parallel due to their large number of parameters and significant memory footprint. Among various parallelism techniques, pipeline parallelism is widely adopted in inter-node scenarios with minimal communication overhead. However, state-of-the-art pipeline schemes lead to extra and imbalanced memory footprints, leaving room for further improvement. In this paper, we propose Mario, a pipeline optimizer that automatically tessellates activation checkpointing to existing pipeline schemes, enabling training larger models (or longer sequences) with less and balanced memory footprint across GPUs and improved GPU utilization. First, the activation recomputation can be effectively overlapped in the bubbles by moving it earlier in the execution process, thereby improving overall efficiency. With eliminated memory footprint through checkpointing, Mario allows for preposing more forward computation into the pipeline bubbles, making more room for further overlapping with greater flexibility, and thus exploiting the bubbles. Then we design a lightweight pipeline simulator to model execution behavior w/o|w/ Mario. Finally, we introduce an automatic pipeline scheduler specifically for Mario, capable of searching for near optimal combination of checkpointing and pipeline configurations within minutes. Experimental results on GPT3 and LLaMA2 models show that Mario can speed up existing state-of-the-art pipeline schemes (w/o|w/ checkpointing) including 1F1B, Chimera, and Interleave by 1.16×|1.57× on average. This work paves a new direction for effective low-cost pipeline training.

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.

3 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

  • DynaPipe: Dynamic Layer Redistribution for Efficient Serving of LLMs with Pipeline Parallelism cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • 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 Memory-Efficient Pipeline-Parallel DNN Training
  • Efficient large-scale language model training on GPU clusters using megatron-LM cites ZeRO-Offload: Democratizing Billion-Scale Model Training
  • gLLM: Global Balanced Pipeline Parallelism Systems for Distributed LLMs Serving with Token Throttling cites Memory-Efficient Pipeline-Parallel DNN Training
  • gLLM: Global Balanced Pipeline Parallelism Systems for Distributed LLMs Serving with Token Throttling cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • gLLM: Global Balanced Pipeline Parallelism Systems for Distributed LLMs Serving with Token Throttling cites Efficient large-scale language model training on GPU clusters using megatron-LM
  • TawPipe: Topology-Aware Weight Pipeline Parallelism for Accelerating Long-Context Large Models Training cites ZeRO: memory optimizations toward training trillion parameter models
  • TawPipe: Topology-Aware Weight Pipeline Parallelism for Accelerating Long-Context Large Models Training cites FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
  • ZeRO-Offload: Democratizing Billion-Scale Model Training cites ZeRO: memory optimizations toward training trillion parameter models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. DynaPipe: Dynamic Layer Redistribution for Efficient Serving of LLMs with Pipeline ParallelismHongxin Xu, Tianyu Guo, Xianwei ZhangNeurIPS 2025 · 4 citations
  2. gLLM: Global Balanced Pipeline Parallelism Systems for Distributed LLMs Serving with Token ThrottlingTianyu Guo, Xianwei Zhang, Jiangsu Du, Zhiguang Chen et al.SC 2025 · 3 citations
  3. TawPipe: Topology-Aware Weight Pipeline Parallelism for Accelerating Long-Context Large Models TrainingHouming Wu, Ling ChenAAAI 2026

Builds on25

  1. 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
  2. ZeRO: memory optimizations toward training trillion parameter modelsSamyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong HeSC 2020 · 852 citations
  3. ZeRO-Offload: Democratizing Billion-Scale Model TrainingJie Ren, Samyam Rajbhandari, Reza Yazdani Aminabadi, Olatunji Ruwase et al.USENIX ATC 2021 · 657 citations
  4. 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
  5. Memory-Efficient Pipeline-Parallel DNN TrainingDeepak Narayanan, Amar Phanishayee, Kaiyu Shi, Xie Chen et al.ICML 2021 · 283 citations

Related papers

  1. BPipe: Memory-Balanced Pipeline Parallelism for Training Large Language ModelsTaebum Kim, Hyoungjoo Kim, Gyeong-In Yu, Byung-Gon ChunICML 2023 · 34 citations
  2. Chimera: efficiently training large-scale neural networks with bidirectional pipelinesShigang Li, Torsten HoeflerSC 2021 · 124 citations
  3. WeiPipe: Weight Pipeline Parallelism for Communication-Effective Long-Context Large Model TrainingJunfeng Lin, Ziming Liu, Yang You, Jun Wang et al.PPoPP 2025 · 5 citations
  4. SlimPipe: Memory-Thrifty and Efficient Pipeline Parallelism for Long-Context LLM TrainingZhouyang Li, Yuliang Liu, Wei Zhang, Tailing Yuan et al.SC 2025 · 5 citations
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines