Skip to main content
QUICK REVIEW

[Paper Review] Graph based Nearest Neighbor Search: Promises and Failures

Peng-Cheng Lin, Wan‐Lei Zhao|arXiv (Cornell University)|Apr 3, 2019
Advanced Image and Video Retrieval TechniquesComputer Science26 references10 citations
TL;DR

This paper investigates graph-based nearest neighbor search methods, particularly HNSW and diversified proximity graphs, revealing that hierarchical structures offer no significant advantage over flat graphs in high dimensions. It demonstrates that graph diversification enables flat graphs to match or exceed HNSW's speed while highlighting that all graph-based approaches face fundamental limitations due to the curse of dimensionality in high-dimensional spaces.

ABSTRACT

Recently, graph based nearest neighbor search gets more and more popular on large-scale retrieval tasks. The attractiveness of this type of approaches lies in its superior performance over most of the known nearest neighbor search approaches as well as its genericness to various metrics. In this paper, the role of two strategies, namely hierarchical structure and graph diversification that are adopted as the key steps in the graph based approaches, is investigated. We find the hierarchical structure could not achieve "much better logarithmic complexity scaling" as it was claimed in the original paper, particularly on high dimensional cases. Moreover, we find that similar high search speed efficiency as the one with hierarchical structure could be achieved with the support of flat k-NN graph after graph diversification. Finally, we point out the difficulty, that is faced by most of the graph based search approaches, is directly linked to "curse of dimensionality".

Motivation & Objective

  • To evaluate the effectiveness of hierarchical structures and graph diversification in graph-based nearest neighbor search.
  • To investigate why graph-based approaches degrade in high-dimensional data.
  • To compare the performance of HNSW and diversified flat k-NN graphs across varying dimensions.
  • To identify the root cause of performance degradation in high-dimensional nearest neighbor search.
  • To determine whether flat graphs with diversification can match or surpass hierarchical approaches.

Proposed method

  • The study compares HNSW and diversified proximity graph (DPG) approaches on synthetic and real datasets with increasing dimensionality.
  • It evaluates search efficiency by measuring the number of comparisons required to reach specific distance ranges from the query.
  • The analysis focuses on the search process in both 'far neighborhood' and 'close neighborhood' regions, particularly the latter's impact on performance.
  • The authors use a top-k list mechanism to simulate hill-climbing search and analyze convergence behavior in low vs. high dimensions.
  • They conduct experiments on datasets like RAND10M4D, RAND10M16D, RAND10M32D, and RAND1M100D to isolate dimensionality effects.
  • The study uses a visual and statistical analysis of comparison counts across distance ranges to illustrate inefficiencies in high-dimensional search.

Experimental results

Research questions

  • RQ1Does the hierarchical structure in HNSW provide a significant performance advantage over flat k-NN graphs in high-dimensional data?
  • RQ2Can graph diversification alone achieve comparable or better search efficiency than hierarchical structures?
  • RQ3Why do graph-based approaches fail in high-dimensional settings despite their success in low dimensions?
  • RQ4How does the 'curse of dimensionality' specifically affect the convergence and efficiency of hill-climbing search in k-NN graphs?
  • RQ5To what extent do top-k list size and neighborhood connectivity influence search performance in high-dimensional spaces?

Key findings

  • The hierarchical structure in HNSW provides only a 2x speedup over flat graphs in low-dimensional data (e.g., 4D), but this advantage vanishes as dimensionality increases beyond 32.
  • In high-dimensional data (e.g., 100D), the number of comparisons required in the 'close neighborhood' region dominates total cost, making hierarchical advantages negligible.
  • Flat k-NN graphs enhanced with graph diversification achieve similar or better search efficiency than HNSW, particularly in high-dimensional settings.
  • The 'curse of dimensionality' causes isolated neighborhoods in k-NN graphs, making it difficult for hill-climbing to escape local optima or efficiently explore dense regions.
  • In high dimensions, the 'close neighborhood' region becomes non-convex and disconnected in neighbor lists, leading to exhaustive search behavior that undermines efficiency.
  • When both data dimension and intrinsic dimension are high, all graph-based approaches suffer from similar inefficiencies, regardless of structural design.

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.