Selectivity Functions of Range Queries are Learnable
Xiao Hu, Yuxi Liu, Haibo Xiu, Pankaj K. Agarwal, Debmalya Panigrahi, Sudeepa Roy, Jun Yang
摘要
This paper explores the use of machine learning for estimating the selectivity of range queries in database systems. Using classic learning theory for real-valued functions based on shattering dimension, we show that the selectivity function of a range space with bounded VC-dimension is learnable. As many popular classes of queries (e.g., orthogonal range search, inequalities involving linear combination of attributes, distance-based search, etc.) represent range spaces with finite VC-dimension, our result immediately implies that their selectivity functions are also learnable. To the best of our knowledge, this is the first attempt at formally explaining the role of machine learning techniques in selectivity estimation, and complements the growing literature in empirical studies in this direction. Supplementing these theoretical results, our experimental results demonstrate that, empirically, even a basic learning algorithm with generic models is able to produce accurate predictions across settings, matching state-of-art methods designed for specific queries, and using training sample sizes commensurate with our theory.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- WISK: A Workload-aware Learned Index for Spatial Keyword Queries 引用了 Are We Ready For Learned Cardinality Estimation?
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability 引用了 Are We Ready For Learned Cardinality Estimation?
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability 引用了 Deep Unsupervised Cardinality Estimation
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability 引用了 Towards Establishing Guaranteed Error for Learned Database Operations
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability 引用了 NeuroSketch: Fast and Approximate Evaluation of Range Aggregate Queries with Neural Networks
- Are We Ready For Learned Cardinality Estimation? 引用了 Deep Learning Models for Selectivity Estimation of Multi-Attribute Queries
- Are We Ready For Learned Cardinality Estimation? 引用了 Deep Unsupervised Cardinality Estimation
- Are We Ready For Learned Cardinality Estimation? 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
- PARQO: Penalty-Aware Robust Plan Selection in Query Optimization 引用了 Are We Ready For Learned Cardinality Estimation?
- PARQO: Penalty-Aware Robust Plan Selection in Query Optimization 引用了 Bao: Making Learned Query Optimization Practical
- Deep Unsupervised Cardinality Estimation 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
- QuickSel: Quick Selectivity Learning with Mixture Models 引用了 Deep Unsupervised Cardinality Estimation
- Towards Establishing Guaranteed Error for Learned Database Operations 引用了 Deep Unsupervised Cardinality Estimation
- NeuroSketch: Fast and Approximate Evaluation of Range Aggregate Queries with Neural Networks 引用了 Deep Unsupervised Cardinality Estimation
- Bao: Making Learned Query Optimization Practical 引用了 Deep Unsupervised Cardinality Estimation
- Bao: Making Learned Query Optimization Practical 引用了 QuickSel: Quick Selectivity Learning with Mixture Models
引用它的顶会 Paper8
- WISK: A Workload-aware Learned Index for Spatial Keyword QueriesYufan Sheng, Xin Cao, Yixiang Fang, Kaiqi Zhao 等SIGMOD 2023 · 24 次引用
- NeuroSketch: Fast and Approximate Evaluation of Range Aggregate Queries with Neural NetworksSepanta Zeighami, Cyrus Shahabi, Vatsal SharanSIGMOD 2023 · 9 次引用
- PARQO: Penalty-Aware Robust Plan Selection in Query OptimizationHaibo Xiu, Pankaj K. Agarwal, Jun YangVLDB 2024 · 8 次引用
- Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution LearnabilitySepanta Zeighami, Cyrus ShahabiICML 2024 · 5 次引用
- Towards Establishing Guaranteed Error for Learned Database OperationsSepanta Zeighami, Cyrus ShahabiICLR 2024 · 4 次引用
它引用的 Paper7
- Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul 等SIGMOD 2021 · 242 次引用
- Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu 等VLDB 2020 · 206 次引用
- Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang 等VLDB 2021 · 156 次引用
- Deep Learning Models for Selectivity Estimation of Multi-Attribute QueriesShohedul Hasan, Saravanan Thirumuruganathan, Jees Augustine, Nick Koudas 等SIGMOD 2020 · 101 次引用
- QuickSel: Quick Selectivity Learning with Mixture ModelsYongjoo Park, Shucheng Zhong, Barzan MozafariSIGMOD 2020 · 66 次引用
相关 Paper
- Consistent and Flexible Selectivity Estimation for High-Dimensional DataYaoshu Wang, Chuan Xiao, Jianbin Qin, Rui Mao 等SIGMOD 2021 · 12 次引用
- A Practical Theory of Generalization in Selectivity LearningPeizhi Wu, Haoshu Xu, Ryan Marcus, Zack IvesVLDB 2025 · 2 次引用
- Selectivity Estimation for Queries Containing Predicates over Set-Valued AttributesZizhong Meng, Xin Cao, Gao CongSIGMOD 2024 · 7 次引用
- Solving Fréchet Distance Problems by Algebraic Geometric MethodsSiu-Wing Cheng, Haoqiang HuangSODA 2024 · 4 次引用
- How Many Domains Suffice for Domain Generalization? A Tight Characterization via the Domain Shattering DimensionCynthia Dwork, Lunjia Hu, Han ShaoNeurIPS 2025 · 3 次引用
