arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.11324cs.DC
收藏

BANG:使用单个GPU进行十亿级近似最近邻搜索

BANG: Billion-Scale Approximate Nearest Neighbor Search using a Single GPU

Karthik V., Saim Khan, Somesh Singh, Harsha Vardhan Simhadri, Jyothi Vedurada

AI总结:

本文提出BANG,首个在单个GPU上处理无法完全放入显存的十亿级图数据集的ANNS技术,通过压缩数据集与主机内存图索引协同访问,在三个十亿级数据集上实现召回率0.9时吞吐量比竞争方法高50至400倍。

摘要:

近似最近邻搜索(ANNS)是信息检索、模式识别、数据挖掘、图像处理等领域常用算法中的一个子程序。近期研究已经表明,基于图的ANNS算法在实践中比文献中提出的其他方法更高效。数据量和维度的不断增长要求设计可扩展的ANNS技术。为此,现有技术已经探索了在GPU上并行化基于图的ANNS,利用其大规模并行性。当前最先进的基于GPU的ANNS算法要么(i)要求数据集和生成的图索引完全驻留在GPU内存中,要么(ii)将数据集划分为小的独立分片,每个分片可以放入GPU内存,并在GPU上对这些分片执行搜索。第一种方法由于GPU可用内存有限而无法处理大型数据集,而后者由于低带宽PCIe互连上的高数据流量,在大型数据集上性能较差。我们提出了BANG,这是首个针对无法完全放入GPU内存的十亿级数据集在GPU上进行基于图的ANNS的技术。BANG的突出之处在于利用单个GPU上数据集的压缩形式进行距离计算,同时高效访问保存在主机内存中的图索引,从而在有限的GPU内存内实现对大型图的高效ANNS。BANG集成了高度优化的GPU内核,并以在GPU和CPU上并发运行的阶段推进,充分利用它们各自的架构特性。使用单个NVIDIA Ampere A100 GPU,在三个流行的十亿级数据集上,BANG在召回率为0.9时实现了比竞争方法高50倍至400倍的吞吐量。

英文摘要:

Approximate Nearest Neighbour Search (ANNS) is a subroutine in algorithms routinely employed in information retrieval, pattern recognition, data mining, image processing, and beyond. Recent works have established that graph-based ANNS algorithms are practically more efficient than the other methods proposed in the literature. The growing volume and dimensionality of data necessitates designing scalable techniques for ANNS. To this end, the prior art has explored parallelising graph-based ANNS on GPU, leveraging its massive parallelism. The current state-of-the-art GPU-based ANNS algorithms either (i) require both the dataset and the generated graph index to reside entirely in the GPU memory, or (ii) they partition the dataset into small independent shards, each of which can fit in GPU memory, and perform the search on these shards on the GPU. While the first approach fails to handle large datasets due to the limited memory available on the GPU, the latter delivers poor performance on large datasets due to high data traffic over the low-bandwidth PCIe interconnect. We introduce BANG, a first-of-its-kind technique for graph-based ANNS on GPU for billion-scale datasets, that cannot entirely fit in the GPU memory. BANG stands out by harnessing a compressed form of the dataset on a single GPU to perform distance computations while efficiently accessing the graph index kept on the host memory, enabling efficient ANNS on large graphs within the limited GPU memory. BANG incorporates highly optimised GPU kernels and proceeds in phases that run concurrently on the GPU and CPU, taking advantage of their architectural specificities. Using a single NVIDIA Ampere A100 GPU, BANG achieves throughputs 50x-400x higher than competing methods for a recall of 0.9 on three popular billion-scale datasets.

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

↑