arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2303.06659cs.DCcs.LG
收藏

Scavenger:一种优化机器学习训练成本与性能的云服务

Scavenger: A Cloud Service for Optimizing Cost and Performance of ML Training

Indiana University Bloomington(印第安纳大学伯明顿分校)

Sahil Tyagi, Prateek Sharma

AI总结:

本文提出云服务Scavenger,通过同时考虑并行与统计效率来优化分布式机器学习训练的时间和成本,以低于5%的模型误差实现黑盒在线搜索,使训练时间缩短2倍、成本降低50%以上。

摘要:

虽然云虚拟机(VM)的按需付费特性使得为训练机器学习模型而快速启动大规模集群变得容易,但也可能导致成本急剧膨胀。云平台提供的数百种虚拟机规格也使得为训练选择“合适”的云集群配置变得极具挑战性。此外,分布式模型训练的训练时间和成本对集群配置高度敏感,并呈现出庞大而复杂的权衡空间。本文提出了用于优化云端分布式机器学习模型训练时间和成本的原则性和实用技术。我们的核心见解是,在选择最佳作业配置参数(如工作节点数量和批大小)时,必须同时考虑并行效率和统计效率。通过结合传统的并行扩展概念和对SGD噪声的新见解,我们的模型能够以小于5%的误差准确估计不同集群配置下的时间和成本。利用训练的重复性以及我们的模型,我们能够以黑盒、在线的方式搜索最优云配置。我们的方法将训练时间缩短了2倍,并将成本降低了50%以上。与基于oracle的方法相比,我们的性能模型准确度在2%以内,因此搜索仅带来10%的开销。

英文摘要:

While the pay-as-you-go nature of cloud virtual machines (VMs) makes it easy to spin-up large clusters for training ML models, it can also lead to ballooning costs. The 100s of virtual machine sizes provided by cloud platforms also makes it extremely challenging to select the ``right'' cloud cluster configuration for training. Furthermore, the training time and cost of distributed model training is highly sensitive to the cluster configurations, and presents a large and complex tradeoff-space. In this paper, we develop principled and practical techniques for optimizing the training time and cost of distributed ML model training on the cloud. Our key insight is that both parallel and statistical efficiency must be considered when selecting the optimum job configuration parameters such as the number of workers and the batch size. By combining conventional parallel scaling concepts and new insights into SGD noise, our models accurately estimate the time and cost on different cluster configurations with < 5% error. Using the repetitive nature of training and our models, we can search for optimum cloud configurations in a black-box, online manner. Our approach reduces training times by 2 times and costs more more than 50%. Compared to an oracle-based approach, our performance models are accurate to within 2% such that the search imposes an overhead of just 10%.

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

↑