[Paper Review] Approximate Nearest Neighbor Search on High Dimensional Data --- Experiments, Analyses, and Improvement (v1.0)
This paper presents a comprehensive, fair evaluation of 16 state-of-the-art approximate nearest neighbor search (ANNS) algorithms across 20 diverse datasets, using multiple metrics and query workloads. It identifies key performance variations across datasets and proposes a new method that achieves high recall and efficiency across most settings, offering practical recommendations for algorithm selection.
Approximate Nearest neighbor search (ANNS) is fundamental and essential operation in applications from many domains, such as databases, machine learning, multimedia, and computer vision. Although many algorithms have been continuously proposed in the literature in the above domains each year, there is no comprehensive evaluation and analysis of their performances. In this paper, we conduct a comprehensive experimental evaluation of many state-of-the-art methods for approximate nearest neighbor search. Our study (1) is cross-disciplinary (i.e., including 16 algorithms in different domains, and from practitioners) and (2) has evaluated a diverse range of settings, including 20 datasets, several evaluation metrics, and different query workloads. The experimental results are carefully reported and analyzed to understand the performance results. Furthermore, we propose a new method that achieves both high query efficiency and high recall empirically on majority of the datasets under a wide range of settings.
Motivation & Objective
- To conduct a cross-disciplinary, comprehensive evaluation of state-of-the-art ANNS algorithms from databases, machine learning, multimedia, and industry practitioners.
- To address the lack of fair, consistent, and complete comparisons across algorithms, datasets, and evaluation metrics in prior studies.
- To identify performance discrepancies in existing benchmarks (e.g., ann-benchmark) and provide a reproducible, hardware-agnostic evaluation framework.
- To analyze algorithm robustness across varying datasets, query workloads, and parameter settings, especially in high-dimensional spaces.
- To provide rule-of-thumb recommendations for selecting ANNS algorithms based on dataset characteristics and application requirements.
Proposed method
- Evaluated 16 ANNS algorithms across three categories: LSH-based, space partitioning-based, and neighborhood-based, including KGraph, HNSW, DPG, Annoy, FLANN, and others.
- Implemented all algorithms in C++ with hardware-specific optimizations (e.g., SIMD, multi-threading, compiler flags) disabled to ensure fair comparison.
- Used 20 diverse datasets spanning multiple domains, including high-dimensional real-world data such as Yout, Gist, and Gauss.
- Measured performance across multiple metrics: search time, recall, index size, scalability, and robustness to parameter and workload variations.
- Analyzed structural properties of indexes using minHops (minimum number of hops to reach k-NN points) to explain performance differences.
- Proposed a new ANNS method that improves recall and efficiency by enhancing connectivity across clusters, particularly in datasets with well-separated clusters.
Experimental results
Research questions
- RQ1How do state-of-the-art ANNS algorithms perform across diverse datasets, query workloads, and evaluation metrics in high-dimensional spaces?
- RQ2Why do performance rankings vary significantly between benchmarks like ann-benchmark and this study, especially when hardware optimizations are disabled?
- RQ3What structural properties of index graphs (e.g., connectivity, minHops) explain differences in recall and efficiency across algorithms like KGraph, DPG, and HNSW?
- RQ4How do algorithmic choices—such as the use of reverse edges or diversification steps—affect performance on datasets with clustered or non-uniform data?
- RQ5Can a new ANNS method be designed that achieves both high recall and high efficiency across a wide range of datasets and settings?
Key findings
- KGraph performs poorly on datasets like Yout and Gauss due to disconnected index components, with 60.38% of points unreachable from any k-NN (infinite hops), while DPG and HNSW show significantly better connectivity (1.28% and 0% infinite hops on Yout).
- HNSW achieves the highest recall on Yout and Gist, with the largest proportion of data points having small minHops (≤5) to k-NN points, explaining its superior performance.
- Disabling hardware-specific optimizations (e.g., SIMD, multi-threading) reveals that algorithmic differences are more impactful than implementation tricks, and results align better with theoretical performance expectations.
- The performance of Annoy improved significantly in its latest version (randomized hierarchical 2-means trees), which may explain discrepancies with earlier evaluations based on older versions.
- KGraph achieves 100% recall when the query’s true nearest neighbor is used as the entrance point, confirming that its failure is due to poor index connectivity, not algorithmic weakness.
- The proposed new method improves recall and efficiency across most datasets by enhancing inter-cluster connectivity through diversification and reverse edge usage, outperforming existing methods in challenging, clustered datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.