Skip to main content
QUICK REVIEW

[Paper Review] Willump: A Statistically-Aware End-to-end Optimizer for Machine Learning Inference

Peter Kraft, Daniel Kang|arXiv (Cornell University)|Jun 3, 2019
Machine Learning and Data ClassificationComputer Science41 references8 citations
TL;DR

Willump is a statistically-aware end-to-end optimizer for machine learning inference that automatically applies two novel optimizations: feature cascading using empirically selected low-cost, high-impact features to accelerate classification, and approximate top-K query processing via automatically constructed surrogate models. It achieves up to 16× end-to-end performance improvement on real-world ML pipelines with no statistically significant accuracy loss, while also applying standard compiler optimizations for code generation.

ABSTRACT

Systems for ML inference are widely deployed today, but they typically optimize ML inference workloads using techniques designed for conventional data serving workloads and miss critical opportunities to leverage the statistical nature of ML. In this paper, we present Willump, an optimizer for ML inference that introduces two statistically-motivated optimizations targeting ML applications whose performance bottleneck is feature computation. First, Willump automatically cascades feature computation for classification queries: Willump classifies most data inputs using only high-value, low-cost features selected through empirical observations of ML model performance, improving query performance by up to 5x without statistically significant accuracy loss. Second, Willump accurately approximates ML top-K queries, discarding low-scoring inputs with an automatically constructed approximate model and then ranking the remainder with a more powerful model, improving query performance by up to 10x with minimal accuracy loss. Willump automatically tunes these optimizations' parameters to maximize query performance while meeting an accuracy target. Moreover, Willump complements these statistical optimizations with compiler optimizations to automatically generate fast inference code for ML applications. We show that Willump improves the end-to-end performance of real-world ML inference pipelines curated from major data science competitions by up to 16x without statistically significant loss of accuracy.

Motivation & Objective

  • To address the performance bottleneck in ML inference pipelines where feature computation dominates runtime.
  • To exploit the statistical nature of ML workloads—particularly in classification and top-K queries—by introducing automated, model-agnostic optimizations.
  • To improve inference efficiency without sacrificing model accuracy by automatically tuning optimization parameters.
  • To complement statistical optimizations with end-to-end compiler optimizations for efficient code generation.
  • To provide a general-purpose system that works across diverse ML pipelines without requiring manual feature cost annotation or model-specific tuning.

Proposed method

  • Willump constructs a cost model based on empirical observations of feature importance and computational cost to identify high-value, low-cost features for cascade-based classification.
  • It trains an approximate model on these selected features to classify 'easy' inputs quickly, while cascading 'hard' inputs to a full model for higher accuracy.
  • For top-K queries, Willump uses an automatically generated approximate model to filter out low-scoring inputs early, then ranks the remainder with a more accurate model.
  • The system automatically tunes cascade and approximation parameters to maximize performance while meeting a user-defined accuracy target.
  • It integrates with the Weld compiler stack to apply standard optimizations such as loop fusion and vectorization for efficient code generation.
  • Willump performs dataflow and dependency analysis to handle computationally dependent features and ensure correctness in cascaded execution.

Experimental results

Research questions

  • RQ1Can automated feature cascading based on empirical performance observations significantly accelerate ML inference with minimal accuracy loss?
  • RQ2Can approximate models be automatically constructed to accelerate top-K queries in ML inference without compromising ranking quality?
  • RQ3How can statistical properties of ML inference—such as feature cost and model uncertainty—be systematically exploited to improve end-to-end performance?
  • RQ4To what extent can automatic optimization of cascades and top-K queries outperform general-purpose model serving systems?
  • RQ5Can a unified system automatically balance performance and accuracy across diverse ML pipelines without manual tuning or model-specific assumptions?

Key findings

  • Willump achieves up to 5× speedup on classification queries by cascading feature computation using empirically selected high-impact, low-cost features.
  • It delivers up to 10× performance improvement on top-K queries by approximating scores with a lightweight model before full model inference.
  • The system improves end-to-end inference performance of real-world ML pipelines by up to 16× compared to baseline systems, with no statistically significant accuracy loss.
  • Willump’s automatic parameter tuning ensures that performance gains are achieved while meeting user-specified accuracy constraints.
  • The integration of statistical optimizations with compiler-level transformations (e.g., loop fusion) enables holistic performance improvements across diverse ML workloads.
  • Willump is the first system to automatically generate model-agnostic, feature-aware cascades and approximate top-K queries without requiring manual feature cost annotation or model-specific design.

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.