Skip to main content

Learning to sample: Counting with complex queries

Publication ,  Conference
Walenz, B; Sintos, S; Roy, S; Yang, J
Published in: Proceedings of the VLDB Endowment
January 1, 2020

We study the problem of efficiently estimating counts for queries involving complex filters, such as user-defined functions, or predicates involving self-joins and correlated subqueries. For such queries, traditional sampling techniques may not be applicable due to the complexity of the filter preventing sampling over joins, and sampling after the join may not be feasible due to the cost of computing the full join. The other natural approach of training and using an inexpensive classifier to estimate the count instead of the expensive predicate suffers from the difficulties in training a good classifier and giving meaningful confidence intervals. In this paper we propose a new method of learning to sample where we combine the best of both worlds by using sampling in two phases. First, we use samples to learn a probabilistic classifier, and then use the classifier to design a stratified sampling method to obtain the final estimates. We theoretically analyze algorithms for obtaining an optimal stratification, and compare our approach with a suite of natural alternatives like quantification learning, weighted and stratified sampling, and other techniques from the literature. We also provide extensive experiments in diverse use cases using multiple real and synthetic datasets to evaluate the quality, efficiency, and robustness of our approach.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Proceedings of the VLDB Endowment

DOI

EISSN

2150-8097

Publication Date

January 1, 2020

Volume

13

Issue

3

Start / End Page

389 / 401

Related Subject Headings

  • 4605 Data management and data science
  • 0807 Library and Information Studies
  • 0806 Information Systems
  • 0802 Computation Theory and Mathematics
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Walenz, B., Sintos, S., Roy, S., & Yang, J. (2020). Learning to sample: Counting with complex queries. In Proceedings of the VLDB Endowment (Vol. 13, pp. 389–401). https://doi.org/10.14778/3368289.3368302
Walenz, B., S. Sintos, S. Roy, and J. Yang. “Learning to sample: Counting with complex queries.” In Proceedings of the VLDB Endowment, 13:389–401, 2020. https://doi.org/10.14778/3368289.3368302.
Walenz B, Sintos S, Roy S, Yang J. Learning to sample: Counting with complex queries. In: Proceedings of the VLDB Endowment. 2020. p. 389–401.
Walenz, B., et al. “Learning to sample: Counting with complex queries.” Proceedings of the VLDB Endowment, vol. 13, no. 3, 2020, pp. 389–401. Scopus, doi:10.14778/3368289.3368302.
Walenz B, Sintos S, Roy S, Yang J. Learning to sample: Counting with complex queries. Proceedings of the VLDB Endowment. 2020. p. 389–401.

Published In

Proceedings of the VLDB Endowment

DOI

EISSN

2150-8097

Publication Date

January 1, 2020

Volume

13

Issue

3

Start / End Page

389 / 401

Related Subject Headings

  • 4605 Data management and data science
  • 0807 Library and Information Studies
  • 0806 Information Systems
  • 0802 Computation Theory and Mathematics