NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Prune, Don’t Rebuild: Efficiently Tuning $\alpha$-Reachable Graphs for Nearest Neighbor Search

Zachary Ives, Jiaming Liang, Ashwin Padaki, Erik Waingarten, Tian ZhangNeurIPS 2026

TL;DR

Finding the perfect trade-off between speed, memory, and accuracy in modern vector databases usually requires rebuilding massive graph indexes from scratch over and over again. This paper shows that you don't need to rebuild at all: you can build one dense, high-accuracy graph and mathematically "prune" it down to smaller, faster configurations. This simple post-hoc shortcut speeds up hyperparameter tuning by up to 73× while preserving theoretical worst-case guarantees.

What Problem Does This Paper Address?

Behind modern AI applications like Retrieval-Augmented Generation (RAG) and recommendation engines lies Approximate Nearest Neighbor (ANN) search—the art of quickly finding the closest matching data points in high-dimensional space. State-of-the-art systems (like Microsoft’s CosmosDB and Milvus) rely on graph-based algorithms like DiskANN, where data points are nodes connected by navigable edges.

When building a DiskANN graph, a key parameter called $\alpha$ controls the graph's connectivity, known theoretically as $\alpha$-reachability. Higher $\alpha$ values keep more edges, yielding higher search accuracy at the cost of larger memory footprints and slower queries. Lower $\alpha$ values create sparser, faster graphs.

The catch? In practice, nobody knows the ideal $\alpha$ for their specific latency and memory budget ahead of time. Finding that sweet spot requires building an entire graph, testing it, throwing it away, and rebuilding from scratch with a new $\alpha$—a brutally expensive trial-and-error bottleneck at scale.

Methods

Instead of rebuilding from the ground up, the authors propose RP-TUNING, a lightweight post-hoc algorithm.

Standard DiskANN construction uses a subroutine called ROBUSTPRUNE to thin out redundant edges during index creation: if getting from node $p$ to node $p'$ is already made substantially easier (by a factor of $\alpha$) by hopping through an intermediate neighbor $p^*$, the direct edge $(p, p')$ is snipped. Crucially, standard ROBUSTPRUNE evaluates neighbors sorted from closest to farthest.

What's new here is applying ROBUSTPRUNE after construction as a standalone tuning knob. You start with a single, high-quality base graph built with a high parameter $\alpha_1$. To test a sparser target $\alpha_2 < \alpha_1$, RP-TUNING simply runs ROBUSTPRUNE strictly over the existing out-neighbors of each node in the already-sparse base graph, bypassing the costly global search required during full index construction. The authors also use geometric optimization and semi-definite programming to prove mathematically what happens to the graph's $\alpha$-reachability after this secondary haircut.

Datasets

The authors evaluate RP-TUNING on four standard, publicly available 1-million-vector benchmarks using Euclidean distance (no new datasets were introduced):

  • SIFT-1M (128-dimensional classical image features) and GIST-1M (960-dimensional global image descriptors) from ANN-Benchmarks.
  • Deep-1M (96-dimensional deep neural network embeddings) from ANN-Benchmarks.
  • MSSPACEV-1M (100-dimensional Bing web query embeddings) from the BigANN benchmark.

Key Insights and Ideas

  • Sorting isn't just a heuristic; it saves the math: If you prune neighbors in an arbitrary, unsorted order, worst-case reachability guarantees collapse below 1 (meaning greedy search isn't guaranteed to make progress). Simply sorting neighbors by distance to the pivot point before pruning forbids pathological edge deletions and keeps worst-case guarantees intact.
  • Euclidean geometry gives you a free lunch: In general metric spaces, three neighbors can sit on a unit sphere around a point while remaining collinear, creating a tough worst-case scenario for pruning. In Euclidean space, the curvature of a sphere bends those points inward toward each other, naturally yielding tighter, superior theoretical reachability bounds!
Figure 2: The settings that achieve optimal objectives in the optimization problem in Lemma 3.6 for (a) general metric spaces and (b) Euclidean metrics.
  • Smart pruning beats random sparsity: Comparing RP-TUNING against random edge dropout (deleting the exact same fraction of edges at random) shows random dropout severely degrades search accuracy. RP-TUNING works because it selectively preserves long-range navigable shortcuts, not just because it makes the graph smaller.

Key Results

The authors built base DiskANN graphs at $\alpha_1 = 1.5$ and tuned them across four smaller targets ($\alpha_2 \in \{1.4, 1.3, 1.2, 1.1\}$), measuring accuracy via 100-Recall@100 against Queries Per Second (QPS):

  • Massive Tuning Speedups: Across the cumulative four-step tuning sweep, RP-TUNING is 31× faster on SIFT, 41× faster on Deep, 64× faster on MSSPACEV, and 73× faster on GIST (finishing in ~51 minutes vs. over 62 hours for full rebuilds). Single-parameter speedups hit up to 91× (GIST at $\alpha = 1.4$).
  • Competitive (and Sometimes Better) Search Performance: Pruned graphs match—and in high-QPS, low-latency regimes on SIFT and Deep, actually exceed—the recall of fully rebuilt graphs. On GIST and MSSPACEV, pruning unlocks higher maximum QPS ceilings and smaller memory footprints (e.g., an average degree of 59.1 vs. 63.3 on MSSPACEV) for comparable accuracy.
  • Cross-Algorithm Generalizability: The authors also demonstrate in their appendix that RP-TUNING improves recall-QPS trade-offs when applied to HNSW, another dominant graph-based ANN index.

Limitations and Future Work

  • Vacuous Bounds in Certain Regimes: While real-world performance stays strong, the theoretical worst-case reachability bound ($\frac{\alpha_1\alpha_2}{\alpha_1+\alpha_2}$ for general metrics) can still dip below 1 for certain parameter pairs (e.g., $\alpha_1 = 2, \alpha_2 = 1.5$ yields $6/7$).
  • One-Way Street: Pruning can only remove edges to decrease $\alpha$ (trading accuracy for speed/space). Designing fast post-hoc algorithms that can add edges to increase reachability without rebuilding is an open problem for future work.
  • Scope of Graph Algorithms: Empirical testing was limited to DiskANN and HNSW, leaving open how well RP-TUNING translates to other graph-based ANN architectures.

Summary updated

BibTeX
@inproceedings{ives2026prune,
  author = {Zachary Ives and Jiaming Liang and Ashwin Padaki and Erik Waingarten and Tian Zhang},
  title = {{Prune, Don’t Rebuild: Efficiently Tuning $\textbackslash\{\}alpha$-Reachable Graphs for Nearest Neighbor Search}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hgpJ8cCzN0},
}
Figure