Monotonic Cardinality Estimation of Similarity Selection: A Deep Learning Approach
Yaoshu Wang, Chuan Xiao, Jianbin Qin, Xin Cao, Yifang Sun, Wei Wang, Makoto Onizuka
Abstract
Due to the outstanding capability of capturing underlying data distributions, deep learning techniques have been recently utilized for a series of traditional database problems. In this paper, we investigate the possibilities of utilizing deep learning for cardinality estimation of similarity selection. Answering this problem accurately and efficiently is essential to many data management applications, especially for query optimization. Moreover, in some applications the estimated cardinality is supposed to be consistent and interpretable. Hence a monotonic estimation w.r.t. the query threshold is preferred. We propose a novel and generic method that can be applied to any data type and distance function. Our method consists of a feature extraction model and a regression model. The feature extraction model transforms original data and threshold to a Hamming space, in which a deep learningbased regression model is utilized to exploit the incremental property of cardinality w.r.t. the threshold for both accuracy and monotonicity. We develop a training strategy tailored to our model as well as techniques for fast estimation. We also discuss how to handle updates. We demonstrate the accuracy and the efficiency of our method through experiments, and show how it improves the performance of a query optimizer.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- LPLM: A Neural Language Model for Cardinality Estimation of LIKE-Queries cites Cardinality Estimation of Approximate Substring Queries using Deep Learning
- Consistent and Flexible Selectivity Estimation for High-Dimensional Data cites An End-to-End Learning-based Cost Estimator
- Cardinality Estimation for Similarity Search on High-Dimensional Data Objects: The Impact of Reference Objects cites Consistent and Flexible Selectivity Estimation for High-Dimensional Data
- Cardinality Estimation for Similarity Search on High-Dimensional Data Objects: The Impact of Reference Objects cites An End-to-End Learning-based Cost Estimator
Cited by top-tier papers7
- LPLM: A Neural Language Model for Cardinality Estimation of LIKE-QueriesMehmet Aytimur, Silvan Reiner, Leonard Wörteler, Theodoros Chondrogiannis et al.SIGMOD 2024 · 13 citations
- Consistent and Flexible Selectivity Estimation for High-Dimensional DataYaoshu Wang, Chuan Xiao, Jianbin Qin, Rui Mao et al.SIGMOD 2021 · 12 citations
- Selectivity Functions of Range Queries are LearnableXiao Hu, Yuxi Liu, Haibo Xiu, Pankaj K. Agarwal et al.SIGMOD 2022 · 11 citations
- Cardinality Estimation of Approximate Substring Queries using Deep LearningSuyong Kwon, Woohwan Jung, Kyuseok ShimVLDB 2022 · 10 citations
- Cardinality Estimation for Similarity Search on High-Dimensional Data Objects: The Impact of Reference ObjectsHai Lan, Shixun Huang, Zhifeng Bao, Renata Borovica-GajicVLDB 2025 · 7 citations
Builds on1
Related papers
- Deep Learning Models for Selectivity Estimation of Multi-Attribute QueriesShohedul Hasan, Saravanan Thirumuruganathan, Jees Augustine, Nick Koudas et al.SIGMOD 2020 · 101 citations
- Learned Cardinality Estimation: A Design Space Exploration and A Comparative EvaluationJi Sun, Jintao Zhang, Zhaoyan Sun, Guoliang Li et al.VLDB 2022 · 90 citations
- Learned Cardinality Estimation for Similarity QueriesJi Sun, Guoliang Li, Nan TangSIGMOD 2021 · 40 citations
- Cardinality Estimation of LIKE Predicate Queries using Deep LearningSuyong Kwon, Kyuseok Shim, Woohwan JungSIGMOD 2025 · 3 citations
- Sample-Efficient Cardinality Estimation Using Geometric Deep LearningSilvan Reiner, Michael GrossniklausVLDB 2024 · 20 citations
