End-to-end Optimization of Machine Learning Prediction Queries

30Citations
Citations of this article
48Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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 run-times (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 is able to improve performance of prediction queries on Apache Spark and SQL Server by up to 13.1x and 330x, respectively. Finally, for complex models where GPU acceleration is beneficial, Raven provides up to 8× speedup compared to state-of-the-art systems.

References Powered by Scopus

XGBoost: A scalable tree boosting system

33097Citations
N/AReaders
Get full text

Spark SQL: Relational data processing in spark

1089Citations
N/AReaders
Get full text

Halide: A language and compiler for optimizing parallelism, locality, and recomputation in image processing pipelines

527Citations
N/AReaders
Get full text

Cited by Powered by Scopus

Share the Tensor Tea: How Databases can Leverage the Machine Learning Ecosystem

7Citations
N/AReaders
Get full text

Containerized Execution of UDFs: An Experimental Evaluation

6Citations
N/AReaders
Get full text

Pushing ML Predictions Into DBMSs

4Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Park, K., Saur, K., Banda, D., Sen, R., Interlandi, M., & Karanasos, K. (2022). End-to-end Optimization of Machine Learning Prediction Queries. In Proceedings of the ACM SIGMOD International Conference on Management of Data (pp. 587–601). Association for Computing Machinery. https://doi.org/10.1145/3514221.3526141

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 8

73%

Researcher 2

18%

Professor / Associate Prof. 1

9%

Readers' Discipline

Tooltip

Computer Science 9

82%

Business, Management and Accounting 1

9%

Environmental Science 1

9%

Save time finding and organizing research with Mendeley

Sign up for free