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
TL;DR
This paper analyzes stragglers in large-scale LLM training using five months of cluster traces and a what-if simulator to contrast real execution with an ideal straggler-free timeline. By constructing OpDuration tensors and dependency models, it quantifies slowdown via $S = T / T_{ideal}$ and GPU-waste, revealing stragglers are prevalent and cause substantial resource loss, with computation being the main contributor. It identifies root causes such as stage partitioning imbalance, sequence-length imbalance, and Python garbage collection pauses, while hardware faults are relatively rare. It also introduces SMon, an online monitoring tool that automates detection and diagnostics, enabling practical mitigation like microbatch balancing and GC scheduling.
Abstract
Large language model (LLM) training is one of the most demanding distributed computations today, often requiring thousands of GPUs with frequent synchronization across machines. Such a workload pattern makes it susceptible to stragglers, where the training can be stalled by few slow workers. At ByteDance we find stragglers are not trivially always caused by hardware failures, but can arise from multiple complex factors. This work aims to present a comprehensive study on the straggler issues in LLM training, using a five-month trace collected from our ByteDance LLM training cluster. The core methodology is what-if analysis that simulates the scenario without any stragglers and contrasts with the actual case. We use this method to study the following questions: (1) how often do stragglers affect training jobs, and what effect do they have on job performance; (2) do stragglers exhibit temporal or spatial patterns; and (3) what are the potential root causes for stragglers?
