跳到正文
arXiv (AI + Vision + Imaging)· Nina Mishra, Yonatan Naamad, Tal Wagner, Lichen Zhang·· 1 天前AI 评分17

基于随机游走的图近似最近邻搜索:支持动态删除的HNSW改进框架

Graph-based Nearest Neighbors with Dynamic Updates via Random Walks

AI 导读

针对HNSW图索引不支持删除已有数据的问题,提出基于随机游走的图ANN理论框架,并据此设计确定性删除算法,使删除后近似保持命中时间统计特性。实验显示该算法在查询延迟、召回率、删除时间与内存占用之间取得更优权衡。

正文 · 原文

arXiv:2512.18060v2 Announce Type: replace-cross Abstract: Approximate nearest neighbor search (ANN) is a common way to retrieve relevant search results, especially now in the context of large language models and retrieval augmented generation. One of the most widely used algorithms for ANN is based on constructing a multi-layer graph over the dataset, called the Hierarchical Navigable Small World (HNSW). While this algorithm supports insertion of new data, it does not support deletion of existing data. Moreover, deletion algorithms described by prior work come at the cost of increased query latency, decreased recall, or prolonged deletion time. In this paper, we propose a new theoretical framework for graph-based ANN based on random walks. We then utilize this framework to analyze a randomized deletion approach that approximately preserves hitting time statistics compared to the graph before deleting the point. However, this guarantee needs at least as many edge samples as there are edges in the clique over the neighbors of the deleted point. We then turn this theoretical framework into a deterministic deletion algorithm, and show that it provides a better tradeoff between query latency, recall, deletion time, and memory usage through an extensive collection of experiments.

来源:arXiv (AI + Vision + Imaging) · arxiv.org