Zero-Shot Cost Models for Out-of-the-box Learned Cost Prediction
Benjamin Hilprecht, Carsten Binnig
摘要
In this paper, we introduce zero-shot cost models, which enable learned cost estimation that generalizes to unseen databases. In contrast to state-of-the-art workload-driven approaches, which require to execute a large set of training queries on every new database, zero-shot cost models thus allow to instantiate a learned cost model out-of-the-box without expensive training data collection. To enable such zero-shot cost models, we suggest a new learning paradigm based on pre-trained cost models. As core contributions to support the transfer of such a pre-trained cost model to unseen databases, we introduce a new model architecture and representation technique for encoding query workloads as input to those models. As we will show in our evaluation, zero-shot cost estimation can provide more accurate cost estimates than state-of-the-art models for a wide range of (real-world) databases without requiring any query executions on unseen databases. Furthermore, we show that zero-shot cost models can be used in a few-shot mode that further improves their quality by retraining them just with a small number of additional training queries on the unseen database.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 28 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks 引用了 Sample-Efficient Cardinality Estimation Using Geometric Deep Learning
- How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks 引用了 DeepDB: Learn from Data, not from Queries!
- How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks 引用了 An End-to-End Learning-based Cost Estimator
- How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks 引用了 NeuroCard: One Cardinality Estimator for All Tables
- How Good are Learned Cost Models, Really? Insights from Query Optimization Tasks 引用了 Bao: Making Learned Query Optimization Practical
- PRICE: A Pretrained Model for Cross-Database Cardinality Estimation 引用了 Language Models are Few-Shot Learners
- PRICE: A Pretrained Model for Cross-Database Cardinality Estimation 引用了 NeuroCard: One Cardinality Estimator for All Tables
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 DeepDB: Learn from Data, not from Queries!
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 An End-to-End Learning-based Cost Estimator
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 NeuroCard: One Cardinality Estimator for All Tables
- DeepDB: Learn from Data, not from Queries! 引用了 An End-to-End Learning-based Cost Estimator
- Blueprinting the Cloud: Unifying and Automatically Optimizing Cloud Data Infrastructures with BRAD 引用了 An End-to-End Learning-based Cost Estimator
- Blueprinting the Cloud: Unifying and Automatically Optimizing Cloud Data Infrastructures with BRAD 引用了 Check Out the Big Brain on BRAD: Simplifying Cloud Data Processing with Learned Automated Data Meshes
- Blueprinting the Cloud: Unifying and Automatically Optimizing Cloud Data Infrastructures with BRAD 引用了 Bao: Making Learned Query Optimization Practical
- Check Out the Big Brain on BRAD: Simplifying Cloud Data Processing with Learned Automated Data Meshes 引用了 DeepDB: Learn from Data, not from Queries!
- Check Out the Big Brain on BRAD: Simplifying Cloud Data Processing with Learned Automated Data Meshes 引用了 An End-to-End Learning-based Cost Estimator
- Check Out the Big Brain on BRAD: Simplifying Cloud Data Processing with Learned Automated Data Meshes 引用了 Bao: Making Learned Query Optimization Practical
- NeuroCard: One Cardinality Estimator for All Tables 引用了 An End-to-End Learning-based Cost Estimator
- Bao: Making Learned Query Optimization Practical 引用了 An End-to-End Learning-based Cost Estimator
引用它的顶会 Paper28
- Sample-Efficient Cardinality Estimation Using Geometric Deep LearningSilvan Reiner, Michael GrossniklausVLDB 2024 · 20 次引用
- PRICE: A Pretrained Model for Cross-Database Cardinality EstimationTianjing Zeng, Junwei Lan, Jiahong Ma, Wenqing Wei 等VLDB 2025 · 14 次引用
- How Good are Learned Cost Models, Really? Insights from Query Optimization TasksRoman Heinrich, Manisha Luthra, Johannes Wehrstein, Harald Kornmayer 等SIGMOD 2025 · 13 次引用
- Check Out the Big Brain on BRAD: Simplifying Cloud Data Processing with Learned Automated Data MeshesTim Kraska, Tianyu Li, Samuel Madden, Markos Markakis 等VLDB 2023 · 13 次引用
- Blueprinting the Cloud: Unifying and Automatically Optimizing Cloud Data Infrastructures with BRADGeoffrey X. Yu, Ziniu Wu, Ferdinand Kossmann, Tianyu Li 等VLDB 2024 · 11 次引用
它引用的 Paper10
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- 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 次引用
- DeepDB: Learn from Data, not from Queries!Benjamin Hilprecht, Andreas Schmidt, Moritz Kulessa, Alejandro Molina 等VLDB 2020 · 154 次引用
- NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang 等VLDB 2021 · 138 次引用
相关 Paper
- DACE: A Database-Agnostic Cost EstimatorZibo Liang, Xu Chen, Yuyang Xia, Runfan Ye 等ICDE 2024 · 8 次引用
- Rethinking Learned Cost Models: Why Start from Scratch?Jiani Yang, Sai Wu, Dongxiang Zhang, Jian Dai 等SIGMOD 2024 · 14 次引用
- ZERoTuNE: Learned Zero-Shot Cost Models for Parallelism Tuning in Stream ProcessingPratyush Agnihotri, Boris Koldehofe, Paul Stiegele, Roman Heinrich 等ICDE 2024 · 13 次引用
- Modeling Shifting Workloads for Learned Database SystemsPeizhi Wu, Zachary G. IvesSIGMOD 2024 · 12 次引用
- Leveraging Table Content for Zero-shot Text-to-SQL with Meta-LearningYongrui Chen, Xinnan Guo, Chaojie Wang, Jian Qiu 等AAAI 2021 · 11 次引用
