arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.21247cs.DBcs.DCcs.IR
收藏

PiPNN:超可扩展的基于图的最近邻索引

PiPNN: Ultra-Scalable Graph-Based Nearest Neighbor Indexing

UMD(马里兰大学);Google Research(谷歌研究院)

Tobias Rubel, Richard Wen, Laxman Dhulipala, Lars Gottesbüren, Rajesh Jayaram, Jakub Łącki

AI总结:

提出PiPNN图构建算法,通过HashPrune在线剪枝和分治策略,实现比现有方法快11.6-12.9倍的索引构建速度,并首次在单机上20分钟内完成十亿级数据集的高质量近似最近邻索引构建。

摘要:

当前最快的近似最近邻搜索索引也是构建最慢的:基于图的方法如HNSW和Vamana实现了最先进的查询性能,但由于依赖随机访问密集的波束搜索,构建时间较长。我们提出PiPNN(分区挑选最近邻),一种超可扩展的图构建算法,避免了现有基于图方法所遭受的“搜索瓶颈”。PiPNN的核心创新是HashPrune,一种新颖的在线剪枝算法,动态维护稀疏的边集合。HashPrune使PiPNN能够将数据集划分为重叠的子问题,通过密集矩阵乘法内核高效执行批量距离比较,并将边的子集流式传输到HashPrune。HashPrune在索引构建期间保证有界内存,这使得PiPNN无需使用额外的中间内存即可构建更高质量的索引。PiPNN构建索引的速度比Vamana(DiskANN)快11.6倍,比HNSW快12.9倍。PiPNN比最近的快速图构建算法具有显著更高的可扩展性。PiPNN构建索引的速度至少比MIRAGE快19.1倍,比FastKCNA快17.3倍,同时生成的索引具有更高的查询吞吐量。PiPNN使我们首次能够在单个多核机器上在20分钟内构建十亿级数据集的高质量ANN索引。

英文摘要:

The fastest indexes for Approximate Nearest Neighbor Search today are also the slowest to build: graph-based methods like HNSW and Vamana achieve state-of-the-art query performance but have large construction times due to relying on random-access-heavy beam searches. We introduce PiPNN (Pick-in-Partitions Nearest Neighbors), an ultra-scalable graph construction algorithm that avoids this ``search bottleneck'' that existing graph-based methods suffer from. PiPNN's core innovation is HashPrune, a novel online pruning algorithm which dynamically maintains sparse collections of edges. HashPrune enables PiPNN to partition the dataset into overlapping sub-problems, efficiently perform bulk distance comparisons via dense matrix multiplication kernels, and stream a subset of the edges into HashPrune. HashPrune guarantees bounded memory during index construction which permits PiPNN to build higher quality indices without the use of extra intermediate memory. PiPNN builds state-of-the-art indexes up to 11.6x faster than Vamana (DiskANN) and up to 12.9x faster than HNSW. PiPNN is significantly more scalable than recent algorithms for fast graph construction. PiPNN builds indexes at least 19.1x faster than MIRAGE and 17.3x than FastKCNA while producing indexes that achieve higher query throughput. PiPNN enables us to build, for the first time, high-quality ANN indexes on billion-scale datasets in under 20 minutes using a single multicore machine.

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

↑