Skip to main content
QUICK REVIEW

[Paper Review] Optimizing Prediction Serving on Low-Latency Serverless Dataflow

Vikram Sreekanti, Harikaran Subbaraj|arXiv (Cornell University)|Jul 11, 2020
Advanced Neural Network ApplicationsComputer Science59 references6 citations
TL;DR

Cloudflow is a serverless dataflow system that optimizes low-latency machine learning prediction serving by applying automatic, transparent optimizations—such as operator fusion and competitive execution—on black-box models via a familiar functional API. It achieves up to 2× performance improvement over state-of-the-art systems while meeting stringent latency requirements for real-time applications.

ABSTRACT

Prediction serving systems are designed to provide large volumes of low-latency inferences machine learning models. These systems mix data processing and computationally intensive model inference and benefit from multiple heterogeneous processors and distributed computing resources. In this paper, we argue that a familiar dataflow API is well-suited to this latency-sensitive task, and amenable to optimization even with unmodified black-box ML models. We present the design of Cloudflow, a system that provides this API and realizes it on an autoscaling serverless backend. Cloudflow transparently implements performance-critical optimizations including operator fusion and competitive execution. Our evaluation shows that Cloudflow's optimizations yield significant performance improvements on synthetic workloads and that Cloudflow outperforms state-of-the-art prediction serving systems by as much as 2x on real-world prediction pipelines, meeting latency goals of demanding applications like real-time video analysis.

Motivation & Objective

  • To address the challenge of low-latency, high-throughput prediction serving in interactive applications like real-time video analysis.
  • To enable end-to-end optimization of prediction pipelines without requiring model rewrites or white-box access.
  • To support fine-grained autoscaling and efficient resource allocation for bursty, unpredictable workloads.
  • To provide a developer-friendly, functional API for composing complex prediction pipelines using familiar dataflow operators.
  • To bridge the gap between modular microservice-based systems and highly optimized, white-box systems like Pretzel, by enabling optimizations on black-box models.

Proposed method

  • Cloudflow exposes a functional dataflow API using standard operators (e.g., map, filter, union) to compose prediction pipelines from black-box ML models.
  • It runs on Cloudburst, a stateful serverless FaaS platform, enabling low-latency state access and efficient function composition.
  • The system automatically applies dataflow optimizations such as operator fusion and competitive execution to reduce latency and improve throughput.
  • It leverages the semantic structure of the dataflow graph to enable optimizations without modifying user models or frameworks.
  • Cloudflow extends Cloudburst with features for fine-grained autoscaling and efficient data passing across heterogeneous processors.
  • The system performs transparent type checking and passive statistics monitoring to improve pipeline correctness and debuggability.

Experimental results

Research questions

  • RQ1Can a familiar dataflow API be used to compose prediction pipelines with black-box models while enabling end-to-end optimizations?
  • RQ2How effective are automatic dataflow optimizations—such as operator fusion and competitive execution—on real-world prediction workloads?
  • RQ3Can a serverless back-end with fine-grained autoscaling and low-latency state access outperform existing prediction serving systems?
  • RQ4To what extent can optimizations be applied transparently without requiring model rewrites or changes to ML frameworks?
  • RQ5How does the system perform under bursty, interactive workloads typical of real-time applications?

Key findings

  • Cloudflow achieves up to 2× performance improvement over state-of-the-art prediction serving systems on real-world workloads such as image cascades and video processing.
  • The system successfully meets low-latency goals required for demanding applications like real-time video analysis, demonstrating its suitability for interactive use.
  • Automatic optimizations—including operator fusion and competitive execution—significantly reduce end-to-end latency without requiring user intervention.
  • The integration with Cloudburst enables efficient, fine-grained resource allocation and low-latency state access, critical for interactive workloads.
  • Cloudflow’s transparent type checking and passive statistics monitoring help detect pipeline anomalies without introducing type errors.
  • Evaluation on synthetic and real-world workloads confirms that the optimizations are effective and broadly applicable across diverse prediction pipeline patterns.

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.