Skip to main content
QUICK REVIEW

[Paper Review] A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search

Mengzhao Wang, Xiaoliang Xu|arXiv (Cornell University)|Jan 29, 2021
Data Management and AlgorithmsComputer Science10 citations
TL;DR

This paper presents a comprehensive survey and experimental comparison of 13 representative graph-based approximate nearest neighbor search (ANNS) algorithms, introducing a new taxonomy and fine-grained pipeline for fair evaluation. It identifies key design principles through uniform testing on 20 diverse datasets, leading to an optimized algorithm that outperforms state-of-the-art methods in accuracy-efficiency trade-off, with improved construction speed and memory efficiency.

ABSTRACT

Approximate nearest neighbor search (ANNS) constitutes an important operation in a multitude of applications, including recommendation systems, information retrieval, and pattern recognition. In the past decade, graph-based ANNS algorithms have been the leading paradigm in this domain, with dozens of graph-based ANNS algorithms proposed. Such algorithms aim to provide effective, efficient solutions for retrieving the nearest neighbors for a given query. Nevertheless, these efforts focus on developing and optimizing algorithms with different approaches, so there is a real need for a comprehensive survey about the approaches' relative performance, strengths, and pitfalls. Thus here we provide a thorough comparative analysis and experimental evaluation of 13 representative graph-based ANNS algorithms via a new taxonomy and fine-grained pipeline. We compared each algorithm in a uniform test environment on eight real-world datasets and 12 synthetic datasets with varying sizes and characteristics. Our study yields novel discoveries, offerings several useful principles to improve algorithms, thus designing an optimized method that outperforms the state-of-the-art algorithms. This effort also helped us pinpoint algorithms' working portions, along with rule-of-thumb recommendations about promising research directions and suitable algorithms for practitioners in different fields.

Motivation & Objective

  • To provide a systematic, fair, and comprehensive comparison of 13 representative graph-based ANNS algorithms under a unified evaluation framework.
  • To identify the strengths, weaknesses, and performance trends of different algorithmic components across diverse datasets with varying sizes and characteristics.
  • To derive actionable design principles for improving ANNS algorithms based on empirical findings from extensive experiments.
  • To develop an optimized ANNS algorithm that surpasses existing state-of-the-art methods in accuracy, efficiency, and memory usage.
  • To guide practitioners and researchers in selecting appropriate algorithms based on dataset properties and application requirements.

Proposed method

  • Proposes a new seven-component taxonomy to decompose graph-based ANNS algorithms into distinct, analyzable phases: index construction, neighbor selection, candidate set management, graph pruning, connectivity maintenance, search initialization, and routing strategy.
  • Employs a fine-grained, modular pipeline to isolate and evaluate individual algorithm components independently while maintaining consistency across all experiments.
  • Uses a uniform test environment across eight real-world and 12 synthetic datasets to ensure fair comparison of algorithm performance.
  • Introduces a novel optimized algorithm (OA) that integrates the best-performing components from the evaluated algorithms, including NN-Descent for initialization, C2_NSSG for candidate selection, C3_NSG for pruning, and C7_HCNNG/C7_NSW for two-stage search routing.
  • Applies depth-first traversal to ensure graph connectivity during index construction and uses random seed selection for search initiation.
  • Employs recall@k and speedup as primary metrics to evaluate accuracy and efficiency trade-offs across all configurations.

Experimental results

Research questions

  • RQ1How do different graph-based ANNS algorithms perform across diverse real-world and synthetic datasets with varying dimensions, sizes, and data distributions?
  • RQ2Which algorithmic components (e.g., neighbor selection, pruning, routing) have the most significant impact on accuracy and efficiency?
  • RQ3What are the relative strengths and weaknesses of RNG-based, MST-based, and KNNG/DG-based graph structures in ANNS?
  • RQ4Can a unified evaluation framework reveal consistent performance trends and design principles across multiple datasets and algorithms?
  • RQ5How can the insights from component-level analysis be used to design a new, optimized ANNS algorithm that outperforms existing state-of-the-art methods?

Key findings

  • The optimized ANNS algorithm (OA) achieves superior performance in the accuracy-efficiency trade-off, outperforming all evaluated state-of-the-art algorithms on both real-world and synthetic datasets.
  • RNG-based algorithms (e.g., HNSW, NSG) consistently outperform KNNG- and DG-based counterparts, especially on high-dimensional and hard datasets, confirming their dominance in current research.
  • MST-based algorithms show strong performance, particularly on challenging datasets, indicating their potential as a promising alternative to RNG-based methods.
  • Component-level analysis reveals that neighbor selection (C2_NSSG) and pruning (C3_NSG) significantly improve search quality and reduce candidate set size, directly enhancing efficiency.
  • The use of two-stage routing (C7_HCNNG followed by C7_NSW) improves search accuracy and convergence speed, especially in high-dimensional spaces.
  • Graph construction time remains a major bottleneck, with graph-based methods having higher construction cost than hashing, tree, or quantization-based alternatives, highlighting a key challenge for real-time indexing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.