# Deep Unsupervised Cardinality Estimation

**Authors:** Zongheng Yang, Eric Liang, Amog Kamsetty, Chenggang Wu, Yan Duan, Xi, Chen, Pieter Abbeel, Joseph M. Hellerstein, Sanjay Krishnan, Ion Stoica

arXiv: 1905.04278 · 2019-11-22

## TL;DR

This paper introduces a deep autoregressive model-based estimator for cardinality estimation that efficiently handles high-dimensional range queries, significantly improving accuracy over existing methods without relying on independence assumptions.

## Contribution

It develops a Monte Carlo integration scheme for deep autoregressive models to produce a practical, high-accuracy cardinality estimator for complex multi-dimensional queries.

## Key findings

- Achieves single-digit multiplicative error at tail
- Up to 90× accuracy improvement over second best
- Space- and runtime-efficient implementation

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

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1905.04278/full.md

## Figures

16 figures with captions in the complete paper: https://tomesphere.com/paper/1905.04278/full.md

## References

54 references — full list in the complete paper: https://tomesphere.com/paper/1905.04278/full.md

---
Source: https://tomesphere.com/paper/1905.04278