English

Enhancing Large-Scale AI Training Efficiency: The C4 Solution for Real-Time Anomaly Detection and Communication Optimization

Distributed, Parallel, and Cluster Computing 2025-05-26 v2 Artificial Intelligence Machine Learning

Abstract

The emergence of Large Language Models (LLMs) has necessitated the adoption of distributed training techniques, involving the deployment of thousands of GPUs to train a single model. Unfortunately, the efficiency of large-scale distributed training systems is often suboptimal due to the increased likelihood of hardware errors in high-end GPU products and the heightened risk of network traffic collisions. Moreover, any local hardware failure can disrupt training tasks, and the inability to swiftly identify faulty components leads to a significant waste of GPU resources. And, prolonged communication due to traffic collisions can substantially increase GPU waiting times. To address these challenges, we propose a communication-driven solution, namely the C4. The key insights of C4 are twofold. First, the load in distributed training exhibits homogeneous characteristics and is divided into iterations through periodic synchronization, therefore hardware anomalies would incur certain syndrome in collective communication. By leveraging this feature, C4 can rapidly identify the faulty components, swiftly isolate the anomaly, and restart the task, thereby avoiding resource wastage caused by delays in anomaly detection. Second, the predictable communication model of collective communication, involving a limited number of long-lived flows, allows C4 to efficiently execute traffic planning, substantially reducing bandwidth competition among these flows. The C4 has been extensively deployed across real-world production systems in a hyperscale cloud provider, yielding a significant improvement in system efficiency, from 30% to 45%. This enhancement is attributed to a 30% reduction in error-induced overhead and a 15% reduction in communication costs.

Keywords

Cite

@article{arxiv.2406.04594,
  title  = {Enhancing Large-Scale AI Training Efficiency: The C4 Solution for Real-Time Anomaly Detection and Communication Optimization},
  author = {Jianbo Dong and Bin Luo and Jun Zhang and Pengcheng Zhang and Fei Feng and Yikai Zhu and Ang Liu and Zian Chen and Yi Shi and Hairong Jiao and Gang Lu and Yu Guan and Ennan Zhai and Wencong Xiao and Hanyu Zhao and Man Yuan and Siran Yang and Xiang Li and Jiamang Wang and Rui Men and Jianwei Zhang and Chang Zhou and Dennis Cai and Yuan Xie and Binzhang Fu},
  journal= {arXiv preprint arXiv:2406.04594},
  year   = {2025}
}
R2 v1 2026-06-28T16:56:45.339Z