Table of Contents
Fetching ...

A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search

Mengzhao Wang, Xiaoliang Xu, Qiang Yue, Yuxiang Wang

TL;DR

This work surveys graph-based ANNS methods, introducing a four-base-graph taxonomy and a seven-component evaluation pipeline to enable fair, fine-grained comparisons of 13 algorithms. It conducts extensive experiments across eight real-world and 12 synthetic datasets, revealing that RNG- and MST-based approaches often offer superior search performance, especially on hard datasets, while graph quality alone does not guarantee best results. The authors provide practical guidelines, performance trade-off analyses, and a design for an optimized method, highlighting the importance of neighbor distribution and efficient routing. They also discuss ML-based optimizations and hardware considerations as future directions to bridge the gap between research and scalable, real-time systems.

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.

A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Search

TL;DR

This work surveys graph-based ANNS methods, introducing a four-base-graph taxonomy and a seven-component evaluation pipeline to enable fair, fine-grained comparisons of 13 algorithms. It conducts extensive experiments across eight real-world and 12 synthetic datasets, revealing that RNG- and MST-based approaches often offer superior search performance, especially on hard datasets, while graph quality alone does not guarantee best results. The authors provide practical guidelines, performance trade-off analyses, and a design for an optimized method, highlighting the importance of neighbor distribution and efficient routing. They also discuss ML-based optimizations and hardware considerations as future directions to bridge the gap between research and scalable, real-time systems.

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.

Paper Structure

This paper contains 20 sections, 1 theorem, 4 equations, 27 figures, 22 tables, 1 algorithm.

Key Result

lemma 1

Given the $G(V,E)$ constructed by the neighbor selection of NSG, any a vertex $p \in V$ and the neighbor set $N(p)$ of $p$ on $G(V,E)$. $\forall x,y \in N(p)$, $\measuredangle xpy \geq 60^{\circ}$.

Figures (27)

  • Figure 1: A toy example for the graph-based ANNS algorithm.
  • Figure 2: Schematic diagram of different base graphs’ construction results on the same dataset with dimension $d=2$.
  • Figure 3: Summary of important representative graph-based ANNS algorithms
  • Figure 4: Roadmaps of graph-based ANNS algorithms. The arrows from a base graph (green shading) to an algorithm (gray shading) and from one algorithm to another indicate the dependence and development relationships.
  • Figure 5: The pipeline of graph-based ANNS algorithms. An algorithm can be divided into two coarse-grained components: index construction, search. We subdivide the index construction into five fine-grained components (C1–C5), the search into two fine-grained components (C6–C7).
  • ...and 22 more figures

Theorems & Definitions (11)

  • definition 1
  • definition 2
  • definition 3
  • definition 4
  • definition 5
  • definition 6
  • definition 7
  • definition 8
  • definition 9
  • definition 10
  • ...and 1 more