Deep unsupervised cardinality estimation
Open accessThe DOI matches its Crossref record; 47 of the 47 references it cites were found in a registry or an index.
Abstract
Cardinality estimation has long been grounded in statistical tools for density estimation. To capture the rich multivariate distributions of relational tables, we propose the use of a new type of high-capacity statistical model: deep autoregressive models. However, direct application of these models leads to a limited estimator that is prohibitively expensive to evaluate for range or wildcard predicates. To produce a truly usable estimator, we develop a Monte Carlo integration scheme on top of autoregressive models that can efficiently handle range queries with dozens of dimensions or more. Like classical synopses, our estimator summarizes the data without supervision. Unlike previous solutions, we approximate the joint data distribution without any independence assumptions. Evaluated on real-world datasets and compared against real systems and dominant families of techniques, our estimator achieves single-digit multiplicative error at tail, an up to 90x accuracy improvement over the second best method, and is space- and runtime-efficient.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404
Adam: A Method for Stochastic Optimization
Kingma, D. P., & Ba, J. (2014) · arXiv · doi:10.48550/arxiv.1412.6980 · Cited by 98,946 · cited 1×
“It can be fed into a standard gradient descent optimizer [20].”
BackgroundExploiting Generative AI to Scale up Intelligent Tutoring Systems
Jakubův, J., Chvalovský, K., Goertzel, Z., Kaliszyk, C., Olšák, M., Piotrowski, B., Schulz, S., Suda, M., & Urban, J. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.itp.2023.19 · Cited by 76,658
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173
Elements of Information Theory
Cover, T. M., & Thomas, J. A. (2001) · Wiley eBooks · doi:10.1002/0471200611 · Cited by 36,808
The Elements of Statistical Learning
Hastie, T., Friedman, J., & Tibshirani, R. (2001) · Springer Series in Statistics · doi:10.1007/978-0-387-21606-5 · Cited by 24,162
Advances in Neural Information Processing Systems 29
Teymur, O., Zygalakis, K., & Calderhead, B. (2016) · Cited by 13,887
XLNet: Generalized Autoregressive Pretraining for Language Understanding
Yang, Z., Dai, Z., Yang, Y., Carbonell, J., Salakhutdinov, R., & Le, Q. V. (2019) · arXiv · doi:10.48550/arxiv.1906.08237 · Cited by 6,687 · cited 2×
“…masking to ensure autoregressiveness; (B) ResMADE [9], a simple extension to MADE where residual connections are introduced to improve learning efficiency; and (C) Transformer [50], a class of self-attentional models driving recent state-of-the-art advances in natural language processing [8, 54].”
BackgroundSelf-citation(2009) · Cited by 6,153
WaveNet: a generative model for raw audio
Oord, A. V. D., Dieleman, S., Zen, H., Simonyan, K., Vinyals, O., Graves, A., Kalchbrenner, N., Senior, A., & Kavukcuoglu, K. (2016) · arXiv · doi:10.48550/arxiv.1609.03499 · Cited by 4,911 · cited 2×
“While it was previously thought intractable to approximate the data distribution of a relation in its full form [7, 14], deep autoregressive models , a type of density estimator, have succeeded in modeling high-dimensional data such as images, text, and audio [40, 48– 50].”
BackgroundMultivariate Density Estimation: Theory, Practice, and Visualization
Scott, D. W. (1992) · Wiley Series in Probability and Statistics · doi:10.1002/9780470316849 · Cited by 3,696
Multivariate Density Estimation, Theory, Practice, and Visualbation
Ramsay, P. H. (1993) · Technometrics · doi:10.1080/00401706.1993.10485361 · Cited by 2,789
Probability and Random Processes
(2004) · Elsevier eBooks · doi:10.1016/b978-0-12-172651-5.x5000-3 · Cited by 2,535
Elements of Information Theory
Nalewajski, R. F. (2011) · Perspectives in Electronic Structure Theory · doi:10.1007/978-3-642-20180-6_8 · Cited by 2,309
Access path selection in a relational database management system
Selinger, P. G., Astrahan, M. M., Chamberlin, D. D., Lorie, R. A., & Price, T. G. (1979) · Proceedings of the 1979 ACM SIGMOD international conference on Management of data - SIGMOD '79 · doi:10.1145/582095.582099 · Cited by 2,188 · cited 2×
“Classical 1D histograms [42] use the simplest factorization, (cid:98) P ( A 1 , · · · , A n ) ≈ =1 (cid:98) P ( A i ), where independence be-tween attributes is assumed.”
BackgroundMethodProbability and Random Processes.
Grimmett, G. R., & Stirzaker, D. R. (2001) · doi:10.1093/oso/9780198572237.001.0001 · Cited by 1,850
Conditional Image Generation with PixelCNN Decoders
van den Oord, A., Kalchbrenner, N., Vinyals, O., Espeholt, L., Graves, A., & Kavukcuoglu, K. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1606.05328 · Cited by 1,833 · cited 2×
“First, autoregressive models have shown superior modeling precision in learning images [40,49], audio [48], and text [50].”
BackgroundMethodApproximating discrete probability distributions with dependence trees
Chow, C., & Liu, C. (1968) · IEEE Transactions on Information Theory · doi:10.1109/tit.1968.1054142 · Cited by 1,720 · cited 1×
“We use a Chow-Liu tree [4] as the Bayesian Network, since empirically it gave the best results for the allowed space.”
MethodHow good are query optimizers, really?
Leis, V., Gubichev, A., Mirchev, A., Boncz, P. A., Kemper, A., & Neumann, T. (2015) · Proceedings of the VLDB Endowment · doi:10.14778/2850583.2850594 · Cited by 1,052 · cited 4×
“Despite its importance, there is wide agreement that the problem is still unsolved [26,28,36].”
BackgroundMethodInfluentialMultivariate Density Estimation, Theory, Practice, and Visualization
Ramsay, P. H., & Scott, D. W. (1993) · Technometrics · doi:10.2307/1270280 · Cited by 956
Salimans, T., Karpathy, A., Chen, X., & Kingma, D. P. (2017) · arXiv · doi:10.48550/arxiv.1701.05517 · Cited by 584 · cited 2×
“While it was previously thought intractable to approximate the data distribution of a relation in its full form [7, 14], deep autoregressive models, a type of density estimator, have succeeded in modeling highdimensional data such as images, text, and audio [40, 48– 50].”
BackgroundSelf-citationImproved histograms for selectivity estimation of range predicates
Poosala, V., Haas, P. J., Ioannidis, Y. E., & Shekita, E. J. (1996) · Proceedings of the 1996 ACM SIGMOD international conference on Management of data - SIGMOD '96 · doi:10.1145/233269.233342 · Cited by 556 · cited 3×
“We use the MHIST-2 algorithm [38] and the uniform spread assumption [37] to approximate the value set within each partition.”
BackgroundMethodSynopses for Massive Data: Samples, Histograms, Wavelets, Sketches
Cormode, G., Garofalakis, M., Haas, P. J., & Jermaine, C. (2011) · Foundations and Trends in Databases · doi:10.1561/1900000004 · Cited by 468
MADE: Masked Autoencoder for Distribution Estimation
Germain, M., Gregor, K., Murray, I., & Larochelle, H. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1502.03509 · Cited by 448 · cited 4×
“Many network architectures have been proposed in recent years, such as masked multi-layer perceptrons (e.g., MADE [12], ResMADE [9]) or masked self-attention networks (e.g., Transformer [50]).”
BackgroundMethodInfluentialNeo: a learned query optimizer
Marcus, R., Negi, P., Mao, H., Zhang, C., Alizadeh, M., Kraska, T., Papaemmanouil, O., & Tatbul, N. (2019) · Proceedings of the VLDB Endowment · doi:10.14778/3342263.3342644 · Cited by 389 · cited 2×
“Neo [31], a learned query optimizer, approaches cardinality estimation indirectly: embeddings for all attribute values are first pretrained; later, a network takes them as input and additionally learns to correct or ignore signals from the embeddings.”
BackgroundMethodSTHoles: a multidimensional workload-aware histogram
Bruno, N., Chaudhuri, S., & Gravano, L. (2001) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/375663.375686 · Cited by 365 · cited 1×
“ISOMER [43] and STHoles [1] are two representatives that adopt feedback to improve histograms.”
BackgroundSelectivity estimation using probabilistic models
Getoor, L. C., Taskar, B., & Koller, D. (2001) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/375663.375727 · Cited by 294 · cited 4×
“Second, our formulation follows a large amount of existing work on this topic [7,14,17,35,38] and, in some cases, offers more capabilities.”
BackgroundMethodInfluentialDeep Reinforcement Learning for Join Order Enumeration
Marcus, R., & Papaemmanouil, O. (2018) · Proceedings of the First International Workshop on Exploiting Artificial Intelligence Techniques for Data Management · doi:10.1145/3211954.3211957 · Cited by 227 · cited 1×
“This proposal, as well as reinforcement learning-based join optimizers (DQ [25], ReJOIN [32]), may benefit from Naru ’s improved estimates.”
BackgroundLearning Probabilistic Models of Relational Structure
Getoor, L. C., Friedman, N., Koller, D., & Taskar, B. (2001) · International Conference on Machine Learning · Cited by 212
Selectivity estimation for range predicates using lightweight models
Dutt, A., Wang, C., Nazi, A., Kandula, S., Narasayya, V., & Chaudhuri, S. (2019) · Proceedings of the VLDB Endowment · doi:10.14778/3329772.3329780 · Cited by 194 · cited 1×
“Supervised learning regressors [10,22,29], some utilizing deep learning, have also been proposed.”
BackgroundImproved histograms for selectivity estimation of range predicates
Poosala, V., Haas, P. J., Ioannidis, Y. E., & Shekita, E. J. (1996) · ACM SIGMOD Record · doi:10.1145/235968.233342 · Cited by 188
Learning State Representations for Query Optimization with Deep Reinforcement Learning
Ortíz, J., Bałazińska, M., Gehrke, J. E., & Keerthi, S. S. (2018) · Workshop on Data Management for End-to-End Machine Learning (DEEM) · doi:10.1145/3209889.3209890 · Cited by 184 · cited 1×
“Ortiz et al. [34] learns query representation to predict cardinalities, a regression rather than our generative approach.”
BackgroundIndependence is good: dependency-based histogram synopses for high-dimensional data
Deshpande, A., Garofalakis, M., & Rastogi, R. R. (2001) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/375663.375685 · Cited by 165 · cited 5×
“In line with prior work [7,26], we found that the multiplicative error is much more informative than the relative error, as the latter does not fairly penalize small cardinality estimates (which are frequently the case for high-dimensional queries).”
BackgroundMethodInfluentialLearned Cardinalities: Estimating Correlated Joins with Deep Learning
Kipf, A., Kipf, T., Radke, B., Leis, V., Boncz, P. A., & Kemper, A. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1809.00677 · Cited by 158 · cited 6×
“The query generator is inspired by prior work [22].”
BackgroundMethodInfluentialTriejoin: A Simple, Worst-Case Optimal Join Algorithm
Veldhuizen, T. L. (2014) · Movebank · doi:10.5441/002/icdt.2014.13 · Cited by 137
Learned Cardinalities: Estimating Correlated Joins with Deep Learning
Kipf, A., Kipf, T., Radke, B., Leis, V., Boncz, P. A., & Kemper, A. (2018) · Centrum Wiskunde & Informatica (CWI), the national research institute for mathematics and computer science in the Netherlands · Cited by 116
Selectivity estimators for multidimensional range queries over real attributes
Gunopulos, D., Kollios, G., Tsotras, V. J., & Domeniconi, C. (2004) · The VLDB Journal · doi:10.1007/s00778-003-0090-4 · Cited by 113 · cited 1×
“Multidimensional histograms [16,33,37,38] can been seen as coarse approximations to the joint data distribution.”
BackgroundTowards a learning optimizer for shared clouds
Wu, C., Jindal, A., Amizadeh, S., Patel, H. B., Le, W., Qiao, S., & Rao, S. (2018) · Proceedings of the VLDB Endowment · doi:10.14778/3291264.3291267 · Cited by 107 · cited 1×
“LEO [45] and CardLearner [53] use feedback to improve selectivity estimation of future queries.”
BackgroundSelf-citationA Deep and Tractable Density Estimator
Uria, B., Murray, I., & Larochelle, H. (2013) · arXiv · doi:10.48550/arxiv.1310.1757 · Cited by 100 · cited 1×
“Lastly, we note that order-agnostic training has been proposed in the ML literature [12,47,54].”
BackgroundISOMER: Consistent Histogram Construction Using Query Feedback
Srivastava, U., Haas, P. J., Markl, V., Kutsch, M., & Tran, T. M. (2006) · IEEE International Conference on Data Engineering (ICDE) · doi:10.1109/icde.2006.84 · Cited by 99 · cited 1×
“ISOMER [43] and STHoles [1] are two representatives that adopt feedback to improve histograms.”
BackgroundSelf-Tuning, GPU-Accelerated Kernel Density Models for Multidimensional Selectivity Estimation
Heimel, M., Kiefer, M., & Markl, V. (2015) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/2723372.2749438 · Cited by 87 · cited 6×
“7% for Conviva -A. KDE [17] attempts to learn the underlying data distribution by averaging Gaussian kernels centered around random sample points.”
BackgroundMethodInfluentialLearning to Optimize Join Queries With Deep Reinforcement Learning
Krishnan, S., Yang, Z., Goldberg, K., Hellerstein, J. M., & Stoica, I. G. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1808.03196 · Cited by 83 · cited 1×
“This proposal, as well as reinforcement learning-based join optimizers (DQ [25], ReJOIN [32]), may benefit from Naru ’s improved estimates.”
BackgroundSelf-citationEstimating join selectivities using bandwidth-optimized kernel density models
Kiefer, M., Heimel, M., Breß, S., & Markl, V. (2017) · Proceedings of the VLDB Endowment · doi:10.14778/3151106.3151112 · Cited by 72 · cited 3×
“This treatment follows prior work [19,31,35] and is conceptually clean.”
BackgroundMethodIndependence is good: dependency-based histogram synopses for high-dimensional data
Deshpande, A., Garofalakis, M., & Rastogi, R. R. (2001) · ACM SIGMOD Record · doi:10.1145/376284.375685 · Cited by 57
Autoregressive Energy MachinesPreprint
Nash, C., & Durkan, C. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1904.05626 · Cited by 32 · cited 2×
“We experiment with three representative architectures: (A) Masked Autoencoder (MADE) [12], a standard multi-layer perceptron with information masking to ensure autoregressiveness; (B) ResMADE [9], a simple extension to MADE where residual connections are introduced to improve learning efficiency; and (C) Transformer […”
BackgroundMethodSynopses for Massive Data: Samples, Histograms, Wavelets, Sketches
Cormode, G. (2011) · doi:10.1561/9781601985170 · Cited by 29
Cited by
NeuroCard: one cardinality estimator for all tables
Yang, Z., Kamsetty, A., Luan, S., Liang, E., Duan, Y., Chen, X., & Stoica, I. (2020) · Proceedings of the VLDB Endowment · doi:10.14778/3421424.3421432 · Cited by 181
“ibutions without independence assumptions, achieving state-of-the-art results in both precision and expressiveness. This has resulted in new data-driven cardinality estimators based on deep AR models [48]. However,despitetheirpromise,deepautoregressivemodel-based cardinality estimators are limited to handling single t…”
BackgroundMethodInfluentialSelf-citationDatabase Meets Deep Learning: Challenges and Opportunities
Wang, W., Zhang, M., Chen, G., Jagadish, H. V., Ooi, B. C., & Tan, K.-L. (2016) · ACM SIGMOD Record · doi:10.1145/3003665.3003669 · Cited by 158
Metadata
- Authors
- Yang, Z., Liang, E., Kamsetty, A., Wu, C., Duan, Y., Chen, X., Abbeel, P., Hellerstein, J. M., Krishnan, S., & Stoica, I.
- Venue
- Proceedings of the VLDB Endowment
- Published
- 2019-11
- Volume
- 13
- Issue
- 3
- Pages
- 279-292
- ISSN
- 2150-8097 (ISSN-L)
- OpenAlex
- W2991530444
- Cited by
- 204
- References
- 47
- FWCI
- 11.70
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.