FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation
Not on the map. Why?
Abstract (arXiv)
Query optimizers rely on accurate cardinality estimation (CardEst) to produce good execution plans. The core problem of CardEst is how to model the rich joint distribution of attributes in an accurate and compact manner. Despite decades of research, existing methods either over simplify the models only using independent factorization which leads to inaccurate estimates, or over complicate them by lossless conditional factorization without any independent assumption which results in slow probability computation. In this paper, we propose FLAT, a CardEst method that is simultaneously fast in probability computation, lightweight in model size and accurate in estimation quality. The key idea of FLAT is a novel unsupervised graphical model, called FSPN. It utilizes both independent and conditional factorization to adaptively model different levels of attributes correlations, and thus dovetails their advantages. FLAT supports efficient online probability computation in near liner time on the underlying FSPN model, provides effective offline model construction and enables incremental model updates. It can estimate cardinality for both single table queries and multi table join queries. Extensive experimental study demonstrates the superiority of FLAT over existing CardEst methods on well known IMDB benchmarks: FLAT achieves 1 to 5 orders of magnitude better accuracy, 1 to 3 orders of magnitude faster probability computation speed and 1 to 2 orders of magnitude lower storage cost. We also integrate FLAT into Postgres to perform an end to end test. It improves the query execution time by 12.9% on the benchmark workload, which is very close to the optimal result 14.2% using the true cardinality.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). First posted on arXiv 18 Nov 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 4; 2023: 4; 2024: 2; 2025: 7; 2026: 1.
22 papers.
Sort:
- 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
- 2023Lero: A Learning-to-Rank Query Optimizercited by 26
- 2022FactorJoin: A New Cardinality Estimation Framework for Join Queriescited by 13
- 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
- 2022Learning to be a Statistician: Learned Estimator for Number of Distinct Valuescited by 4
- 2023Duet: efficient and scalable hybriD neUral rElation undersTandingcited by 3
- 2021Glue: Adaptively Merging Single Table Cardinality to Estimate Join Query Sizecited by 2
- 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hintscited 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
10 more
- 2021Baihe: SysML Framework for AI-driven Databasescited by 0
- 2022Learned k-NN Distance Estimationcited by 0
- 2023Scardina: Scalable Join Cardinality Estimation by Multiple Density Estimatorscited by 0
- 2023BitE : Accelerating Learned Query Optimization in a Mixed-Workload Environmentcited by 0
- 2025ACE: A Cardinality Estimator for Set-Valued Queriescited by 0
- 2025Sketched Sum-Product Networks for Joinscited by 0
- 2025QCardEst/QCardCorr: Quantum Cardinality Estimation and Correctioncited by 0
- 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retrainingcited by 0
- 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
- 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
- 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retraining9 Oct 2025
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloads3 Oct 2025
- 2025QCardEst/QCardCorr: Quantum Cardinality Estimation and Correction10 Sep 2025
- 2025Sketched Sum-Product Networks for Joins16 Jun 2025
- 2025ACE: A Cardinality Estimator for Set-Valued Queries19 Mar 2025
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulation12 Mar 2025
- 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hints7 Nov 2024
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimation3 Jun 2024
- 2023Duet: efficient and scalable hybriD neUral rElation undersTanding25 Jul 2023
- 2023BitE : Accelerating Learned Query Optimization in a Mixed-Workload Environment1 Jun 2023
10 more
- 2023Scardina: Scalable Join Cardinality Estimation by Multiple Density Estimators31 Mar 2023
- 2023Lero: A Learning-to-Rank Query Optimizer14 Feb 2023
- 2022FactorJoin: A New Cardinality Estimation Framework for Join Queries11 Dec 2022
- 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Data11 Oct 2022
- 2022Learned k-NN Distance Estimation29 Aug 2022
- 2022Learning to be a Statistician: Learned Estimator for Number of Distinct Values6 Feb 2022
- 2021Baihe: SysML Framework for AI-driven Databases29 Dec 2021
- 2021Glue: Adaptively Merging Single Table Cardinality to Estimate Join Query Size7 Dec 2021
- 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
- 2022FactorJoin: A New Cardinality Estimation Framework for Join Queriescited by 13
- 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
- 2022Learning to be a Statistician: Learned Estimator for Number of Distinct Valuescited by 4
- 2023Duet: efficient and scalable hybriD neUral rElation undersTandingcited by 3
- 2021Glue: Adaptively Merging Single Table Cardinality to Estimate Join Query Sizecited by 2
- 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hintscited 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
12 most cited of 22 All 22 (JSON)
- 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
- 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retraining9 Oct 2025
- 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloads3 Oct 2025
- 2025QCardEst/QCardCorr: Quantum Cardinality Estimation and Correction10 Sep 2025
- 2025Sketched Sum-Product Networks for Joins16 Jun 2025
- 2025ACE: A Cardinality Estimator for Set-Valued Queries19 Mar 2025
- 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulation12 Mar 2025
- 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hints7 Nov 2024
- 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimation3 Jun 2024
- 2023Duet: efficient and scalable hybriD neUral rElation undersTanding25 Jul 2023
- 2023BitE : Accelerating Learned Query Optimization in a Mixed-Workload Environment1 Jun 2023
12 newest of 22 All 22 (JSON)