arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.18112cs.LGcs.AI
收藏

Tula: 优化分布式大批次训练中的时间、成本和泛化性能

Tula: Optimizing Time, Cost, and Generalization in Distributed Large-Batch Training

Oak Ridge National Laboratory(橡树岭国家实验室)

Sahil Tyagi, Feiyi Wang

AI总结:

Tula通过结合并行系统建模与统计性能预测,自动优化大批次训练的批次大小,从而在时间、成本和收敛质量上取得平衡,提升卷积模型的训练效率和测试准确率。

摘要:

分布式训练通过扩展节点或增加批次大小来提高每个迭代处理的批次数。然而,最大配置未必带来最佳性能。横向扩展引入额外的通信开销,而纵向扩展受限于计算成本和设备内存。单纯增加批次大小导致边际效益递减:训练时间和成本最初下降但最终趋于平稳,形成时间/成本与批次大小的帕累托曲线拐点。因此,最佳批次大小取决于底层模型、数据和可用计算资源。大批次训练因已知的泛化间隙导致模型质量下降。本文提出Tula,一个在线服务,通过并行系统建模与统计性能预测,自动优化大批次卷积模型训练的时间、成本和收敛质量。Tula在多个模型上预测训练时间和成本的误差在7.5-14%之间,实现最高20倍的整体加速,并在各种视觉任务上将测试准确率提高9%以上,从而有效缓解泛化间隙并加速训练。

英文摘要:

Distributed training increases the number of batches processed per iteration either by scaling-out (adding more nodes) or scaling-up (increasing the batch-size). However, the largest configuration does not necessarily yield the best performance. Horizontal scaling introduces additional communication overhead, while vertical scaling is constrained by computation cost and device memory limits. Thus, simply increasing the batch-size leads to diminishing returns: training time and cost decrease initially but eventually plateaus, creating a knee-point in the time/cost versus batch-size pareto curve. The optimal batch-size therefore depends on the underlying model, data and available compute resources. Large batches also suffer from worse model quality due to the well-known generalization gap. In this paper, we present Tula, an online service that automatically optimizes time, cost, and convergence quality for large-batch training of convolutional models. It combines parallel-systems modeling with statistical performance prediction to identify the optimal batch-size. Tula predicts training time and cost within 7.5-14% error across multiple models, and achieves up to 20x overall speedup and improves test accuracy by 9% on average over standard large-batch training on various vision tasks, thus successfully mitigating the generalization gap and accelerating training at the same time.

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

↑