A Revisit of Hashing Algorithms for Approximate Nearest Neighbor Search
Not on the map. Why?
Abstract (arXiv)
Approximate Nearest Neighbor Search (ANNS) is a fundamental problem in many areas of machine learning and data mining. During the past decade, numerous hashing algorithms are proposed to solve this problem. Every proposed algorithm claims outperform other state-of-the-art hashing methods. However, the evaluation of these hashing papers was not thorough enough, and those claims should be re-examined. The ultimate goal of an ANNS method is returning the most accurate answers (nearest neighbors) in the shortest time. If implemented correctly, almost all the hashing methods will have their performance improved as the code length increases. However, many existing hashing papers only report the performance with the code length shorter than 128. In this paper, we carefully revisit the problem of search with a hash index, and analyze the pros and cons of two popular hash index search procedures. Then we proposed a very simple but effective two level index structures and make a thorough comparison of eleven popular hashing algorithms. Surprisingly, the random-projection-based Locality Sensitive Hashing (LSH) is the best performed algorithm, which is in contradiction to the claims in all the other ten hashing papers. Despite the extreme simplicity of random-projection-based LSH, our results show that the capability of this algorithm has been far underestimated. For the sake of reproducibility, all the codes used in the paper are released on GitHub, which can be used as a testing platform for a fair comparison between various hashing algorithms.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 Dec 2016.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 3; 2024: 0; 2025: 1.
5 papers.
- 2023A Comprehensive Survey on Vector Database: Storage and Retrieval Technique, Challengecited by 55
- 2022FINGER: Fast Inference for Graph-based Approximate Nearest Neighbor Searchcited by 4
- 2023AdANNS: A Framework for Adaptive Semantic Searchcited by 3
- 2025NeurStore: Efficient In-database Deep Learning Model Management Systemcited by 2
- 2023EHI: End-to-end Learning of Hierarchical Index for Efficient Dense Retrievalcited by 1
- 2025NeurStore: Efficient In-database Deep Learning Model Management System3 Sep 2025
- 2023A Comprehensive Survey on Vector Database: Storage and Retrieval Technique, Challenge18 Oct 2023
- 2023EHI: End-to-end Learning of Hierarchical Index for Efficient Dense Retrieval13 Oct 2023
- 2023AdANNS: A Framework for Adaptive Semantic Search30 May 2023
- 2022FINGER: Fast Inference for Graph-based Approximate Nearest Neighbor Search22 Jun 2022