SymphonyQG:面向近似最近邻搜索的量化与图的和谐融合
SymphonyQG: Towards Symphonious Integration of Quantization and Graph for Approximate Nearest Neighbor Search
AI总结:
SymphonyQG 针对图方法在 ANN 搜索中的随机内存访问和精确距离计算瓶颈,通过避免显式重排序并优化图结构以契合 FastScan,实现量化与图的更和谐融合,在真实数据集上取得时间-精度权衡的新最优。
摘要:
高维欧氏空间中的近似最近邻(ANN)搜索具有广泛的应用。在现有 ANN 算法中,基于图的方法在时间-精度权衡方面表现出优越性能。然而,由于在图索引上搜索过程引起的随机内存访问,以及计算精确距离以引导搜索过程的成本,它们面临性能瓶颈。为了缓解这些瓶颈,最近一种名为 NGT-QG 的方法尝试通过融合量化和图来解决。它(1)紧凑地复制并存储顶点邻居的量化码,以便可以顺序访问它们,并且(2)使用一种基于 SIMD 的实现 FastScan,基于量化码批量高效估计距离,以引导搜索过程。虽然 NGT-QG 相对于普通基于图的方法取得了有前景的改进,但它尚未充分释放量化和图融合的潜力。例如,它在最后需要重排序步骤来计算精确距离,这引入了额外的随机内存访问;其图结构并未考虑 FastScan 的批内特性进行联合设计,导致搜索中的计算浪费。在这项工作中,继 NGT-QG 之后,我们提出了一种名为 SymphonyQG 的新方法,它实现了量化与图的更和谐融合(例如,它避免了显式的重排序步骤,并优化图结构以更契合 FastScan)。基于在真实世界数据集上的大量实验,SymphonyQG 在时间-精度权衡方面建立了新的最先进水平。
英文摘要:
Approximate nearest neighbor (ANN) search in high-dimensional Euclidean space has a broad range of applications. Among existing ANN algorithms, graph-based methods have shown superior performance in terms of the time-accuracy trade-off. However, they face performance bottlenecks due to the random memory accesses caused by the searching process on the graph indices and the costs of computing exact distances to guide the searching process. To relieve the bottlenecks, a recent method named NGT-QG makes an attempt by integrating quantization and graph. It (1) replicates and stores the quantization codes of a vertex's neighbors compactly so that they can be accessed sequentially, and (2) uses a SIMD-based implementation named FastScan to efficiently estimate distances based on the quantization codes in batch for guiding the searching process. While NGT-QG achieves promising improvements over the vanilla graph-based methods, it has not fully unleashed the potential of integrating quantization and graph. For instance, it entails a re-ranking step to compute exact distances at the end, which introduces extra random memory accesses; its graph structure is not jointly designed considering the in-batch nature of FastScan, which causes wastes of computation in searching. In this work, following NGT-QG, we present a new method named SymphonyQG, which achieves more symphonious integration of quantization and graph (e.g., it avoids the explicit re-ranking step and refines the graph structure to be more aligned with FastScan). Based on extensive experiments on real-world datasets, SymphonyQG establishes the new state-of-the-art in terms of the time-accuracy trade-off.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。