IPA:推理流水线自适应以实现高精度与成本效益
IPA: Inference Pipeline Adaptation to Achieve High Accuracy and Cost-Efficiency
AI总结:
提出IPA在线推理流水线自适应系统,通过整数规划动态配置批大小、复制和模型变体,在满足延迟SLA下优化精度与成本,实验显示端到端精度提升21%。
摘要:
在机器学习生产系统中,高效优化多模型推理流水线以实现快速、准确且成本有效的推理是一个关键挑战,因为这些系统对端到端延迟有严格要求。为了简化对推理流水线中延迟、准确性和成本之间庞大而复杂的权衡空间的探索,服务提供商经常选择仅考虑其中一个方面。然而,挑战在于协调延迟、准确性和成本之间的权衡。为了解决这一挑战并提出一种有效管理推理流水线中模型变体的解决方案,我们提出了IPA,一个在线深度学习推理流水线自适应系统,该系统有效地利用每个深度学习任务的模型变体。模型变体是针对同一深度学习任务的不同版本的预训练模型,在资源需求、延迟和准确性方面存在差异。IPA动态配置批处理大小、复制因子和模型变体,以优化准确性、最小化成本,并使用整数规划满足用户定义的延迟服务级别协议(SLA)。它支持多目标设置,以实现准确性和成本目标之间的不同权衡,同时保持对变化的工作负载和动态流量模式的适应性。与现有方法相比,探索更广泛的配置范围使IPA能够在成本与准确性目标之间实现更好的权衡。在Kubernetes实现中进行的广泛实验,使用五个真实世界的推理流水线,表明IPA将端到端准确性提高了高达21%,且成本增加最小。用于复现的代码和数据可在https://github.com/reconfigurable-ml-pipeline/ipa获取。
英文摘要:
Efficiently optimizing multi-model inference pipelines for fast, accurate, and cost-effective inference is a crucial challenge in machine learning production systems, given their tight end-to-end latency requirements. To simplify the exploration of the vast and intricate trade-off space of latency, accuracy, and cost in inference pipelines, providers frequently opt to consider one of them. However, the challenge lies in reconciling latency, accuracy, and cost trade-offs. To address this challenge and propose a solution to efficiently manage model variants in inference pipelines, we present IPA, an online deep learning Inference Pipeline Adaptation system that efficiently leverages model variants for each deep learning task. Model variants are different versions of pre-trained models for the same deep learning task with variations in resource requirements, latency, and accuracy. IPA dynamically configures batch size, replication, and model variants to optimize accuracy, minimize costs, and meet user-defined latency Service Level Agreements (SLAs) using Integer Programming. It supports multi-objective settings for achieving different trade-offs between accuracy and cost objectives while remaining adaptable to varying workloads and dynamic traffic patterns. Navigating a wider variety of configurations allows \namex{} to achieve better trade-offs between cost and accuracy objectives compared to existing methods. Extensive experiments in a Kubernetes implementation with five real-world inference pipelines demonstrate that IPA improves end-to-end accuracy by up to 21% with a minimal cost increase. The code and data for replications are available at https://github.com/reconfigurable-ml-pipeline/ipa.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。