动态检测并修复硬度以实现高效近似最近邻搜索
Dynamically Detect and Fix Hardness for Efficient Approximate Nearest Neighbor Search
AI总结:
针对近似最近邻搜索中OOD查询精度下降问题,提出Escape Hardness度量并分两阶段动态修复图缺陷,显著提升搜索速度与构建效率。
摘要:
近似最近邻搜索(ANNS)已成为许多实际应用中的基础组件。在各种ANNS算法中,基于图的方法是最先进的。然而,ANNS在某些查询上常常遭受显著的精度下降,尤其是在分布外(OOD)场景中。为了解决这个问题,最近的一种名为RoarGraph的方法在基础数据和历史查询之间构建二部图,以弥合两种不同分布之间的差距。然而,它存在一些局限性:(1)在两个分布之间构建二部图缺乏理论支持,导致查询分布未被图索引有效利用。(2)在构建图之前需要足够数量的历史查询,并且构建时间较长。(3)当查询工作负载变化时,需要重建以保持高搜索精度。在本文中,我们首先提出Escape Hardness,一种评估查询周围图结构质量的度量。然后我们将图搜索分为两个阶段,并基于Escape Hardness动态识别和修复每个阶段中的缺陷图区域。(1)从入口点到查询附近。我们提出可达性修复(RFix),它增强了某些关键节点的可导航性。(2)在查询附近搜索。我们提出邻近图缺陷修复(NGFix),以改善查询密集分布区域的图连通性。大量实验结果表明,我们的方法在真实数据集上优于其他最先进的方法,在99%召回率下,与RoarGraph相比,OOD查询的搜索速度最高提升2.25倍,与HNSW相比提升6.88倍。与RoarGraph相比,它还将索引构建速度提升了2.35-9.02倍。
英文摘要:
Approximate Nearest Neighbor Search (ANNS) has become a fundamental component in many real-world applications. Among various ANNS algorithms, graph-based methods are state-of-the-art. However, ANNS often suffers from a significant drop in accuracy for certain queries, especially in Out-of-Distribution (OOD) scenarios. To address this issue, a recent approach named RoarGraph constructs a bipartite graph between the base data and historical queries to bridge the gap between two different distributions. However, it suffers from some limitations: (1) Building a bipartite graph between two distributions lacks theoretical support, resulting in the query distribution not being effectively utilized by the graph index. (2) Requires a sufficient number of historical queries before graph construction and suffers from high construction times. (3) When the query workload changes, it requires reconstruction to maintain high search accuracy. In this paper, we first propose Escape Hardness, a metric to evaluate the quality of the graph structure around the query. Then we divide the graph search into two stages and dynamically identify and fix defective graph regions in each stage based on Escape Hardness. (1) From the entry point to the vicinity of the query. We propose Reachability Fixing (RFix), which enhances the navigability of some key nodes. (2) Searching within the vicinity of the query. We propose Neighboring Graph Defects Fixing (NGFix) to improve graph connectivity in regions where queries are densely distributed. The results of extensive experiments show that our method outperforms other state-of-the-art methods on real-world datasets, achieving up to 2.25x faster search speed for OOD queries at 99% recall compared with RoarGraph and 6.88x faster speed compared with HNSW. It also accelerates index construction by 2.35-9.02x compared to RoarGraph.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。