Skip to main content
QUICK REVIEW

[Paper Review] InferLine: ML Prediction Pipeline Provisioning and Management for Tight Latency Objectives

Daniel Crankshaw, Gur-Eyal Sela|arXiv (Cornell University)|Dec 5, 2018
Machine Learning and Data ClassificationComputer Science27 references4 citations
TL;DR

InferLine is a system that automates the provisioning and management of multi-stage machine learning inference pipelines to meet strict end-to-end tail latency Service Level Objectives (SLOs) at minimal cost. It combines a low-frequency combinatorial planner using profiling and discrete event simulation with a high-frequency auto-scaling tuner based on network calculus to dynamically adjust pipeline configurations in response to workload changes, achieving up to 7.6x lower cost and 34.5x lower SLO miss rate than prior approaches.

ABSTRACT

Serving ML prediction pipelines spanning multiple models and hardware accelerators is a key challenge in production machine learning. Optimally configuring these pipelines to meet tight end-to-end latency goals is complicated by the interaction between model batch size, the choice of hardware accelerator, and variation in the query arrival process. In this paper we introduce InferLine, a system which provisions and manages the individual stages of prediction pipelines to meet end-to-end tail latency constraints while minimizing cost. InferLine consists of a low-frequency combinatorial planner and a high-frequency auto-scaling tuner. The low-frequency planner leverages stage-wise profiling, discrete event simulation, and constrained combinatorial search to automatically select hardware type, replication, and batching parameters for each stage in the pipeline. The high-frequency tuner uses network calculus to auto-scale each stage to meet tail latency goals in response to changes in the query arrival process. We demonstrate that InferLine outperforms existing approaches by up to 7.6x in cost while achieving up to 34.5x lower latency SLO miss rate on realistic workloads and generalizes across state-of-the-art model serving frameworks.

Motivation & Objective

  • To address the challenge of configuring and managing complex, multi-model ML inference pipelines under tight end-to-end tail latency constraints.
  • To minimize operational cost while ensuring that end-to-end latency remains within application-specified Service Level Objectives (SLOs).
  • To automate the selection of hardware accelerators, batch sizes, and replication levels across pipeline stages, reducing manual tuning burden.
  • To enable dynamic adaptation to bursty and variable query workloads without rejecting requests, ensuring SLO compliance under real-time traffic changes.
  • To generalize across state-of-the-art model serving frameworks like TensorFlow Serving and Clipper, enabling broad deployment.

Proposed method

  • The low-frequency planner uses stage-wise profiling and discrete event simulation to model end-to-end pipeline latency under various configurations.
  • It performs constrained combinatorial optimization to find the cost-minimizing configuration that satisfies the end-to-end tail latency SLO.
  • The high-frequency tuner uses network calculus to model traffic envelopes across multiple time scales and detect workload shifts.
  • It dynamically auto-scales individual pipeline stages in response to changes in query arrival patterns, ensuring SLO adherence without query rejection.
  • The system integrates with existing serving frameworks by acting as a configuration and orchestration layer, not a replacement for the inference engine.
  • It leverages the deterministic, side-effect-free nature of ML inference to estimate pipeline performance from individual model profiles.

Experimental results

Research questions

  • RQ1How can we automatically configure multi-stage ML inference pipelines to meet end-to-end tail latency SLOs while minimizing cost?
  • RQ2What is the optimal combination of hardware accelerator, batch size, and replication for each stage in a pipeline under varying workloads?
  • RQ3How can we dynamically adapt pipeline configurations in real time to handle transient query spikes without violating latency SLOs?
  • RQ4Can a planner-tuner architecture with simulation and network calculus outperform existing static or coarse-grained auto-scaling approaches in cost and SLO adherence?
  • RQ5How does the system generalize across diverse model types, input characteristics, and serving frameworks?

Key findings

  • InferLine reduces cost by up to 7.6x compared to baseline configuration strategies while maintaining or improving SLO adherence.
  • The system achieves a 34.5x lower latency SLO miss rate than existing approaches on realistic workloads.
  • InferLine attains over 99% SLO compliance, the highest level reported in the literature for such systems.
  • The high-frequency tuner outperforms coarse-grained auto-scaling baselines in both latency SLO attainment and cost efficiency.
  • The planner’s simulation-based approach accurately predicts end-to-end latency without deploying the actual pipeline.
  • The system generalizes across diverse pipelines—including image processing, video monitoring, social media, and TF Cascade—demonstrating broad applicability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.