Understanding Stragglers in Large Model Training Using What-if Analysis

Jinkun Lin, Ziheng Jiang, Zuquan Song, Sida Zhao, Menghan Yu, Zhanghan Wang, Chenyuan Wang, Zuocheng Shi, Xiang Shi, Wei Jia, Zherui Liu, Shuguang Wang, Haibin Lin, Xin Liu, Aurojit Panda, Jinyang Li

Introduction

Training modern Large Language Models (LLMs) is a massive undertaking, often requiring thousands of GPUs working in concert. However, the efficiency of these clusters is frequently compromised by "stragglers"—individual workers that perform slower than their peers. Because LLM training relies on tight synchronization across data, pipeline, and tensor parallel ranks, a single slow worker can stall the entire job, leading to significant resource waste.

This study analyzes five months of production LLM training data at ByteDance to quantify the impact of stragglers. Using a trace-based "what-if" simulator, the researchers found that stragglers account for over 10% of total GPU hour waste. Contrary to common assumptions, hardware failures are rarely the primary cause; instead, systemic issues like pipeline imbalances, sequence length variations, and uncoordinated software processes like Python garbage collection are the main drivers of inefficiency.

Quantifying the Impact of Stragglers

To understand the scale of the problem, the researchers analyzed a dataset of 3,079 large-scale training jobs from ByteDance's production clusters between January and May 2024. These jobs involved between 128 and over 5,000 GPUs.

The study reveals that stragglers are a pervasive issue. Approximately 42.5% of all jobs experienced at least a 10% slowdown. In the most extreme cases (the 99th percentile), jobs wasted up to 45% of their allocated compute resources. On average, 10.4% of all allocated GPU hours across the cluster were lost to these delays.

Cumulative Distribution Function (CDF) of resource waste across training jobs.

Methodology: The "What-if" Simulator

Traditional critical path analysis is insufficient for modern LLM training due to the complex overlapping of computation and communication. To isolate the impact of stragglers, the authors developed a trace-based "what-if" simulator.

The process involves:

  1. Trace Collection: Capturing detailed execution graphs of GPU operations using internal profiling tools.
  2. Idealization: Creating a "straggler-free" baseline by replacing actual operation durations with idealized values (e.g., the median duration for that operation across all workers).
  3. Simulation: Replaying the execution graph with these idealized times to determine the potential speedup if stragglers were eliminated.

This approach allows researchers to perform counterfactual analysis—for instance, determining the impact of fixing only the slowest 3% of workers or balancing specific pipeline stages.

Root Causes of Inefficiency

The simulation results challenged several industry intuitions regarding the causes of stragglers:

Compute vs. Network Bottlenecks

While network instability is often blamed for distributed training delays, the study found that computation operations caused far more slowdowns than communication. In a well-tuned, overprovisioned cluster, the time spent waiting for data transfer is often overshadowed by variances in execution time for forward and backward passes.

CDF of waste percentage categorized by operation type, showing compute as the primary source of waste.

Systemic Software Issues

  • Pipeline Imbalance: The final stage of a pipeline often handles the loss calculation, which is more computationally intensive than standard transformer layers. If layers are distributed evenly without accounting for this overhead, the last stage becomes a permanent bottleneck, affecting nearly 40% of straggling jobs.
  • Sequence Length Variation: In long-context training, microbatches are packed to a maximum token count. Due to the quadratic complexity of attention mechanisms, a microbatch containing a few very long sequences takes significantly longer to process than one containing many short sequences.
  • Python Garbage Collection: Uncoordinated "stop-the-world" garbage collection pauses across thousands of GPUs create random, frequent stalls that propagate through the synchronization barriers of the training job.

Conclusion and Future Directions

The findings suggest that improving LLM training efficiency requires a shift in focus from hardware reliability to software and workload orchestration. The authors demonstrated the potential for improvement by prototyping a greedy sequence-rebalancing algorithm, which achieved a 23.9% throughput increase in long-context training scenarios.

Future work will involve deploying these balancing algorithms at scale and investigating more granular causes of stragglers, such as CUDA memory fragmentation. By moving toward more "straggler-aware" training frameworks, organizations can significantly reduce the massive computational costs associated with modern AI development.

Summary updated

BibTeX
@inproceedings{lin2025understanding,
  author = {Jinkun Lin and Ziheng Jiang and Zuquan Song and Sida Zhao and Menghan Yu and Zhanghan Wang and Chenyuan Wang and Zuocheng Shi and Xiang Shi and Wei Jia and Zherui Liu and Shuguang Wang and Haibin Lin and Xin Liu and Aurojit Panda and Jinyang Li},
  title = {{Understanding Stragglers in Large Model Training Using What-if Analysis}},
  booktitle = {OSDI},
  year = {2025},
}
Figure