arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.24750cs.NI
收藏

分析在LLM训练中的通信可预测性

Analyzing Communication Predictability in LLM Training

Hong Kong University of Science and Technology(香港科技大学);Massachusetts Institute of Technology(麻省理工学院);Peking University(北京大学);Meta

Wenxue Li, Xiangzhou Liu, Yuxuan Li, Yilun Jin, Zhenghang Ren, Xudong Liao, Han Tian, Bo Ren, Zhizhen Zhong, Guyue Liu, Ying Zhang, Kai Chen

AI总结:

本研究系统分析了LLM训练中的通信可预测性,提出ConfigTuner工具,通过优化配置提升了训练吞吐量。

摘要:

在分布式训练中,有效的通信至关重要,可预测性是其最显著的特征之一。然而,现有研究主要集中在通过在线配置文件利用可预测性以实现运行时优化,而没有对它进行系统性的理解。在本工作中,我们旨在系统地制定分布式训练中的通信可预测性,特别是大型语言模型(LLMs)所使用的混合并行性。我们的分析重点在于流量模式和通信开销。具体而言,我们研究了典型LLMs中的可预测流量模式,并评估了各种因素如何影响GPU利用率和有效带宽(这两个关键变量影响通信开销)。此外,我们开发了一个分析公式来估算LLM训练中的通信开销,该公式在经验数据上具有很高的准确性。利用这一公式,我们提出了一种配置调优工具,ConfigTuner,以优化训练性能。与Megatron-LM相比,由ConfigTuner优化的训练配置在吞吐量上提高了高达1.36倍。与Alpa相比,ConfigTuner生成相同的配置建议,同时显著降低了搜索复杂度。

英文摘要:

Effective communication is essential in distributed training, with predictability being one of its most significant characteristics. However, existing studies primarily focus on exploiting predictability through online profiling for runtime optimization, without a systematic understanding of it. In this work, we aim to systematically formulate communication predictability in distributed training, particularly in Large Language Models (LLMs) that utilize hybrid parallelism. Our analysis focuses on both traffic patterns and communication overhead. Specifically, we investigate predictable traffic patterns in typical LLMs and evaluate how various factors influence GPU utilization and effective bandwidth (two critical variables affecting communication overhead). Furthermore, we develop an analytical formulation to estimate communication overhead in LLM training, which is validated with high accuracy against empirical data. Leveraging this formulation, we propose a configuration tuning tool, ConfigTuner, to optimize training performance. Compared to Megatron-LM, the training configurations optimized by ConfigTuner demonstrate up to a 1.36$\times$ increase in throughput. Compared to Alpa, ConfigTuner generates the same configuration suggestion while significantly reducing the search complexity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑