突破十亿级近似最近邻搜索的存储-计算瓶颈:一种基于GPU的异步I/O框架
Breaking the Storage-Compute Bottleneck in Billion-Scale ANNS: A GPU-Driven Asynchronous I/O Framework
AI总结:
FlashANNS通过GPU加速和异步I/O重叠,提升十亿级ANNS的存储-计算效率,实现更高吞吐量。
摘要:
随着信息检索、推荐系统和检索增强生成(RAG)的发展,近似最近邻搜索(ANNS)因其更高的性能和准确性而得到广泛应用。尽管已经出现了一些基于磁盘的ANNS系统来处理指数级增长的向量数据集,但它们由于两个固有局限性而性能不佳:1)未能将SSD访问与距离计算过程重叠;2)由于不优化的I/O栈导致的I/O延迟增加。为了解决这些挑战,我们提出了FlashANNS,一种通过I/O-计算重叠实现的基于GPU的离线图基ANNS系统。我们的核心见解在于通过三个关键创新实现I/O和计算的同步协调:1)依赖松弛的异步流水线:FlashANNS将I/O-计算依赖解耦,以完全重叠GPU的距离计算和SSD数据传输。2) warp级别并发SSD访问:FlashANNS实现了一个无锁的I/O栈,通过warp级别并发控制来减少延迟诱导的时间开销。3)计算-I/O平衡的图度选择:FlashANNS通过轻量级的计算到I/O比例采样选择图度,确保在不同I/O带宽配置下计算负载和存储访问延迟之间的最佳平衡。我们实现了FlashANNS,并将其与最先进的离线ANNS系统(SPANN、DiskANN)以及一种基于GPU的离线ANNS系统(FusionANNS)进行了比较。实验结果表明,在≥95%的召回@10精度下,我们的方法在单个SSD的情况下,相比现有SOTA方法的吞吐量提高了2.3-5.9倍,并在多SSD配置中进一步实现了2.7-12.2倍的吞吐量提升。
英文摘要:
With the advancement of information retrieval, recommendation systems, and Retrieval-Augmented Generation (RAG), Approximate Nearest Neighbor Search (ANNS) gains widespread applications due to its higher performance and accuracy. While several disk-based ANNS systems have emerged to handle exponentially growing vector datasets, they suffer from suboptimal performance due to two inherent limitations: 1) failing to overlap SSD accesses with distance computation processes and 2) extended I/O latency caused by suboptimal I/O Stack. To address these challenges, we present FlashANNS, a GPU-accelerated out-of-core graph-based ANNS system through I/O-compute overlapping. Our core insight lies in the synchronized orchestration of I/O and computation through three key innovations: 1) Dependency-Relaxed asynchronous pipeline: FlashANNS decouples I/O-computation dependencies to fully overlap between GPU distance calculations and SSD data transfers. 2) Warp-Level concurrent SSD access: FlashANNS implements a lock-free I/O stack with warp-level concurrency control, to reduce the latency-induced time overhead. 3) Computation-I/O balanced graph degree Selection: FlashANNS selects graph degrees via lightweight compute-to-I/O ratio sampling, ensuring optimal balance between computational load and storage access latency across different I/O bandwidth configurations. We implement FlashANNS and compare it with state-of-the-art out-of-core ANNS systems (SPANN, DiskANN) and a GPU-accelerated out-of-core ANNS system (FusionANNS). Experimental results demonstrate that at $\geq$95\% recall@10 accuracy, our method achieves 2.3-5.9$\times$ higher throughput compared to existing SOTA methods with a single SSD, and further attains 2.7-12.2$\times$ throughput improvement in multi-SSD configurations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。