[论文解读] INFaaS: Managed & Model-less Inference Serving
INFaaS 是一种托管的、无模型的推理即服务(inference-as-a-service)系统,可自动选择最优模型和资源以满足用户指定的性能与精度要求。与现有系统相比,其吞吐量提高2倍,延迟SLO违规频率降低3倍,同时在毫秒级查询下仅带来不到12%的开销,保持了高资源利用率。
The number of applications relying on inference from machine learning models is already large and expected to keep growing. For instance, Facebook applications issue tens-of-trillions of inference queries per day with varying performance, accuracy, and cost constraints. Unfortunately, existing inference serving systems are neither easy to use nor cost effective. Developers must manually match the performance, accuracy, and cost constraints of their applications to a large design space that includes decisions such as selecting the right model and model optimizations, selecting the right hardware architecture, selecting the right scale-out factor, and avoiding cold-start effects. These interacting decisions are difficult to make, especially when the application load varies over time, applications evolve over time, and the available resources vary over time. We present INFaaS, an inference-as-a-service system that abstracts resource management and model selection. Users simply specify their inference task along with any performance and accuracy requirements for queries. Given the currently available resources, INFaaS automatically selects and serves inference queries using a specific model that satisfies these requirements. INFaaS autoscales resources as model load changes both within and across inference workers. It also shares workers across users and models to increase utilization. We evaluate INFaaS using 44 model architectures and their 270 model variants against serving systems that rely on users for model selection and pre-load models, fix the scale policy, or use dedicated hardware resources. Our evaluation on realistic workloads shows that INFaaS achieves 2$ imes$ higher throughput and violates latency SLO goals 3$ imes$ less frequently, while maintaining high utilization and having overheads that are less than 12% of millisecond-scale queries.
研究动机与目标
- 解决现有推理服务系统在模型、硬件和扩展策略方面需要手动调优所带来的复杂性与低效问题。
- 通过在动态多租户环境中抽象模型选择与资源管理,减轻开发者的运维负担。
- 通过跨用户和模型共享推理工作节点,提升系统利用率与成本效率。
- 在不同工作负载和资源可用性条件下,维持严格的延迟与精度SLO。
- 通过多样化模型架构与变体在真实工作负载上的评估,检验系统性能。
提出的方法
- INFaaS 提供简单接口,用户仅需指定推理任务及所需性能/精度约束。
- 系统持续监控可用资源与工作负载需求,以选择最优模型变体与部署配置。
- 通过动态自动伸缩机制,在推理工作节点间调整资源分配,实时响应负载变化。
- INFaaS 在多个用户和模型间共享物理工作节点,以提升利用率并减少空闲容量。
- 系统使用策略引擎评估模型变体是否满足SLO要求,选择在当前条件下最符合用户需求的模型。
- 通过预热并维持一个随时可用的推理工作节点池,避免冷启动问题。
实验结果
研究问题
- RQ1托管推理服务能否在无需手动调优的情况下,自动选择模型与资源以满足用户指定的SLO?
- RQ2与手动配置相比,自动模型与资源选择对吞吐量、延迟和利用率的影响如何?
- RQ3在用户与模型间共享工作节点在多大程度上能提升系统效率与资源利用率?
- RQ4INFaaS在具有波动需求与多样化模型类型的动态真实工作负载下表现如何?
- RQ5系统自动化层在毫秒级推理查询上的运行时开销是多少?
主要发现
- 与需要手动选择模型和固定扩展策略的系统相比,INFaaS 的吞吐量提高2倍。
- 其延迟SLO违规频率比基线系统低3倍,表明在高负载下具备更强的可靠性。
- 系统在引入小于12%开销的前提下,保持了高资源利用率,适用于毫秒级查询。
- INFaaS 通过实时自动伸缩与动态模型选择,成功应对工作负载波动。
- 系统在用户与模型间共享工作节点的能力显著提升了资源利用率,且未影响SLO达标。
- 在44种模型架构与270种变体上的评估验证了该方法在多样化推理工作负载下的鲁棒性与可扩展性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。