Are We Ready For Learned Cardinality Estimation?
Not on the map. Why?
Abstract (arXiv)
Cardinality estimation is a fundamental but long unresolved problem in query optimization. Recently, multiple papers from different research groups consistently report that learned models have the potential to replace existing cardinality estimators. In this paper, we ask a forward-thinking question: Are we ready to deploy these learned cardinality models in production? Our study consists of three main parts. Firstly, we focus on the static environment (i.e., no data updates) and compare five new learned methods with eight traditional methods on four real-world datasets under a unified workload setting. The results show that learned models are indeed more accurate than traditional methods, but they often suffer from high training and inference costs. Secondly, we explore whether these learned models are ready for dynamic environments (i.e., frequent data updates). We find that they cannot catch up with fast data up-dates and return large errors for different reasons. For less frequent updates, they can perform better but there is no clear winner among themselves. Thirdly, we take a deeper look into learned models and explore when they may go wrong. Our results show that the performance of learned methods can be greatly affected by the changes in correlation, skewness, or domain size. More importantly, their behaviors are much harder to interpret and often unpredictable. Based on these findings, we identify two promising research directions (control the cost of learned models and make learned models trustworthy) and suggest a number of research opportunities. We hope that our study can guide researchers and practitioners to work together to eventually push learned cardinality estimators into real database systems.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Dec 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 3; 2023: 4; 2024: 4; 2025: 3; 2026: 3.
19 papers.
Sort:
- 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
- 2023Lero: A Learning-to-Rank Query Optimizercited by 26
- 2022Balsa: Learning a Query Optimizer Without Expert Demonstrationscited by 18
- 2021A Unified Transferable Model for ML-Enhanced DBMScited by 10
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimationcited by 8
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Datacited by 6
- 2023WISK: A Workload-aware Learned Index for Spatial Keyword Queriescited by 6
- 2022Learning to be a Statistician: Learned Estimator for Number of Distinct Valuescited by 4
- 2024Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnabilitycited by 4
- 2023Kepler: Robust Learning for Faster Parametric Query Optimizationcited by 3
- 2023Duet: efficient and scalable hybriD neUral rElation undersTandingcited by 3
- 2024CAMAL: Optimizing LSM-trees via Active Learningcited by 1
7 more
- 2024CardOOD: Robust Query-driven Cardinality Estimation under Out-of-Distributioncited by 1
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulationcited by 1
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloadscited by 1
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDFcited by 0
- 2026MICRO: A Lightweight Middleware for Optimizing Cross-store Cross-model Graph-Relation Joins [Technical Report]cited by 0
- 2026Selectivity Estimation for Linear Queries via Online Learningcited by 0
- 2026Learning-Augmented Algorithms: Guarantees, Construction Mechanisms, and System-Level Implicationscited by 0
- 2026Learning-Augmented Algorithms: Guarantees, Construction Mechanisms, and System-Level Implications4 Sep 2026
- 2026Selectivity Estimation for Linear Queries via Online Learning3 Jul 2026
- 2026MICRO: A Lightweight Middleware for Optimizing Cross-store Cross-model Graph-Relation Joins [Technical Report]14 Mar 2026
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDF14 Dec 2025
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloads3 Oct 2025
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulation12 Mar 2025
- 2024CardOOD: Robust Query-driven Cardinality Estimation under Out-of-Distribution8 Dec 2024
- 2024Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability9 Nov 2024
- 2024CAMAL: Optimizing LSM-trees via Active Learning23 Sep 2024
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimation3 Jun 2024
- 2023Duet: efficient and scalable hybriD neUral rElation undersTanding25 Jul 2023
- 2023Kepler: Robust Learning for Faster Parametric Query Optimization11 Jun 2023
7 more
- 2023WISK: A Workload-aware Learned Index for Spatial Keyword Queries28 Feb 2023
- 2023Lero: A Learning-to-Rank Query Optimizer14 Feb 2023
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Data11 Oct 2022
- 2022Learning to be a Statistician: Learned Estimator for Number of Distinct Values6 Feb 2022
- 2022Balsa: Learning a Query Optimizer Without Expert Demonstrations5 Jan 2022
- 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation13 Sep 2021
- 2021A Unified Transferable Model for ML-Enhanced DBMS6 May 2021
- 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
- 2023Lero: A Learning-to-Rank Query Optimizercited by 26
- 2022Balsa: Learning a Query Optimizer Without Expert Demonstrationscited by 18
- 2021A Unified Transferable Model for ML-Enhanced DBMScited by 10
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimationcited by 8
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Datacited by 6
- 2023WISK: A Workload-aware Learned Index for Spatial Keyword Queriescited by 6
- 2022Learning to be a Statistician: Learned Estimator for Number of Distinct Valuescited by 4
- 2024Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnabilitycited by 4
- 2023Kepler: Robust Learning for Faster Parametric Query Optimizationcited by 3
- 2023Duet: efficient and scalable hybriD neUral rElation undersTandingcited by 3
- 2024CAMAL: Optimizing LSM-trees via Active Learningcited by 1
12 most cited of 19 All 19 (JSON)
- 2026Learning-Augmented Algorithms: Guarantees, Construction Mechanisms, and System-Level Implications4 Sep 2026
- 2026Selectivity Estimation for Linear Queries via Online Learning3 Jul 2026
- 2026MICRO: A Lightweight Middleware for Optimizing Cross-store Cross-model Graph-Relation Joins [Technical Report]14 Mar 2026
- 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDF14 Dec 2025
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloads3 Oct 2025
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulation12 Mar 2025
- 2024CardOOD: Robust Query-driven Cardinality Estimation under Out-of-Distribution8 Dec 2024
- 2024Theoretical Analysis of Learned Database Operations under Distribution Shift through Distribution Learnability9 Nov 2024
- 2024CAMAL: Optimizing LSM-trees via Active Learning23 Sep 2024
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimation3 Jun 2024
- 2023Duet: efficient and scalable hybriD neUral rElation undersTanding25 Jul 2023
- 2023Kepler: Robust Learning for Faster Parametric Query Optimization11 Jun 2023
12 newest of 19 All 19 (JSON)