NeuroCard: one cardinality estimator for all tables
The DOI matches its Crossref record; 37 of the 37 references it cites were found in a registry or an index.
Abstract
Query optimizers rely on accurate cardinality estimates to produce good execution plans. Despite decades of research, existing cardinality estimators are inaccurate for complex queries, due to making lossy modeling assumptions and not capturing inter-table correlations. In this work, we show that it is possible to learn the correlations across all tables in a database without any independence assumptions. We present NeuroCard, a join cardinality estimator that builds a single neural density estimator over an entire database. Leveraging join sampling and modern deep autoregressive models, NeuroCard makes no inter-table or inter-column independence assumptions in its probabilistic modeling. NeuroCard achieves orders of magnitude higher accuracy than the best prior methods (a new state-of-the-art result of 8.5x maximum error on JOB-light), scales to dozens of tables, while being compact in space (several MBs) and efficient to construct or update (seconds to minutes).
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
(2016) · Cited by 11,679
(2012) · Cited by 9,062
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 1×
“e deep autoregressive (AR) models to implement our density estimator. This family of neural density estimators have been successfully employed on high-dimensional data types such as image [33], audio [42], and text [32]. Recently, Naru [48] has leveraged deep AR models to achieve state-of-the-art accuracy results on e…”
BackgroundAccess 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 1×
“This family approximates the data distribution and dates back to System R’s use of 1D histograms [34].”
MethodSpark SQL: Relational Data Processing in Spark
Armbrust, M., Xin, R. S., Lian, C., Huai, Y., Liu, D., Bradley, J. K., Meng, X., Kaftan, T., Franklin, M. J., Ghodsi, A., et al. (2015) · Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data · doi:10.1145/2723372.2742797 · Cited by 1,253 · cited 2×
“id : [1, 2] T2 .”
BackgroundHow 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 3×
“Prior work [19, 21] reported that correlations abound in this dataset and established it to be a good testbed for cardinality estimators.”
BackgroundMethodThe Case for Learned Index Structures
Kraska, T., Beutel, A., Chi, E. H., Dean, J., & Polyzotis, N. (2018) · Proceedings of the 2018 International Conference on Management of Data · doi:10.1145/3183713.3196909 · Cited by 956 · cited 1×
“, indexing [17], data layout [47], and query optimization [18, 23, 39].”
BackgroundNeural Machine Translation of Rare Words with Subword Units
Sennrich, R., Haddow, B., & Birch, A. (2015) · arXiv · doi:10.48550/arxiv.1508.07909 · Cited by 950
Salimans, T., Karpathy, A., Chen, X., & Kingma, D. P. (2017) · arXiv · doi:10.48550/arxiv.1701.05517 · Cited by 584 · cited 3×
“en the values falling in the same bin. Over the years, a plethora of solutions have been proposed, including kernel density estimators and Bayesian networks. Recently, deep autoregressive (AR) models [4, 32, 33] have emerged as the density estimator of choice. Deep AR models compute {�(��|�<�)} without explicitly m…”
BackgroundMethodInfluentialSelf-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 1×
“Multidimensional histograms [10, 25, 30, 31] are more precise than 1D histograms by capturing inter-column correlations.”
BackgroundApproximate query processing using wavelets
Chakrabarti, K., Garofalakis, M., Rastogi, R. R., & Shim, K. (2001) · The VLDB Journal · doi:10.1007/s007780100049 · Cited by 500 · cited 2×
“DeepDB [12] also shows that it significantly outperforms wavelets [2].”
BackgroundImproved query performance with variant indexes
O'Neil, P. E., & Quass, D. (1997) · Proceedings - ACM-SIGMOD International Conference on Management of Data · doi:10.1145/253260.253268 · Cited by 488 · cited 2×
“This is reminiscent of processing range predicates on bit-sliced indexes [28]; NeuroCard applies these processing logic in the new context of probabilistic inference for autoregressive models.”
MethodMADE: 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 2×
“Orderingvirtualcolumnsintheautoregressivefactorization. experimented with multi-order training [6] in the autoregressive model,”
BackgroundNeo: 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 1×
“, indexing [17], data layout [47], and query optimization [18, 23, 39].”
BackgroundDeepDB: learn from data, not from queries!
Hilprecht, B., Schmidt, A. U., Kulessa, M., Molina, A., Kersting, K., & Binnig, C. (2020) · Proceedings of the VLDB Endowment · doi:10.14778/3384345.3384349 · Cited by 378 · cited 5×
“t benchmark, JOB-light-ranges, with a larger variety of content columns and range filters. On this benchmark, NeuroCard achieves up to 15–72× higher accuracy than previous solutions, including DeepDB [12], MSCN [15], and IBJS [20]. Lastly, to test NeuroCard’s ability to handle a more complex join schema, we created JO…”
BackgroundMethodInfluentialSum-Product Networks: A New Deep Architecture
Poon, H., & Domingos, P. (2012) · arXiv (Cornell University) · doi:10.48550/arxiv.1202.3732 · Cited by 352 · cited 2×
“endence, and require expensive structure learning (finding the best model structure given a dataset). Sum-product networks. SPNs, a tree-structured density estimator, were proposed about 10 years ago [29]. Each leaf is a coarse histogram of a slice of an attribute, and each intermediate layer uses either ×and + to com…”
BackgroundMethodSum-product networks: A new deep architecture
Poon, H., & Domingos, P. (2011) · 2011 IEEE International Conference on Computer Vision Workshops (ICCV Workshops) · doi:10.1109/iccvw.2011.6130310 · Cited by 315 · cited 2×
“endence, and require expensive structure learning (finding the best model structure given a dataset). Sum-product networks. SPNs, a tree-structured density estimator, were proposed about 10 years ago [29]. Each leaf is a coarse histogram of a slice of an attribute, and each intermediate layer uses either ×and + to com…”
BackgroundMethodSelectivity 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 1×
“Similarly, other data-driven cardinality estimators such as graphical models [3, 7, 8, 40, 41] either assume conditional independence or partial independence among columns.”
BackgroundAn end-to-end learning-based cost estimator
Sun, J., & Li, G. (2019) · Proceedings of the VLDB Endowment · doi:10.14778/3368289.3368296 · Cited by 256
Wander Join: Online Aggregation via Random Walks
Li, F., Wu, B., Yi, K., & Zhao, Z. (2016) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/2882903.2915235 · Cited by 222 · cited 3×
“y. This algorithm provides uniform and independent samples, just as NeuroCard requires. NeuroCard may further leverage their extensions to support cyclic join schemas. While IBJS [20] and Wander Join [22] provide unbiased estimators for counts and aggregates, they do not provide uniform samples of a join and thus are…”
BackgroundInfluentialLearning Probabilistic Models of Relational Structure
Getoor, L. C., Friedman, N., Koller, D., & Taskar, B. (2001) · International Conference on Machine Learning · Cited by 212
Deep unsupervised cardinality estimation
Yang, Z., Liang, E., Kamsetty, A., Wu, C., Duan, Y., Chen, X., Abbeel, P., Hellerstein, J. M., Krishnan, S., & Stoica, I. (2019) · Proceedings of the VLDB Endowment · doi:10.14778/3368289.3368294 · Cited by 204 · cited 5×
“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-citationSelectivity 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×
“, UDFs), and are usually more lightweight [5].”
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
Independence 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 1×
“Similarly, other data-driven cardinality estimators such as graphical models [3, 7, 8, 40, 41] either assume conditional independence or partial independence among columns.”
BackgroundLearned 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 4×
“• JOB-light: a 70-query benchmark used by many recent cardinality estimator proposals [12, 15, 38].”
BackgroundMethodInfluentialQd-tree: Learning Data Layouts for Big Data Analytics
Yang, Z., Chandramouli, B., Wang, C., Gehrke, J. E., Li, Y., Minhas, U. F., Larson, P.-Å., Kossmann, D., & Acharya, R. (2020) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3318464.3389770 · Cited by 148 · cited 1×
“, indexing [17], data layout [47], and query optimization [18, 23, 39].”
BackgroundSelf-citationRandom Sampling over Joins Revisited
Zhao, Z., Christensen, R. R., Li, F., Hu, X., & Yi, K. (2018) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3183713.3183739 · Cited by 142 · cited 4×
“eplacement (thus, nonindependent) and requires a full scan over the full join, which is not scalable. Lastly, the Exact Weight algorithm NeuroCard implements is among the most efficient in Zhaoet al. [50]. They provide additional extensions to support general, potentially cyclic joins (e.g., a cycle can be broken), wh…”
BackgroundMethodInfluentialSelectivity 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 [10, 25, 30, 31] are more precise than 1D histograms by capturing inter-column correlations.”
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×
“Interest in this approach has seen a resurgence partly due to an abundance of query logs [44] or better function approximators (neural networks) [15, 38] that map featurized queries to predicted cardinalities.”
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 1×
“, KDE [11, 14] and mixture of uniforms [49].”
BackgroundSelectivity estimation using probabilistic models
Getoor, L. C., Taskar, B., & Koller, D. (2001) · ACM SIGMOD Record · doi:10.1145/376284.375727 · Cited by 75
Estimating 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 1×
“, KDE [11, 14] and mixture of uniforms [49].”
BackgroundIndependence 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
Designing Succinct Secondary Indexing Mechanism by Exploiting Column Correlations
Wu, Y., Yu, J., Tian, Y., Sidle, R., & Barber, R. (2019) · ACM SIGMOD International Conference on Management of Data (SIGMOD) · doi:10.1145/3299869.3319861 · Cited by 50 · cited 1×
“ns without any independence assumptions, NeuroCard’s use may go beyond query optimization to other tasks that require an understanding of tables and attributes (e.g., data imputation [45] or indexing [46]). 9 CONCLUSION NeuroCard is built on a simple idea: learn the correlations across all tables in a database without…”
MethodAutoregressive Energy MachinesPreprint
Nash, C., & Durkan, C. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1904.05626 · Cited by 32 · cited 5×
“Recently, deep autoregressive (AR) models [4, 32, 33] have emerged as the density estimator of choice.”
BackgroundMethodInfluential
Metadata
- Authors
- Yang, Z., Kamsetty, A., Luan, S., Liang, E., Duan, Y., Chen, X., & Stoica, I.
- Venue
- Proceedings of the VLDB Endowment
- Published
- 2020-09
- Volume
- 14
- Issue
- 1
- Pages
- 61-73
- ISSN
- 2150-8097 (ISSN-L)
- OpenAlex
- W3097225903
- Cited by
- 181
- References
- 37
- FWCI
- 7.90
- Type
- journal article
- Language
- en
- Open access
- closed
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.