Sonic:一种基于采样的流媒体在线控制器
Sonic: A Sampling-based Online Controller for Streaming Applications
摘要:
在诸如机器学习和计算机视觉之类的重要问题领域中的许多应用都是随着时间的推移获取一系列输入的流应用。找到优化这些应用程序的运行时性能的旋钮设置是具有挑战性的,因为最佳旋钮设置通常是输入、计算平台、时间以及用户要求的函数,这些要求可能非常多样化。大多数先前的工作解决这个问题,离线剖析,然后训练模型的控制。然而,基于分析的方法在执行之前会产生很大的开销;在其他运行时配置中重新部署它们也很困难。在本文中,我们提出了Sonic,一个基于采样的在线控制器,用于长期运行的流媒体应用程序,不需要提前分析。在流媒体应用程序执行的每个阶段,Sonic利用开始部分对旋钮空间进行策略性采样,并针对用户指定的约束优化问题,为其余阶段选择最佳旋钮设置。机器学习回归和贝叶斯优化的混合方法用于更好的总体采样选择。Sonic的实现独立于应用程序、设备、输入、性能目标和约束。我们在传统的并行基准测试以及跨多个平台的深度学习推理基准测试上评估Sonic。我们的实验表明,当使用Sonic来控制旋钮设置时,应用程序运行时性能仅比使用最佳旋钮设置时低5.3%,这表明Sonic能够在不同的运行时配置下快速找到接近最佳的旋钮设置而无需先验知识。
英文摘要:
Many applications in important problem domains such as machine learning and computer vision are streaming applications that take a sequence of inputs over time. It is challenging to find knob settings that optimize the run-time performance of such applications because the optimal knob settings are usually functions of inputs, computing platforms, time as well as user's requirements, which can be very diverse. Most prior works address this problem by offline profiling followed by training models for control. However, profiling-based approaches incur large overhead before execution; it is also difficult to redeploy them in other run-time configurations. In this paper, we propose Sonic, a sampling-based online controller for long-running streaming applications that does not require profiling ahead of time. Within each phase of a streaming application's execution, Sonic utilizes the beginning portion to sample the knob space strategically and aims to pick the optimal knob setting for the rest of the phase, given a user-specified constrained optimization problem. A hybrid approach of machine learning regressions and Bayesian optimization are used for better overall sampling choices. Sonic is implemented independent of application, device, input, performance objective and constraints. We evaluate Sonic on traditional parallel benchmarks as well as on deep learning inference benchmarks across multiple platforms. Our experiments show that when using Sonic to control knob settings, application run-time performance is only 5.3% less than if optimal knob settings were used, demonstrating that Sonic is able to find near-optimal knob settings under diverse run-time configurations without prior knowledge quickly.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。