Memory Balanced Scheduling for Pipeline Parallel Training

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 113 papers19 conceptsfrozen 2026-10-04

Training massive deep neural networks requires splitting the model across multiple GPUs, a technique known as pipeline parallelism. However, standard pipelining creates a significant bottleneck: memory imbalance. Because early stages of the pipeline must hold onto their activations until the backward pass propagates all the way back from the final stage, they consume far more memory than later stages.

Recent research has converged on two primary strategies to solve this: interleaved scheduling to reduce the lifetime of activations and activation redistribution to balance the load across the cluster.

The Problem of Activation Lifetime

In a naive pipeline (like GPipe), a system processes a full batch of micro-batches through the forward pass before starting any backward passes. This creates a "memory ramp-up" where the first GPU in the pipeline must store activations for every single micro-batch in the pipeline.

To solve this, Deepak Narayanan, Amar Phanishayee, and their colleagues introduced PipeDream-2BW (Memory-Efficient Pipeline-Parallel DNN Training). Their core insight is the "1F1B" (one-forward, one-backward) schedule. Instead of waiting for the whole batch, each pipeline stage alternates between a single forward pass and a single backward pass for different micro-batches. This ensures that as soon as a backward pass is completed, the corresponding activation memory is released, capping the peak memory usage.

Similarly, Shiqing Fan and the team behind DAPPLE (DAPPLE: A Pipelined Data Parallel Approach for Training Large Models) proposed "early backward" scheduling. By executing the backward pass for a micro-batch as soon as its forward pass is finished at the end of the pipeline, the system decouples memory pressure from the total pipeline depth.

Balancing Memory via Redistribution

Even with 1F1B scheduling, the first stages of a pipeline still hold activations longer than the last stages. Taebum Kim and Byung-Gon Chun identified this as a fundamental "memory imbalance" in BPipe (BPipe: Memory-Balanced Pipeline Parallelism for Training Large Language Models).

BPipe’s solution is to treat the entire GPU cluster's memory as a shared pool. It physically transfers intermediate activations from the memory-strained early stages to the underutilized memory of later stages. By "offloading" these tensors across the network, BPipe flattens the memory profile of the entire pipeline, allowing researchers to use larger micro-batch sizes or reduce the need for expensive activation recomputation.

However, this approach is not a silver bullet. Mincong Huang and Chao Wang recently re-evaluated this technique (Re-evaluating the Memory-balanced Pipeline Parallelism: BPipe), finding that for modern architectures using Flash Attention, the communication overhead of moving activations can sometimes outweigh the memory benefits.

Advanced Temporal and Spatial Scheduling

Newer methods seek to eliminate the imbalance through more sophisticated ordering of operations. Geng Zhang and Yang You introduced HelixPipe (HelixPipe: Efficient Distributed Training of Long Sequence Transformers with Attention Parallel Pipeline Parallelism), which uses a First-In-Last-Out (FILO) micro-batch schedule. This ensures that every stage in the pipeline stores a comparable number of activations at any given time, preventing the "ramp-up" effect entirely.

Taking a different approach, Xinyuan Lin developed TPipe (Enhancing Memory Efficiency in Large Language Model Training Through Chronos-aware Pipeline Parallelism), which treats High-Bandwidth Memory (HBM) like a cache. By analyzing the "temporal locality" of activations—how long they need to stay in memory before being used in a backward pass—TPipe selectively recomputes only the most memory-expensive layers while scheduling tasks to minimize the duration activations occupy the HBM.

Finally, Mengshi Qi and colleagues explored Synergistic Tensor and Pipeline Parallelism (Synergistic Tensor and Pipeline Parallelism). They "braid" fine-grained computation units together, using a non-linear order of forward and backward passes to hide communication delays and distribute active micro-batches more uniformly across the hardware.

Summary of Intuition

The evolution of this field moves from coarse-grained batches (GPipe) to interleaved micro-batches (PipeDream/DAPPLE) to active memory management (BPipe/TPipe). The goal is always the same: minimize the time an activation spends "sitting idle" in expensive GPU memory. Whether by changing the order of operations (scheduling) or moving the data to where memory is plentiful (redistribution), these techniques allow for training models that are far larger than the memory of any single GPU.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_memory_balanced_scheduling_for_pipeline__801565b3,
  title = {Memory Balanced Scheduling for Pipeline Parallel Training},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/memory-balanced-scheduling-for-pipeline-parallel-training/rdr_801565b3b16740d68c95e8d8b4d732a7},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_memory_balanced_scheduling_for_pipeline__801565b3_v1,
  title = {Memory Balanced Scheduling for Pipeline Parallel Training},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/memory-balanced-scheduling-for-pipeline-parallel-training/rdr_801565b3b16740d68c95e8d8b4d732a7/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}