cs.LGJul 1, 2026

Scaling Laws for Grid-Based Approximate Nearest Neighbor Search in High Dimensions

Authors: Matthew J LiuWei Hang ZhengVidhan PurohitSiqi XieChieh-En LiJerry LiNoah Flynn

Organizations: University of California, Berkeley · University of Toronto, St. George · Independent Researcher · University of Waterloo1

Abstract

Grid-based approaches to approximate nearest neighbor (ANN) search have been absent from modern scaling analyses. We present a systematic characterization of a multiprobe grid algorithm with respect to dataset size NN and dimensionality dd. Our experiments reveal a previously unreported dd-scaling crossover on the GloVe embedding family, in which multiprobe grid search maintains an approximately constant dimensional scaling exponent while other graph-, tree-, and partitioning-based methods exhibit degrading throughput. The advantage comes with near-linear query scaling in NN, but also with lower indexing cost than competing ANN methods. Our results suggest that grid-based methods such as multiprobe grid may be competitive in rebuild-heavy or high-dimensional settings where indexing cost and dimensional robustness dictate performance. More broadly, recent work has formalized self-attention as an ANN operation. Thus, the NN- and dd-scaling properties of ANN algorithms may guide cost analysis of efficient transformer architectures. Code is available at: https://github.com/weiz345/MultiProbeANN.

Explore similar work

CardsList