mlsanityData to 14 Oct 2026

End-to-end Optimization of Machine Learning Prediction Queries

arXiv 2206.00136 ↗First posted 31 May 2022cs.DB cs.LGcited by 16

Not on the map. Why?

Abstract (arXiv)

Prediction queries are widely used across industries to perform advanced analytics and draw insights from data. They include a data processing part (e.g., for joining, filtering, cleaning, featurizing the datasets) and a machine learning (ML) part invoking one or more trained models to perform predictions. These parts have so far been optimized in isolation, leaving significant opportunities for optimization unexplored. We present Raven, a production-ready system for optimizing prediction queries. Raven follows the enterprise architectural trend of collocating data and ML runtimes. It relies on a unified intermediate representation that captures both data and ML operators in a single graph structure to unlock two families of optimizations. First, it employs logical optimizations that pass information between the data part (and the properties of the underlying data) and the ML part to optimize each other. Second, it introduces logical-to-physical transformations that allow operators to be executed on different runtimes (relational, ML, and DNN) and hardware (CPU, GPU). Novel data-driven optimizations determine the runtime to be used for each part of the query to achieve optimal performance. Our evaluation shows that Raven improves performance of prediction queries on Apache Spark and SQL Server by up to 13.1x and 330x, respectively. For complex models where GPU acceleration is beneficial, Raven provides up to 8x speedup compared to state-of-the-art systems.

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 22 of its 79 references that are in the map. First posted on arXiv 31 May 2022.

Builds on

22 of 79 references.

References · 22

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
  3. 2016Clipper: A Low-Latency Online Prediction Serving Systemcited by 191
  4. 2017OpenML Benchmarking Suitescited by 178
  5. 2015MLlib: Machine Learning in Apache Sparkcited by 55
  6. 2021tf.data: A Machine Learning Data Processing Frameworkcited by 41
  7. 2018Rafiki: Machine Learning as an Analytics Service Systemcited by 33
  8. 2018PRETZEL: Opening the Black Box of Machine Learning Prediction Serving Systemscited by 22
  9. 2020A Tensor Compiler for Unified Machine Learning Prediction Servingcited by 20
  10. 2019Extending Relational Query Processing with ML Inferencecited by 15
  11. 2016KeystoneML: Optimizing Pipelines for Large-Scale Advanced Analyticscited by 13
  12. 2019Machine Learning at Microsoft with ML .NETcited by 11
10 more
  1. 2020Jointly Optimizing Preprocessing and Inference for DNN-based Visual Analyticscited by 11
  2. 2019sql4ml A declarative end-to-end workflow for machine learningcited by 6
  3. 2019Cloudy with high chance of DBMS: A 10-year prediction for Enterprise-Grade MLcited by 6
  4. 2020The Relational Data Borg is Learningcited by 6
  5. 2017LaraDB: A Minimalist Kernel for Linear and Relational Algebra Computationcited by 5
  6. 2017Optimization of Imperative Programs in a Relational Databasecited by 5
  7. 2019Data Science through the looking glass and what we found therecited by 5
  8. 2020SPORES: Sum-Product Optimization via Relational Equality Saturation for Large Scale Linear Algebracited by 5
  9. 2013MLI: An API for Distributed Machine Learningcited by 3
  10. 2019Willump: A Statistically-Aware End-to-end Optimizer for Machine Learning Inferencecited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 2; 2023: 3; 2024: 6; 2025: 2; 2026: 3.

16 papers.

Sort:

By area: