Full activation checkpointing keeps giant Transformers inside GPU memory at a 30% to 40% speed penalty, whereas combining Sequence Parallelism with Selective Activation Recomputation cuts activation memory 5x while recovering over 90% of that recomputation overhead.
- Two hidden activation hogs: Standard tensor parallelism leaves LayerNorm, dropout, and residual boundary tensors (
10sbhbytes per layer) replicated across every GPU, while attention-matrix intermediates (QK^T, softmax, dropout, attention overV) consume 65% to 70% of all activation memory in 175B to 530B models. - Zero extra communication bytes: Sequence Parallelism shards those replicated regions along the sequence dimension and replaces tensor-parallel
all-reducecollectives with conjugateall-gatherandreduce-scatterpairs of identical bandwidth. - Recompute 2% FLOPs to save 70% memory: Selective recomputation drops only the low-FLOP attention-matrix tensors, adding just 2.7% FLOPs on GPT-3 175B and 1.6% on MT-NLG 530B instead of a full extra forward pass.
- 54.2% MFU at 530B scale: Across 22B to 1T models on NVIDIA 80GB A100s (
t = 8, s = 2048), training throughput rises 29.0% to 32.1% over full recomputation; on 2,240 A100 GPUs for a 530B model, Model FLOPs Utilization climbs from 42.1% to 54.2% (29% faster).
Where tensor-parallel activation memory hides
In 16-bit Transformer training, one layer stores sbh * (34 + 5as/h) bytes of activations (s sequence length, b microbatch size, h hidden size, a heads). Applying t-way tensor parallelism shards the attention and MLP matrices, shrinking per-layer activations to sbh * (10 + 24/t + 5as/(ht)).
Two bottlenecks keep that figure above 80GB A100 capacity, especially because 1F1B pipeline parallelism forces stage 0 to buffer p in-flight microbatches (L layers’ worth regardless of pipeline depth p). First, the 10sbh term sits outside tensor-parallel splits in LayerNorm (4sbh), dropout masks (2sbh), and linear input buffers (4sbh), never shrinking as t grows. Second, 5as/h grows with sequence length and head count: at s = 2048, 5as/h = 80 for GPT-3 (a = 96, h = 12288) and 64 for MT-NLG (a = 128, h = 20480), outweighing the 34 bytes from the rest of the layer combined.
Sequence Parallelism (SP) partitions LayerNorm, dropout, and residual streams along s across the t ranks, dividing the 10sbh term by t. Because a ring all-reduce is literally a reduce-scatter followed by an all-gather, merging those collectives with sequence splits (g and g_bar) moves the exact same byte volume. Selective recomputation then discards only the 5as/h attention-matrix activations (keeping MLP and linear activations intact), collapsing per-layer storage to 34 * sbh / t bytes, linear in s and independent of a.
End-to-end throughput up to 1T parameters
On the Selene supercomputer (8x 80GB A100 per node with NVLink/NVSwitch and 8x 200Gbps InfiniBand), combining Sequence Parallelism with Selective Recomputation lifted end-to-end iteration throughput by roughly 30% across every scale from 22B to 1T parameters (with t = 8 and interleaved pipeline parallelism m = 3 for 175B and 530B):
Scaling the 530B run with 8-way data parallelism to 2,240 GPUs only nudged iteration time from 37.83s to 39.15s, delivering 54.2% MFU versus 42.1% with full checkpointing. At 530B and 1T, recomputation time overhead fell from 36% to 2%.
Caveats and builder takeaway
Two major shifts since 2022 change how teams apply this paper today. First, FlashAttention-2 fuses QK^T, softmax, and V inside on-chip SRAM so the 5as^2b attention matrix is never written to HBM during the forward pass and is recomputed automatically on backward. Selective recomputation is therefore built into modern fused attention kernels, while Sequence Parallelism remains essential for shrinking the 10sbh LayerNorm, dropout, and linear-input footprint (especially as sequence lengths grow far past s = 2048). Second, although reduce-scatter plus all-gather moves the same bytes as all-reduce, the authors note those two separate collectives executed slightly slower than a single all-reduce on NVLink; over slower inter-node links, t-way SP is rarely worthwhile.
In Megatron-style 3D parallelism (orthogonal to ZeRO optimizer sharding and resumable checkpointing), enable Sequence Parallelism across intra-node NVLink tensor-parallel ranks, pair it with FlashAttention or selective attention checkpointing, and drop full-layer checkpointing unless activation memory still overflows HBM.


