arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.07048cs.DBcs.AI
收藏

GPU加速的近似最近邻搜索:为速度而量化,为变化而构建

GPU-Accelerated ANNS: Quantized for Speed, Built for Change

Northeastern University(东北大学)

Hunter McCoy, Zikun Wang, Prashant Pandey

AI总结:

Jasper是一种基于GPU的近似最近邻搜索系统,通过高效量化和优化搜索算法,实现了高吞吐量和可更新性,显著提升了查询性能。

摘要:

近似最近邻搜索(ANNS)是机器学习和信息检索应用中的核心问题。GPU提供了一条实现高性能ANNS的有前途的途径:它们为距离计算提供了大规模并行性,易于获取,并且可以与下游应用共存。尽管这些优势,当前的GPU加速ANNS系统面临三个关键限制。首先,现实应用在不断变化的数据集上运行,需要快速的批量更新,但大多数GPU索引在新数据到来时必须从头开始重建。其次,高维向量会消耗内存带宽,但当前的GPU系统缺乏有效的量化技术,这些技术可以减少数据移动而不引入昂贵的随机内存访问。第三,贪心搜索固有的数据依赖内存访问使得计算和内存难以重叠,导致性能下降。我们提出了Jasper,一个原生于GPU的ANNS系统,具有高查询吞吐量和可更新性。Jasper基于Vamana图索引,并通过三个贡献克服了现有瓶颈:(1)一个CUDA批量并行构建算法,使锁自由流式插入成为可能;(2)一种高效的GPU实现RaBitQ量化,可将内存足迹减少高达8倍,而无需随机访问惩罚;(3)一个优化的贪心搜索内核,提高了计算利用率,从而在延迟隐藏和吞吐量方面取得更好的效果。我们的评估显示,Jasper在五个数据集上实现了比CAGRA高1.93倍的查询吞吐量,并达到了80%的峰值利用率,如通过屋顶模型测量。Jasper的构建效率高,构建速度平均比CAGRA快2.4倍,同时提供CAGRA所缺乏的可更新性。与BANG相比,这是最快的GPU Vamana实现,Jasper的查询速度提高了19-131倍。

英文摘要:

Approximate nearest neighbor search (ANNS) is a core problem in machine learning and information retrieval applications. GPUs offer a promising path to high-performance ANNS: they provide massive parallelism for distance computations, are readily available, and can co-locate with downstream applications. Despite these advantages, current GPU-accelerated ANNS systems face three key limitations. First, real-world applications operate on evolving datasets that require fast batch updates, yet most GPU indices must be rebuilt from scratch when new data arrives. Second, high-dimensional vectors strain memory bandwidth, but current GPU systems lack efficient quantization techniques that reduce data movement without introducing costly random memory accesses. Third, the data-dependent memory accesses inherent to greedy search make overlapping compute and memory difficult, leading to reduced performance. We present Jasper, a GPU-native ANNS system with both high query throughput and updatability. Jasper builds on the Vamana graph index and overcomes existing bottlenecks via three contributions: (1) a CUDA batch-parallel construction algorithm that enables lock-free streaming insertions, (2) a GPU-efficient implementation of RaBitQ quantization that reduces memory footprint up to 8x without the random access penalties, and (3) an optimized greedy search kernel that increases compute utilization, resulting in better latency hiding and higher throughput. Our evaluation across five datasets shows that Jasper achieves up to 1.84x higher query throughput than CAGRA and achieves up to 80% peak utilization as measured by the roofline model. Jasper's construction scales efficiently and constructs indices an average of 7x faster than CAGRA while providing updatability that CAGRA lacks. Compared to BANG, the previous fastest GPU Vamana implementation, Jasper delivers 10-74x faster queries.

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

↑