As datacenter power constraints cap single-facility campus capacity at 100MW to 500MW, frontier AI labs must link geographically disparate clusters across metropolitan and transcontinental WANs. However, distributed training algorithms exhibit radically different sensitivities to network latency.
The Tensor Parallelism Barrier
In **Tensor Parallelism (TP)**, individual linear layer matrix multiplications (such as in Multi-Head Attention or Feed-Forward networks) are split across multiple GPUs. Each transformer layer requires an `All-Reduce` collective synchronization step in both the forward and backward passes.
Why Pipeline Parallelism (PP) Succeeds Across WANs
In contrast, **Pipeline Parallelism (PP)** partitions the model *vertically* across sequential layer groups. For example, in an 80-layer architecture:
- Datacenter A (Ashburn, VA): Executes Layers 1 through 40.
- Datacenter B (Dublin, Ireland): Executes Layers 41 through 80.
Instead of synchronizing every attention head, Datacenter A only transmits the final output activation tensor of Layer 40 across the Atlantic subsea cable to Datacenter B. Communication occurs only **once per micro-batch** rather than once per layer.
The 1F1B (One-Forward-One-Backward) Scheduling Algorithm
To prevent GPUs from idling while waiting for cross-oceanic activations, systems employ **1F1B scheduling**. Each GPU alternates between computing a forward micro-batch and a backward micro-batch, effectively overlapping optical transit delay with compute execution:
# Pipeline Parallel Bubble Analysis in Python
def calculate_pp_bubble_fraction(num_pipeline_stages: int, num_microbatches: int) -> float:
"""
Bubble Fraction F_bubble = (p - 1) / (m + p - 1)
where p = pipeline stages, m = micro-batches
"""
p = num_pipeline_stages
m = num_microbatches
bubble = (p - 1) / (m + p - 1)
return bubble
# 4 WAN stages, 32 microbatches
print("Bubble Overhead (p=4, m=32):", round(calculate_pp_bubble_fraction(4, 32) * 100, 1), "%")
# 4 WAN stages, 128 microbatches
print("Bubble Overhead (p=4, m=128):", round(calculate_pp_bubble_fraction(4, 128) * 100, 1), "%")
By sizing micro-batches ($m \ge 4p$), the idle pipeline bubble drops below 2.5%, proving that cross-continental training can achieve near-linear hardware efficiency across submarine cable corridors.