How Should We Evaluate Data Deletion in Graph-Based ANN Indexes?
Tomohiro Yamashita, Daichi Amagata, Yusuke Matsui
TL;DR
This work addresses the challenge of evaluating and managing data deletion in graph-based ANNS under dynamic updates. It formalizes three deletion paradigms (logical, physical, rebuilding), integrates them into HNSW, and establishes a deployment-oriented evaluation protocol with metrics like 1-Recall@10 and QPS. The authors also introduce Deletion Control, an adaptive strategy that estimates dataset-dependent thresholds to switch deletion methods while maintaining target accuracy. Collectively, the paper provides methodological guidance and practical mechanisms for balancing deletion throughput, memory usage, and search performance in real-world dynamic ANN systems.
Abstract
Approximate Nearest Neighbor Search (ANNS) has recently gained significant attention due to its many applications, such as Retrieval-Augmented Generation. Such applications require ANNS algorithms that support dynamic data, so the ANNS problem on dynamic data has attracted considerable interest. However, a comprehensive evaluation methodology for data deletion in ANNS has yet to be established. This study proposes an experimental framework and comprehensive evaluation metrics to assess the efficiency of data deletion for ANNS indexes under practical use cases. Specifically, we categorize data deletion methods in graph-based ANNS into three approaches and formalize them mathematically. The performance is assessed in terms of accuracy, query speed, and other relevant metrics. Finally, we apply the proposed evaluation framework to Hierarchical Navigable Small World, one of the state-of-the-art ANNS methods, to analyze the effects of data deletion, and propose Deletion Control, a method which dynamically selects the appropriate deletion method under a required search accuracy.
