Hydro: Adaptive Query Processing of ML Queries
Not on the map. Why?
Abstract (arXiv)
Query optimization in relational database management systems (DBMSs) is critical for fast query processing. The query optimizer relies on precise selectivity and cost estimates to effectively optimize queries prior to execution. While this strategy is effective for relational DBMSs, it is not sufficient for DBMSs tailored for processing machine learning (ML) queries. In ML-centric DBMSs, query optimization is challenging for two reasons. First, the performance bottleneck of the queries shifts to user-defined functions (UDFs) that often wrap around deep learning models, making it difficult to accurately estimate UDF statistics without profiling the query. This leads to inaccurate statistics and sub-optimal query plans. Second, the optimal query plan for ML queries is data-dependent, necessitating DBMSs to adapt the query plan on the fly during execution. So, a static query plan is not sufficient for such queries. In this paper, we present Hydro, an ML-centric DBMS that utilizes adaptive query processing (AQP) for efficiently processing ML queries. Hydro is designed to quickly evaluate UDF-based query predicates by ensuring optimal predicate evaluation order and improving the scalability of UDF execution. By integrating AQP, Hydro continuously monitors UDF statistics, routes data to predicates in an optimal order, and dynamically allocates resources for evaluating predicates. We demonstrate Hydro's efficacy through four illustrative use cases, delivering up to 11.52x speedup over a baseline system.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 19 of its 51 references that are in the map. First posted on arXiv 22 Mar 2024.
Builds on
19 of 51 references.
References · 19
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Clipper: A Low-Latency Online Prediction Serving Systemcited by 191
- 2020Serving DNNs like Clockwork: Performance Predictability from the Bottom Upcited by 119
- 2017TensorFlow-Serving: Flexible, High-Performance ML Servingcited by 85
- 2019Themis: Fair and Efficient GPU Cluster Schedulingcited by 43
- 2018BlazeIt: Optimizing Declarative Aggregation and Limit Queries for Neural Network-Based Video Analyticscited by 41
- 2017NoScope: Optimizing Neural Network Queries over Video at Scalecited by 37
- 2018Physical Representation-based Predicate Optimization for a Visual Analytics Databasecited by 19
- 2019Salus: Fine-Grained GPU Sharing Primitives for Deep Learning Applicationscited by 17
- 2020Approximate Selection with Guarantees using Proxiescited by 13
- 2022Optimizing Machine Learning Inference Queries with Correlative Proxy Modelscited by 13
- 2022Serving and Optimizing Machine Learning Workflows on Heterogeneous Infrastructurescited by 12
7 more
- 2018Dynamic Space-Time Scheduling for GPU Inferencecited by 11
- 2020Semantic Indexes for Machine Learning-based Queries over Unstructured Datacited by 10
- 2023EQUI-VOCAL: Synthesizing Queries for Compositional Video Events from Limited User Interactions [Technical Report]cited by 10
- 2021Accelerating Approximate Aggregation Queries with Expensive Predicatescited by 9
- 2020Video Monitoring Queriescited by 7
- 2020ExSample: Efficient Searches on Video Repositories through Adaptive Samplingcited by 3
- 2020Evaluating Temporal Queries Over Video Feedscited by 1
Built on by
Not cited yet.