Pipeline Parallelism Scheduling under Straggler Variance | SciXa AI Systems Series

Pipeline parallelism fits trillion-parameter models by splitting the layer stack across ranks, and the schedule — GPipe's flush, 1F1B's bounded.

ScixaTeam
October 9, 2026 • 99 min
116
Views
0
Likes
0
Comments
Pipeline Parallelism Scheduling under Straggler Variance | SciXa AI Systems Series
Pipeline Parallelism Scheduling under Straggler Variance | SciXa AI Systems Series

SciXa AI Systems Series · Cluster Article 48 of 100 · Parallelism Systems

Pipeline Parallelism Scheduling under Straggler Variance

Pipeline parallelism fits trillion-parameter models by splitting the layer stack across ranks, and the schedule — GPipe's flush, 1F1B's bounded in-flight activations, or interleaved virtual stages — is where the trade between bubble, memory, and boundary traffic is struck. This article carries the full account: the bubble arithmetic and the ledger of terms that actually determine measured utilization; in-flight activation memory per schedule; how straggler variance propagates through the relay and turns the slowest rank into the pipeline's clock; interleaving-depth and microbatch-count tuning; placement across slower interconnects; and the decision guidance read against the documented configurations of the frontier record.

SciXa Research Desk

Published October 7, 2026 · Updated October 7, 2026 · Cluster companion to the pillar Foundation Model Training at Scale: Architectures, Budgets, and Systems · Expert reading level

This article is a companion cluster article in the SciXa AI Systems Series. It expands one thread of the pillar page Foundation Model Training at Scale: Architectures, Budgets, and Systems, which covers the full landscape of foundation model training: scaling laws, architectures, parallelism, memory systems, stability, data engineering, and run economics.

1. The Pipeline Deal: Depth Partitioning for a Time Price

Pipeline parallelism is the partitioning that arrives when the model no longer fits by any other means: tensor parallelism splits one layer's weight matrices across accelerators, while pipeline parallelism splits the layer stack itself, assigning contiguous depth intervals — stages — to disjoint rank groups, so that a microbatch's hidden states flow from rank to rank along the depth axis (Shoeybi et al., 2019; Narayanan et al., 2021a). The division of labor is clean: each stage holds its slice of parameters, gradients, and optimizer state; each boundary passes activations forward and their gradients back; no rank ever materializes the full model. What the partition buys is fit — a trillion-parameter configuration that neither a single device nor a single tensor-parallel group could hold — and what it costs is time, because the first microbatch must walk the pipeline before any backward can begin, and the last backward must drain before the step completes. The bubble is the name for that structural idleness, and the schedule is the discipline that decides how much of it each step pays.

The field's answer set for that discipline has stabilized into three canonical schedules, and this article treats them as the whole of the deployed record: the GPipe flush, which runs all microbatches' forwards and then flushes all their backwards (Huang et al., 2019); 1F1B — one-forward-one-backward — which interleaves the two directions once the pipeline warms up, the synchronous schedule the Megatron-LM efficiency study adopted from the PipeDream lineage (Narayanan et al., 2021a; Narayanan et al., 2019); and interleaved 1F1B, which virtualizes each rank into several stages to shrink the bubble at a communication price (Narayanan et al., 2021a). Each schedule re-draws the same trade — bubble against in-flight activation memory against boundary traffic — and each leaves a different coefficient on the cluster's stragglers, which is the article's second subject and the one the schedule names undersell.

The straggler twist deserves its place in the opening, because the idealized arithmetic that organizes most pipeline discussions assumes a world without it. In the equal-cost model every stage computes every microbatch in exactly the same time, communication is free, and the bubble is a deterministic function of stage count and microbatch count. In a documented cluster, stage times vary per rank and per step — input pipelines stall, collectives contend across concurrent jobs, thermal management reshapes clocks, links congest — and the pipeline, being a relay, does not average this noise away: the slowest rank in a dependency chain sets the chain's pace, and the synchronization points that end every step resample the maximum across thousands of ranks. The article's organizing claim is that the schedule is a variance policy — a choice of where jitter is absorbed, buffered, or paid — and that choosing it as if variance were zero is the field's most expensive scheduling habit.

What follows is written for the engineer who owns a pipeline-parallel configuration or is about to inherit one. The article carries the full arithmetic of the three schedules — bubble formulas, in-flight activation ledgers, boundary-communication accounting — worked from first principles with every assumption stated; then the ledger of terms that actually determines measured utilization once the ideal model's assumptions fail; then variance propagation through the relay, stage imbalance as the persistent component of it, placement across slower interconnects, and microbatch-count tuning; and finally decision guidance read against the documented configurations of the frontier record, a failure gallery, and the monitoring card that keeps the whole discipline honest. The companion articles of this series carry the neighboring partitions — tensor parallelism's topology choices, context parallelism's long-sequence traffic, and the composition rules that bind all of them in thousand-GPU jobs — and this article cross-references them where the interactions bind.

One honesty note before the arithmetic begins, because pipeline numbers are quoted loosely even by careful people. The closed-form formulas below are floors computed under stated idealizations — equal stage cost, perfect overlap, zero communication latency, deterministic compute — and they are labeled as such; they are the geometry of the problem, not forecasts of any cluster's throughput. Documented configurations are quoted as disclosed, rounded, and hedged where the record's memory deserves it, and where this article derives a quantity — an expected maximum, a message size, a memory footprint — the derivation is labeled derived and its assumptions are stated inline. The evidence window is the public technical-record literature through early 2025; the scheduling frontier beyond the three canonical schedules is named as a frontier, not flattened into practice.

Continue deeper — SciXa AI Systems Series

Read more about tensor parallelism topology choices in large transformer blocks and hybrid parallelism composition rules in thousand-GPU jobs in the companion articles.

2. The Ideal Pipeline Model and Its Clock

The formal object is a pipeline of p stages processing m microbatches per training step, where a microbatch is the unit the scheduler moves — the global training batch divided into m slices per data-parallel replica, each slice small enough to be worth dispatching independently. Each stage executes a forward pass of duration t_f and a backward pass of duration t_b per microbatch, with t_b typically on the order of twice t_f in the transformer regime — the backward computes gradients for both the layer inputs and the weights — a ratio the Megatron-LM study uses openly in its own accounting (Narayanan et al., 2021a). Between stages, each microbatch's boundary activation crosses a link forward and its gradient crosses back. The ideal model's three assumptions — equal per-stage cost, free and instantaneous communication, deterministic timing — are each false in practice, and each falsification has its own section below; the model earns its keep by being the floor against which every real pipeline is measured.

T_step = (m + p − 1) · (t_f + t_b) ≈ 2 · (m + p − 1) · t_f   bubble fraction ≈ (p − 1) / (m + p − 1)

The ideal clock's derivation is worth two sentences because every later formula is a perturbation of it. The first microbatch's forward enters stage one at time zero and leaves stage p at (p − 1)·t_f; that offset is the warm-up, the pipeline filling like a shift-register. In steady state the stages process microbatches in parallel, one (t_f + t_b) pair per microbatch per stage, and the cool-down mirrors the warm-up as the last backward drains to stage one; the total is the steady cost m·(t_f + t_b) plus the two (p − 1)-deep ramps, which fold into the single (m + p − 1) term of the formula above. The bubble is everything outside the steady state: the fraction of the step in which at least one rank is idle for structural reasons, (p − 1)/(m + p − 1) in this model, independent of t_f and t_b's absolute values — the ideal bubble is a ratio of counts, which is why it survives hardware generations intact while the terms that violate its assumptions do not (Huang et al., 2019).

The microbatch count m deserves its status as the scheduler's principal knob, and it earns it by being mathematically free. The training recipe fixes the global batch — the number of tokens whose gradients are averaged into one optimizer update — and the critical-batch-size literature fixes its useful ceiling: past the critical size, additional batch buys noisefree throughput at no loss-reduction benefit, so the recipe's global batch is a scientific constraint, not a scheduling variable (McCandlish et al., 2018; Smith et al., 2018). Given that global batch, the product of data-parallel degree, microbatch count, and microbatch size is fixed, and the schedule's choice of m changes nothing about the gradient computed — the accumulated microbatch gradients average to exactly the global-batch gradient, in exact arithmetic. The scheduler is therefore free to choose m purely on systems grounds: larger m shrinks the bubble's fraction, at memory and communication prices the later sections price precisely — a freedom the batch-size and noise-scale articles of this series treat from the optimization side.

Efficiency is measured, in this literature, as model FLOPs utilization — achieved throughput over the device's dense peak for the model's forward-and-backward FLOP count — and the bubble is the first subtraction from it. The documented frontier record gives the scale of the residual gap: the Llama 3 herd's 405-billion-parameter campaign reported sustained throughput on the order of 400 teraFLOP/s per H100 accelerator over the pretraining run — roughly two-fifths of that device's dense bf16 peak as disclosed — an aggregate figure that nets out the pipeline bubble, tensor-parallel communication, stragglers, data stalls, and every other loss into one number (Grattafiori et al., 2024; NVIDIA, 2024). The gap between the ideal formula's few-percent bubble and a disclosed two-fifths utilization is the article's ledger problem: the terms are individually small, jointly decisive, and individually attributable only with instrumentation — which is why the measurement sections carry as much weight as the arithmetic ones.

The three canonical schedules can now be stated as three answers to a single question: when does a stage begin its backwards? GPipe answers after all forwards complete — the flush; 1F1B answers as soon as the warm-up's worth of activations is in flight and a backward is available — the alternating steady state; interleaved 1F1B answers as above but chops each rank's stage into virtual stages so that the first backward arrives sooner (Huang et al., 2019; Narayanan et al., 2021a). The question's framing is deliberately temporal: all three schedules compute the same gradients, move the same activations in aggregate, and differ only in the order and residency of their operations — which is why their comparison is a memory-and-time envelope comparison, and why the next three sections are structured as exactly that.

Continue deeper — SciXa AI Systems Series

Read more about gradient accumulation trade-offs at very large batch sizes and critical batch size dynamics in pretraining regimes in the companion articles.

3. GPipe and the Flush: The Memory-Expensive Baseline

GPipe's schedule is the simplest honest answer to the backward-timing question, and its mechanics fit in one paragraph: every stage executes the forward pass for all m microbatches as they arrive; when the last stage finishes the last forward, the flush begins — the backward wave, in which each stage computes all m backwards as its upstream dependencies complete — and the step ends when the first stage finishes the last backward (Huang et al., 2019). The schedule's synchronization semantics are a full barrier at the flush boundary: no rank begins a backward until the forward wave has fully traversed the pipeline, which makes the schedule trivially deterministic, trivially reproducible, and — the property the next sections will price — maximally exposed to the step's slowest rank, because the barrier redraws the maximum over all stages and all microbatches before any backward work can begin.

The bubble arithmetic follows directly from the clock: with m microbatches and p stages, the step spans (m + p − 1)(t_f + t_b) and the bubble is the (p − 1)(t_f + t_b) of ramp time — a fraction (p − 1)/(m + p − 1), in the equal-cost model. Worked numbers make the formula's bite concrete: at eight stages and eight microbatches the fraction is 7/15, roughly 47 percent — nearly half the step is structural idleness; at eight stages and 64 microbatches it falls to 7/71, roughly ten percent; at 64 stages, the depth the trillion-parameter Megatron-LM configuration deployed, the fraction is 63/127 at m = 64 — about half the step — and only falls under ten percent once m climbs into the hundreds (Narayanan et al., 2021a). The formula's most important qualitative property is the ratio it enforces: bubble below ten percent requires m to exceed roughly nine times (p − 1), and every deep pipeline therefore drags a large microbatch count behind it, with consequences the memory ledger prices next.

The flush's memory bill is the schedule's defining cost: during the forward phase a stage accumulates the activations of every microbatch it has processed and cannot release any of them until its backward for that microbatch runs, so the peak in-flight activation count is m — the microbatch count itself — at every stage (Huang et al., 2019). The per-microbatch footprint is the stage's stored intermediate tensors for backward, which the sequence-parallelism analysis of this era put at on the order of a few dozen s·b·h bytes per transformer layer in half precision — with s the microbatch's sequence length, b the microbatch size, h the hidden width, and the tensors sharded where the stage's slice parallelizes internally (Korthikanti et al., 2023). Activation recomputation shrinks the per-layer footprint — the checkpointing article of this series carries the recomputation arithmetic — but recomputation changes the coefficient, not the O(m) in-flight scaling: a deep GPipe pipeline holds O(m) checkpoints instead of O(m) full activation sets, still a count-driven residency. The flush's memory is the reason deep pipelines at large m are impossible without either another schedule or aggressive recomputation, and both choices re-enter the time ledger as extra backward compute.

The flush's variance semantics complete the baseline's picture, and they are worse than the memory: because the backward wave cannot begin until the entire forward wave completes, a straggler anywhere in the forward phase delays every rank in the pipeline — the slow microbatch on the slow stage gates the flush for all p stages — and the same gating repeats in the backward drain. The barrier structure means the step time is not the sum of typical stage times but a function of the slowest rank's slowest microbatch, a maximum redrawn every step over a population of p·m stage-microbatch slots; the variance section will formalize this as the max-of-many effect, but the qualitative point belongs here: GPipe converts per-rank jitter into step time with a coefficient of one — nothing in the schedule absorbs, buffers, or hides it — and a cluster whose rank step-time distribution has a heavy tail will pay that tail at every single step under the flush schedule, a tax the equal-cost formula is structurally blind to (Huang et al., 2019).

Why, with this bill, does GPipe persist in the deployed record? Three honest reasons. Simplicity: the schedule is a two-phase loop with one barrier, implementable in an afternoon and debuggable from a single timeline trace, which the framework-internals perspective values more than throughput engineers admit. Determinism: the flush's full synchronization makes step timing, memory peaks, and communication ordering reproducible run to run — a property the seed-governance and debugging practices of this series lean on. And recomputation synergy: because the flush already pays a backward-compute premium at scale, adding activation recomputation to a GPipe pipeline trades a known memory reduction against a known time increase on a schedule whose semantics do not change — a combination the early large-model systems exploited before the 1F1B transition (Huang et al., 2019; Korthikanti et al., 2023). The flush is the baseline the field retired for throughput and kept for semantics; its successors are the next two sections.

Continue deeper — SciXa AI Systems Series

Read more about activation checkpointing policies in memory-constrained training and cross-stack bottleneck profiling of training workloads at batch extremes in the companion articles.

4. 1F1B: The Warm-up, the Steady State, and the Memory Win

The 1F1B schedule — the synchronous PipeDream-Flush variant that the Megatron-LM efficiency study adopted — answers the backward-timing question with an interleave: each stage processes its warm-up forwards, then alternates one forward and one backward for as long as microbatches remain, then drains its backwards (Narayanan et al., 2021a; Narayanan et al., 2019). The warm-up depth is rank-dependent: the earliest stages warm up with roughly p microbatches in flight — the pipeline must fill before the first backward, computed at the last stage, can propagate back — while the last stages begin alternating almost immediately; the schedule's asymmetry is deliberate, and it is what the time-space diagram of the figure shows: the same dependency structure as the flush, re-timed so that each stage releases activations as it consumes them.

Two synchronous schedules, one dependency structure Time-space diagrams of the GPipe flush schedule and the 1F1B schedule for four pipeline stages and six microbatches, drawn with equal forward and backward cell times and zero communication cost. GPipe runs all forwards before any backward, so every stage holds up to m activations during its idle flush window; 1F1B warms up, then alternates one forward with one backward, bounding in-flight activations near the pipeline depth. Both span the same ideal total time in the equal-cost model. F1 F2 F3 F4 F5 F6 B1 B2 B3 B4 B5 B6 F1 F2 F3 F4 F5 F6 B1 B2 B3 B4 B5 B6 F1 F2 F3 F4 F5 F6 B1 B2 B3 B4 B5 B6 F1 F2 F3 F4 F5 F6 B1 B2 B3 B4 B5 B6 F1 F2 F3 F4 B1 F5 B2 F6 B3 B4 B5 B6 F1 F2 F3 B1 F4 B2 F5 B3 F6 B4 B5 B6 F1 F2 B1 F3 B2 F4 B3 F5 B4 F6 B5 B6 F1 B1 F2 B2 F3 B3 F4 B4 F5 B5 F6 B6 GPipe: all m forwards, then the flush (all m backwards) 1F1B: warm-up, then alternate one forward / one backward S1 S2 S3 S4 S1 S2 S3 S4 time → idle gaps are the bubble; F = forward microbatch, B = backward microbatch
Figure 1. Time-space diagrams of the GPipe flush (top) and 1F1B (bottom) schedules for four stages and six microbatches, drawn under the equal-cost model's assumptions — equal forward and backward cell times (in practice t_b ≈ 2 t_f) and free communication. The cells' positions are schematic organizations of the schedules' dependency structure, not measured timings. The visible contrast is residency: GPipe's stages sit idle through the flush window holding up to m activations each; 1F1B's first stage holds roughly the pipeline depth before its first backward and interleaves release thereafter. Both schedules span the same ideal total (m + p − 1)(t_f + t_b) in this model.

The memory claim is the schedule's headline and deserves its exact form: in 1F1B the number of in-flight microbatches at a stage is bounded by the warm-up depth — on the order of the pipeline depth p at the earliest stages, decreasing downstream — rather than by the microbatch count m, so the activation residency is O(p) instead of GPipe's O(m) (Narayanan et al., 2021a). The mechanism is release-as-you-consume: a stage's backward for microbatch j frees that microbatch's stored activations, and the alternating rhythm pairs every new forward with a completed backward, holding the residency flat through the steady state. The practical consequence is the schedule's raison d'être: a deep pipeline can raise m to whatever the bubble arithmetic wants — hundreds of microbatches at 64 stages — without the in-flight activation bill following m upward, because the residency ceiling is set by depth, not count. The earliest stages pay the most, and the memory-pressure profile across ranks is therefore front-loaded in a way the placement and partitioning sections will exploit and the profiling section will measure.

A correction the record owes the careful reader: in the synchronous equal-cost model, 1F1B does not reduce the bubble relative to GPipe — both span (m + p − 1)(t_f + t_b) and both carry the (p − 1) ramp as their structural idleness (Narayanan et al., 2021a). The Megatron-LM study is explicit about this in its own framing, and the confusion survives because 1F1B's predecessor — the asynchronous PipeDream with parameter stashing — genuinely shrinks idle time by letting stages run ahead, at the price of stale gradients and weight-versioning complexity (Narayanan et al., 2019). The deployed 1F1B is the synchronous compromise: the flush's semantics — one gradient per global batch, no staleness — with the stashing lineage's memory behavior, minus the stashing itself. Practitioners who quote 1F1B as the bubble fix are quoting the interleaved variant of the next section or the asynchronous lineage anachronistically; the honest statement is that 1F1B buys memory at zero bubble cost, and everything beyond that is somebody else's schedule.

The variance semantics of 1F1B are where the schedule quietly earns a second, less-advertised win: the alternating steady state is a pipeline with slack. A stage that finishes a forward early holds in-flight microbatches it can still work on; a stage whose upstream is momentarily late idles only after exhausting its in-flight buffer, so jitter smaller than the warm-up depth's worth of work is absorbed rather than propagated — the schedule's bounded residency doubles as a jitter cushion, at least for the earliest stages where the buffer is deepest. The last stage has the least slack and the least cushion, and a straggler at the tail propagates to the drain immediately; the schedule's variance absorption is therefore depth-asymmetric, strongest where GPipe was weakest (the front) and weakest where both schedules are exposed (the synchronous drain). The straggler section will formalize the slack-absorption arithmetic; the design takeaway is that 1F1B is a partial variance policy, not a variance cure — it changes the coefficient on jitter, it does not zero it.

The schedule's operational details complete the picture, because they are where the memory claim's fine print lives. The warm-up depth per stage is an implementation parameter the framework sets from the pipeline depth and microbatch count, and implementations differ in whether the earliest stage's warm-up is p or p − 1 — the residency ceiling shifts by one microbatch between conventions, a rounding error against the O(m)-to-O(p) change that matters. The drain is the mirror of the warm-up, and it is where the last backwards serialize; the schedule's communication pattern is the same per-boundary, per-microbatch activation-and-gradient traffic as GPipe's, merely re-timed — no bandwidth is saved, only latency exposure is reshaped. And the schedule composes with activation recomputation exactly as the flush does, shrinking the per-microbyte footprint inside the bounded residency; the combined configuration — 1F1B plus selective recomputation — is the workhorse of the documented record this article's closing sections survey (Narayanan et al., 2021a; Korthikanti et al., 2023).

Continue deeper — SciXa AI Systems Series

Read more about computation–communication overlap in distributed training loops and framework internals of large-scale training software stacks in the companion articles.

5. Interleaved 1F1B: Virtual Stages and the Communication Tax

The interleaved schedule is the third canonical answer, and its mechanism is a re-slicing: each physical rank hosts v virtual stages — v non-contiguous chunks of the layer stack — so that the pipeline's logical depth becomes p·v while the physical rank count stays p, and a microbatch traverses the depth in chunks, visiting each rank v times per forward instead of once (Narayanan et al., 2021a). The consequence for the warm-up is the schedule's whole point: the first microbatch's first backward depends on the first virtual stage's completion at the far end of a chunked traversal, and the traversal's ramp is measured in virtual-stage hops of shorter duration each — the pipeline fills faster in wall time even though it is deeper in stages. The Megatron-LM efficiency study introduced this as interleaved 1F1B with a virtual-stage machine-parallel count, and the trillion-parameter configuration it reported used the interleaving machinery at depth to hold the 64-stage bubble down; the study's own framing of the mechanism — a smaller time-per-stage making the (p − 1) ramp cheaper — is the honest version of the popular claim that interleaving reduces the bubble by a factor of v (Narayanan et al., 2021a).

The bubble arithmetic, stated with its hedge: in the equal-cost model the interleaved schedule's ramp is v-fold shorter in time, so the bubble fraction falls to roughly (p − 1)/(v·m + p − 1) — the same closed form with the microbatch count effectively multiplied by v — which is a derived statement from the schedule's structure rather than a verbatim quotation of any paper's formula, and the difference matters only at small m. Worked numbers: at p = 16 and m = 64, the plain 1F1B bubble is 15/79, roughly nineteen percent, and v = 4 interleaving carries it to 15/271, roughly five and a half percent — a factor-of-three-plus reduction for a quarter of the step, which is the size of win that made interleaving the default in deep configurations. At p = 64 the same v = 4 moves 63/127 — about half the step — down to 63/511, roughly twelve percent: still expensive, which is why the deepest documented pipelines pair interleaving with large microbatch counts rather than treating interleaving alone as sufficient (Narayanan et al., 2021a).

The communication bill is where the trade turns, and its accounting is simple once stated: a microbatch crossing the logical pipeline now crosses on the order of p·v stage boundaries instead of p − 1, each crossing carrying the same boundary-sized tensor — the hidden state entering the next chunk, of order s·b·h elements — so the per-microbatch point-to-point volume grows roughly v-fold, in v-fold-smaller individual messages but v-fold more of them (Narayanan et al., 2021a). Volume is one price; crossings are another: each boundary hop pays the link's latency and competes for the interconnect with every other in-flight chunk, and the schedule's traffic — spread across many small messages issued in an order the rank's virtual stages dictate — is harder to overlap with compute than the flush's bulk transfers, especially when the boundary sits on the slow inter-node link. The Megatron-LM study is direct about this cost in its own comparison, reporting communication volume growth with the virtual-stage count and the resulting placement constraint; the trade curve of the figure is the derived picture of that statement, and its minimum moving left as links slow is the design rule in miniature.

The interleaving trade-off: bubble against communication Total idealized waste per step — bubble fraction plus a communication term growing linearly in the virtual-stage count v — as a function of v, for three per-chunk communication costs. The bubble term falls as roughly (p-1)/(v m + p-1); the communication term rises as v times the per-crossing cost. The minima move left as links slow, which is the interleaving-depth decision in one picture. Derived from the equal-cost model with p = 16, m = 64; illustrative. 0 5% 10% 15% 20% 1 2 4 6 8 Virtual stages per rank (v) Wasted fraction of step time Derived model: bubble + v × comm cost fast link: deeper v still pays slow link: v = 2-3 is the optimum Fast link (0.5% per extra crossing) Interconnect-bound (1% per crossing) Slow link (2% per crossing)
Figure 2. The interleaving trade-off as a derived curve: idealized waste per step — the shrinking bubble plus the growing per-crossing communication term — against virtual-stage count v for three link classes, at p = 16 stages and m = 64 microbatches. Fast intra-node boundaries reward deeper interleaving; slow inter-node boundaries cap the useful v at two to three. The model is the equal-cost arithmetic plus a linear communication term — a derived illustration, with the per-crossing costs labeled as illustrative; the Megatron-LM study reports the qualitative trade, not these curves.

The memory ledger under interleaving is subtler than the naive chunking story suggests, and the record's fine print deserves restatement. The residency per rank is bounded by the warm-up depth in virtual-stage units — the same O(p) discipline as 1F1B, now measured in chunk-sized activation sets — but each in-flight microbatch contributes v chunk-residencies spread across the ranks it is visiting, and during warm-up the earliest physical ranks hold several microbatches' partial traversals at once. The practical statement, consistent with the study's reported behavior, is that interleaving trades a modestly larger or comparable in-flight footprint for the bubble reduction, with the per-chunk residency being smaller than a full stage's but the count of concurrently-traversing microbatches being higher; the net is configuration-specific and belongs in the measured memory ledger, not in a slogan. What interleaving does not change is the parameter, gradient, and optimizer-state residency — those follow the stage assignment, virtual or not, and the sharding articles of this series carry that arithmetic (Narayanan et al., 2021a; Rajbhandari et al., 2020).

The implementation surface is the schedule's hidden tax, and it is the reason the choice is not free even when the arithmetic favors it. Interleaved dispatch requires the rank to interleave v independent instruction streams — one per virtual stage — with the communication engine, ordering sends and receives against chunks whose microbatch indices are far apart; the framework must manage per-chunk buffers, match asynchronous receives to the right traversal, and preserve the alternating 1F1B discipline inside each stream. The framework-internals article of this series treats this machinery in detail; the scheduling-relevant summary is that interleaving multiplies the state the runtime tracks per rank, tightens the tolerances on buffer sizing, and converts some schedule slack into runtime overhead — a trade the automatic-parallelism systems price explicitly when they search over interleaving depths rather than assuming deeper is better (Zheng et al., 2022). The honest deployment guidance: treat v as a measured knob with a curve like the figure's, not a free parameter; the next sections' variance and placement terms move its optimum more than the bubble formula does.

6. Bubble Arithmetic From First Principles

The bubble formulas deserve their own derivation rather than their usual citation, because the derivation's assumptions are the terms the real ledger adds. Start with the dependency structure: a stage cannot begin microbatch j's forward until the upstream stage finished j's forward; a stage cannot begin j's backward until the downstream stage finished j's backward; and within a stage the schedule's ordering rule — all-forwards-then-all-backwards for the flush, alternate-after-warm-up for 1F1B — sequences the slots. The critical path is the longest dependency chain through the step's operation DAG; in the equal-cost model every chain that matters has the same length, (m + p − 1)(t_f + t_b), and the bubble is the idle time off that path — the ramps at the front and back where ranks wait for the wave to arrive or drain. Both canonical synchronous schedules share the critical path; the next paragraph's formula is therefore theirs jointly, and the schedules differ — as the prior sections established — in residency and slack, not in the ideal floor.

bubble(p, m) = (p − 1) / (m + p − 1)    bubble(p, m, v) ≈ (p − 1) / (v·m + p − 1)

The closed form's arithmetic consequences are the planning currency of every pipeline decision, and three of them deserve explicit statement. First, the ratio rule: single-digit bubble fractions require m to exceed (p − 1) by roughly an order of magnitude — ten percent at m ≈ 9(p − 1), five percent at m ≈ 19(p − 1) — so depth and microbatch count scale together in any well-formed configuration. Second, the depth penalty is linear-unbounded: doubling p at fixed m roughly doubles the ramp cost, which is why the deepest configurations in the documented record — the 64-stage trillion-parameter Megatron-LM arrangement — deploy with the largest microbatch counts and the interleaving machinery together (Narayanan et al., 2021a). Third, the formula's invariance: the bubble fraction is scale-free — a uniform hardware speedup, a faster kernel, or a smaller model leaves it untouched, because both ramp and steady state shrink together; utilization ratios persist across hardware generations while absolute throughputs do not, which is why the scheduling questions this article treats outlive any single accelerator generation (Dao, 2023; NVIDIA, 2024).

The ideal bubble floor against microbatch count The equal-cost model's bubble fraction (p-1)/(m+p-1) as a function of microbatch count m, for pipeline depths 4, 8, 16, and 64. Deep pipelines need microbatch counts in the hundreds to reach the single-digit bubble fractions the throughput literature treats as acceptable; shallow pipelines get there cheaply. Computed from the model's closed form; a floor, not a forecast. 0 20% 40% 60% 80% 8 16 32 64 128 256 512 Microbatches per step (m, log scale) Ideal bubble fraction Computed from (p-1)/(m+p-1), equal-cost model m ≈ 20 (p-1) keeps the bubble near 5% p = 4 stages p = 8 stages p = 16 stages p = 64 stages
Figure 3. The ideal bubble floor, computed from the equal-cost model's closed form (p − 1)/(m + p − 1), as a function of microbatch count for four pipeline depths. The annotation marks the planning rule of thumb — m on the order of twenty times (p − 1) keeps the ideal bubble near five percent. Computed values, labeled a floor: no communication cost, no imbalance, no straggler variance is carried in these curves; the following section adds the terms the floor omits.

What the formula omits begins with the backward-forward asymmetry: the derivation above wrote (t_f + t_b) as one unit, but the ramps' structure is (p − 1) slots of forward at the front and (p − 1) slots of backward at the back, and with t_b ≈ 2·t_f the cool-down is twice the warm-up — the drain, not the fill, dominates the ramp, and any schedule or kernel change that speeds backward without speeding forward shifts the split further. Kernel asymmetries compound this: the attention and matmul kernels of the modern stack have different forward and backward efficiencies, and precision changes shift both — the FP8 campaigns report materially different per-pass costs than their bf16 predecessors, and a bubble analysis calibrated on one precision's t_b/t_f ratio misprices the other's (Micikevicius et al., 2022; DeepSeek-AI, 2024). The formula also prices communication at zero: every boundary crossing in the real schedule serializes some link time against compute unless overlapped, and at interleaved depths those crossings multiply — the term the previous section's trade curve carried and the next section's ledger prices (Narayanan et al., 2021a).

The floor-versus-forecast distinction is the section's closing discipline, and it is worth a note-boxed statement rather than a paragraph's burial: the closed forms are the geometry of the dependency structure, exact under their assumptions, and useless as forecasts exactly where the assumptions fail — which is everywhere the straggler subject lives. The measured gap is not small: the equal-cost model at, say, sixteen stages and 256 microbatches predicts a bubble under six percent, while a real cluster at that depth carries all of the ledger's other terms — imbalance, tails, serialization, stalls — on top of it, and the disclosed aggregate throughputs of the frontier record land far from the model's implied utilizations (Grattafiori et al., 2024). The correct use of the formula is as the null hypothesis of pipeline diagnostics: compute the floor, measure the step, and attribute the difference with the ledger — an attribution protocol the profiling article of this series carries and the failure gallery at the article's end exercises. The engineer who quotes the formula as an expectation has not saved a paragraph; they have donated the difference to an unattributed term.

The formula is a floor, not a forecast

The closed forms (p − 1)/(m + p − 1) and (p − 1)/(v·m + p − 1) are exact under four assumptions: equal per-stage cost, deterministic compute, free and instantaneous communication, and zero imbalance. Each assumption's failure adds a term the formula does not carry. Use the closed form to bound the structural bubble, then measure the step and attribute the residual with the ledger of the next section — the attribution, not the formula, is the forecast.

Continue deeper — SciXa AI Systems Series

Read more about diagnostics of power-law fits to scaling curves and cross-stack bottleneck profiling of training workloads at batch extremes in the companion articles.

7. What Actually Determines the Bubble: The Decomposed Ledger

A measured pipeline step's wall time decomposes into a short list of terms, and naming them is the diagnostic instrument this article proposes in place of the formula-only habit. The ideal term: the FLOP count at the achieved kernel throughput — what the step would cost with perfect scheduling on the measured kernels. The structural bubble: the ramps, as the closed form carries them. The imbalance term: the steady-state's dependence on the slowest stage — a stage whose mean per-microbatch time exceeds the others' by δ percent slows the whole steady state by δ percent, unamortized, because every other stage's rhythm is gated by the bottleneck stage's. The variance term: the tails of per-rank, per-microbatch timing jitter, which the synchronization structure converts into step-time inflation through maxima — the next section's subject. The communication term: boundary transfers not fully overlapped with compute. And the stall term: everything outside the device — input pipelines, host-side launch gaps, runtime overheads — the systems literature's long tail of small percentages that sum to real money (Narayanan et al., 2021a; Zheng et al., 2022).

The imbalance term deserves its arithmetic because it is the ledger's most commonly underweighted entry: the steady-state cycle time is the maximum over stages of the per-microbatch cost, so a single stage carrying five percent extra work — an embedding-heavy first stage, a head-and-loss-heavy last stage, an unlucky layer split — costs five percent of the entire step's steady state, every step, for the whole campaign. The compounding with the structural bubble is worse than additive in the ramp region: imbalance stretches the warm-up's per-slot duration on the heavy stage, deepening the ramp every downstream rank waits through. The documented remedies are partitioning-side — cost-balanced stage assignment, treated in its own section below, and the automated partitioners whose cost models search over splits (Zheng et al., 2022) — and the measurement-side rule is simple: a per-stage mean-time profile whose max-to-mean ratio exceeds a few percent is an unpaid debt the schedule cannot amortize; no choice of m, v, or schedule family recovers it, because the steady state is not a schedule quantity, it is a partition quantity.

The variance term's arithmetic is the max-of-many effect, and its shape is the article's core systems claim. Within a step, every synchronization point — the flush barrier in GPipe, the drain in 1F1B, the data-parallel gradient reduction that ends the step in any hybrid configuration — forces every participating rank to wait for the slowest participant, so the step's tail behavior is the maximum over thousands of draws from the per-rank timing distribution, not the distribution's mean. Classical extreme-value asymptotics put the expected maximum of N roughly Gaussian draws at μ + σ·√(2 ln N): a per-rank standard deviation of one percent at 4,096 ranks inflates the expected critical path by roughly four percent — small; the same one percent at heavy-tailed distributions, where the asymptotic understates the tail, costs multiples of that; and the frequency arithmetic is brutal — a one-in-a-hundred per-rank event is, at 4,096 ranks, a better-than-even bet every single step (1 − 0.99⁴⁰⁹⁶ ≈ 1). The ledger's variance term is therefore governed by the tail of the slowest rank's distribution times the step frequency — a quantity no bubble formula sees and every long campaign pays.

The communication term's accounting: each boundary crossing costs the link time of a message of order s·b·h elements — a derived size, the hidden state entering the next stage — plus latency, and the schedule's overlap quality determines what fraction of that serializes against compute. The plain schedules issue one crossing per microbatch per boundary and can pipeline them behind compute naturally; interleaving multiplies the crossing count by v while shrinking each message not at all — the boundary tensor is the full hidden state, only the stage slice behind it shrinks — so the serialization exposure grows with v exactly as the trade curve of the interleaving section carried (Narayanan et al., 2021a). The stall term resists closed-form treatment by nature — input-pipeline hiccups, Python-side gaps, launch overheads, collective contention from co-scheduled jobs — and the profiling discipline is the only instrument: per-rank step decomposition, kernel timelines, and the cross-stack attribution methodology the profiling article of this series exists to teach (Zheng et al., 2022).

A step-time ledger: where the wall time actually goes Illustrative composition of a mid-size pipeline-parallel step before and after scheduling remedies, as shares of wall time. The ideal compute share is the FLOP count at achieved kernel throughput; every other term is a loss the equal-cost formula does not carry. The magnitudes are illustrative ranges from the systems literature's reported diagnostics, not measurements of any specific campaign; the ledger's structure — not its values — is the content. 0 25 50 75 100 Before tuning After tuning Share of step wall time (%) Illustrative shares, structure not values Ideal compute (forward+backward) Pipeline bubble (ideal ramps) Stage imbalance (mean) Straggler tails (variance) Boundary comm serialization Host, data, launch stalls
Figure 4. The step-time ledger as an illustrative stacked composition: ideal compute plus the five loss terms, before and after a scheduling-tuning campaign. The shares are illustrative — drawn as representative magnitudes from the systems literature's reported diagnostics, not measured from any specific run; the after column assumes stage rebalancing, microbatch-count increase, and variance remediation, with the communication and host terms largely unchanged. The ledger's structure — six attributable terms — is the figure's content; any real campaign's numbers come from its own telemetry.

Reading the ledger is the operational skill the section exists to teach, and it closes on the reading protocol. First, compute the floor: the closed-form bubble at the configuration's (p, m, v) — the null hypothesis. Second, decompose the measured step: per-rank, per-stage timings across many steps, giving the mean profile (the imbalance term), the per-rank variance and tail shape (the variance term), the boundary-link utilization traces (the communication term), and the residual gaps against kernel timelines (the stall term). Third, attribute the difference between measurement and floor to the named terms and rank them by cost — the ranking tells the operator which of the article's levers to pull: partitioning for imbalance, microbatch count or interleaving for the structural bubble, placement and overlap for communication, and the straggler remedies for variance. The protocol's discipline is the same one the scaling-diagnostics article of this series applies to loss curves: never argue with an aggregated number when a decomposition is available, because the aggregate — the disclosed 400-teraFLOP/s-class throughput figures included — prices nothing and attributes nothing (Grattafiori et al., 2024).

Continue deeper — SciXa AI Systems Series

Read more about cross-stack bottleneck profiling of training workloads at batch extremes and gradient telemetry in distributed run debugging in the companion articles.

8. In-flight Activation Memory Per Schedule

The memory object the schedules differ over is the activation set: the intermediate tensors each stage must retain from a microbatch's forward until its backward — attention expansions, layer inputs around each matmul, normalization statistics — with the per-layer footprint the sequence-parallelism analysis put at on the order of a few dozen s·b·h bytes in half precision for a standard transformer layer, before sharding and before recomputation (Korthikanti et al., 2023). The schedule's role is to set the multiplier on that footprint: how many microbatches' activation sets are simultaneously resident at each rank — the in-flight count — and therefore the activation memory's scaling law. This is the cleanest schedule-vs-schedule comparison in the whole subject, and the table at the section's end compresses it; the paragraphs walk the ledger that fills it.

peak activation memory at stage i ≈ in-flight(i) × A_stage(i),   in-flight ∈ { m (GPipe), ≈ p − i + 1 (1F1B), chunked (interleaved) }

GPipe's row is the O(m) law: the flush holds every microbatch's activations from its forward until the backward wave reaches it, so the peak count is m at every stage and the activation memory scales linearly with the microbatch count — the direct conflict with the bubble arithmetic, which wants m large. Worked at representative magnitudes, the collision is concrete: a stage holding 24 transformer layers at a sequence length of four thousand tokens, microbatch size one, hidden width eight thousand — roughly 27 gigabytes of unsharded activations per microbatch at the few-dozens-of-bytes-per-element-per-layer accounting — holds roughly 880 gigabytes at 32 microbatches in flight, past any single device's high-bandwidth memory before the stage's own parameter and optimizer slices arrive; sharding the attention and feed-forward expansions across an eight-wide tensor group divides the sharded tensors' share roughly eight-way, and full recomputation — storing only layer-boundary states, tens of megabytes per layer — brings the per-microbatch set to single-digit gigabytes, moving the ceiling without removing the O(m) scaling (Huang et al., 2019; Korthikanti et al., 2023).

1F1B's row is the O(p) law, and its derivation is the warm-up structure: a stage's in-flight count is bounded by the number of forwards it performs before its first backward — the warm-up depth, on the order of p at the first stage and decreasing downstream — because the alternating rhythm pairs each subsequent forward with a completed backward, holding the count flat (Narayanan et al., 2021a). The same 24-layer stage above holds roughly p microbatches at peak rather than m: at 16 stages and 256 microbatches, the in-flight residency is bounded near the depth — on the order of four hundred gigabytes unsharded in the derived arithmetic, tens of gigabytes once sharded or checkpointed — while the flush would hold the full 256-microbatch set. This is the quantitative content of the schedule's memory win, and it is also the win's limit: the bound is set by depth, so deep pipelines pay a depth-proportional activation floor that only recomputation or chunking reduces, and the front stages — the deepest warm-ups — carry the largest residency, a front-loaded memory asymmetry the rank-sizing and placement decisions must respect (Narayanan et al., 2021a; Korthikanti et al., 2023).

The interleaved row is the chunked middle case: each in-flight microbatch contributes v chunk-residencies — a chunk's activation set, smaller than a full stage's by the chunk's layer count — spread across the ranks of its traversal, with several microbatches traversing concurrently during warm-up. The net residency is comparable to 1F1B's in steady state, modestly larger during warm-up in the configurations the record reports, and the per-chunk footprint responds to the same recomputation and sharding levers as the full stage's (Narayanan et al., 2021a). The guidance that falls out of the full ledger: memory-constrained configurations reach for 1F1B over the flush for the O(m)-to-O(p) change; recompression via selective recomputation then shrinks the per-unit footprint, with the sequence-parallelism sharding dividing the remaining tensors across the tensor-parallel group; and interleaving is purchased, when memory allows, with the bubble's reduction against the communication bill — never as a memory measure, since its residency direction is neutral-to-adverse. The checkpointing and sharding articles of this series carry the levers' own arithmetic; this article's contribution is the multiplier each schedule sets on them.

PropertyGPipe flush1F1BInterleaved 1F1BAsync stashing (PipeDream)
Ideal bubble fraction(p−1)/(m+p−1)(p−1)/(m+p−1)≈ (p−1)/(v·m+p−1), v-fold smallerSmallest in theory; run-ahead bounded by staleness policy
Peak in-flight activationsm per stage≈ p at earliest stages, less downstreamComparable chunks in flight during warm-up; chunked residencyBounded by buffer depth plus weight versions
Boundary traffic per microbatchp−1 crossingsp−1 crossings≈ v-fold more crossings, same per-crossing sizeSame volume, re-timed asynchronously
Synchronization semanticsFull barrier at flushSynchronous, per-step flush of drainsSynchronous, virtual-stage orderingAsynchronous; stale gradients, weighted averaging
Variance exposureMaximum: barrier redraws the max each stepPartial slack via in-flight buffers; front-loadedSlack similar; more exposed tails on commAbsorbs jitter by run-ahead; adds staleness noise
Determinism / replayFully deterministicDeterministic given fixed dispatchDeterministic but ordering-constrainedTiming-dependent; replay needs logged order

Table 1. The three canonical schedules plus the asynchronous lineage, compared on the properties the scheduling decision actually trades: ideal bubble fraction, peak in-flight activation scaling, per-microbatch boundary traffic, synchronization semantics, variance exposure, and replay determinism. The bubble entries are the equal-cost model's closed forms; the memory and traffic entries summarize the sections above; the variance column is the qualitative exposure the straggler sections develop. Compiled from the cited schedules' reported properties (Huang et al., 2019; Narayanan et al., 2021a; Narayanan et al., 2019).

9. Straggler Variance: Sources, Shapes, and the Tail Arithmetic

A straggler, in the pipeline context, is any rank whose step or slot time departs upward from its stage's typical time — a per-rank, per-step random variable whose distribution's upper tail is what the schedule pays. The sources are a systems litany, and each item's physics differs enough to matter for remediation: the input pipeline (tokenization and batch assembly landing late on one rank's host threads); host-side jitter in the training loop itself — Python dispatch gaps, allocator stalls, launch overheads — visible as gaps between kernel timelines; network contention, including collectives from co-scheduled jobs sharing the interconnect's rails; device-side variability from thermal management and clock scaling, where sustained boost states differ across ranks with position in the rack and neighbor load; memory-system events such as error-correcting scrubbing; and heterogeneous hardware populations — accelerators from different revision batches or with different attached memory configurations behaving measurably differently under identical code. None of these is exotic; all of them are routine at the scale where pipelines run, and the composition of many small mechanisms is precisely what produces heavy tails (Narayanan et al., 2021a; Zheng et al., 2022).

The distributional shape matters more than the mean, and the right mental model is a Gaussian core with a mechanism-generated tail: the central body of per-rank step-time variation is the sum of many small independent effects — approximately normal, a few tenths of a percent wide in healthy clusters — while the tail is generated by discrete events — a contention window, a scrub cycle, a stalled input batch — whose probabilities are small per rank per step but whose magnitudes are percent-scale. The step-level consequence is governed by the maximum over the synchronizing population, and the classical extreme-value asymptotic for Gaussian cores puts the expected maximum of N draws at μ + σ√(2 ln N): the inflation grows with the logarithm of the rank count — slowly, but without bound — and for event-generated tails the asymptotic understates the growth, because the maximum is drawn from the event distribution whenever any event fires. The figure renders the Gaussian-core version; the honest reading of any measured cluster sits above its curves to the degree that its tail is event-generated.

The expected maximum grows with the rank count Expected step-time overrun from the max-of-many effect — the classical Gaussian extreme-value asymptotic E[max of N] ≈ μ + σ√(2 ln N) — as the number of synchronizing ranks grows, for three per-rank coefficients of variation. Slow-moving on the log axis, inexorable in effect: at frontier rank counts, even one percent per-rank jitter prices at a multi-percent step inflation, and heavy-tailed distributions exceed the Gaussian curve. Derived from the asymptotic; illustrative. 0 5% 10% 15% 20% 25% 16 64 256 1k 4k 16k Synchronizing ranks (N, log scale) Expected step-time inflation Gaussian extreme-value asymptotic, derived 1% CV at 4k ranks: ~4% step inflation Per-rank CV = 1% Per-rank CV = 3% Per-rank CV = 5%
Figure 5. Expected step-time inflation from the max-of-many effect, computed from the Gaussian extreme-value asymptotic E[max of N] ≈ μ + σ√(2 ln N), for per-rank coefficients of variation of one, three, and five percent, against the number of ranks synchronizing at each step's barrier. Derived curves: the asymptotic is exact for Gaussian per-rank distributions and understates heavy-tailed ones; the √(2 ln N) growth is logarithmic — visible as the curves' slow creep across four orders of magnitude of rank count.

The frequency arithmetic is the tail's multiplier, and it converts rare events into every-step events at scale: the probability that no rank in a population of N experiences a per-rank probability-ε event in a given step is (1 − ε)^N, which decays toward zero with N at fixed ε. Worked at the frontier's scales: a one-percent-per-rank event at 512 ranks fires in roughly ninety-nine steps out of a hundred — effectively always; at 4,096 ranks, a one-in-ten-thousand per-rank event fires in roughly a third of steps; at sixteen thousand ranks, events with per-rank probabilities of a few hundredths of a percent become per-step certainties. The straggler question at scale is therefore not whether a step contains a straggler — it does, with probability approaching one — but how large the maximum departure is and what the schedule does with it. This is the arithmetic behind the article's organizing claim: schedule choice under variance is a decision about the expected maximum's coefficient, and the barrier-heavy schedules choose a coefficient near one.

The tail is the schedule's input

Every bubble formula in the literature prices the deterministic pipeline; every long campaign's utilization is governed by the per-rank timing distribution's upper tail at the synchronization points. A scheduling decision made without measured per-rank step-time histograms — mean, variance, and tail shape per stage — is a decision made with the binding term missing. Instrument first: the histogram's tail, not the formula's fraction, sets the achievable utilization.

Persistent and transient stragglers must be separated before any remedy is chosen, because they land in different ledger terms and want different cures. A persistent straggler — a rank slow every step, from a thermal condition, a mis-pinned host thread, a degraded link, a NUMA misconfiguration, or simply a heavier stage assignment — is imbalance in the ledger's sense: it shifts the stage's mean, it costs its full percentage every step, and its remedies are partitioning and placement, not scheduling. A transient straggler — a one-off contention window or scrub event — is variance: it costs only its exceedance over the available slack, its remedy is slack and overlap, and misdiagnosing it as imbalance (repartitioning for a ghost) or as variance (buffering a permanent drag) spends the wrong budget. The separation instrument is the time-series of per-rank means: a rank whose rolling mean is stably elevated is persistent; a rank with a normal mean and a heavy tail is transient. The gradient-telemetry and profiling articles of this series carry the instrumentation stack; the scheduling decision's input is its output.

Why the pipeline is unusually variance-exposed, relative to the other parallelisms, closes the section: in pure data parallelism with gradient accumulation, a slow rank delays only the final reduction — and elastic accumulation, overlapping the slow rank's compute with other ranks' accumulation, hides much of it; the reduction is one synchronization per step and the slow rank's work overlaps the others'. In the pipeline, the dependency chain is per-microbatch: a slow stage gates its upstream's backward drain and starves its downstream's forward supply within the same step, so the same jitter event propagates through the relay structure rather than waiting at one barrier; and in hybrid configurations both structures synchronize — the pipeline's drain and the data-parallel reduction — so the step's critical path traverses both maxima. The next section traces that propagation formally; the design implication is already visible: pipeline-heavy configurations need variance instrumentation earlier than data-parallel-heavy ones, because the relay multiplies the exposure the barrier merely samples (Narayanan et al., 2021a; Zheng et al., 2022).

Continue deeper — SciXa AI Systems Series

Read more about gradient telemetry in distributed run debugging and seed variance and run-to-run capability spread in pretraining in the companion articles.

10. Variance Propagation Through the Relay

Propagation is the pipeline's second-order behavior, and its formal object is the dependency DAG: every slot in the schedule — stage i, microbatch j, direction forward or backward — has predecessors, and a slot's start time is the maximum over its predecessors' finish times plus its own compute; the step's wall time is the longest path. A delay injected anywhere enters this max-plus algebra — the formalism the scheduling literature uses for its propagation results — and propagates with two properties worth naming. Delays are not additive: two independent delays on parallel paths cost only the larger one at their confluence, so the relay's total exposure is a maximum of sums, not a sum of maxima. And delays are not symmetric: an upstream forward delay propagates through everything downstream of it — every stage's every slot that depends on that activation — while a late-stage backward delay propagates only through the drain; the cheapest places to be slow are the places with the fewest dependents, which is why last-stage variance and first-stage variance price differently even at identical magnitude.

start(slot) = max over predecessors of finish(pred) + compute(slot) — a max-plus system; step time = longest path

Slack is the propagation's absorbing medium, and the schedule's slack map is its variance policy in miniature: a slot whose predecessors finished early has slack, and a delay smaller than the slack is absorbed — invisible to every downstream slot — while a delay exceeding the slack passes through as the exceedance. The schedules' slack maps differ rank by rank: 1F1B's front stages carry warm-up-deep in-flight buffers — several microbatches of work available while waiting — so upstream jitter below that depth never reaches the steady state's critical path; its last stages carry almost none, so tail-stage jitter passes directly into the drain; GPipe's flush carries no intra-step slack at all by construction — the barrier is the schedule — but its step-level cadence resets all delays each step, so variance never accumulates across steps, a property the asynchronous schedulers trade away deliberately. The asynchronous lineage's run-ahead is slack taken to the extreme — stages compute future microbatches on stashed weights while waiting — and its price is gradient staleness, the subject of the scheduling-frontier section (Narayanan et al., 2019).

Slack absorption: how in-flight buffers blunt the maximum Illustrative model of variance absorption: step-time inflation from the max-of-many effect against per-rank coefficient of variation, for three in-flight slack depths, at a fixed rank count of 1,024. Zero slack (a hard barrier each step) pays the full expected maximum; deeper in-flight buffers absorb jitter below the buffer depth and pay only the excess. The exponential absorption model is illustrative — the real absorption depends on the jitter's autocorrelation and the schedule's dispatch policy, not just depth. 0 10% 20% 30% 0 2% 4% 6% 8% Per-rank coefficient of variation Step-time inflation Illustrative absorption model, N = 1,024 ranks 1F1B's front-stage buffers sit here last stage + drain: least slack Barrier schedule (no slack) Moderate slack (depth ≈ 4) Deep slack (depth ≈ 16)
Figure 6. An illustrative model of slack absorption: step-time inflation against per-rank coefficient of variation for three slack depths at a fixed rank count of 1,024, with the barrier schedule paying the full expected maximum and buffered schedules absorbing jitter below their buffer depth. The exponential absorption curve is a pedagogical model — real absorption depends on the jitter's autocorrelation, the buffer's dispatch policy, and the schedule's ordering constraints — but the qualitative ranking it renders is the schedules' real ranking: 1F1B's front-stage buffers sit between the shallow and deep curves, its drain and last stage near the barrier curve.

The step-level maximum, redrawn at every synchronization point, is the propagation's aggregator, and its arithmetic ties the section to the ledger: the expected step time is the expected maximum over the synchronizing ranks' finish times — the μ + σ√(2 ln N) asymptotic for Gaussian cores, worse for event tails — and the pipeline's two synchronization surfaces (the drain and the data-parallel reduction, in hybrid configurations) each redraw their own maximum, the step paying the larger. The variance term of the utilization ledger is therefore not a mystery tax: it is the expected maximum's inflation over the deterministic step time, computable from the measured per-rank distribution and the rank count, and monitorable online as the difference between the p99 and p50 of step time — a single-number health metric the monitoring card at the article's end carries. A pipeline whose p99-p50 gap grows is accumulating tail mass somewhere in the relay, and the per-stage histograms localize which link of the chain the mass enters through (Narayanan et al., 2021a; Zheng et al., 2022).

The bubble's interaction with variance completes the picture, and it explains a measurement puzzle practitioners meet often: the ideal bubble and the variance term are not additive — variance inflates the ramps themselves. The warm-up and drain are the schedule's shallow-slack regions — every rank is waiting on a specific predecessor, with nothing else to compute — so straggler events landing in the ramps propagate with coefficient one, while the same events in the steady state are partially absorbed; measured bubble fractions in real clusters therefore exceed the closed form by more than the steady-state variance alone predicts, and the excess scales with the tail's heaviness. The diagnostic signature is temporal: ramp-region stall traces concentrated on the first and last stages, steady-state stalls distributed. The design corollary: remedies that shorten the ramps — interleaving's faster fill, larger m's longer steady state — are also variance remedies, because they shrink the schedule's exposed-shallow regions; and remedies that deepen steady-state slack — larger warm-up buffers, run-ahead — protect only the middle. A complete variance policy does both, and the documented configurations' choices of large m with interleaving are readable as exactly that compound decision (Narayanan et al., 2021a).

Continue deeper — SciXa AI Systems Series

Read more about computation–communication overlap in distributed training loops and collective communication patterns in data-parallel training in the companion articles.

11. Stage Imbalance and the Partitioning Problem

The partitioning problem is the pipeline's mean-side counterpart to the variance problem: given the layer stack, assign contiguous layer intervals to stages so the stages' per-microbatch costs match — the steady state's cycle time being the maximum over stages, any mean mismatch is paid in full, every step, as the ledger's imbalance term. The naive split — equal layer counts per stage — fails for identifiable structural reasons: transformer blocks are near-uniform in cost, but the stack's ends are not — the first stage carries the embedding lookup and its wide parameter slice, the last stage carries the output head, the unembedding matrix multiplication over the vocabulary, and the loss computation; layernorms and dropout have different memory and compute profiles than the attention and feed-forward cores; and any attached components — prediction heads, auxiliary losses, mixture-of-experts routing — break the uniformity the equal-split assumes (Shoeybi et al., 2019; Brown et al., 2020). The imbalance from a mispriced end-stage is percent-scale — the ledger's arithmetic: a five-percent-heavy stage costs five percent of the step — which is why the partitioning literature treats cost-model-driven splitting as its baseline requirement rather than an optimization.

The cost model the partitioners optimize is per-layer measured compute time, not parameter count, and the distinction is the field's most common partitioning error: a stage holding equal parameters can carry unequal time — vocabulary-embedding parameters are memory-resident but compute-light per token, while attention projections are compute-dense — so parameter-balanced splits misprice time systematically, front-loading or back-loading the real bottleneck. The measured profile is the honest input: run the target configuration's layers on the target hardware at the target sequence length and precision, tabulate per-layer forward and backward times, and partition the tabulated sequence — a dynamic-programming split over the cost sequence, the same formulation the automated systems use internally. Alpa's inter-operator pass formalizes exactly this: a cost-model-driven stage assignment searched jointly with the intra-operator parallelization, with the pipeline's stage count itself a search dimension rather than a fixed input (Zheng et al., 2022). The manual practice the automated work replaces — profile, split by hand, re-profile — remains the fallback, and its discipline is the same: split on measured time, verify by measured stage means, iterate until the max-to-mean ratio is flat.

Variance-aware partitioning is the mean-side problem's second moment, and the record's cost models mostly ignore it: two stages with equal mean time but different variance are not equal partition neighbors — the high-variance stage sets the steady state's tail behavior as well as its mean exposure, and the max-plus propagation of the prior section makes the high-variance stage's location matter (early stages propagate more; late stages hit the drain directly). The principled extension prices each candidate split by the expected maximum of the stages' time distributions rather than the maximum of their means — a derived objective, computable from the measured per-layer time distributions, and one the scheduling literature's variance-aware work approaches from several directions without a settled canonical form; the honest current practice is two-pass: partition on means, then re-examine the split's high-variance layers, moving variance mass away from the drain-adjacent stages when the profile permits. The interaction with persistent stragglers is the sharper practical point: a rank that is stably slow for hardware reasons should not host the stage with the largest mean or the largest variance — the rank-to-stage assignment is a placement decision that the partitioner's output must respect, and the placement section carries it (Narayanan et al., 2021a; Zheng et al., 2022).

Token-dependent costs make the imbalance problem dynamic rather than static, and modern training supplies three of them: variable sequence lengths per microbatch — attention cost scales with the square of the length, so a long microbatch costs its stage multiples of a short one, and length-skewed batches skew the stage that hosts the attention-heavy layers; mixture-of-experts routing — expert load varies per microbatch, so expert-hosting stages see per-microbatch cost variance by construction, and the routing statistics' drift over training moves the imbalance over the campaign (Jiang et al., 2024; DeepSeek-AI, 2024); and precision or kernel policy changes mid-campaign — a mixed-precision phase boundary or a kernel-configuration change re-prices per-layer times and silently invalidates the partition. The remedies are batch-side and schedule-side: length-bucketed microbatch assembly (the data-engineering articles of this series carry the pipeline), expert-placement balancing in the MoE systems, and re-partitioning triggers tied to measured stage-mean drift — the monitoring card's role again. The unremedied dynamic imbalance is the failure gallery's quiet entry: a configuration that measured balanced at commissioning and drifts to several percent over a months-long run, invisible to the aggregate throughput metric, visible in every per-stage histogram.

Continue deeper — SciXa AI Systems Series

Read more about automatic parallelism discovery via training cluster simulation and sharded data-parallelism configurations in multibillion models in the companion articles.

12. Placement Across Slower Interconnects

The placement question is which boundaries cross which fabrics, and its answer follows from the two parallelisms' communication shapes. Tensor parallelism's traffic is per-layer collectives — two all-reduces per transformer block in the canonical arrangement — issued at the layer cadence, bandwidth-critical and latency-sensitive: the Megatron-LM analysis is explicit that tensor-parallel groups belong inside the high-bandwidth domain, because the collective's cost scales directly with the fabric's effective bandwidth per rank (Shoeybi et al., 2019; Narayanan et al., 2021a). Pipeline parallelism's traffic is point-to-point — one activation transfer and one gradient transfer per microbatch per boundary, sized on the order of the hidden state s·b·h elements each — issued at the microbatch cadence, volumetrically modest, and structurally more tolerant of the slower fabric: there is no all-participant collective, no straggler-amplifying reduction, and the transfers can pipeline behind compute. This contrast is the placement rule's whole content: tensor groups inside the NVLink-or-equivalent domain, pipeline boundaries across the inter-node links, data parallelism filling the remaining topology — the arrangement the documented record's hybrid configurations consistently report (Narayanan et al., 2021a; Grattafiori et al., 2024).

per-boundary traffic per microbatch ≈ 2 · s · b · h · β elements’ bytes — forward activation plus returning gradient (β = 2 in bf16)

The bandwidth arithmetic, worked at datasheet magnitudes with the derived message sizes: a boundary transferring a hidden state of sequence length four thousand, microbatch one, hidden width eight thousand, in bf16 moves roughly 64 megabytes per direction per microbatch — a derived number — and at 64 microbatches per step the boundary carries roughly eight gigabytes forward-and-back per step. On an intra-node fabric of the NVLink class — hundreds of gigabytes per second per direction in the datasheet era (NVIDIA, 2024) — the transfer is a small fraction of the per-microbatch compute time; on an inter-node link of the InfiniBand class — tens of gigabytes per second per network adapter — it is a material term that must overlap the receiving rank's other compute to stay off the critical path. The overlap feasibility is the schedule's contribution: point-to-point traffic with per-microbatch granularity gives the runtime many independent transfers to pipeline, which is precisely the structure that overlaps well — and the interleaved schedule's multiplication of crossings is the structure that erodes it, the trade curve of the interleaving section being this arithmetic's summary (Narayanan et al., 2021a).

Placement: what stays inside the fast domain, what crosses Schematic organization of a hybrid placement for a pipeline stage of tensor width eight: the tensor-parallel group sits inside one node's NVLink/NVSwitch domain, its per-layer all-reduces never leaving the fast fabric; the pipeline boundary crosses the inter-node link as point-to-point activation and gradient transfers, one pair per microbatch per boundary. Data-parallel replicas (not shown) fill the remaining nodes and synchronize separately. The bandwidth gap between the two fabrics is roughly an order of magnitude or more in the datasheet era (NVIDIA, 2024). Node A — NVLink / NVSwitch domain (tensor-parallel group of stage k) Node B — NVLink / NVSwitch domain (tensor-parallel group of stage k+1) TP TP TP TP TP TP TP TP TP TP TP TP TP TP TP TP PP boundary — point-to-point, latency-tolerant activations forward, gradients back allreduce / layer Stage k Stage k+1 Intra-node: TP collectives per layer — bandwidth-critical, stays on NVLink Inter-node: PP boundary traffic — point-to-point, one transfer pair per microbatch, tolerant of the slower fabric
Figure 7. Schematic organization of hybrid placement: a pipeline stage's tensor-parallel group resident inside one node's switch fabric, per-layer all-reduces confined to the fast domain; the pipeline boundary crossing the inter-node fabric as point-to-point activation and gradient transfers; data-parallel replicas (omitted for space) filling the remaining nodes. The fabric bandwidth gap — roughly an order of magnitude or more between intra-node switch fabrics and per-accelerator network links in the datasheet era — is the asymmetry the placement rule exploits (NVIDIA, 2024). Schematic, not to scale.

The boundary's position inside or outside the tensor-parallel group changes the message and its count, and the sharded-boundary variant deserves its arithmetic: if the receiving stage's tensor group re-shards the hidden state on arrival, the boundary traffic divides across the group's ranks, each carrying a slice — the arrangement the sharded-data-parallel systems exploit for their state transfers and the hybrid configurations use when a boundary must cross a slow link with a wide hidden state (Rajbhandari et al., 2020). The costs of sharding a boundary are latency serialization — a wide transfer becomes many narrow ones — and the receive-side reassembly before compute can begin, so the design rule is width-aware: shard boundaries whose unsharded size would serialize the slow link; leave narrow boundaries whole to preserve their latency profile. This is also where context parallelism and sequence sharding interact — a long-sequence campaign's boundary tensors are sequence-dimension-shardable, and the context-parallelism article of this series carries that arithmetic; the pipeline's placement decision is the recipient of its outputs, not their source (Korthikanti et al., 2023).

The documented record's placement practice, read as configurations: the Megatron-LM efficiency study's trillion-parameter arrangement — tensor parallelism of eight, matching the eight-accelerator node, with the pipeline's sixty-four stages spread across nodes and interleaving managing the deep ramp (Narayanan et al., 2021a); the Llama 3 herd's 405-billion-parameter campaign — as disclosed, roughly sixteen thousand H100 accelerators with eight-way tensor parallelism and sixteen pipeline stages in its four-dimensional arrangement, the placement keeping tensor groups node-local (Grattafiori et al., 2024); and the DeepSeek-V3 report's two-thousand-H800-scale campaign describing node-level pipeline stages with its disclosed communication-overlap engineering (DeepSeek-AI, 2024). The consistency across eras, hardware, and organizations — tensor-in, pipeline-across — is the strongest evidence the placement rule has: no frontier disclosure in the record places per-layer collectives on the slow fabric when the fast domain can hold the tensor group, and the inference is structural, not fashion. The composition article of this series generalizes the rule to the full four-dimensional stack; this article's contribution is the boundary-traffic arithmetic that makes the rule's exceptions computable rather than proverbial.

13. Microbatch-count Tuning: The Principal Knob and Its Caps

The microbatch count m is the scheduler's principal knob because it is the one the training recipe leaves free: the global batch is fixed by optimization science — its useful ceiling set by the critical-batch-size measurements and its schedule-independent meaning enforced by the accumulation identity — so the scheduler chooses only how the fixed batch is sliced for dispatch (McCandlish et al., 2018; Smith et al., 2018). Within that freedom, m moves three ledgers at once: the structural bubble, which falls as roughly (p − 1)/m in the large-m limit; the in-flight activation residency, which rises linearly in m under the flush and stays depth-bounded under 1F1B; and the boundary-communication count, which rises linearly in m — one crossing pair per microbatch per boundary — with the per-crossing size fixed by the hidden state, not the count (Huang et al., 2019; Narayanan et al., 2021a). Tuning m is therefore a three-ledger problem with one knob, and the tuning discipline is to price all three ledgers before moving it.

The caps deserve their own accounting, because each one binds a different configuration. The science cap: the global batch's critical size — the point past which more batch buys throughput but not loss reduction — bounds the product DP × m × microbatch-size, and the early scaling measurements that established the batch-size sensitivity of the loss are the empirical floor under it (Kaplan et al., 2020; McCandlish et al., 2018). The memory cap: under the flush, m's in-flight bill binds first, and 1F1B relaxes exactly this cap; under recomputation the per-unit footprint falls and m's ceiling rises correspondingly (Korthikanti et al., 2023). The kernel cap: microbatch size — m's sibling in the fixed product — cannot shrink indefinitely, because attention and matmul kernels lose efficiency on narrow batches; the practical floor is hardware- and kernel-version-specific, and the derived guidance is to keep microbatch size in the regime the kernel library's own tuning tables were built for. Each cap's binding identity tells the operator which ledger is theirs to relax and which is physics.

The bubble grid: depth against microbatch count The equal-cost model's bubble fraction (p-1)/(m+p-1) over the planning grid of pipeline depth against microbatch count. The single-digit region lives in the grid's lower-right — shallow pipelines, large microbatch counts — and the depth axis' cost is visible as each row's slow fade. Computed from the closed form; a floor under the model's stated assumptions, not a forecast of any cluster. m = 16 m = 32 m = 64 m = 128 m = 256 m = 512 p = 4 0.158 0.086 0.045 0.023 0.012 0.006 p = 8 0.304 0.179 0.099 0.052 0.027 0.013 p = 16 0.484 0.319 0.190 0.105 0.055 0.029 p = 32 0.660 0.492 0.326 0.195 0.108 0.057 p = 64 0.797 0.663 0.496 0.330 0.197 0.110 Computed from (p-1)/(m+p-1)
Figure 8. The bubble fraction over the planning grid of pipeline depth (rows) against microbatch count (columns), computed from the equal-cost model's closed form. The single-digit-bubble region occupies the shallow-and-many corner; depth's price is the slow fade along each row. Computed values — a floor under the model's stated assumptions: measured steps exceed these entries by the ledger's imbalance, variance, communication, and stall terms.

The worked arithmetic, read off the grid: at eight stages, 32 microbatches carry an ideal bubble near eighteen percent and 128 microbatches bring it near five; at 16 stages, the single-digit region begins near m of 150; at 64 stages — the depth of the trillion-parameter study — the grid's whole column sits above ten percent until m climbs well past 500, which is why that configuration paired its depth with both large microbatch counts and interleaving rather than treating either as sufficient alone (Narayanan et al., 2021a). The rule of thumb the grid encodes — m on the order of ten to twenty times (p − 1) for single-digit ideal bubbles — is a planning heuristic, derived from the closed form, and it is the first number any configuration review should reconcile against the disclosed schedule. Where a campaign runs materially below the heuristic's m, the record's consistent explanations are a memory ceiling the schedule could not escape or a deliberate acceptance of bubble cost in exchange for simplicity — both worth naming in review rather than leaving as an unexplained throughput gap.

The knob's failure mode is the configuration that cannot raise m at all — the memory wall under the flush with recomputation already maximal, or the data-parallel degree already at the global batch's floor — and the escape routes differ. If memory binds: 1F1B's depth-bounded residency is the direct release, followed by deeper recompression of the per-microbatch footprint; the schedule family change is usually worth several multiples of m at fixed memory, which is the arithmetic behind the 1F1B transition's adoption (Narayanan et al., 2021a). If the data-parallel floor binds — the global batch is small, the replicas are few, and m must absorb the batch — the pressure moves to p and v: fewer, fatter stages, or interleaving to buy back the bubble the small m cannot. The genuinely cornered configuration — deep model, small global batch, slow fabric — is the one where the frontier's asynchronous machinery earns its complexity, which is why the scheduling-frontier section follows the caps rather than preceding them (Narayanan et al., 2019).

Re-tuning triggers close the section, because m's optimum is not stable across the campaign's life: every change that re-prices per-pass compute or boundary traffic moves it. A precision change — the bf16-to-FP8 transitions of the recent record — shortens both t_f and t_b and shifts their ratio, re-pricing the ramps and the steady state against each other, so the bubble arithmetic and the schedule's overlap budget both need recomputation, not just the throughput forecast (Micikevicius et al., 2022; DeepSeek-AI, 2024). A recomputation-policy change lengthens t_b relative to t_f and shrinks the memory cap simultaneously — m's two ledgers move in opposite directions, and the re-tuned optimum is genuinely different (Korthikanti et al., 2023). A kernel or library upgrade — the fused-attention lineage being the canonical example — re-prices t_f and t_b differently per layer type, which can even move the partitioning's cost profile, not merely the schedule's timing (Dao, 2023). The operational rule: schedule parameters are derived quantities, re-derived whenever their inputs change, and the failure gallery carries the campaigns that skipped the re-derivation.

A starting rule for m, and its caveat

Start at m ≈ 20 × (p − 1) microbatches per step — the closed form's five-percent-bubble heuristic — then walk down to the memory ceiling and up to the communication ceiling, and keep the largest value inside both. The caveat: the heuristic prices only the structural bubble; if the measured step exceeds the predicted floor by more than a few percent, the ledger's other terms are binding, and no further increase of m buys utilization — instrument before tuning.

14. The Straggler-aware Frontier: Asynchrony, Dynamics, and Elasticity

Beyond the three canonical synchronous schedules lies a frontier organized by which synchrony assumption it relaxes, and the deployed record's relationship to it is usefully candid: the frontier is research-active, the deployments are overwhelmingly synchronous, and the gap is priced — the asynchronous machinery buys variance absorption and idle-time elimination at costs in memory, numerical semantics, and operational complexity that the frontier's papers pay openly and the production stacks have mostly declined. Three relaxation axes organize the space: relax when — asynchronous and bounded-staleness scheduling, letting stages run ahead; relax what — dynamic dispatch, letting the scheduler reassign microbatches at run time against measured stragglers; and relax how many — elastic resizing, changing the rank count and stage layout mid-campaign. Each axis has its documented exemplar and its own cost ledger, and the paragraphs carry them in that order (Narayanan et al., 2019).

The asynchronous exemplar is PipeDream: stages run ahead on stashed parameters, computing forward passes for future microbatches while backwards are still draining, with parameter stashing keeping per-microbatch weight versions consistent and weighted averaging folding stale gradients into updates in proportion to their staleness (Narayanan et al., 2019). The variance semantics are the design's point: run-ahead is slack taken without limit — a slow stage no longer gates the pipeline within a step, because its neighbors compute ahead on their buffers — so jitter is absorbed until the staleness policy or the buffer memory binds. The costs: the memory of weight stashes and in-flight versions, which the memory-efficient successors attacked directly with double-buffered weight schemes; and the numerical semantics — stale gradients are, formally, an added noise source whose scale the policy controls, an interpretation the noise-scale literature supports and the practitioner should treat as a hyperparameter with measured consequences, not a free lunch (Narayanan et al., 2021b; McCandlish et al., 2018).

Dynamic dispatch is the second axis, and its mechanisms range from microbatch-level work stealing — idle stages pulling queued microbatches from slow neighbors — to schedule-side reordering that adapts the 1F1B rhythm to measured stage-time asymmetries within the step. The variance argument is strong: a persistent within-step straggler's microbatches can be redistributed in flight, converting a gating delay into a small load imbalance; the counterarguments are determinism and replay. A dynamically scheduled run's microbatch-to-slot assignment depends on timing, so bit-exact reproduction requires logging the dispatch order, and the seed-governance and debugging practices of this series — which lean on deterministic replay for root-cause work — pay a real complexity tax for the adaptivity. The honest deployment reading: dynamic dispatch lives mostly in the research systems and the elastic-training stacks, while the production record's answer to persistent stragglers remains measurement-and-repartitioning between steps — cruder, but replayable (Zheng et al., 2022).

Elasticity is the third axis — resizing the pipeline mid-campaign, adding or removing ranks as capacity becomes available or fails — and it subsumes the other two's machinery: a resize re-partitions the layer stack across the new rank count, re-derives the stage count and schedule, and migrates state; the elastic-training literature's hard problems are exactly the checkpoint-consistency semantics of sharded optimizer state during migration and the operator workflow around it. The campaign-level economics are the driver: long-horizon pretraining across sequential hardware pools — the multi-generation campaigns the cost articles of this series price — wants pipelines that re-shape as the fleet changes, and the spot-capacity regimes want runs that survive preemption by shrinking rather than restarting. The scheduling interaction is direct: an elastic pipeline's (p, m, v) is a function of the current fleet, so the tuning discipline of the prior section becomes a re-tuning loop triggered by resize events, with the monitoring card's metrics as its inputs (Zheng et al., 2022; Rajbhandari et al., 2020).

The cluster-level view completes the frontier: pipelines do not run alone, and the co-scheduled jobs' collectives contend for the same interconnect rails, so the straggler distribution a pipeline sees is partly exogenous — a function of the cluster's co-tenancy, not the job's own configuration. The remedies at this level are scheduling-side in a different sense: placement policy that isolates collective-heavy jobs, network-level quality-of-service, and the cross-stack profiling that attributes contention windows to neighbors rather than to the pipeline's own stages. The compute-growth context prices the whole frontier: frontier training compute's documented multi-fold annual growth means the rank counts — and therefore the max-of-many exposures, the tail frequencies, and the co-tenancy contention — grow on a treadmill, and the synchronous schedules' variance coefficients compound with scale (Epoch AI, 2024). The frontier's relaxation axes are not optional research directions; they are the scaling path for the variance problem the canonical schedules only buffer.

15. Decision Guidance and the Documented Record

The article's decisions compress into a sequence, stated here as the review order an engineer should actually follow. First, the memory decision sets the pipeline depth: the model's parameter, gradient, and optimizer state — with the sharding policy priced — determines how many stages the depth must be split into before each rank's slice fits, and the depth arrived at this way is not negotiable upward without another partitioning family. Second, the placement decision fixes which boundaries cross which fabrics, following the tensor-in/pipeline-across rule and its arithmetic exceptions. Third, the schedule family: 1F1B as the default for the memory release, the flush only where determinism or simplicity dominates, asynchrony only with the staleness budget measured. Fourth, the tuning of m and v against the three ledgers, starting from the heuristics and walking to the measured ceilings. Fifth, the measurement loop: the monitoring card's metrics, the floor-versus-measured attribution, and the re-tuning triggers. The sequence's order is load-bearing — depth before schedule, schedule before tuning, measurement over all — because each earlier decision changes the later terms' prices (Narayanan et al., 2021a; Zheng et al., 2022).

Campaign (as disclosed)Scale (as disclosed, rounded)Pipeline arrangementSchedule machineryRecord character
Megatron-LM trillion-parameter study (2021)3,072 A100 accelerators (80 GB)Tensor-parallel 8; pipeline-parallel 64Interleaved 1F1B with virtual stages; per-boundary p2p trafficPeer-reviewed SC '21 efficiency study (Narayanan et al., 2021a)
Llama 3 herd, 405B (2024)On the order of 16,000 H100 acceleratorsTensor-parallel 8; pipeline-parallel 16, within a four-dimensional compositionDisclosed sustained throughput on the order of 400 TFLOP/s per acceleratorInstitutional technical report (Grattafiori et al., 2024)
DeepSeek-V3 (2024)On the order of 2,048 H800 acceleratorsNode-level pipeline stages (on the order of eight, as described)Disclosed communication-overlap engineering; FP8 mixed precisionInstitutional technical report (DeepSeek-AI, 2024)
PaLM 540B (2022)Multi-thousand-chip TPU v4 fleetIntra-layer and pipeline partitioning within the Pathways systemTPU-native model-parallel software stackPeer-reviewed JMLR paper (Chowdhery et al., 2023)
Institutional era: BLOOM 176B, OPT-175B, GLM-130B (2022-2023)Hundreds of A100-class accelerators eachMulti-way pipelines in Megatron-DeepSpeed-class stacksSynchronous pipeline schedules with sharded stateInstitutional technical reports (Scao et al., 2023; Zhang et al., 2022; Zeng et al., 2023)

Table 2. Documented pipeline configurations across the record, as disclosed and rounded: the frontier studies' scales, parallelism arrangements, and schedule machinery, with each entry's record character named — peer-reviewed study, institutional technical report, or report-only disclosure. Entries marked on the order of carry the record's own rounding; the table's confidence discipline is the disclosure article's: configurations are quoted as disclosed, not as independently verified measurements, and the accounting conventions behind disclosed throughput figures vary by campaign.

Read as a record, the disclosed configurations carry three consistent lessons. Depth pairs with machinery: the 64-stage trillion-parameter study needed both large microbatch counts and interleaving to hold its bubble down — the grid's arithmetic made visible in a disclosure — while the 16-stage arrangements of the Llama 3 herd's disclosed configuration sit where the plain schedules' bubble is manageable at disclosed microbatch counts (Narayanan et al., 2021a; Grattafiori et al., 2024). Placement is uniform across eras and vendors: every disclosure in the table keeps tensor groups inside the fast domain and pipeline boundaries across the slow one, from the A100-era study through the H100 herd to the H800 campaign's node-level stages — the rule's strongest evidence being its independence from any single vendor's stack (NVIDIA, 2024; DeepSeek-AI, 2024). And the institutional era's reports — BLOOM, OPT, GLM-130B, at hundreds of accelerators — document the learning curve the frontier's rules compressed: multi-way pipelines with sharded state in Megatron-DeepSpeed-class stacks, whose reported operational friction is part of the record's evidence for the monitoring and measurement disciplines this article carries (Scao et al., 2023; Zhang et al., 2022; Zeng et al., 2023).

RegimePipeline depth pInterleaving vMicrobatch count mPrincipal binding constraint
Model fits with TP alone; a few nodesNone, or p ≤ 4-81 (no interleaving)≈ 8-32; bubble already smallDiminishing returns vs. schedule complexity
Tens of nodes; tens of billions of parametersp ≈ 8-161-2Roughly 10-20 × (p − 1), memory permittingIn-flight memory under the flush; boundary traffic
Thousands of accelerators; 100B+ parametersp ≈ 16-642-8, comm-limitedHundreds; DP × m held by critical batchMemory, interconnect, and straggler tails jointly
Slow or shared interconnect fabricMinimize p; prefer DP and TP where they fit1-2 at mostAs high as memory allowsBoundary serialization and collective contention

Table 3. Regime guidance for the scheduling decision, as derived heuristics from the article's arithmetic: pipeline depth, interleaving depth, and microbatch count by training regime, with each regime's principal binding constraint named. The entries are planning starting points — derived from the closed forms and the ledgers, not measured optima — and the measurement loop's attribution is what converts them into a configuration.

Reading disclosed configurations honestly

A disclosed configuration is a claim in the disclosure article's sense: scale figures are rounded by their reporters, throughput figures carry accounting conventions that vary by campaign — tokens versus FLOPs, sustained versus peak, warm versus cold runs — and schedule machinery is described at the granularity the report chose. Read the table's entries as disclosed, hedge magnitudes as on the order of, and reconcile any decision against your own measured floor rather than a disclosed aggregate; the record's configurations are calibration classes, not specifications.

The joint decision is searchable, and the automation record deserves its paragraph in the guidance: the manual sequence above — depth, placement, family, tuning — is exactly the decision vector the automatic-parallelism systems search, with Alpa's inter-operator pass assigning stages over a measured cost model while the intra-operator pass chooses the tensor slicing, the two bound by the joint cost (Zheng et al., 2022). The simulator-first methodology extends the same search to the variance terms the cost models underweight: a simulated cluster with measured straggler distributions prices candidate (p, m, v) configurations against realistic maxima before any fleet time is spent, which is the cheap form of the measurement loop and the cluster-simulation article's subject. The guidance's honest boundary: automation searches well inside the space the models describe, and the models' blind spots — event tails, co-tenancy contention, the campaign's drift — are exactly this article's variance sections; the deployed practice is automation for the mean-side decisions, telemetry for the tail-side ones, and the monitoring card as the interface between them (Zheng et al., 2022).

16. Failure Gallery, Monitoring Card, and Synthesis

The failure gallery, first half — the arithmetic failures, each an entry the article's tools diagnose in one step. The depth-microbatch mismatch: a 32-stage pipeline run at 64 microbatches — the grid says roughly thirty-three percent ideal bubble — presenting as a throughput ceiling no kernel tuning moves; the diagnosis is the closed form against the configuration, the cure is m, v, or depth. The interleaving overreach: v = 8 on a boundary crossing a slow fabric, the comm term overtaking the bubble saving — the trade curve's right side — presenting as link utilization near saturation with the bubble unchanged; the cure walks v down. The embedding-heavy first stage: parameter-balanced partitioning putting the vocabulary embedding's wide slice on stage one, whose per-token compute is light but whose mean is heavy against a measured profile — presenting as a persistent stage-one bottleneck; the cure is a time-balanced re-split. The misplaced collective: a tensor group straddling nodes for layout convenience — per-layer all-reduces on the slow fabric — presenting as per-step overhead that scales with layer count; the cure is the placement rule, and the record's uniformity says the fix is always available (Narayanan et al., 2021a; Shoeybi et al., 2019).

The gallery's second half — the variance and drift failures, which the arithmetic never sees. The unmonitored tail: a cluster whose per-rank jitter distribution slowly gains an event tail — aging hardware, growing co-tenancy — presenting as a slow throughput decline with no configuration change; the diagnosis is the p99-minus-p50 step-time gap's trend line, the only metric that moves. The length-skew imbalance: variable-length microbatches skewing the attention-heavy stages' means, presenting as step-time variance correlated with the data pipeline's batch composition; the cure is length bucketing or partitioning against the attention cost. The stale partition: a mid-campaign precision or recompute change re-pricing per-layer times — the FP8 transition being the canonical recent case — leaving the stage split balanced for costs that no longer exist; the cure is the re-tuning trigger discipline (Micikevicius et al., 2022; Korthikanti et al., 2023). The flush storm: a small-global-batch configuration pushed to large m with tiny microbatches — the boundary count exploding while kernel efficiency collapses — presenting as comm-bound steps with poor device utilization; the cure rebalances microbatch size against m within the fixed product (McCandlish et al., 2018).

The monitoring card is the gallery's systematic answer — the small metric set whose trends catch every entry above, stated as the article's operational deliverable. Per-stage timing: mean and max per-microbatch cost, each stage, rolling window — the imbalance term's instrument, catching persistent stragglers and partition drift. Step-time spread: p50 and p99 of step time across the window, their gap the variance term's single-number health metric, its trend the tail's early warning. Boundary-link utilization: per-boundary bytes and serialization fractions — the communication term's instrument, catching interleaving overreach and co-tenancy contention. In-flight peak: the maximum activation residency per rank against its ceiling — the memory term's margin metric. Floor reconciliation: the predicted ideal step time from the closed form, held beside the measured — the attribution loop's null hypothesis, whose residual is the ledger's unattributed mass and whose growth is the signal to re-run the decomposition. Five instruments, each a trend line, none an aggregate — the profiling article's methodology made routine (Zheng et al., 2022).

The open problems, stated as the record's actual gaps rather than a wish list. Variance-optimal partitioning: the partitioners' cost models price means; the principled objective prices the expected maximum of the stages' distributions — the second moment's arithmetic is known, its integration into the search stack is not. Adaptive interleaving: v is a static configuration tuned for a fabric and a straggler regime that both drift; a schedule that walks v against measured link utilization is an obvious extension whose production semantics — determinism, replay — are unsolved. Cross-job coordination: the exogenous tail — co-tenancy contention — is the frontier's most under-instrumented term, and the cluster-level scheduling that would price it is policy infrastructure more than research. And the disclosure gap itself: the record's throughput figures are aggregates; per-stage timing profiles and straggler distributions are almost never disclosed, so the field's scheduling knowledge calibrates on floor arithmetic and case studies rather than on populations — the reproducible-reporting article's program applied to the pipeline's own quantities (Epoch AI, 2024).

The synthesis restates the article's organizing claim at its full scope: a pipeline schedule is a variance policy. The three canonical schedules compute identical gradients and move identical tensors; what they choose — the only thing they choose — is where the cluster's jitter is absorbed, buffered, or paid: the flush pays it all, every step, at the barrier, and buys determinism; 1F1B buffers it to the warm-up depth, front-loaded, and buys the memory release that makes deep pipelines runnable; interleaving shrinks the exposed ramps and pays communication, buying bubble at bandwidth; the asynchronous frontier absorbs it without bound and pays staleness and memory. Choose the policy by the measured tail, not by the formula: the formulas price the geometry, the tail sets the coefficient, and the monitoring card is the instrument that keeps the choice honest as both drift. The engineer who internalizes this reads every pipeline configuration — disclosed or inherited — as a statement about its designers' variance, and every throughput number as a ledger waiting to be attributed.

The series context closes the article: this is the middle article of the parallelism systems cluster — the tensor-parallelism article carries the intra-layer collective arithmetic the placement rule depends on; the context-parallelism article carries the long-sequence boundary sharding that changes the pipeline's message sizes; and the composition article binds all three into the four-dimensional arrangements the documented record actually runs. The estimation and cost articles of the scaling cluster receive this article's outputs as their inputs: a schedule's achieved utilization is the coefficient between purchased FLOPs and delivered training compute, and the variance terms this article prices are the difference between a fleet's nameplate and a campaign's throughput. The discipline the article leaves with its reader is the series' discipline applied to time: no aggregate without decomposition, no formula without its assumptions, no schedule without its measured tail — and the pipeline, which is the largest single source of structural idleness in modern training, is where that discipline pays for itself first (Narayanan et al., 2021a; Zheng et al., 2022; Grattafiori et al., 2024).

17. Frequently Asked Questions

What is pipeline parallelism, and when does a configuration actually need it?

When the model's state — parameters, gradients, optimizer moments — no longer fits a tensor-parallel group's devices, the layer stack is split into contiguous stages on disjoint ranks, with activations flowing forward and gradients back across the boundaries. It is the partitioning of last resort for fit and the partitioning of choice for spanning slow interconnects, because its traffic is point-to-point rather than collective (Shoeybi et al., 2019; Narayanan et al., 2021a).

How do GPipe, 1F1B, and interleaved 1F1B differ in one paragraph?

GPipe runs all microbatches' forwards, then flushes all backwards — one barrier, m activations in flight per stage (Huang et al., 2019). 1F1B warms up, then alternates one forward and one backward, bounding in-flight activations near the pipeline depth instead of the microbatch count (Narayanan et al., 2021a). Interleaved 1F1B splits each rank into v virtual stages, shrinking the ramp roughly v-fold at the price of roughly v-fold boundary traffic.

What is the pipeline bubble, and what is its formula?

The bubble is the structural idleness of a pipeline step — ranks waiting for the wave to fill or drain. In the equal-cost model, the step spans (m + p − 1)(t_f + t_b) and the bubble fraction is (p − 1)/(m + p − 1): a floor that assumes equal stage costs, deterministic compute, and free communication, and that real steps exceed by every term the ledger carries.

Does 1F1B reduce the bubble relative to GPipe?

Not in the synchronous equal-cost model — both span the same ideal total and carry the same (p − 1) ramp. 1F1B's win is memory: in-flight activations bounded by depth rather than microbatch count. The bubble-reduction claims belong to the interleaved variant or to the asynchronous PipeDream lineage, and conflating them is the schedule literature's most common quotation error (Narayanan et al., 2021a).

How does interleaved 1F1B shrink the bubble, and by how much?

Each rank hosts v virtual stages, so a microbatch traverses the depth in smaller hops and the warm-up ramp costs less wall time; the ideal bubble falls to roughly (p − 1)/(v·m + p − 1) — a derived closed form. At p = 16, m = 64, v = 4 takes the ideal bubble from about nineteen percent to under six, at the communication price below (Narayanan et al., 2021a).

What does interleaving cost?

Roughly v-fold more boundary crossings per microbatch — each still carrying the full hidden state, so the point-to-point volume grows about v-fold in v-fold-smaller scheduling granularity — plus the runtime complexity of v interleaved instruction streams per rank. On slow inter-node links the comm term overtakes the bubble saving quickly, capping useful v at two to three (Narayanan et al., 2021a).

How large should the microbatch count be?

A planning heuristic: m on the order of ten to twenty times (p − 1) puts the ideal bubble near ten to five percent, memory permitting — 1F1B makes large m affordable where the flush could not. But m is capped by the global batch's critical size, by in-flight memory, and by kernel efficiency on the microbatch size, so the heuristic is a starting point, not an optimum (McCandlish et al., 2018).

What activation memory does each schedule hold in flight?

GPipe: m microbatches' activation sets per stage — linear in microbatch count. 1F1B: bounded near the pipeline depth at the earliest stages, decreasing downstream — the O(m)-to-O(p) change that made deep pipelines runnable. Interleaved: chunked residencies, comparable to 1F1B in steady state, modestly larger in warm-up. Recomputation and sharding shrink the per-unit footprint inside whichever multiplier applies (Korthikanti et al., 2023).

What exactly is a straggler in pipeline training?

Any rank whose slot or step time departs upward from its stage's typical time — a per-rank, per-step random variable. The sources span input pipelines, host jitter, network contention, thermal and clock behavior, memory scrubbing, and hardware heterogeneity; the distribution's tail, not its mean, is what the step pays, because synchronization points wait for the slowest participant.

Why does per-rank variance not average out across ranks and steps?

Because synchronization computes a maximum, not a mean: every barrier — the flush, the drain, the data-parallel reduction — waits for the slowest of N ranks, so the step's tail is the max of N draws. A one-percent-per-rank event at 4,096 ranks fires in a substantial fraction of steps — rare per rank, routine per step — and the expected maximum grows with rank count as the extreme-value asymptotic describes.

How should straggler variance be measured?

Per-rank, per-stage step-time histograms over a rolling window: means, variances, and tail shapes per stage, plus the step-time p50-p99 gap as the single-number health metric. Separate persistent from transient stragglers with rolling means — a stably elevated mean is imbalance and wants repartitioning; a normal mean with a heavy tail is variance and wants slack (Narayanan et al., 2021a; Zheng et al., 2022).

What is the max-of-many effect, in plain terms?

At N synchronizing ranks, the expected slowest rank's overrun grows roughly as σ√(2 ln N) for Gaussian-like variation — logarithmic in N, but paid every step and worse for event-generated tails. At frontier rank counts, even one percent per-rank jitter prices at several percent step inflation, which is why the variance term belongs in the utilization ledger beside the bubble.

How does straggler variance interact with the bubble?

Not additively — variance inflates the ramps themselves, the schedule's shallow-slack regions where every rank waits on one predecessor. The warm-up and cool-down absorb straggler events at coefficient one while the steady state's buffers absorb part of them, so measured bubbles exceed the closed form by more than steady-state variance alone predicts; remedies that shorten ramps — interleaving, larger m — are partly variance remedies.

What is stage imbalance, and how do I detect it?

A mismatch in the stages' mean per-microbatch costs — the steady-state cycle being the maximum over stages, a five-percent-heavy stage costs five percent of every step. Detect with a per-stage mean-time profile: a max-to-mean ratio beyond a few percent is unpaid debt. Parameter-balanced splits misprice time systematically; partition on measured per-layer costs (Zheng et al., 2022).

Should stages be balanced by parameter count or by measured time?

Measured time, without exception in the cost-aware practice: vocabulary embeddings are memory-heavy but compute-light per token, attention projections the reverse, and end-stages carry embedding, head, and loss asymmetries. The automated partitioners search over measured cost models for exactly this reason; the manual equivalent is profile, split by dynamic programming over the cost sequence, re-profile (Zheng et al., 2022).

How does partitioning interact with persistently slow ranks?

A rank that is stably slow — thermal condition, degraded link, host misconfiguration — shifts its stage's mean and is imbalance, not variance: repartition or reassign the rank-to-stage mapping so the slow hardware hosts neither the largest mean nor the largest variance. Misdiagnosis wastes the budget: buffering a permanent drag or repartitioning for a transient ghost both fail.

Where should pipeline boundaries sit relative to the interconnect hierarchy?

Tensor-parallel groups inside the fast node-local fabric — their per-layer all-reduces are bandwidth-critical — and pipeline boundaries across the slower inter-node links, whose point-to-point, per-microbatch traffic overlaps compute more naturally. Every frontier disclosure in the record follows this arrangement; the exceptions are computable from the boundary-size arithmetic, not proverbial (Shoeybi et al., 2019; Narayanan et al., 2021a).

How big is a pipeline boundary transfer?

On the order of the hidden state per microbatch: roughly s·b·h elements each way — the forward activation and the returning gradient — so about 2·s·b·h·β bytes per boundary per microbatch, β being the bytes per element. A derived accounting: at four thousand tokens, width eight thousand, bf16, one microbatch, roughly 64 megabytes each way, about 130 for the round trip.

Can a pipeline boundary be sharded across the receiving stage's tensor group?

Yes — the receiving group re-shards the hidden state on arrival, dividing the transfer across ranks; the costs are latency serialization into narrower transfers and receive-side reassembly. Shard boundaries whose unsharded size would serialize a slow link; leave narrow boundaries whole to preserve their latency profile (Rajbhandari et al., 2020).

How do I choose the interleaving depth v?

From the trade curve, not the formula: start at the closed form's bubble reduction, subtract the comm term — roughly v times the per-crossing serialization on the actual fabric — and pick the minimum. Fast intra-node boundaries reward deeper v; inter-node boundaries cap it near two to three. Re-derive whenever the fabric, precision, or kernel mix changes (Narayanan et al., 2021a).

How does the microbatch count relate to the global batch and data parallelism?

Global batch = data-parallel replicas × microbatch count × microbatch size, and the accumulation identity guarantees the schedule computes the same gradient at any m — the freedom is purely systems-side. The science cap is the critical batch size; the systems caps are memory and kernel efficiency; the scheduler's job is m inside all three (Smith et al., 2018; McCandlish et al., 2018).

What caps the microbatch count in practice?

Three ceilings: the training recipe's global batch, bounded above by the critical batch size; in-flight activation memory under the schedule's residency law; and kernel efficiency on the microbatch size, which cannot shrink indefinitely. When m cannot rise, the pressure moves to p and v — fewer, fatter stages or interleaving (Kaplan et al., 2020; Korthikanti et al., 2023).

Should the schedule be re-tuned after switching to FP8 or another precision?

Yes — precision changes re-price t_f and t_b and their ratio, moving the ramps, the steady state, and the overlap budget together; the bubble arithmetic and the communication tuning both need recomputation, not just the throughput forecast. The same trigger discipline applies to recomputation-policy and kernel-library changes (Micikevicius et al., 2022; DeepSeek-AI, 2024).

How does activation recomputation interact with pipeline scheduling?

It shrinks the per-microbyte activation footprint — moving the memory ceiling — while lengthening backward compute — moving the timing ledger — so both m's optimum and the bubble arithmetic shift. Under the flush, recomputation changes the O(m) law's coefficient without removing the scaling; under 1F1B it shrinks the depth-bounded residency (Korthikanti et al., 2023).

Are asynchronous pipeline schedules safe for large pretraining runs?

With budgeted staleness: PipeDream's stashing and weighted averaging bound the stale-gradient contribution, and the memory-efficient successors cut the stash cost (Narayanan et al., 2019, 2021b). Staleness acts as added gradient noise whose scale the policy controls; the deployed record has mostly chosen synchronous semantics for determinism and replay, accepting the variance tax the frontier machinery avoids.

What is gradient staleness, and how is it handled?

Under run-ahead, a backward is computed against weights newer than those its forward used; the discrepancy is formal noise on the update. Handling: weighted averaging of stale gradients by staleness degree, staleness bounds in the dispatch policy, and monitoring of the effective noise against the critical-batch framework — the same machinery that prices batch-size noise (McCandlish et al., 2018).

What about work stealing and dynamic microbatch dispatch?

Idle stages pull queued microbatches from slow neighbors, converting gating delays into small load imbalances within the step — strong under variance, costly for determinism, since dispatch order becomes timing-dependent and bit-exact replay requires logging it. The production record prefers measurement-and-repartitioning between steps: cruder, but replayable (Zheng et al., 2022).

Can a pipeline be resized mid-campaign?

The elastic-training machinery exists: re-partition the stack across the new rank count, re-derive the schedule, migrate sharded state — with checkpoint-consistency semantics during migration as the hard problem. Economically it serves multi-generation fleets and spot capacity; scheduling-wise, (p, m, v) become functions of the current fleet and the re-tuning loop triggers on every resize.

What did the documented frontier campaigns actually configure?

As disclosed and rounded: the Megatron-LM trillion-parameter study at 3,072 A100s with tensor-parallel 8 and pipeline-parallel 64 under interleaved 1F1B; the Llama 3 405B herd on the order of 16,000 H100s with tensor 8 and pipeline 16; DeepSeek-V3 on the order of 2,048 H800s with node-level pipeline stages; PaLM 540B with TPU-native intra-layer and pipeline partitioning (Narayanan et al., 2021a; Grattafiori et al., 2024; DeepSeek-AI, 2024; Chowdhery et al., 2023).

How do I read a disclosed configuration honestly?

As a claim with conventions: scales are rounded by their reporters, throughput figures carry campaign-specific accounting — tokens versus FLOPs, sustained versus peak — and schedule machinery is described at the report's chosen granularity. Treat configurations as calibration classes and reconcile decisions against your own measured floor, not a disclosed aggregate.

What are the most common pipeline scheduling failures?

The gallery's headliners: depth-microbatch mismatch (deep pipeline, small m — the grid's arithmetic ignored); interleaving overreach on slow links; embedding-heavy first stages from parameter-balanced splits; tensor groups straddling nodes; unmonitored variance tails presenting as slow throughput decline; stale partitions after precision changes; and flush storms from tiny microbatches at large counts.

What should a pipeline monitoring card track?

Five instruments, each a trend: per-stage mean and max per-microbatch times (imbalance, persistent stragglers); step-time p50 and p99, with the gap as the variance health metric; boundary-link bytes and serialization fractions (communication, contention); peak in-flight activation residency against ceiling (memory margin); and the predicted-versus-measured step floor, whose residual is the unattributed ledger mass.

How does pipeline parallelism interact with tensor and context parallelism?

Complementarily and with a placement rule: tensor groups stay intra-node on the fast fabric; pipeline boundaries cross nodes with point-to-point traffic; context parallelism shards the sequence dimension — changing boundary tensor sizes and living inside stages or across them for long-sequence work. The composition article of this series binds all three into the four-dimensional arrangements the record runs (Korthikanti et al., 2023).

Is the pipeline bubble or the straggler variance the bigger utilization term?

Configuration-dependent, and the attribution protocol exists because the aggregate cannot tell you: well-tuned deep pipelines drive the ideal bubble to single digits, at which point the variance and imbalance terms dominate the measured gap; shallow or under-tuned pipelines are bubble-dominated. The floor-versus-measured residual, decomposed with the ledger, is the only honest ranking — per campaign, per cluster, per week.

What is the article's one-sentence takeaway?

A pipeline schedule is a variance policy: the three canonical schedules compute identical gradients and differ only in where the cluster's jitter is absorbed, buffered, or paid — so choose the schedule from the measured tail, price every knob with the ledger rather than the formula alone, and keep the monitoring card running, because both the tail and the optimum drift.

19. References

Citation notes. Where a work is best known by its arXiv preprint, the arXiv identifier is given; peer-reviewed conference and journal versions are noted where the work appeared in one. Several frontier sources are technical reports rather than peer-reviewed publications and are treated as institutional disclosures. Author lists are abbreviated (“et al.”) where full lists exceed practical length.

  • Huang, Y., Cheng, Y., Bapna, A., et al. (2019). GPipe: Efficient training of giant neural networks using pipeline parallelism. Advances in Neural Information Processing Systems 32. arXiv:1811.06965.
  • Narayanan, D., Shoeybi, M., Casper, J., et al. (2021a). Efficient large-scale language model training on GPU clusters using Megatron-LM. Proceedings of SC ’21. arXiv:2104.04473.
  • Shoeybi, M., Patwary, M., Aminabadi, R., et al. (2019). Megatron-LM: Training multi-billion parameter language models using model parallelism. arXiv:1909.08053.
  • Korthikanti, V. A., Casper, J., Lym, S., et al. (2023). Reducing activation recomputation in large transformer models. Proceedings of Machine Learning and Systems 5. arXiv:2205.05198.
  • NVIDIA. (2024). NVIDIA H100 Tensor Core GPU; NVIDIA A100 Tensor Core GPU [Product datasheets]. https://www.nvidia.com/en-us/data-center/h100/ ; https://www.nvidia.com/en-us/data-center/a100/
  • Chowdhery, A., Narang, S., Devlin, J., Bosma, M., Mishra, G., Roberts, A., et al. (2023). PaLM: Scaling language modeling with pathways. Journal of Machine Learning Research, 24(240). arXiv:2204.04746.
  • Smith, S. L., Kindermans, P.-J., Ying, C., & Le, Q. V. (2018). Don’t decay the learning rate, increase the batch size. International Conference on Learning Representations (ICLR 2018). arXiv:1711.00489.
  • McCandlish, S., Kaplan, J., Amodei, D., & the OpenAI Dota Team. (2018). An empirical model of large-batch training. arXiv:1812.06162.
  • Zheng, L., Li, Z., Zhang, H., et al. (2022). Alpa: Automating inter- and intra-operator parallelism for distributed deep learning. Proceedings of OSDI ’22. arXiv:2201.12023.
  • Rajbhandari, S., Rasley, J., Ruwase, O., & He, Y. (2020). ZeRO: Memory optimizations toward training trillion parameter models. Proceedings of SC ’20. arXiv:1910.02054.
  • Grattafiori, A., Dubey, A., Jauhri, A., et al. (2024). The Llama 3 herd of models. arXiv:2407.21783.
  • DeepSeek-AI. (2024). DeepSeek-V3 technical report. arXiv:2412.19437.
  • Zeng, A., Liu, X., Du, Z., et al. (2023). GLM-130B: An open bilingual pre-trained model. International Conference on Learning Representations. arXiv:2210.02414.
  • Scao, T. L., et al. (2023). BLOOM: A 176B-parameter open-access multilingual language model. arXiv:2211.05100.
  • Zhang, S., Roller, S., Goyal, N., et al. (2022). OPT: Open pre-trained transformer language models. arXiv:2205.01068.
  • Micikevicius, P., Stosic, D., Burgess, N., et al. (2022). FP8 formats for deep learning. arXiv:2209.05433.
  • Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., et al. (2020). Language models are few-shot learners. Advances in Neural Information Processing Systems 33. arXiv:2005.14165.
  • Dao, T. (2023). FlashAttention-2: Faster attention with better parallelism and work partitioning. arXiv:2307.08691.
  • Kaplan, J., McCandlish, S., Henighan, T., et al. (2020). Scaling laws for neural language models. arXiv:2001.08361.
  • Jiang, A. Q., Sablayrolles, A., Roux, A., et al. (2024). Mixtral of experts. arXiv:2401.04088.
  • Epoch AI. (2024). Training compute of frontier AI models is growing by 4 to 5x per year. https://epoch.ai/blog
  • Narayanan, A., Shoeybi, M., Puri, R., et al. (2019). PipeDream: Generalized pipeline parallelism for DNN training. Proceedings of the 27th ACM Symposium on Operating Systems Principles (SOSP 2019).
  • Narayanan, A., et al. (2021b). Memory-efficient pipeline-parallel DNN training. Proceedings of the 38th International Conference on Machine Learning (ICML 2021).

About this article. SciXa Research Desk publishes research-oriented synthesis for engineers and researchers working on large-scale machine learning systems. This cluster article is part of the SciXa AI Systems Series and expands material from the pillar page Foundation Model Training at Scale: Architectures, Budgets, and Systems.

Editorial standards. Every quantitative claim is traceable to a disclosed source or labeled as derived (our calculation from documented formulas) or estimated. Figures marked as illustrative or schematic are pedagogical constructions, not measured data. The evidence window is the documented record through early 2025; later developments are not reflected.

Corrections. Factual corrections are welcome and will be logged with the article. Where our derived values differ from later disclosures, the disclosure takes precedence.

Published October 7, 2026 · SciXa.com · SciXa AI Systems Series · Pillar: Foundation Model Training at Scale

Cite this Article

ScixaTeam. (2026, October 9). Pipeline Parallelism Scheduling under Straggler Variance | SciXa AI Systems Series. Scixa. SciXa Article ID: SX-PHY-2026-086. https://scixa.com/article?slug=pipeline-parallelism-scheduling-straggler-variance&lang=en

The SciXa Article ID is a persistent identifier issued by Scixa. It is not a DOI.

ScixaTeam
5350 Articles

Scixa.com Team

5350 Articles
594,256 Total Views
2 Followers
129 Total Likes

Comments (0)

Your email will not be published.