Efficient Deep Learning Pipelines for Accurate Cost Estimations Over Large Scale Query Workload
Johan Kok Zhi Kang, Gaurav, Sien Yi Tan, Feng Cheng, Shixuan Sun, Bingsheng He
摘要
The use of deep learning models for forecasting the resource consumption patterns of SQL queries have recently been a popular area of study. With many companies using cloud platforms to power their data lakes for large scale analytic demands, these models form a critical part of the pipeline in managing cloud resource provisioning. While these models have demonstrated promising accuracy, training them over large scale industry workloads are expensive. Space inefficiencies of encoding techniques over large numbers of queries and excessive padding used to enforce shape consistency across diverse query plans implies 1) longer model training time and 2) the need for expensive, scaled up infrastructure to support batched training. In turn, we developed Prestroid, a tree convolution based data science pipeline that accurately predicts resource consumption patterns of query traces, but at a much lower cost. We evaluated our pipeline over 19K Presto OLAP queries from Grab, on a data lake of more than 20PB of data. Experimental results imply that our pipeline outperforms benchmarks on predictive accuracy, contributing to more precise resource prediction for large-scale workloads, yet also reduces per-batch memory footprint by 13.5x and per-epoch training time by 3.45x. We demonstrate direct cost savings of up to 13.2x for large batched model training over Microsoft Azure VMs.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LIO: A lightweight and interpretable query optimizer based on an evolutionary forest 引用了 An End-to-End Learning-based Cost Estimator
- Micro: a Lightweight Middleware for Optimizing Cross-Store Cross-Model Graph-Relation Joins 引用了 Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction
- Micro: a Lightweight Middleware for Optimizing Cross-Store Cross-Model Graph-Relation Joins 引用了 An End-to-End Learning-based Cost Estimator
- Micro: a Lightweight Middleware for Optimizing Cross-Store Cross-Model Graph-Relation Joins 引用了 Bao: Making Learned Query Optimization Practical
- Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction 引用了 An End-to-End Learning-based Cost Estimator
- Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction 引用了 Bao: Making Learned Query Optimization Practical
- AXE: A Task Decomposition Approach to Learned LSM Tuning 引用了 An End-to-End Learning-based Cost Estimator
- Bao: Making Learned Query Optimization Practical 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
- Bao: Making Learned Query Optimization Practical 引用了 An End-to-End Learning-based Cost Estimator
引用它的顶会 Paper4
- Zero-Shot Cost Models for Out-of-the-box Learned Cost PredictionBenjamin Hilprecht, Carsten BinnigVLDB 2022 · 90 次引用
- LIO: A lightweight and interpretable query optimizer based on an evolutionary forestChen Ye, Shujie Ma, Guojun Dai, Hengtong ZhangVLDB 2026 · 1 次引用
- Micro: a Lightweight Middleware for Optimizing Cross-Store Cross-Model Graph-Relation JoinsXiuwen Zheng, Arun Kumar, Amarnath GuptaICDE 2026
- AXE: A Task Decomposition Approach to Learned LSM TuningAndy Huynh, Anwesha Saha, Harshal A. Chaudhari, Manos AthanassoulisVLDB 2025
它引用的 Paper5
- An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 次引用
- Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul 等SIGMOD 2021 · 242 次引用
- Efficient Segmentation: Learning Downsampling Near Semantic BoundariesDmitrii Marin, Zijian He, Peter Vajda, Priyam Chatterjee 等ICCV 2019 · 107 次引用
- QuickSel: Quick Selectivity Learning with Mixture ModelsYongjoo Park, Shucheng Zhong, Barzan MozafariSIGMOD 2020 · 66 次引用
- Facilitating SQL Query Composition and AnalysisZainab Zolaktaf, Mostafa Milani, Rachel PottingerSIGMOD 2020 · 19 次引用
相关 Paper
- A Resource-Aware Deep Cost Model for Big Data Query ProcessingYan Li, Liwei Wang, Sheng Wang, Yuan Sun 等ICDE 2022 · 13 次引用
- LORE: Learning-Based Resource Recommendation for Big Data QueriesYan Li, Liwei Wang, Bolong Zheng, Zhiyong PengICDE 2025 · 2 次引用
- Cost Models for Big Data Query Processing: Learning, Retrofitting, and Our FindingsTarique Siddiqui, Alekh Jindal, Shi Qiao, Hiren Patel 等SIGMOD 2020 · 80 次引用
- End-to-end Optimization of Machine Learning Prediction QueriesKwanghyun Park, Karla Saur, Dalitso Banda, Rathijit Sen 等SIGMOD 2022 · 50 次引用
- Understanding and Detecting Query Performance Regression in Practical Index Tuning: [Experiments & Analysis]Wentao Wu, Anshuman Dutt, Gaoxiang Xu, Vivek R. Narasayya 等SIGMOD 2026
