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 (10sbh bytes per layer) replicated across every GPU, while attention-matrix intermediates (QK^T, softmax, dropout, attention over V) 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-reduce collectives with conjugate all-gather and reduce-scatter pairs 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.

Per-layer activation memory and recomputation overhead on 22B to 1T models
ConfigurationBytes per layer22B layer timeRelative memory
No parallelismsbh(34 + 5as/h)OOM on 80GBOver 100%
Tensor Parallel baseline (t = 8)sbh(10 + 24/t + 5as/(ht))19.6 ms (0%)100% (baseline)
TP + Sequence Parallelsbh(34/t + 5as/(ht))19.0 ms (-3%)~55%
TP + SP + Selective Recomputesbh(34/t)20.3 ms (+4%)Under 20% (5x cut)
Full activation recomputesbh(2)27.2 ms (+39%)~10%

Layer timings measured on a single 22B layer on 80GB A100 GPUs; full vs. selective overhead drops from 36% to 2% at 530B and 1T. Source: Korthikanti et al. (2022), Tables 2 and 4.

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):

End-to-end iteration time: Full Recompute vs. SP + Selective Recompute (lower is faster)
22B (8 GPUs)
1.42s to 1.10s (+29.0%, 41.5% MFU)
175B (64 GPUs)
18.13s to 13.75s (+31.8%, 51.4% MFU)
530B (280 GPUs)
49.05s to 37.83s (+29.7%, 56.0% MFU)
1T (512 GPUs)
94.42s to 71.49s (+32.1%, 56.3% MFU)

Gray bar: Full Recompute (100% baseline per model); Dark accent bar: SP + Selective Recompute. MFU uses 312 TFLOP/s A100 peak. Source: Korthikanti et al. (2022), Table 5.

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.