IPA: Inference Pipeline Adaptation to Achieve High Accuracy and Cost-Efficiency

JSYS 2023 Aug Papers Submission3 Authors

29 Jul 2023 (modified: 16 Aug 2023)JSYS 2023 Aug Papers SubmissionEveryoneRevisions
Keywords: Inference Serving Systems, Inference Pipelines, Autoscaling, Machine Learning
TL;DR: IPA is an online deep-learning Inference Pipeline Adaptation system that dynamically optimizes accuracy, cost, and latency in real-world inference pipelines.
Abstract: Efficiently optimizing multi-model inference pipelines for fast, accurate, and cost-effective inference is a crucial challenge in ML production systems, given their tight end-to-end latency requirements. To simplify the exploration of the vast and intricate trade-off space of accuracy and cost in inference pipelines, providers frequently opt to consider one of them. However, the challenge lies in reconciling 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 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. Extensive experiments on a Kubernetes implementation with five real-world inference pipelines demonstrate that IPA improves normalized accuracy by up to 35\% with a minimal cost increase of less than 5\%.
Area: Systems for ML and ML for systems
Type: Solution
Revision: No
Submission Number: 3
Loading