Neighborhood Stability as a Measure of Nearest Neighbor Searchability
Organizations: University of Copenhagen, Copenhagen, Denmark · Northeastern University, Boston, MA, USA
Abstract
Clustering-based Approximate Nearest Neighbor Search (ANNS) organizes a set of points into partitions, and searches only a few of them to find the nearest neighbors of a query. Despite its popularity, there are virtually no analytical tools to determine the suitability of clustering-based ANNS for a given dataset -- what we call "searchability." To address that gap, we present two measures for flat clusterings of high-dimensional points in Euclidean space. First is Clustering-Neighborhood Stability Measure (clustering-NSM), an internal measure of clustering quality -- a function of a clustering of a dataset -- that we show to be predictive of ANNS accuracy. The second, Point-Neighborhood Stability Measure (point-NSM), is a measure of clusterability -- a function of the dataset itself -- that is predictive of clustering-NSM. The two together allow us to determine whether a dataset is searchable by clustering-based ANNS given only the data points. Importantly, both are functions of nearest neighbor relationships between points, not distances, making them applicable to various distance functions including inner product.
Figures & tables
| Standard KMeans | Spherical KMeans | |||
| point- Nsm radius | Mean | -quantile | Mean | -quantile |
| 0.81 | 0.86 | 0.79 | 0.85 | |
| 0.82 | 0.85 | 0.82 | 0.85 | |
| 0.74 | 0.81 | 0.74 | 0.81 | |
| 0.76 | 0.78 | 0.76 | 0.78 | |
| Combined | 0.79 | 0.83 | 0.82 | 0.85 |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Standard KMeans | Spherical KMeans | |||
| point- Nsm radius | Mean | -quantile | Mean | -quantile |
| 0.81 | 0.86 | 0.79 | 0.85 | |
| 0.82 | 0.85 | 0.82 | 0.85 | |
| 0.74 | 0.81 | 0.74 | 0.81 | |
| 0.76 | 0.78 | 0.76 | 0.78 | |
| Combined | 0.79 | 0.83 | 0.82 | 0.85 |
| Combined | |||
|---|---|---|---|
Approximate Nearest Neighbor Search
Approximate nearest neighbor search finds close vectors without exhaustive comparisons, enabling scalable retrieval in high-dimensional datasets.
See all 42 papers