arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.09168cs.GRcs.DCcs.PF
收藏

Arkade:使用GPU光线追踪的非欧几里得距离k近邻搜索

Arkade: k-Nearest Neighbor Search With Non-Euclidean Distances using GPU Ray Tracing

Durga Mandarapu, Vani Nagarajan, Artem Pelenitsyn, Milind Kulkarni

AI总结:

提出Arkade方法,利用GPU光线追踪硬件,通过两种归约将非欧几里得距离kNN搜索转化为欧几里得距离形式,实现1.6-200倍加速。

摘要:

低维空间中高性能的k近邻搜索(kNN)实现通常使用基于树的数据结构。由于树算法的不规则性,它们难以在GPU上并行化。然而,较新的Nvidia GPU通过光线追踪核心提供对树操作的硬件支持。近期工作已提出使用RT核心实现kNN搜索,但所有这些方法都受到硬件对搜索中使用的距离度量的限制——即欧几里得距离。我们提出并实现了两种归约方法,以支持除欧几里得距离之外的广泛距离的kNN搜索:Arkade Filter-Refine和Arkade Monotone Transformation,每种方法都允许基于非欧几里得距离的最近邻查询以欧几里得距离的形式执行。通过我们的归约方法,我们观察到,与各种最先进的GPU着色器核心和RT核心基线相比,kNN搜索时间的加速比分别介于1.6倍至200倍和1.3倍至33.1倍之间。在评估中,我们通过分析kNN搜索时间趋势,提供了关于RT架构高效构建和遍历树能力的若干见解。

英文摘要:

High-performance implementations of $k$-Nearest Neighbor Search ($k$NN) in low dimensions use tree-based data structures. Tree algorithms are hard to parallelize on GPUs due to their irregularity. However, newer Nvidia GPUs offer hardware support for tree operations through ray-tracing cores. Recent works have proposed using RT cores to implement $k$NN search, but they all have a hardware-imposed constraint on the distance metric used in the search -- the Euclidean distance. We propose and implement two reductions to support $k$NN for a broad range of distances other than the Euclidean distance: Arkade Filter-Refine and Arkade Monotone Transformation, each of which allows non-Euclidean distance-based nearest neighbor queries to be performed in terms of the Euclidean distance. With our reductions, we observe that $k$NN search time speedups range between $1.6$x-$200$x and $1.3$x-$33.1$x over various state-of-the-art GPU shader core and RT core baselines, respectively. In evaluation, we provide several insights on RT architectures' ability to efficiently build and traverse the tree by analyzing the $k$NN search time trends.

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

↑