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

利用昂贵谓词加速近似聚集算法

Accelerating Approximate Aggregation Queries with Expensive Predicates

Daniel Kang, John Guibas, Peter Bailis, Tatsunori Hashimoto, Yi Sun, Matei Zaharia

摘要:

研究人员和行业分析师越来越有兴趣在大型非结构化数据集上计算聚合查询,这些数据集具有使用昂贵的深度神经网络(DNN)计算的选择性谓词。由于这些DNN是昂贵的,并且因为许多应用程序可以容忍近似答案,分析师有兴趣通过近似来加速这些查询。不幸的是,标准的近似查询处理技术,以加速这样的查询是不适用的,因为他们假设的谓词的结果是提前可用的。此外,最近的工作使用廉价的近似(即,代理)不支持带有谓词的聚合查询。为了加速聚合查询与昂贵的谓词,我们开发和分析的查询处理算法,利用代理(ABae)。ABae必须考虑到关键挑战,即它可能对不满足谓词的记录进行采样。为了解决这个问题,我们首先使用代理将记录分组到层中,以便将满足谓词的记录理想地分组到几个层中。考虑到这些层次,ABae使用试点抽样和插件估计来根据最优分配进行抽样。我们发现,ABae收敛在一个新的分析分层抽样的最佳速率与提请可能不满足谓词。我们进一步表明,ABae在六个真实世界数据集的基线上表现出色,将标签成本降低了2.3倍。

英文摘要:

Researchers and industry analysts are increasingly interested in computing aggregation queries over large, unstructured datasets with selective predicates that are computed using expensive deep neural networks (DNNs). As these DNNs are expensive and because many applications can tolerate approximate answers, analysts are interested in accelerating these queries via approximations. Unfortunately, standard approximate query processing techniques to accelerate such queries are not applicable because they assume the result of the predicates are available ahead of time. Furthermore, recent work using cheap approximations (i.e., proxies) do not support aggregation queries with predicates. To accelerate aggregation queries with expensive predicates, we develop and analyze a query processing algorithm that leverages proxies (ABae). ABae must account for the key challenge that it may sample records that do not satisfy the predicate. To address this challenge, we first use the proxy to group records into strata so that records satisfying the predicate are ideally grouped into few strata. Given these strata, ABae uses pilot sampling and plugin estimates to sample according to the optimal allocation. We show that ABae converges at an optimal rate in a novel analysis of stratified sampling with draws that may not satisfy the predicate. We further show that ABae outperforms on baselines on six real-world datasets, reducing labeling costs by up to 2.3x.

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

↑