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%.
A Cloud Infrastructure Service Recommendation System for Optimizing Real-time QoS Provisioning Constraints
云计算的普及已经彻底改变了基于互联网的应用服务的托管和交付。然而,随着几乎每个月都有大型云计算公司(例如,Amazon Web Service、Microsoft Azure)和小公司(例如Rackspace、Ninefold),决策者(例如应用程序开发人员、CIO)可能会被可用的选择所淹没。由于异构的服务配置和应用程序供应服务质量(QoS)的约束,决策问题进一步复杂化。为了应对这一严峻挑战,在我们以前的工作中,我们开发了一种半自动化的、可扩展的、基于本体的方法,用于仅基于设计时约束(例如,租赁成本、中心位置、服务特色等)。在本文中,我们扩展我们的方法,包括实时的【形】(运行时)的QoS(端到端的消息延迟,端到端的消息吞吐量)的决策过程。在线交互式游戏、大规模传感器分析和云服务上的实时的【形】移动应用领域中的下一代应用的托管需要优化这种实时的【形】QoS约束以满足服务水平协议(SLA)。为此,我们提出了一个实时的【形】的QoS感知的多标准决策技术,建立在众所周知的层次分析法(AHP)的方法。所提出的技术适用于选择基础设施即服务(IaaS)云产品,并且它允许用户定义多个设计时和实时的【形】QoS约束或要求。然后将这些需求与我们的知识库进行匹配,以计算IaaS层云服务的可能最佳组合。我们进行了大量的实验,以证明我们的方法的可行性。
Serving and Optimizing Machine Learning Workflows on Heterogeneous Infrastructures
Duke University(杜克大学);Microsoft Research(微软研究院)
随着智能设备和物联网的无处不在的部署,用于机器学习推理的数据源越来越多地移动到网络边缘。现有的机器学习推理平台通常假设同构基础设施,并且不考虑更复杂和分层的计算基础设施,包括边缘设备、本地集线器、边缘计算中心和云计算中心。另一方面,最近的AutoML努力为异构环境的模型压缩、修剪和量化提供了可行的解决方案;对于机器学习模型,现在我们可以很容易地找到甚至生成一系列在准确性和效率之间具有不同权衡的模型。我们设计并实现了JellyBean,一个在异构基础设施上服务和优化机器学习推理工作流的系统。给定服务级别目标(例如,吞吐量、准确性),JellyBean选择符合准确性目标的最具成本效益的模型,并决定如何在不同的基础架构层中部署它们。评估表明,与最先进的模型选择和工人分配解决方案相比,JellyBean将视觉问答的总服务成本降低了58%,将NVIDIA AI城市挑战赛的车辆跟踪成本降低了36%。JellyBean还优于先前的ML服务系统(例如,Spark on the Cloud),服务成本高达5倍。