SLOpt: Serving Real-Time Inference Pipeline With Strict Latency Constraint
- 10 January 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 74 (4) , 1431-1445
Abstract
The rise of machine learning as a service (MLaaS) has driven the demand for complex and customized real-time inference tasks, often requiring cascading multiple deep neural network (DNN) models into inference pipelines. However, these pipelines pose significant challenges due to scheduling complexity, particularly in maintaining strict latency service level objectives (SLOs). Existing systems serve pipelines with model-independent scheduling policies, which ignore the unique workload characteristics introduced by model cascading in the inference pipeline, leading to SLO violations and resource inefficiencies. In this paper, we propose that the serving system should exploit the model-cascading nature and intermodel workload dependency of the inference pipeline to ensure strict latency SLO cost-effectively. Based on this, we design and implement SLOpt, a serving system optimized for real-time inference pipelines with a three-stage codesign of workload estimation, resource provisioning, and request execution. SLOpt proposes cascade workload estimation and ahead-of-time tuning, which together address the challenge of cascade blocking and head-of-line blocking in workload estimation and resource provisioning. SLOpt further implements an adaptive batch drop policy to mitigate latency amplification issues within the pipeline. These innovations enable SLOpt to reduce the 99th percentile latency (P99 latency) by $1.4$ to $2.5$ times compared to the state of the arts while lowering serving costs by up to $29\%$ . Moreover, to achieve comparable P99 latency, SLOpt requires up to $70\%$ less cost than existing systems. Extensive evaluations on a 64-GPU cluster demonstrate SLOpt's effectiveness in meeting strict P99 latency SLOs under diverse real-world workloads.
Keywords
Funding Information
- National Key Research and Development Program of China (2022YFB4501000)
- National Natural Science Foundation of China (62202328)
This publication has 25 references indexed in Scilit:
- Inference serving with end-to-end latency SLOs over dynamic edge networksReal-Time Systems, 2024
- A Context-aware Approach to Task Scheduling for Time Series Data Prediction in Mobile Edge ComputingMobile Networks and Applications, 2023
- Vehicle-Rear: A New Dataset to Explore Feature Fusion for Vehicle Identification Using Convolutional Neural NetworksIEEE Access, 2021
- DeepAR: Probabilistic forecasting with autoregressive recurrent networksInternational Journal of Forecasting, 2020
- MobileNetV2: Inverted Residuals and Linear Bottlenecks2018
- Learning Transferable Architectures for Scalable Image Recognition2018
- Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference2018
- SSD: Single Shot MultiBox Detector2016
- Deep Residual Learning for Image Recognition2016
- Wikipedia workload analysis for decentralized hostingComputer Networks, 2009