arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1906.09335cs.DB
收藏

学习采样:用复数计数

Learning to Sample: Counting with Complex Queries

Brett Walenz, Stavros Sintos, Sudeepa Roy, Jun Yang

摘要:

我们研究的问题,有效地估计计数查询涉及复杂的过滤器,如用户定义的功能,或谓词涉及自连接和相关的子查询。对于这样的查询,传统的采样技术可能不适用,因为过滤器的复杂性阻止了对连接进行采样,并且由于计算完全连接的成本,在连接之后进行采样可能不可行。另一种自然的方法是训练和使用廉价的分类器来估计计数,而不是昂贵的谓词,这种方法在训练一个好的分类器和给出有意义的置信区间方面存在困难。在本文中,我们提出了一种新的学习方法,以样本,我们结合了两个世界中最好的两个阶段使用采样。首先,我们使用样本学习一个概率分类器,然后使用分类器设计一个分层抽样方法来获得最终的估计。我们从理论上分析算法,以获得最佳分层,并比较我们的方法与一套自然的替代品,如量化学习,加权和分层采样,以及其他技术的文献。我们还使用多个真实和合成数据集在不同的用例中提供了广泛的实验,以评估我们方法的质量,效率和鲁棒性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑