Relative NN-Descent: A Fast Index Construction for Graph-Based Approximate Nearest Neighbor Search
Open Access
- 26 October 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1659-1667
Abstract
Approximate Nearest Neighbor Search (ANNS) is the task of finding the database vector that is closest to a given query vector. Graph-based ANNS is the family of methods with the best balance of accuracy and speed for million-scale datasets. However, graph-based methods have the disadvantage of long index construction time. Recently, many researchers have improved the tradeoff between accuracy and speed during a search. However, there is little research on accelerating index construction. We propose a fast graph construction algorithm, Relative NN-Descent (RNN-Descent). RNN-Descent combines NN-Descent, an algorithm for constructing approximate K-nearest neighbor graphs (K-NN graphs), and RNG Strategy, an algorithm for selecting edges effective for search. This algorithm allows the direct construction of graph-based indexes without ANNS. Experimental results demonstrated that the proposed method had the fastest index construction speed, while its search performance is comparable to existing state-of-the-art methods such as NSG. For example, in experiments on the GIST1M dataset, the construction of the proposed method is 2x faster than NSG. Additionally, it was even faster than the construction speed of NN-Descent.Keywords
All Related Versions
Funding Information
- JST AIP Acceleration Research (JPMJCR23U2)
This publication has 14 references indexed in Scilit:
- Approximate Nearest Neighbor Search on High Dimensional Data — Experiments, Analyses, and ImprovementIEEE Transactions on Knowledge and Data Engineering, 2019
- Fast approximate nearest neighbor search with the navigating spreading-out graphProceedings of the VLDB Endowment, 2019
- ANN-Benchmarks: A Benchmarking Tool for Approximate Nearest Neighbor Algorithms2017
- FANNG: Fast Approximate Nearest Neighbour Graphs2016
- Pruned Bi-directed K-nearest Neighbor Graph for Proximity Search2016
- Approximate nearest neighbor algorithm based on navigable small world graphsInformation Systems, 2014
- Optimized Product QuantizationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2013
- Trinary-Projection Trees for Approximate Nearest Neighbor SearchIEEE Transactions on Pattern Analysis and Machine Intelligence, 2013
- Scalable k-NN graph construction for visual descriptors2012
- Efficient k-nearest neighbor graph construction for generic similarity measures2011