Lune

SIGMOD2022顶会

Learned Cardinality Estimation: An In-depth Study

Kyoungmin Kim, Jisung Jung, In Seo, Wook-Shin Han, Kangwoo Choi, Jaehyok Chong

摘要

Learned cardinality estimation (CE) has recently gained significant attention for replacing long-studied traditional CE with machine learning, especially for deep learning. However, these estimators were developed independently and have not been fairly or comprehensively compared in common settings. Most studies use a subset of IMDB data which is too simple to measure their limits and determine whether they are ready for real, complex data. Furthermore, they are regarded as black boxes, without a deep understanding of why large errors occur.

In this paper, we first provide a taxonomy and a unified workflow of learned estimators for a better understanding of estimators. We next comprehensively compare recent learned CE methods that support joins, from a subset of tables to full IMDB and TPC-DS datasets. Under the experimental results, we then demystify the black-box models and analyze critical components that cause large errors. We also measure their impact on query optimization. Finally, based on the findings, we suggest realizable research opportunities. We believe that a deeper understanding of the behavior of existing methods can provide a more comprehensive and substantial framework for developing better estimators.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • A Comparative Study and Component Analysis of Query Plan Representation Techniques in ML4DB Studies 引用了 Are We Ready For Learned Cardinality Estimation?
  • A Comparative Study and Component Analysis of Query Plan Representation Techniques in ML4DB Studies 引用了 An End-to-End Learning-based Cost Estimator
  • Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 Robust Query Driven Cardinality Estimation under Changing Workloads
  • Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 Are We Ready For Learned Cardinality Estimation?
  • Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 DeepDB: Learn from Data, not from Queries!
  • Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 Deep Unsupervised Cardinality Estimation
  • Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 An End-to-End Learning-based Cost Estimator
  • Sample-Efficient Cardinality Estimation Using Geometric Deep Learning 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Are We Ready For Learned Cardinality Estimation?
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 DeepDB: Learn from Data, not from Queries!
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Deep Unsupervised Cardinality Estimation
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Are We Ready For Learned Cardinality Estimation? 引用了 Deep Unsupervised Cardinality Estimation
  • Are We Ready For Learned Cardinality Estimation? 引用了 An End-to-End Learning-based Cost Estimator
  • Are We Ready For Learned Cardinality Estimation? 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • DeepDB: Learn from Data, not from Queries! 引用了 An End-to-End Learning-based Cost Estimator
  • NeuroCard: One Cardinality Estimator for All Tables 引用了 Deep Unsupervised Cardinality Estimation
  • NeuroCard: One Cardinality Estimator for All Tables 引用了 An End-to-End Learning-based Cost Estimator
  • Kepler: Robust Learning for Parametric Query Optimization 引用了 Are We Ready For Learned Cardinality Estimation?
  • Kepler: Robust Learning for Parametric Query Optimization 引用了 Deep Unsupervised Cardinality Estimation
  • Kepler: Robust Learning for Parametric Query Optimization 引用了 NeuroCard: One Cardinality Estimator for All Tables
  • Breaking It Down: An In-depth Study of Index Advisors 引用了 Robust Query Driven Cardinality Estimation under Changing Workloads
  • Breaking It Down: An In-depth Study of Index Advisors 引用了 Are We Ready For Learned Cardinality Estimation?
  • Breaking It Down: An In-depth Study of Index Advisors 引用了 An End-to-End Learning-based Cost Estimator
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper23

  1. Robust Query Driven Cardinality Estimation under Changing WorkloadsParimarjan Negi, Ziniu Wu, Andreas Kipf, Nesime Tatbul 等VLDB 2023 · 88 次引用
  2. Kepler: Robust Learning for Parametric Query OptimizationLyric Doshi, Vincent Zhuang, Gaurav Jain, Ryan Marcus 等SIGMOD 2023 · 35 次引用
  3. Breaking It Down: An In-depth Study of Index AdvisorsWei Zhou, Chen Lin, Xuanhe Zhou, Guoliang LiVLDB 2024 · 21 次引用
  4. Sample-Efficient Cardinality Estimation Using Geometric Deep LearningSilvan Reiner, Michael GrossniklausVLDB 2024 · 20 次引用
  5. A Comparative Study and Component Analysis of Query Plan Representation Techniques in ML4DB StudiesYue Zhao, Zhaodonghui Li, Gao CongVLDB 2024 · 19 次引用

它引用的 Paper13

  1. An End-to-End Learning-based Cost EstimatorJi Sun, Guoliang LiVLDB 2020 · 251 次引用
  2. Deep Unsupervised Cardinality EstimationZongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu 等VLDB 2020 · 206 次引用
  3. Are We Ready For Learned Cardinality Estimation?Xiaoying Wang, Changbo Qu, Weiyuan Wu, Jiannan Wang 等VLDB 2021 · 156 次引用
  4. DeepDB: Learn from Data, not from Queries!Benjamin Hilprecht, Andreas Schmidt, Moritz Kulessa, Alejandro Molina 等VLDB 2020 · 154 次引用
  5. NeuroCard: One Cardinality Estimator for All TablesZongheng Yang, Amog Kamsetty, Sifei Luan, Eric Liang 等VLDB 2021 · 138 次引用

相关 Paper

  1. Learned Cardinality Estimation: A Design Space Exploration and A Comparative EvaluationJi Sun, Jintao Zhang, Zhaoyan Sun, Guoliang Li 等VLDB 2022 · 90 次引用
  2. AutoCE: An Accurate and Efficient Model Advisor for Learned Cardinality EstimationJintao Zhang, Chao Zhang, Guoliang Li, Chengliang ChaiICDE 2023 · 13 次引用
  3. Fauce: Fast and Accurate Deep Ensembles with Uncertainty for Cardinality EstimationJie Liu, Wenqian Dong, Dong Li, Qingqing ZhouVLDB 2021 · 71 次引用
  4. ASM: Harmonizing Autoregressive Model, Sampling, and Multi-dimensional Statistics Merging for Cardinality EstimationKyoungmin Kim, Sangoh Lee, Injung Kim, Wook-Shin HanSIGMOD 2024 · 18 次引用
  5. CoLSE: A Lightweight and Robust Hybrid Learned Model for Single-Table Cardinality Estimation Using Joint CDFLankadinee Rathuwadu, Guanli Liu, Christopher Leckie, Renata Borovica-GajicICDE 2026
黄昏的海面,两侧是细线勾勒的悬崖