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

CascadeServe:解锁模型级联用于推理服务

CascadeServe: Unlocking Model Cascades for Inference Serving

MIT(麻省理工学院);Intel(英特尔公司);University of Arizona(亚利桑那大学)

Ferdi Kossmann, Ziniu Wu, Alex Turk, Nesime Tatbul, Lei Cao, Samuel Madden

AI总结:

针对ML推理服务的高成本与请求波动硬件适配难题,提出分离线在线阶段的CascadeServe系统,通过模型级联实现推理服务优化,相比现有基线可节省2-3倍成本。

摘要:

机器学习(ML)模型正越来越多地部署到生产环境中,这对高效的推理服务系统提出了需求。高效推理服务面临两大挑战:(i)ML模型计算成本高昂;(ii)实际应用的请求到达率频繁出现大幅且突发的波动,使得硬件配置难以精准匹配。模型级联被认为可同时应对这两大挑战,因为它(i)能在保持精度的同时减少计算量,(ii)能在计算量与精度之间提供高分辨率的权衡,从而可针对请求到达率进行细粒度调整。尽管模型级联潜力巨大,但尚未被应用于在线服务系统中,这一应用存在诸多挑战,包括工作负载适配、模型向硬件的复制、推理调度、请求批处理等。在本研究中,我们提出CascadeServe,可实现基于级联的端到端推理服务的自动化与优化。CascadeServe分为离线和在线两个阶段运行:离线阶段,系统预先计算档位计划,明确在线推理服务的执行方式;在线阶段,该档位计划支持系统在提供推理服务的同时,以可忽略的决策开销对查询负载进行近乎最优的适配。我们发现,在不同工作负载下,与当前最优基线相比,CascadeServe在广泛的延迟-精度空间内可节省2-3倍的成本。

英文摘要:

Machine learning (ML) models are increasingly deployed to production, calling for efficient inference serving systems. Efficient inference serving is complicated by two challenges: (i) ML models incur high computational costs, and (ii) the request arrival rates of practical applications have frequent, high, and sudden variations which make it hard to correctly provision hardware. Model cascades are positioned to tackle both of these challenges, as they (i) save work while maintaining accuracy, and (ii) expose a high-resolution trade-off between work and accuracy, allowing for fine-grained adjustments to request arrival rates. Despite their potential, model cascades haven't been used inside an online serving system. This comes with its own set of challenges, including workload adaption, model replication onto hardware, inference scheduling, request batching, and more. In this work, we propose CascadeServe, which automates and optimizes end-to-end inference serving with cascades. CascadeServe operates in an offline and online phase. In the offline phase, the system pre-computes a gear plan that specifies how to serve inferences online. In the online phase, the gear plan allows the system to serve inferences while making near-optimal adaptations to the query load at negligible decision overheads. We find that CascadeServe saves 2-3x in cost across a wide spectrum of the latency-accuracy space when compared to state-of-the-art baselines on different workloads.

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

↑