Skip to main content
QUICK REVIEW

[Paper Review] The Role of Local Intrinsic Dimensionality in Benchmarking Nearest Neighbor Search

Martin Aumüller, Matteo Ceccarello|arXiv (Cornell University)|Jul 17, 2019
Data Management and AlgorithmsComputer Science25 references10 citations
TL;DR

This paper investigates local intrinsic dimensionality (LID) as a predictor of nearest neighbor (NN) search query difficulty, demonstrating that LID enables controlled selection of query sets across a spectrum of difficulty. It shows that higher LID correlates with worse performance across four NN algorithms (HNSW, FAISS-IVF, Annoy, ONNG), and introduces novel visualizations revealing that graph-based methods exhibit binary recall behavior, while others show continuous performance transitions.

ABSTRACT

This paper reconsiders common benchmarking approaches to nearest neighbor search. It is shown that the concept of local intrinsic dimensionality (LID) allows to choose query sets of a wide range of difficulty for real-world datasets. Moreover, the effect of different LID distributions on the running time performance of implementations is empirically studied. To this end, different visualization concepts are introduced that allow to get a more fine-grained overview of the inner workings of nearest neighbor search principles. The paper closes with remarks about the diversity of datasets commonly used for nearest neighbor search benchmarking. It is shown that such real-world datasets are not diverse: results on a single dataset predict results on all other datasets well.

Motivation & Objective

  • . The paper aims to assess whether LID can serve as a reliable indicator of query difficulty in nearest neighbor search.
  • It seeks to evaluate how LID distributions across real-world datasets influence the performance of state-of-the-art NN algorithms.
  • The study investigates whether existing benchmark datasets are diverse enough to reveal algorithmic strengths and weaknesses.
  • It introduces new visualization techniques to expose hidden performance patterns in NN algorithm behavior.

Proposed method

  • . The authors estimate local intrinsic dimensionality (LID) for each query point using the MLE estimator with k=100 neighbors.
  • They construct query sets based on LID values—selecting points with low, medium, high, and diverse LID estimates—for controlled performance evaluation.
  • Four state-of-the-art NN search implementations (HNSW, FAISS-IVF, Annoy, ONNG) are benchmarked across multiple real-world datasets.
  • Novel visualization techniques are introduced, including recall vs. LID density plots using hexagonal binning to show query performance distribution.
  • The study compares average performance metrics (throughput, recall) across datasets and query sets, while analyzing performance variance.
  • The authors analyze the diversity of benchmark datasets by assessing whether performance on one dataset predicts performance on others.

Experimental results

Research questions

  • RQ1. To what extent can local intrinsic dimensionality (LID) be used to control the difficulty of query sets in nearest neighbor search?
  • RQ2. How does the distribution of LID across a dataset influence the running time and recall performance of different NN algorithms?
  • RQ3. Do graph-based NN algorithms (e.g., HNSW, ONNG) exhibit fundamentally different performance behaviors compared to vector-quantization or tree-based methods under varying LID?
  • RQ4. Are commonly used benchmark datasets for NN search sufficiently diverse to reveal the relative strengths and weaknesses of different algorithmic approaches?
  • RQ5. Can novel visualization techniques reveal hidden performance patterns, such as binary vs. continuous recall behavior, that are obscured by average performance metrics?

Key findings

  • . Higher local intrinsic dimensionality (LID) consistently correlates with worse performance across all four NN implementations tested, indicating that LID is a strong predictor of query difficulty.
  • . The performance of graph-based algorithms (HNSW and ONNG) exhibits a binary behavior: they either retrieve all true nearest neighbors or fail completely, unlike the continuous performance transition seen in FAISS-IVF and Annoy.
  • . Despite differences in LID distributions, the relative performance ranking of the four algorithms remains consistent across datasets, suggesting limited diversity in current benchmark datasets.
  • . Visualization techniques such as recall vs. LID density plots with hexagonal binning reveal that high-LID queries are more likely to yield low recall, exposing performance uncertainty not visible in average metrics.
  • . The study finds that SIFT is easier than GLOVE for all algorithms, contrary to what LID distributions alone would predict, indicating that LID alone is not a sufficient predictor of relative performance.
  • . Query sets constructed to include diverse LID values produce more informative benchmarks than random sampling, as they contain a balanced mix of easy and hard queries, enabling better assessment of algorithm adaptability.

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.