End-to-end Optimization of Machine Learning Prediction Queries
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
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
- 2016Clipper: A Low-Latency Online Prediction Serving Systemcited by 191
- 2017OpenML Benchmarking Suitescited by 178
- 2015MLlib: Machine Learning in Apache Sparkcited by 55
- 2021tf.data: A Machine Learning Data Processing Frameworkcited by 41
- 2018Rafiki: Machine Learning as an Analytics Service Systemcited by 33
- 2018PRETZEL: Opening the Black Box of Machine Learning Prediction Serving Systemscited by 22
- 2020A Tensor Compiler for Unified Machine Learning Prediction Servingcited by 20
- 2019Extending Relational Query Processing with ML Inferencecited by 15
- 2016KeystoneML: Optimizing Pipelines for Large-Scale Advanced Analyticscited by 13
- 2019Machine Learning at Microsoft with ML .NETcited by 11
10 more
- 2020Jointly Optimizing Preprocessing and Inference for DNN-based Visual Analyticscited by 11
- 2019sql4ml A declarative end-to-end workflow for machine learningcited by 6
- 2019Cloudy with high chance of DBMS: A 10-year prediction for Enterprise-Grade MLcited by 6
- 2020The Relational Data Borg is Learningcited by 6
- 2017LaraDB: A Minimalist Kernel for Linear and Relational Algebra Computationcited by 5
- 2017Optimization of Imperative Programs in a Relational Databasecited by 5
- 2019Data Science through the looking glass and what we found therecited by 5
- 2020SPORES: Sum-Product Optimization via Relational Equality Saturation for Large Scale Linear Algebracited by 5
- 2013MLI: An API for Distributed Machine Learningcited by 3
- 2019Willump: A Statistically-Aware End-to-end Optimizer for Machine Learning Inferencecited by 3
Built on by
Citing papers per year: 2022: 2; 2023: 3; 2024: 6; 2025: 2; 2026: 3.
16 papers.
Sort:
By area:
- 2023GFS: Graph-based Feature Synthesis for Prediction over Relational Databasescited by 16
- 2026Predictive Query Language: A Domain-Specific Language for Predictive Modeling on Relational Databasescited by 8
- 2022Share the Tensor Tea: How Databases can Leverage the Machine Learning Ecosystemcited by 7
- 2024Powering In-Database Dynamic Model Slicing for Structured Data Analyticscited by 5
- 2024NeurDB: An AI-powered Autonomous Data Systemcited by 5
- 2024NeurDB: On the Design and Implementation of an AI-powered Autonomous Databasecited by 5
- 2022The Tensor Data Platform: Towards an AI-centric Database Systemcited by 3
- 2024CityGPT: Towards Urban IoT Learning, Analysis and Interaction with Multi-Agent Systemcited by 3
- 2024Biathlon: Harnessing Model Resilience for Accelerating ML Inference Pipelinescited by 2
- 2025NeurStore: Efficient In-database Deep Learning Model Management Systemcited by 2
- 2023Auto-Differentiation of Relational Computations for Very Large Scale Machine Learningcited by 1
- 2024Bullion: A Column Store for Machine Learningcited by 1
4 more
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigmcited by 1
- 2023Keep Your Friends Close: Leveraging Affinity Groups to Accelerate AI Inference Workflowscited by 0
- 2025InferF: Declarative Factorization of AI/ML Inferences over Joinscited by 0
- 2026Towards Effective Orchestration of AI x DB Workloadscited by 0
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigm5 Mar 2026
- 2026Towards Effective Orchestration of AI x DB Workloads4 Mar 2026
- 2026Predictive Query Language: A Domain-Specific Language for Predictive Modeling on Relational Databases10 Feb 2026
- 2025InferF: Declarative Factorization of AI/ML Inferences over Joins25 Nov 2025
- 2025NeurStore: Efficient In-database Deep Learning Model Management System3 Sep 2025
- 2024NeurDB: On the Design and Implementation of an AI-powered Autonomous Database6 Aug 2024
- 2024CityGPT: Towards Urban IoT Learning, Analysis and Interaction with Multi-Agent System23 May 2024
- 2024Biathlon: Harnessing Model Resilience for Accelerating ML Inference Pipelines18 May 2024
- 2024NeurDB: An AI-powered Autonomous Data System7 May 2024
- 2024Powering In-Database Dynamic Model Slicing for Structured Data Analytics1 May 2024
- 2024Bullion: A Column Store for Machine Learning13 Apr 2024
- 2023GFS: Graph-based Feature Synthesis for Prediction over Relational Databases4 Dec 2023
4 more
- 2023Keep Your Friends Close: Leveraging Affinity Groups to Accelerate AI Inference Workflows30 Nov 2023
- 2023Auto-Differentiation of Relational Computations for Very Large Scale Machine Learning31 May 2023
- 2022The Tensor Data Platform: Towards an AI-centric Database System4 Nov 2022
- 2022Share the Tensor Tea: How Databases can Leverage the Machine Learning Ecosystem10 Sep 2022
- 2023GFS: Graph-based Feature Synthesis for Prediction over Relational Databasescited by 16
- 2026Predictive Query Language: A Domain-Specific Language for Predictive Modeling on Relational Databasescited by 8
- 2022Share the Tensor Tea: How Databases can Leverage the Machine Learning Ecosystemcited by 7
- 2024NeurDB: An AI-powered Autonomous Data Systemcited by 5
- 2024NeurDB: On the Design and Implementation of an AI-powered Autonomous Databasecited by 5
- 2022The Tensor Data Platform: Towards an AI-centric Database Systemcited by 3
- 2024CityGPT: Towards Urban IoT Learning, Analysis and Interaction with Multi-Agent Systemcited by 3
- 2024Biathlon: Harnessing Model Resilience for Accelerating ML Inference Pipelinescited by 2
- 2025NeurStore: Efficient In-database Deep Learning Model Management Systemcited by 2
- 2023Auto-Differentiation of Relational Computations for Very Large Scale Machine Learningcited by 1
- 2024Bullion: A Column Store for Machine Learningcited by 1
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigmcited by 1
12 most cited of 15 All 15 (JSON)
- 2026Beyond Linear LLM Invocation: An Efficient and Effective Semantic Filter Paradigm5 Mar 2026
- 2026Towards Effective Orchestration of AI x DB Workloads4 Mar 2026
- 2026Predictive Query Language: A Domain-Specific Language for Predictive Modeling on Relational Databases10 Feb 2026
- 2025InferF: Declarative Factorization of AI/ML Inferences over Joins25 Nov 2025
- 2025NeurStore: Efficient In-database Deep Learning Model Management System3 Sep 2025
- 2024NeurDB: On the Design and Implementation of an AI-powered Autonomous Database6 Aug 2024
- 2024CityGPT: Towards Urban IoT Learning, Analysis and Interaction with Multi-Agent System23 May 2024
- 2024Biathlon: Harnessing Model Resilience for Accelerating ML Inference Pipelines18 May 2024
- 2024NeurDB: An AI-powered Autonomous Data System7 May 2024
- 2024Bullion: A Column Store for Machine Learning13 Apr 2024
- 2023GFS: Graph-based Feature Synthesis for Prediction over Relational Databases4 Dec 2023
- 2023Keep Your Friends Close: Leveraging Affinity Groups to Accelerate AI Inference Workflows30 Nov 2023
12 newest of 15 All 15 (JSON)