用于流式近似最近邻搜索的图索引原地更新
In-Place Updates of a Graph Index for Streaming Approximate Nearest Neighbor Search
AI总结:
针对流式 ANNS 图索引难以高频删除并保持召回稳定的问题,提出 IP-DiskANN,通过原地处理插入与删除避免批量合并,并在标准基准上实现稳定召回及更优吞吐和更新速度。
摘要:
近似最近邻搜索(ANNS)索引是信息检索的基础组件,并广泛应用于数据库、搜索、推荐和 RAG 系统。在这些场景中,文档或其他对象以高速率插入工作集或从工作集中删除,因此需要对向量索引进行持续的流式更新。基于邻近图索引的算法是 ANNS 中最高效的索引,并赢得了许多基准竞赛。然而,在高速更新此类图索引的同时,还要在多次更新后保持稳定的召回率,颇具挑战。由于图是单向链接的,删除操作十分困难,因为没有快速方法找到被删除顶点的入边邻居。因此,为了更新图,FreshDiskANN 等最先进算法会将删除操作累积成批,并定期执行合并,移除指向已删除顶点的边并修改图,以确保召回率稳定。本文提出 IP-DiskANN(InPlaceUpdate-DiskANN),这是首个通过高效地原地处理每次插入和删除来避免批量合并的算法。我们使用标准基准进行的实验表明,在高召回率和低召回率区间内,IP-DiskANN 在各种漫长更新模式下均具有稳定的召回率。此外,其查询吞吐量和更新速度优于使用批量合并算法以及 HNSW 的方案。
英文摘要:
Indices for approximate nearest neighbor search (ANNS) are a basic component for information retrieval and widely used in database, search, recommendation and RAG systems. In these scenarios, documents or other objects are inserted into and deleted from the working set at a high rate, requiring a stream of updates to the vector index. Algorithms based on proximity graph indices are the most efficient indices for ANNS, winning many benchmark competitions. However, it is challenging to update such graph index at a high rate, while supporting stable recall after many updates. Since the graph is singly-linked, deletions are hard because there is no fast way to find in-neighbors of a deleted vertex. Therefore, to update the graph, state-of-the-art algorithms such as FreshDiskANN accumulate deletions in a batch and periodically consolidate, removing edges to deleted vertices and modifying the graph to ensure recall stability. In this paper, we present IP-DiskANN (InPlaceUpdate-DiskANN), the first algorithm to avoid batch consolidation by efficiently processing each insertion and deletion in-place. Our experiments using standard benchmarks show that IP-DiskANN has stable recall over various lengthy update patterns in both high-recall and low-recall regimes. Further, its query throughput and update speed are better than using the batch consolidation algorithm and HNSW.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。