arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.21162cs.DCcs.LG
收藏

无协调的可变成本分布式训练工作负载正则化

Coordination-Free Workload Regularization for Variable-Cost Distributed Training

LinkedIn Corporation(领英公司);The University of Texas at Dallas(德克萨斯大学达拉斯分校)

Tao Huang, Chen Zhu, Antonio Alonso, Daming Li, Adarsh Goura, Jaideep Ray, Yitong Zhou

AI总结:

针对同步数据并行训练中记录成本差异导致的空闲时间问题,提出无协调的BCL策略,可降低批次成本变异性,在多GPU训练中实现1.050-1.343倍的速度提升。

摘要:

同步数据并行训练通常为每个进程(rank)分配相同数量的记录,即便记录的成本存在数个数量级的差异。对于变长模型,这会将输入差异转化为空闲时间,因为每一步都要等待其成本最高的进程本地批次。我们提出批量成本前瞻(Batch Cost Lookahead, BCL),这是一种无协调的数据加载策略,它缓冲一个有界的进程本地窗口,并将其重新划分为具有平衡估计成本的固定基数批次。BCL保留了训练器的记录计数约定,且无需跨进程元数据交换或运行时修改。在公共工作负载分布的模拟中,启用BCL可将每个进程的估计批次成本变异性降低多达82.8%。在8个H200 GPU上的13个NeMo-RL SFT语料库中,进程本地BCL的运行速度比合并的MFFD快1.050至1.167倍。在内部序列工作负载上编译的H200测量结果显示,在1至4个节点上,其速度比打包执行快1.197至1.343倍。我们还确定了一个内存可行性边界:在BCL平衡其余数据之前,高方差或易内存不足(OOM)数据的第99百分位上限可界定异常值。这些结果表明,可在数据加载器边界消除大量可变成本失衡,同时明确何时仍需数据准备或更广泛的协调。

英文摘要:

Synchronous data-parallel training usually assigns every rank the same number of records, even when record costs vary by orders of magnitude. For variable-length models, this converts input variation into idle time because each step waits for its most expensive rank-local batch. We present Batch Cost Lookahead (BCL), a coordination-free data-loading policy that buffers a bounded rank-local window and repartitions it into fixed-cardinality packs with balanced estimated cost. BCL preserves the trainer's record-count contract and requires neither cross-rank metadata exchange nor runtime modification. In simulation over public workload distributions, enabling BCL reduces per-rank estimated batch-cost variability by up to 82.8%. Across 13 NeMo-RL SFT corpora on eight H200 GPUs, rank-local BCL runs 1.050 to 1.167 times faster than pooled MFFD. Compiled H200 measurements on an internal sequence workload show speedups of 1.197 to 1.343 times over packed execution from one to four nodes. We also identify a memory-feasibility boundary: a p99 cap for high-variance or OOM-prone data bounds outliers before BCL balances the rest. These results show that substantial variable-cost imbalance can be removed at the data-loader boundary, while clarifying when data preparation or broader coordination is still necessary.

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

↑