Deep Unsupervised Cardinality Estimation

Zongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu, Yan Duan +5 more
5/10/2019
cs.DBcs.LG

Official code: naru-project/naru (105 stars, Python, Apache-2.0, last commit 2021-06-07).

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.

Show full abstract

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 90$\times$ accuracy improvement over the second best method, and is space- and runtime-efficient.

View on arXivView PDF

Code Implementations(1)

naru-project/naruOfficial100%
Apache-2.0

Neural Relation Understanding: neural cardinality estimators for tabular data

10534Python, ShellNov 20, 20195 years agoApache-2.0
autoregressive-neural-networkscardinality-estimationdeep-generative-modeldensity-estimationgenerative-model+6 more

Similar Papers

Cite this paper

@article{yang2019deep,
  title  = {Deep Unsupervised Cardinality Estimation},
  author = {Zongheng Yang and Eric Liang and Amog Kamsetty and Chenggang Wu and Yan Duan and Xi Chen and Pieter Abbeel and Joseph M. Hellerstein and Sanjay Krishnan and Ion Stoica},
  year   = {2019},
  eprint = {1905.04278},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1905.04278}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1905.04278.svg)](https://codeofpaper.com/paper/1905.04278)

Discussion