arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.12385cs.AR
收藏

通过硬件加速和延迟同步遍历实现快速图向量搜索

Fast Graph Vector Search via Hardware Acceleration and Delayed-Synchronization Traversal

Wenqi Jiang, Hang Hu, Torsten Hoefler, Gustavo Alonso

AI总结:

本文提出硬件加速器Falcon与延迟同步遍历算法DST,通过软硬件协同设计解决图向量搜索的查询内并行化难题,在FPGA原型上相比CPU和GPU系统实现最高19.5倍延迟降低和26.9倍能效提升。

摘要:

向量搜索系统在大语言模型(LLM)服务、搜索引擎和推荐系统中不可或缺,其中最小化在线搜索延迟至关重要。在各种算法中,基于图的向量搜索(GVS)因其高搜索性能和质量而特别受欢迎。然而,由于现有硬件架构(CPU和GPU)的限制以及图遍历并行化的固有困难,通过查询内并行化降低GVS延迟仍然具有挑战性。为了高效地服务低延迟GVS,我们通过提出Falcon和延迟同步遍历(DST)来协同设计硬件和算法。Falcon是一种硬件GVS加速器,它实现了高效的GVS算子,对这些算子进行流水线化,并通过使用片上Bloom过滤器跟踪搜索状态来减少内存访问。DST是一种高效的图遍历算法,通过放宽遍历顺序以最大化加速器利用率,同时提高搜索性能和质量。在各种图和数据集上的评估表明,在FPGA上原型化的Falcon与DST一起,相比基于CPU和GPU的GVS系统,延迟最多降低4.3倍和19.5倍,能效最多提高8.0倍和26.9倍。

英文摘要:

Vector search systems are indispensable in large language model (LLM) serving, search engines, and recommender systems, where minimizing online search latency is essential. Among various algorithms, graph-based vector search (GVS) is particularly popular due to its high search performance and quality. However, reducing GVS latency by intra-query parallelization remains challenging due to limitations imposed by both existing hardware architectures (CPUs and GPUs) and the inherent difficulty of parallelizing graph traversals. To efficiently serve low-latency GVS, we co-design hardware and algorithm by proposing Falcon and Delayed-Synchronization Traversal (DST). Falcon is a hardware GVS accelerator that implements efficient GVS operators, pipelines these operators, and reduces memory accesses by tracking search states with an on-chip Bloom filter. DST is an efficient graph traversal algorithm that simultaneously improves search performance and quality by relaxing traversal orders to maximize accelerator utilization. Evaluation across various graphs and datasets shows that Falcon, prototyped on FPGAs, together with DST, achieves up to 4.3x and 19.5x lower latency and up to 8.0x and 26.9x improvements in energy efficiency over CPU- and GPU-based GVS systems.

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

↑