mlsanityData to 7 Oct 2026

Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation

arXiv 2109.05877 ↗First posted 13 Sep 2021cs.DB cs.AIcited by 30

Not on the map. Why?

Abstract (arXiv)

Cardinality estimation (CardEst) plays a significant role in generating high-quality query plans for a query optimizer in DBMS. In the last decade, an increasing number of advanced CardEst methods (especially ML-based) have been proposed with outstanding estimation accuracy and inference latency. However, there exists no study that systematically evaluates the quality of these methods and answer the fundamental problem: to what extent can these methods improve the performance of query optimizer in real-world settings, which is the ultimate goal of a CardEst method. In this paper, we comprehensively and systematically compare the effectiveness of CardEst methods in a real DBMS. We establish a new benchmark for CardEst, which contains a new complex real-world dataset STATS and a diverse query workload STATS-CEB. We integrate multiple most representative CardEst methods into an open-source database system PostgreSQL, and comprehensively evaluate their true effectiveness in improving query plan quality, and other important aspects affecting their applicability, ranging from inference latency, model size, and training time, to update efficiency and accuracy. We obtain a number of key findings for the CardEst methods, under different data and query settings. Furthermore, we find that the widely used estimation accuracy metric(Q-Error) cannot distinguish the importance of different sub-plan queries during query optimization and thus cannot truly reflect the query plan quality generated by CardEst methods. Therefore, we propose a new metric P-Error to evaluate the performance of CardEst methods, which overcomes the limitation of Q-Error and is able to reflect the overall end-to-end performance of CardEst methods. We have made all of the benchmark data and evaluation code publicly available at https://github.com/Nathaniel-Han/End-to-End-CardEst-Benchmark.

Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). Builds on 20 of its 69 references that are in the map. First posted on arXiv 13 Sep 2021.

Builds on

20 of 69 references.

References · 20

  1. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,120
  2. 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
  3. 2015MADE: Masked Autoencoder for Distribution Estimationcited by 306
  4. 2018Learned Cardinalities: Estimating Correlated Joins with Deep Learningcited by 64
  5. 2019An End-to-End Learning-based Cost Estimatorcited by 43
  6. 2019Deep Unsupervised Cardinality Estimationcited by 36
  7. 2020FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimationcited by 22
  8. 2021Flow-Loss: Learning Cardinality Estimates That Mattercited by 22
  9. 2020NeuroCard: One Cardinality Estimator for All Tablescited by 21
  10. 2021A Unified Deep Model of Learning from both Data and Queries for Cardinality Estimationcited by 21
  11. 2019DeepDB: Learn from Data, not from Queries!cited by 20
  12. 2020Are We Ready For Learned Cardinality Estimation?cited by 19
8 more
  1. 2020BayesCard: Revitilizing Bayesian Frameworks for Cardinality Estimationcited by 10
  2. 2021A Unified Transferable Model for ML-Enhanced DBMScited by 10
  3. 2019Multi-Attribute Selectivity Estimation Using Deep Learningcited by 6
  4. 2019An Approach Based on Bayesian Networks for Query Selectivity Estimationcited by 6
  5. 2020FSPN: A New Class of Probabilistic Graphical Modelcited by 6
  6. 2020Variable Skipping for Autoregressive Range Density Estimationcited by 3
  7. 2019How I Learned to Stop Worrying and Love Re-optimizationcited by 2
  8. 2017Sum-Product Graphical Modelscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 1; 2023: 5; 2024: 5; 2025: 12; 2026: 5.

30 papers.

Sort:

By area:

  1. 2023Lero: A Learning-to-Rank Query Optimizercited by 26
  2. 2022FactorJoin: A New Cardinality Estimation Framework for Join Queriescited by 13
  3. 2025MMTU: A Massive Multi-Task Table Understanding and Reasoning Benchmarkcited by 13
  4. 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimationcited by 8
  5. 2024CardBench: A Benchmark for Learned Cardinality Estimation in Relational Databasescited by 4
  6. 2023Kepler: Robust Learning for Faster Parametric Query Optimizationcited by 3
  7. 2023Duet: efficient and scalable hybriD neUral rElation undersTandingcited by 3
  8. 2024A Practical Theory of Generalization in Selectivity Learningcited by 3
  9. 2021Glue: Adaptively Merging Single Table Cardinality to Estimate Join Query Sizecited by 2
  10. 2023JoinGym: An Efficient Query Optimization Environment for Reinforcement Learningcited by 1
  11. 2024Hype or Heuristic? Quantum Reinforcement Learning for Join Order Optimisationcited by 1
  12. 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulationcited by 1
18 more
  1. 2025Data-Agnostic Cardinality Learning from Imperfect Workloadscited by 1
  2. 2025Querying Autonomous Vehicle Point Clouds: Enhanced by 3D Object Counting with CounterNetcited by 1
  3. 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloadscited by 1
  4. 2026When Does q-error Predict Plan Regret? Three Regimes of Cardinality-Estimation Errorcited by 1
  5. 2021Baihe: SysML Framework for AI-driven Databasescited by 0
  6. 2023Scardina: Scalable Join Cardinality Estimation by Multiple Density Estimatorscited by 0
  7. 2024LearnedWMP: Workload Memory Prediction Using Distribution of Query Templatescited by 0
  8. 2025Reqo: A Comprehensive Learning-Based Cost Model for Robust and Explainable Query Optimizationcited by 0
  9. 2025Optimize Cardinality Estimation Model Pretraining by Simplifying the Training Datasetscited by 0
  10. 2025Selective Use of Yannakakis' Algorithm to Improve Query Performance: Machine Learning to the Rescuecited by 0
  11. 2025ACE: A Cardinality Estimator for Set-Valued Queriescited by 0
  12. 2025Sketched Sum-Product Networks for Joinscited by 0
  13. 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retrainingcited by 0
  14. 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDFcited by 0
  15. 2026MICRO: A Lightweight Middleware for Optimizing Cross-store Cross-model Graph-Relation Joins [Technical Report]cited by 0
  16. 2026Cardinality Estimation for High Dimensional Similarity Queries with Adaptive Bucket Probingcited by 0
  17. 2026Opti-Q: A Constraint-Based Optimization Framework for Multi-LLM Question Planningcited by 0
  18. 2026Fully Inductive Cardinality Estimationcited by 0