Skip to main content
QUICK REVIEW

[Paper Review] Clipper: A Low-Latency Online Prediction Serving System

Daniel Crankshaw, Xin Wang|arXiv (Cornell University)|Dec 9, 2016
Data Stream Mining TechniquesComputer Science36 references81 citations
TL;DR

Clipper is a general-purpose, low-latency prediction serving system that decouples online inference from machine learning frameworks via a modular, layered architecture. It reduces latency and boosts throughput using caching, adaptive batching, and dynamic model selection across multiple frameworks, achieving performance comparable to TensorFlow Serving while enabling cross-framework model composition, online learning, and contextual personalization with minimal overhead.

ABSTRACT

Machine learning is being deployed in a growing number of applications which demand real-time, accurate, and robust predictions under heavy query load. However, most machine learning frameworks and systems only address model training and not deployment. In this paper, we introduce Clipper, a general-purpose low-latency prediction serving system. Interposing between end-user applications and a wide range of machine learning frameworks, Clipper introduces a modular architecture to simplify model deployment across frameworks and applications. Furthermore, by introducing caching, batching, and adaptive model selection techniques, Clipper reduces prediction latency and improves prediction throughput, accuracy, and robustness without modifying the underlying machine learning frameworks. We evaluate Clipper on four common machine learning benchmark datasets and demonstrate its ability to meet the latency, accuracy, and throughput demands of online serving applications. Finally, we compare Clipper to the TensorFlow Serving system and demonstrate that we are able to achieve comparable throughput and latency while enabling model composition and online learning to improve accuracy and render more robust predictions.

Motivation & Objective

  • To address the lack of general-purpose, low-latency prediction serving systems that support diverse machine learning frameworks.
  • To reduce inference latency and increase throughput without modifying underlying machine learning frameworks.
  • To improve prediction accuracy and robustness through dynamic model selection, ensemble methods, and uncertainty estimation.
  • To enable online learning and personalization across models without sacrificing performance.
  • To provide a modular, extensible architecture that supports rapid integration of new models and frameworks.

Proposed method

  • Clipper employs a two-layer architecture: the Model Abstraction Layer abstracts model interfaces across frameworks, enabling transparent deployment and execution.
  • The Model Selection Layer dynamically selects and combines predictions from multiple models using bandit algorithms and ensemble techniques to improve accuracy and robustness.
  • Caching and adaptive batching are applied at the model abstraction layer to bound tail latency and maximize throughput under query load.
  • Straggler mitigation is used in the model selection layer to avoid waiting for slow models, reducing end-to-end latency.
  • The system is implemented in Rust and exposes a common API, allowing new frameworks to be integrated with fewer than 25 lines of code.
  • Clipper supports cross-framework model composition and online learning, enabling dynamic adaptation to user-specific feedback and evolving data.

Experimental results

Research questions

  • RQ1How can a prediction serving system achieve low and bounded latency across diverse machine learning frameworks?
  • RQ2Can a modular, general-purpose serving system match the performance of tightly integrated systems like TensorFlow Serving?
  • RQ3How can dynamic model selection improve prediction accuracy and robustness in online serving scenarios?
  • RQ4What mechanisms enable efficient caching and batching without modifying underlying ML frameworks?
  • RQ5Can online learning and personalization be effectively integrated into a low-latency serving system?

Key findings

  • Clipper achieves sub-20ms tail latency on all benchmark datasets, demonstrating strict latency bounds under heavy load.
  • Throughput improvements of up to 26x were observed using caching and adaptive batching, even with high query volumes.
  • Clipper matches TensorFlow Serving in both throughput and latency performance while supporting significantly more functionality.
  • The system enables dynamic model composition and online learning, improving accuracy and robustness in real-world scenarios.
  • New machine learning frameworks can be integrated with fewer than 25 lines of code, demonstrating high extensibility.
  • Straggler mitigation in the model selection layer effectively reduces latency by avoiding dependency on slow models.

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.