mlsanityData to 7 Oct 2026

FLAT: Fast, Lightweight and Accurate Method for Cardinality Estimation

arXiv 2011.09022 ↗First posted 18 Nov 2020cs.DB cs.AIcited by 22

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 4; 2022: 4; 2023: 4; 2024: 2; 2025: 7; 2026: 1.

22 papers.

Sort:

  1. 2021Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluationcited by 30
  2. 2023Lero: A Learning-to-Rank Query Optimizercited by 26
  3. 2022FactorJoin: A New Cardinality Estimation Framework for Join Queriescited by 13
  4. 2021A Unified Transferable Model for ML-Enhanced DBMScited by 10
  5. 2024PRICE: A Pretrained Model for Cross-Database Cardinality Estimationcited by 8
  6. 2022Detect, Distill and Update: Learned DB Systems Facing Out of Distribution Datacited by 6
  7. 2022Learning to be a Statistician: Learned Estimator for Number of Distinct Valuescited by 4
  8. 2023Duet: efficient and scalable hybriD neUral rElation undersTandingcited by 3
  9. 2021Glue: Adaptively Merging Single Table Cardinality to Estimate Join Query Sizecited by 2
  10. 2024GenJoin: Conditional Generative Plan-to-Plan Query Optimizer that Learns from Subplan Hintscited by 1
  11. 2025DistJoin: A Decoupled Join Cardinality Estimator based on Adaptive Neural Predicate Modulationcited by 1
  12. 2025Is it Bigger than a Breadbox: Efficient Cardinality Estimation for Real World Workloadscited by 1
10 more
  1. 2021Baihe: SysML Framework for AI-driven Databasescited by 0
  2. 2022Learned k-NN Distance Estimationcited by 0
  3. 2023Scardina: Scalable Join Cardinality Estimation by Multiple Density Estimatorscited by 0
  4. 2023BitE : Accelerating Learned Query Optimization in a Mixed-Workload Environmentcited by 0
  5. 2025ACE: A Cardinality Estimator for Set-Valued Queriescited by 0
  6. 2025Sketched Sum-Product Networks for Joinscited by 0
  7. 2025QCardEst/QCardCorr: Quantum Cardinality Estimation and Correctioncited by 0
  8. 2025ZeroCard: Cardinality Estimation with Zero Dependence on Target Databases -- No Data, No Query, No Retrainingcited by 0
  9. 2025CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation using Joint CDFcited by 0
  10. 2026MICRO: A Lightweight Middleware for Optimizing Cross-store Cross-model Graph-Relation Joins [Technical Report]cited by 0