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

并行批处理动态$k$ d树

Parallel Batch-Dynamic $k$d-Trees

Rahul Yesantharao, Yiqiu Wang, Laxman Dhulipala, Julian Shun

摘要:

$k$ d树被广泛应用于并行数据库中以支持高效的邻域/相似性查询。因此,支持并行更新$k$ d树是一个重要的操作。在本文中,我们提出了BDL树,一个并行,批量动态实现的$k$ D树,允许高效的并行$k$ -NN查询动态变化的点集。BDL-树由一组日志结构的$k$ d-树组成,它可以用来以多对数深度并行地有效地插入或删除批量点。具体地说,给定一个具有$n$点的BDL树,每批$B$更新都需要$O(B\log^2{(n+B)})$分摊工作和$O(\log(n+B)\log\log{(n+B)})$深度(并行时间)。我们提供了BDL树的优化多核实现。我们的优化包括并行缓存无关的$k$ d树构造和并行布隆过滤器构造。我们的实验在一个36核机器上使用各种合成和真实世界的数据集的双向超线程表明,我们的实现BDL树实现了一个自我相对加速高达$34.8\times$(平均$28.4\times$)的批量插入,高达$35.5\times$(平均$27.2\times$)的批量删除,和高达$46.1\times$(平均$40.0\times$)的$k$ -最近邻查询。此外,它实现了高达1450万次更新/秒的批并行更新和670万次查询/秒的$k$ -NN查询的吞吐量。我们比较两个基线$k$ d树的实现,并证明BDL树实现批量更新的两个基线选项之间的良好权衡。

英文摘要:

$k$d-trees are widely used in parallel databases to support efficient neighborhood/similarity queries. Supporting parallel updates to $k$d-trees is therefore an important operation. In this paper, we present BDL-tree, a parallel, batch-dynamic implementation of a $k$d-tree that allows for efficient parallel $k$-NN queries over dynamically changing point sets. BDL-trees consist of a log-structured set of $k$d-trees which can be used to efficiently insert or delete batches of points in parallel with polylogarithmic depth. Specifically, given a BDL-tree with $n$ points, each batch of $B$ updates takes $O(B\log^2{(n+B)})$ amortized work and $O(\log(n+B)\log\log{(n+B)})$ depth (parallel time). We provide an optimized multicore implementation of BDL-trees. Our optimizations include parallel cache-oblivious $k$d-tree construction and parallel bloom filter construction. Our experiments on a 36-core machine with two-way hyper-threading using a variety of synthetic and real-world datasets show that our implementation of BDL-tree achieves a self-relative speedup of up to $34.8\times$ ($28.4\times$ on average) for batch insertions, up to $35.5\times$ ($27.2\times$ on average) for batch deletions, and up to $46.1\times$ ($40.0\times$ on average) for $k$-nearest neighbor queries. In addition, it achieves throughputs of up to 14.5 million updates/second for batch-parallel updates and 6.7 million queries/second for $k$-NN queries. We compare to two baseline $k$d-tree implementations and demonstrate that BDL-trees achieve a good tradeoff between the two baseline options for implementing batch updates.

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

↑