Research map / Architectures and efficiency / RNNs and normalization
PipeOffload: Improving Scalability of Pipeline Parallelism with Memory Optimization
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes PipeOffload, which fully or selectively offloads pipeline-parallel activations to host memory with near-zero overhead, plus schedule variants (GIS, GIS-H, PO-H, PO-F), letting pure pipeline parallelism replace tensor parallelism at scale.
Problem
Pipeline parallelism's scalability for LLM training is limited by activation memory, since the number of in-flight microbatches grows with PP degree; the paper asks whether activation offload can be made nearly free in PP.
Approach
Offload activations to host during the forward-backward gap of pipeline schedules, choosing stages with longer lifespans for selective offload (better-than-linear peak memory reduction), combined with split-backward zero-bubble scheduling, warmup adjustment, lifespan-shortening uniform-repeating building blocks, single-stream offload scheduling, and selective recomputation of cheap layers to lower
Key results
- PO-H reduces activation memory to at most 1/6 of 1F1B-I while keeping similar throughput on GPT-3-like models up to 83.8B on 32 A100 GPUs.
- Pure pipeline parallelism with PipeOffload yields a 12%-19% training acceleration over interleaved 1F1B with TP8 (TP8xPP4).
- Loss curves of PO-H and PO-F nearly identical to interleaved 1F1B on a 5.4B model using 8 GPUs.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Offload stage 0 with uniform repeating schedule (selective offload, better-than-linear) instead of interleaved 1F1B | PipeOffload PO-H · PP with 8 devices and 16 stages | peak activation memory reduction: offloading half the stages reduces peak to about one-quarter | Helped |
| Replace TP8 with pure pipeline parallelism using PipeOffload | PO-F and PO-H vs 1F1B-I+TP8 · GPT-3-like models 5.8B-83.8B on 32 A100s | training acceleration: 12%-19% acceleration | Helped |
| Fully offload all activations (PO-F) when k<=1 | 1F1B schedule / PipeOffload · A100 with hidden size above 8k or sequence length above 16k | throughput overhead | No clear effect |
| Recompute LayerNorm, GeLU, dropout instead of storing them (ablation) | Layer activations for offload · GPT-3-like models on A100 | activation memory per layer and throughput: 40% reduction with around 1-2% slowdown | Helped |
| Use a single shared stream for offload and reload instead of separate streams | PipeOffload offload scheduling · A100 pipeline training | latency stability and throughput | Helped |
| Synchronized interleaved H2D-D2H transfer between GPU pairs sharing a PCI-E switch, versus parallel or dual-stream schedules (ablation) | Offload transfers on A100 topology · Pair of GPUs on same PCI-E switch | bidirectional transfer bandwidth stability | Helped |
| Uniform repeating strategy instead of interleaving strategy for stage offload | Pipeline schedule memory reduction · PP with 8 devices | peak memory reduction in activations: 4 activations vs 3 activations reduction | Helped |
| Adjust warmup forward count in interleaved 1F1B (GIS) | Interleaved 1F1B · PP schedule peak activation | maximum peak activation memory: from dv+d-1 to dv | Helped |
| Shorten microbatch lifespan (GIS-H, g=ceil(d/2)) at cost of extra warmup bubbles (ablation) | Interleaved 1F1B schedule · PP schedule with d devices and v stages | peak activation memory and pipeline bubbles | Mixed |
| Per-device activation memory scaling with total stages using PO-H/PO-F | 5.8B model PipeOffload · Varying total stages v x d | per-device activation memory scaling | Helped |
| Offload all stages with PipeOffload loss convergence vs 1F1B-I | PO-H and PO-F on 5.4B model · 8 GPUs loss curves | training loss trajectory | No clear effect |
Surprising findings
- Full activation offload can be nearly free in pipeline parallelism, contrary to prior work that found activation offload causes significant overhead in PP.
- Offloading the first pipeline stage in uniform repeating schedules yields better-than-linear peak memory reduction (e.g., half the stages offloaded gives roughly one-quarter peak memory).
Limitations
- Feasibility of full offload depends on hardware bandwidth ratio k; PO-F is skipped when k>1, and the reported results are on A100 GPUs only.
- Host memory capacity and PCI-E contention with cross-node communication are constraints on offload.
- Additional pipeline bubbles and cross-node communication doubling from the node-assignment strategy in some configurations.
Experimental setup
Metrics: model flops utilization (MFU) peak activation memory loss curve agreement
Baselines: 1F1B Interleaved 1F1B 1F1B-I with TP8 1F1B-I-R V-Min V-Half
Builds on: 1F1B Interleaved 1F1B Zero Bubble Pipeline Parallelism Megatron-LM Memory offload (Zero-Offload style)
Closest papers by meaning
- Pipeline Parallelism with Controllable Memory (NeurIPS 2024 · similarity 0.90)
- MAPS: Memory-Aware Predictive Scheduling Framework for Large Language Model Serving (ICML 2026 · similarity 0.86)
- Nesterov Method for Asynchronous Pipeline Parallel Optimization (ICML 2025 · similarity 0.86)
- Cost-Efficient LLM Training with Lifetime-Aware Tensor Offloading via GPUDirect Storage (NeurIPS 2025 · similarity 0.86)
- Synergistic Tensor and Pipeline Parallelism (NeurIPS 2025 · similarity 0.86)
- AsyncMesh: Fully Asynchronous Optimization for Data and Pipeline Parallelism (NeurIPS 2026 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
