PathWeaver:面向基于图的近似最近邻搜索的高吞吐量多GPU系统
PathWeaver: A High-Throughput Multi-GPU System for Graph-Based Approximate Nearest Neighbor Search
AI总结:
PathWeaver提出流水线路径扩展、ghost staging和方向引导选择三种技术,构建高吞吐量多GPU框架,在大规模数据集上显著加速基于图的近似最近邻搜索,实现最高5.30倍加速。
摘要:
基于图的近似最近邻搜索(ANNS)在推荐系统、自然语言处理和计算机视觉等众多应用中被广泛采用。尽管近期基于GPU加速的工作已显著提升ANNS性能,但数据规模的持续增长如今要求高效的多GPU解决方案。然而,现有工作的设计忽视了多GPU可扩展性,导致朴素方法仅将额外GPU视为扩展大规模数据集内存容量的手段。这种低效源于对数据集进行划分,并在每个GPU上独立搜索与查询相似的数据点。为此,我们提出PathWeaver,一个旨在为大规模数据集扩展并加速ANNS的新型多GPU框架。首先,我们提出基于流水线的路径扩展,这是一种GPU感知的流水线机制,通过利用GPU间通信减少先前工作中冗余的搜索迭代。其次,我们设计了ghost staging,利用代表性数据集识别最优查询起始点,从而缩小困难查询的搜索空间。最后,我们引入方向引导选择,这是一种数据选择技术,在搜索过程早期过滤不相关点,最小化不必要的内存访问和距离计算。在多样化数据集上的综合评估表明,PathWeaver在95%召回率下相比最先进的基于多GPU的ANNS框架实现了3.24$\ imes$的几何平均加速,最高加速达5.30$\ imes$。
英文摘要:
Graph-based Approximate Nearest Neighbor Search (ANNS) is widely adopted in numerous applications, such as recommendation systems, natural language processing, and computer vision. While recent works on GPU-based acceleration have significantly advanced ANNS performance, the ever-growing scale of datasets now demands efficient multi-GPU solutions. However, the design of existing works overlooks multi-GPU scalability, resulting in naive approaches that treat additional GPUs as a means to extend memory capacity for large datasets. This inefficiency arises from partitioning the dataset and independently searching for data points similar to the queries in each GPU. We therefore propose PathWeaver, a novel multi-GPU framework designed to scale and accelerate ANNS for large datasets. First, we propose pipelining-based path extension, a GPU-aware pipelining mechanism that reduces prior work's redundant search iterations by leveraging GPU-to-GPU communication. Second, we design ghost staging that leverages a representative dataset to identify optimal query starting points, reducing the search space for challenging queries. Finally, we introduce direction-guided selection, a data selection technique that filters irrelevant points early in the search process, minimizing unnecessary memory accesses and distance computations. Comprehensive evaluations across diverse datasets demonstrate that PathWeaver achieves 3.24$\times$ geomean speedup and up to 5.30$\times$ speedup on 95% recall rate over state-of-the-art multi-GPU-based ANNS frameworks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。