Learned Cardinality Estimation: An In-depth Study
Kyoungmin Kim, Jisung Jung, In Seo, Wook-Shin Han, Kangwoo Choi, Jaehyok Chong
Abstract
Learned cardinality estimation (CE) has recently gained significant attention for replacing long-studied traditional CE with machine learning, especially for deep learning. However, these estimators were developed independently and have not been fairly or comprehensively compared in common settings. Most studies use a subset of IMDB data which is too simple to measure their limits and determine whether they are ready for real, complex data. Furthermore, they are regarded as black boxes, without a deep understanding of why large errors occur.
In this paper, we first provide a taxonomy and a unified workflow of learned estimators for a better understanding of estimators. We next comprehensively compare recent learned CE methods that support joins, from a subset of tables to full IMDB and TPC-DS datasets. Under the experimental results, we then demystify the black-box models and analyze critical components that cause large errors. We also measure their impact on query optimization. Finally, based on the findings, we suggest realizable research opportunities. We believe that a deeper understanding of the behavior of existing methods can provide a more comprehensive and substantial framework for developing better estimators.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
23 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- A Comparative Study and Component Analysis of Query Plan Representation Techniques in ML4DB Studies cites Are We Ready For Learned Cardinality Estimation?
- A Comparative Study and Component Analysis of Query Plan Representation Techniques in ML4DB Studies cites An End-to-End Learning-based Cost Estimator
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning cites Robust Query Driven Cardinality Estimation under Changing Workloads
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning cites Are We Ready For Learned Cardinality Estimation?
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning cites DeepDB: Learn from Data, not from Queries!
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning cites Deep Unsupervised Cardinality Estimation
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning cites An End-to-End Learning-based Cost Estimator
- Sample-Efficient Cardinality Estimation Using Geometric Deep Learning cites NeuroCard: One Cardinality Estimator for All Tables
- Robust Query Driven Cardinality Estimation under Changing Workloads cites Are We Ready For Learned Cardinality Estimation?
- Robust Query Driven Cardinality Estimation under Changing Workloads cites DeepDB: Learn from Data, not from Queries!
- Robust Query Driven Cardinality Estimation under Changing Workloads cites Deep Unsupervised Cardinality Estimation
- Robust Query Driven Cardinality Estimation under Changing Workloads cites NeuroCard: One Cardinality Estimator for All Tables
- Are We Ready For Learned Cardinality Estimation? cites Deep Unsupervised Cardinality Estimation
- Are We Ready For Learned Cardinality Estimation? cites An End-to-End Learning-based Cost Estimator
- Are We Ready For Learned Cardinality Estimation? cites NeuroCard: One Cardinality Estimator for All Tables
- DeepDB: Learn from Data, not from Queries! cites An End-to-End Learning-based Cost Estimator
- NeuroCard: One Cardinality Estimator for All Tables cites Deep Unsupervised Cardinality Estimation
- NeuroCard: One Cardinality Estimator for All Tables cites An End-to-End Learning-based Cost Estimator
- Kepler: Robust Learning for Parametric Query Optimization cites Are We Ready For Learned Cardinality Estimation?
- Kepler: Robust Learning for Parametric Query Optimization cites Deep Unsupervised Cardinality Estimation
- Kepler: Robust Learning for Parametric Query Optimization cites NeuroCard: One Cardinality Estimator for All Tables
- Breaking It Down: An In-depth Study of Index Advisors cites Robust Query Driven Cardinality Estimation under Changing Workloads
- Breaking It Down: An In-depth Study of Index Advisors cites Are We Ready For Learned Cardinality Estimation?
- Breaking It Down: An In-depth Study of Index Advisors cites An End-to-End Learning-based Cost Estimator
Cited by top-tier papers23
- Robust Query Driven Cardinality Estimation under Changing WorkloadsParimarjan Negi, Ziniu Wu, Andreas Kipf, Nesime Tatbul et al.VLDB 2023 · 88 citations
- Kepler: Robust Learning for Parametric Query OptimizationLyric Doshi, Vincent Zhuang, Gaurav Jain, Ryan Marcus et al.SIGMOD 2023 · 35 citations
- Breaking It Down: An In-depth Study of Index AdvisorsWei Zhou, Chen Lin, Xuanhe Zhou, Guoliang LiVLDB 2024 · 21 citations
- Sample-Efficient Cardinality Estimation Using Geometric Deep LearningSilvan Reiner, Michael GrossniklausVLDB 2024 · 20 citations
- A Comparative Study and Component Analysis of Query Plan Representation Techniques in ML4DB StudiesYue Zhao, Zhaodonghui Li, Gao CongVLDB 2024 · 19 citations
Builds on13
- An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 citations
- Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu et al.VLDB 2020 · 206 citations
- Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang et al.VLDB 2021 · 156 citations
- DeepDB: Learn from Data, not from Queries!Benjamin Hilprecht, Andreas Schmidt, Moritz Kulessa, Alejandro Molina et al.VLDB 2020 · 154 citations
- NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang et al.VLDB 2021 · 138 citations
Related papers
- Learned Cardinality Estimation: A Design Space Exploration and A Comparative EvaluationJi Sun, Jintao Zhang, Zhaoyan Sun, Guoliang Li et al.VLDB 2022 · 90 citations
- AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality EstimationJintao Zhang, Chao Zhang, Guoliang Li, Chengliang ChaiICDE 2023 · 13 citations
- Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality EstimationJie Liu, Wenqian Dong, Dong Li, Qingqing ZhouVLDB 2021 · 71 citations
- ASM: Harmonizing Autoregressive Model, Sampling, and Multi-dimensional Statistics Merging for Cardinality EstimationKyoungmin Kim, Sangoh Lee, Injung Kim, Wook-Shin HanSIGMOD 2024 · 18 citations
- CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation Using Joint CDFLankadinee Rathuwadu, Guanli Liu, Christopher Leckie, Renata Borovica-GajicICDE 2026
