[Paper Review] Selectivity Estimation with Deep Likelihood Models
This paper proposes deep likelihood models for selectivity estimation in databases, using Monte Carlo integration to efficiently handle complex range and wildcard queries without independence assumptions. It achieves single-digit multiplicative error in tail selectivity and a 40–200× accuracy improvement over state-of-the-art methods, while remaining space- and time-efficient.
Selectivity 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 likelihood models. However, direct application of these models leads to a limited estimator that is prohibitively expensive to evaluate for range and wildcard predicates. To make a truly usable estimator, we develop a Monte Carlo integration scheme on top of likelihood models that can efficiently handle range queries with dozens of filters or more. Like classical synopses, our estimator summarizes the data without supervision. Unlike previous solutions, our estimator approximates the joint data distribution without any independence assumptions. When evaluated on real-world datasets and compared against real systems and dominant families of techniques, our likelihood model based estimator achieves single-digit multiplicative error at tail, a 40-200$ imes$ accuracy improvement over the second best method, and is space- and runtime-efficient.
Motivation & Objective
- Address the limitations of classical statistical methods in modeling complex, multivariate data distributions in relational tables.
- Overcome the high computational cost of directly applying deep likelihood models to range and wildcard predicates.
- Develop a scalable, unsupervised estimator that captures joint data distributions without assuming attribute independence.
- Achieve high accuracy in selectivity estimation, especially in tail-selectivity regions, while maintaining space and runtime efficiency.
Proposed method
- Employ deep likelihood models as high-capacity density estimators to capture rich multivariate distributions in relational data.
- Design a Monte Carlo integration scheme to efficiently approximate query selectivity over deep likelihood models.
- Use stochastic sampling to evaluate range and wildcard predicates without explicit marginalization, reducing computational cost.
- Maintain a compact, unsupervised synopsis of the data that summarizes the joint distribution without independence assumptions.
- Leverage the likelihood model's ability to represent complex dependencies across attributes for improved estimation fidelity.
- Optimize the integration scheme to scale to dozens of filters, enabling practical deployment in real-world systems.
Experimental results
Research questions
- RQ1Can deep likelihood models be effectively adapted for database selectivity estimation despite their high computational cost?
- RQ2How can Monte Carlo integration be used to make deep likelihood models practical for range and wildcard queries?
- RQ3To what extent can likelihood models improve selectivity estimation accuracy compared to independence-based or synopsis-based methods?
- RQ4Can the proposed method achieve high accuracy in tail-selectivity regions while remaining space- and time-efficient?
Key findings
- The proposed method achieves single-digit multiplicative error in tail selectivity regions, significantly outperforming existing techniques.
- It improves accuracy by 40–200× over the second-best method, demonstrating substantial gains in estimation fidelity.
- The estimator maintains space and runtime efficiency, enabling practical deployment in real-world database systems.
- Unlike prior approaches, it models joint data distributions without assuming attribute independence, capturing complex data correlations.
- The Monte Carlo integration scheme enables efficient evaluation of queries with dozens of filters, making the method scalable.
- The method is unsupervised and summarizes data without requiring labeled examples or training data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.