Lune

VLDB2021顶会

Astrid: Accurate Selectivity Estimation for String Predicates using Deep Learning

Suraj Shetiya, Saravanan Thirumuruganathan, Nick Koudas, Gautam Das

摘要

Accurate selectivity estimation for string predicates is a long-standing research challenge in databases. Supporting pattern matching on strings (such as prefix, substring, and suffix) makes this problem much more challenging, thereby necessitating a dedicated study. Traditional approaches often build pruned summary data structures such as tries followed by selectivity estimation using statistical correlations. However, this produces insufficiently accurate cardinality estimates resulting in the selection of sub-optimal plans by the query optimizer. Recently proposed deep learning based approaches leverage techniques from natural language processing such as embeddings to encode the strings and use it to train a model. While this is an improvement over traditional approaches, there is a large scope for improvement. We propose Astrid, a framework for string selectivity estimation that synthesizes ideas from traditional and deep learning based approaches. We make two complementary contributions. First, we propose an embedding algorithm that is query-type (prefix, substring, and suffix) and selectivity aware. Consider three strings 'ab', 'abc' and 'abd' whose prefix frequencies are 1000, 800 and 100 respectively. Our approach would ensure that the embedding for 'ab' is closer to 'abc' than 'abd'. Second, we describe how neural language models could be used for selectivity estimation. While they work well for prefix queries, their performance for substring queries is sub-optimal. We modify the objective function of the neural language model so that it could be used for estimating selectivities of pattern matching queries. We also propose a novel and efficient algorithm for optimizing the new objective function. We conduct extensive experiments over benchmark datasets and show that our proposed approaches achieve state-of-the-art results.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Deep Learning Models for Selectivity Estimation of Multi-Attribute Queries
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 DeepDB: Learn from Data, not from Queries!
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Learned Cardinality Estimation: An In-depth Study
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Deep Unsupervised Cardinality Estimation
  • Robust Query Driven Cardinality Estimation under Changing Workloads 引用了 Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation
  • DeepDB: Learn from Data, not from Queries! 引用了 An End-to-End Learning-based Cost Estimator
  • QueryFormer: A Tree Transformer Model for Query Plan Representation 引用了 An End-to-End Learning-based Cost Estimator
  • Balsa: Learning a Query Optimizer Without Expert Demonstrations 引用了 Deep Unsupervised Cardinality Estimation
  • Balsa: Learning a Query Optimizer Without Expert Demonstrations 引用了 An End-to-End Learning-based Cost Estimator
  • Learned Cardinality Estimation: An In-depth Study 引用了 Deep Learning Models for Selectivity Estimation of Multi-Attribute Queries
  • Learned Cardinality Estimation: An In-depth Study 引用了 DeepDB: Learn from Data, not from Queries!
  • Learned Cardinality Estimation: An In-depth Study 引用了 Deep Unsupervised Cardinality Estimation
  • Learned Cardinality Estimation: An In-depth Study 引用了 An End-to-End Learning-based Cost Estimator
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 Deep Learning Models for Selectivity Estimation of Multi-Attribute Queries
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 DeepDB: Learn from Data, not from Queries!
  • Cardinality Estimation in DBMS: A Comprehensive Benchmark Evaluation 引用了 An End-to-End Learning-based Cost Estimator
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper15

  1. Cardinality Estimation in DBMS: A Comprehensive Benchmark EvaluationYuxing Han, Ziniu Wu, Peizhi Wu, Rong Zhu 等VLDB 2022 · 169 次引用
  2. QueryFormer: A Tree Transformer Model for Query Plan RepresentationYue Zhao, Gao Cong, Jiachen Shi, Chunyan MiaoVLDB 2022 · 117 次引用
  3. Balsa: Learning a Query Optimizer Without Expert DemonstrationsZongheng Yang, Wei-Lin Chiang, Sifei Luan, Gautam Mittal 等SIGMOD 2022 · 99 次引用
  4. Robust Query Driven Cardinality Estimation under Changing WorkloadsParimarjan Negi, Ziniu Wu, Andreas Kipf, Nesime Tatbul 等VLDB 2023 · 88 次引用
  5. Learned Cardinality Estimation: An In-depth StudyKyoungmin Kim, Jisung Jung, In Seo, Wook-Shin Han 等SIGMOD 2022 · 51 次引用

它引用的 Paper5

  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. DeepDB: Learn from Data, not from Queries!Benjamin Hilprecht, Andreas Schmidt, Moritz Kulessa, Alejandro Molina 等VLDB 2020 · 154 次引用
  4. Creating Embeddings of Heterogeneous Relational Datasets for Data Integration TasksRiccardo Cappuzzo, Paolo Papotti, Saravanan ThirumuruganathanSIGMOD 2020 · 139 次引用
  5. Deep Learning Models for Selectivity Estimation of Multi-Attribute QueriesShohedul Hasan, Saravanan Thirumuruganathan, Jees Augustine, Nick Koudas 等SIGMOD 2020 · 101 次引用

相关 Paper

  1. Cardinality Estimation of Approximate Substring Queries using Deep LearningSuyong Kwon, Woohwan Jung, Kyuseok ShimVLDB 2022 · 10 次引用
  2. LPLM: A Neural Language Model for Cardinality Estimation of LIKE-QueriesMehmet Aytimur, Silvan Reiner, Leonard Wörteler, Theodoros Chondrogiannis 等SIGMOD 2024 · 13 次引用
  3. Selectivity Estimation for Queries Containing Predicates over Set-Valued AttributesZizhong Meng, Xin Cao, Gao CongSIGMOD 2024 · 7 次引用
  4. Cardinality Estimation of LIKE Predicate Queries using Deep LearningSuyong Kwon, Kyuseok Shim, Woohwan JungSIGMOD 2025 · 3 次引用
  5. Monotonic Cardinality Estimation of Similarity Selection: A Deep Learning ApproachYaoshu Wang, Chuan Xiao, Jianbin Qin, Xin Cao 等SIGMOD 2020 · 19 次引用
黄昏的海面,两侧是细线勾勒的悬崖