Variants of Beam Search for DiskANN
Abstract
Graph-based data structures such as DiskANN, HNSW, and NSG constitute the state of the art for large-scale approximate nearest-neighbor (ANN) search. Indyk and Xu introduced the notion of -reachable graphs, which include graphs built by DiskANN's slow-preprocessing construction, and proved that greedy search achieves an approximation factor of . Independently, Al-Jazzazi et al. proposed adaptive beam search (ABS) with a relaxation parameter , showing a approximation on navigable graphs (), where greedy search admits no guarantees. In this work, we unify and generalize these results by proving that ABS with parameter on -reachable graphs achieves an approximation of for any metric. Moreover, on sorted -reachable graphs (introduced by Gollapudi et al.) under the metric, we obtain the tighter bound . Beyond these theoretical results, we design a beam predictor using features inspired by fine-grained analysis of ABS, trained via a constrained objective that minimizes mean distance computations subject to a target recall. On three 100-million-point benchmarks, using graphs built by DiskANN's practical construction, beam predictor lowers mean query latency on SSD-resident indices at matched recall by up to relative to classical beam search (CBS). Relative to ABS, it is faster in of settings, by up to , and at most slower in the other ; at recall, its advantage over ABS grows from -- for neighbors to -- for neighbors. In memory, it needs -- fewer distance computations than CBS and -- fewer than ABS.
Create a lesson
Related papers
Efficient Privacy-Preserving High-Dimensional Approximate Nearest Neighbor Search
Shared title terminology · Lyu Xu, Guozhong Li, Qichen Wang
Optimal Pattern-Avoidance Bounds for Binary Search Trees
Shared title terminology · Anita Dürr, Arturo Merino, Karol Węgrzycki et al.
How rigid is maximum cardinality search? Stability and locality of MCS orderings under edge updates, verified in Lean
Shared title terminology · Md Thoriqul Islam Thonmay, Gregory Morse
Finding the Farthest in High Dimensions: Dynamic Diameter and Farthest-Neighbor Search
Shared title terminology · Mohammad Hajiaghayi, Morteza Monemizadeh
A Binary Search Tree with the Unified Bound
Shared title terminology · Yang Cao, Haoran Qi, Hanzhi Wang