NeuroCard: One Cardinality Estimator for All Tables
Zongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang, Yan Duan, Xi Chen, Ion Stoica
Abstract
Query optimizers rely on accurate cardinality estimates to produce good execution plans. Despite decades of research, existing cardinality estimators are inaccurate for complex queries, due to making lossy modeling assumptions and not capturing inter-table correlations. In this work, we show that it is possible to learn the correlations across all tables in a database without any independence assumptions. We present NeuroCard, a join cardinality estimator that builds a single neural density estimator over an entire database. Leveraging join sampling and modern deep autoregressive models, NeuroCard makes no inter-table or inter-column independence assumptions in its probabilistic modeling. NeuroCard achieves orders of magnitude higher accuracy than the best prior methods (a new state-of-the-art result of 8.5x maximum error on JOB-light), scales to dozens of tables, while being compact in space (several MBs) and efficient to construct or update (seconds to minutes).
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.
78 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
- Lero: A Learning-to-Rank Query Optimizer cites Are We Ready For Learned Cardinality Estimation?
- Lero: A Learning-to-Rank Query Optimizer cites FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
- Lero: A Learning-to-Rank Query Optimizer cites Deep Unsupervised Cardinality Estimation
- Lero: A Learning-to-Rank Query Optimizer cites An End-to-End Learning-based Cost Estimator
- Lero: A Learning-to-Rank Query Optimizer cites Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
- Are We Ready For Learned Cardinality Estimation? cites Deep Unsupervised Cardinality Estimation
- Are We Ready For Learned Cardinality Estimation? cites QuickSel: Quick Selectivity Learning with Mixture Models
- Are We Ready For Learned Cardinality Estimation? cites An End-to-End Learning-based Cost Estimator
- FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation cites Are We Ready For Learned Cardinality Estimation?
- Deep Unsupervised Cardinality Estimation cites QuickSel: Quick Selectivity Learning with Mixture Models
- QuickSel: Quick Selectivity Learning with Mixture Models cites Deep Unsupervised Cardinality Estimation
- Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites Are We Ready For Learned Cardinality Estimation?
- Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
- Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites An End-to-End Learning-based Cost Estimator
- Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation cites Flow-Loss: Learning Cardinality Estimates That Matter
- Qd-tree: Learning Data Layouts for Big Data Analytics cites Deep Unsupervised Cardinality Estimation
- Flow-Loss: Learning Cardinality Estimates That Matter cites Are We Ready For Learned Cardinality Estimation?
- Flow-Loss: Learning Cardinality Estimates That Matter cites Deep Unsupervised Cardinality Estimation
- Flow-Loss: Learning Cardinality Estimates That Matter cites QuickSel: Quick Selectivity Learning with Mixture Models
- Flow-Loss: Learning Cardinality Estimates That Matter cites An End-to-End Learning-based Cost Estimator
Cited by top-tier papers78
- Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu et al.VLDB 2022 · 169 citations
- Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang et al.VLDB 2021 · 156 citations
- FLAT: Fast, Lightweight and Accurate Method for Cardinality EstimationRong Zhu, Ziniu Wu, Yuxing Han, Kai Zeng et al.VLDB 2021 · 120 citations
- Lero: A Learning-to-Rank Query OptimizerRong Zhu, Wei Chen, Bolin Ding, Xingguang Chen et al.VLDB 2023 · 102 citations
- Flow-Loss: Learning Cardinality Estimates That MatterParimarjan Negi, Ryan Marcus, Andreas Kipf, Hongzi Mao et al.VLDB 2021 · 102 citations
Builds on4
- 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
- Qd-tree: Learning Data Layouts for Big Data AnalyticsZongheng Yang, Badrish Chandramouli, Chi Wang, Johannes Gehrke et al.SIGMOD 2020 · 87 citations
- QuickSel: Quick Selectivity Learning with Mixture ModelsYongjoo Park, Shucheng Zhong, Barzan MozafariSIGMOD 2020 · 66 citations
Related papers
- Deep Learning Models for Selectivity Estimation of Multi-Attribute QueriesShohedul Hasan, Saravanan Thirumuruganathan, Jees Augustine, Nick Koudas et al.SIGMOD 2020 · 101 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
- Sample-Efficient Cardinality Estimation Using Geometric Deep LearningSilvan Reiner, Michael GrossniklausVLDB 2024 · 20 citations
- FactorJoin: A New Cardinality Estimation Framework for Join QueriesZiniu Wu, Parimarjan Negi, Mohammad Alizadeh, Tim Kraska et al.SIGMOD 2023 · 54 citations
