Capacity-Limited Failure in Approximate Nearest Neighbor Search on Image Embedding Spaces

Similarity search on image embeddings is a common practice for image retrieval in machine learning and pattern recognition systems. Approximate nearest neighbor (ANN) methods enable scalable similarity search on large datasets, often approaching sub-linear complexity. Yet, little empirical work has examined how ANN neighborhood geometry differs from that of exact <i>k</i>-nearest neighbors (<i>k</i>-NN) search as the neighborhood size increases under constrained search effort. This study quantifies how approximate neighborhood structure changes relative to exact <i>k</i>-NN search as <i>k</i> increases across three experimental conditions. Using multiple random subsets of 10,000 images drawn from the STL-10 dataset, we compute ResNet-50 image embeddings, perform an exact <i>k</i>-NN search, and compare it to a Hierarchical Navigable Small World (HNSW)-based ANN search under controlled hyperparameter regimes. We evaluated the fidelity of neighborhood structure using neighborhood overlap, average neighbor distance, normalized barycenter shift, and local intrinsic dimensionality (LID). Results show that exact <i>k</i>-NN and ANN search behave nearly identically when efSearch>k. However, as the neighborhood size grows and efSearch remains fixed, ANN search fails abruptly, exhibiting extreme divergence in neighbor distances at approximately k≈2-3.5×efSearch. Increasing index construction quality delays this failure, and scaling search effort proportionally with neighborhood size (efSearch=α×k with α≥1) preserves neighborhood geometry across all evaluated metrics, including LID. The findings indicate that ANN search preserves neighborhood geometry within its operational capacity but abruptly fails when this capacity is exceeded. Documenting this behavior is relevant for scientific applications that approximate embedding spaces and provides practical guidance on when ANN search is interchangeable with exact <i>k</i>-NN and when geometric differences become nontrivial.

Authors

Institutions

Publication Details

Journal
Journal of Imaging
Published
2026-01-25
DOI
https://doi.org/10.3390/jimaging12020055
Primary Topic
Advanced Image and Video Retrieval Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Capacity-Limited Failure in Approximate Nearest Neighbor Search on Image Embedding Spaces

Mike Busch, Morgan Roy Cooper
Journal of Imaging
Advanced Image and Video Retrieval Techniques
article

Capacity-Limited Failure in Approximate Nearest Neighbor Search on Image Embedding Spaces

Mike Busch, Morgan Roy Cooper
article en

Abstract

Similarity search on image embeddings is a common practice for image retrieval in machine learning and pattern recognition systems. Approximate nearest neighbor (ANN) methods enable scalable similarity search on large datasets, often approaching sub-linear complexity. Yet, little empirical work has examined how ANN neighborhood geometry differs from that of exact <i>k</i>-nearest neighbors (<i>k</i>-NN) search as the neighborhood size increases under constrained search effort. This study quantifies how approximate neighborhood structure changes relative to exact <i>k</i>-NN search as <i>k</i> increases across three experimental conditions. Using multiple random subsets of 10,000 images drawn from the STL-10 dataset, we compute ResNet-50 image embeddings, perform an exact <i>k</i>-NN search, and compare it to a Hierarchical Navigable Small World (HNSW)-based ANN search under controlled hyperparameter regimes. We evaluated the fidelity of neighborhood structure using neighborhood overlap, average neighbor distance, normalized barycenter shift, and local intrinsic dimensionality (LID). Results show that exact <i>k</i>-NN and ANN search behave nearly identically when efSearch>k. However, as the neighborhood size grows and efSearch remains fixed, ANN search fails abruptly, exhibiting extreme divergence in neighbor distances at approximately k≈2-3.5×efSearch. Increasing index construction quality delays this failure, and scaling search effort proportionally with neighborhood size (efSearch=α×k with α≥1) preserves neighborhood geometry across all evaluated metrics, including LID. The findings indicate that ANN search preserves neighborhood geometry within its operational capacity but abruptly fails when this capacity is exceeded. Documenting this behavior is relevant for scientific applications that approximate embedding spaces and provides practical guidance on when ANN search is interchangeable with exact <i>k</i>-NN and when geometric differences become nontrivial.

Journal of ImagingVol. 12(2)
Regis University (US)
Sustainable cities and communities
Openalex Percentile: Top 79%
Advanced Image and Video Retrieval Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.