atlas

Research map / Learning theory and algorithms / Sample complexity

Sort Before You Prune: Improved Worst-Case Guarantees of the DiskANN Family of Graphs

ICML 2025 · Learning theory and algorithms › Sample complexity · approach: Computational thresholds in graphs and structure

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces sorted α-reachable graphs to tighten worst-case approximation guarantees for DiskANN on Euclidean metrics (α/(α−1)) and gives the first worst-case analysis of beam search for k>1 nearest neighbors, with experiments on sorted vs unsorted DiskANN.

Problem

Worst-case guarantees for graph-based approximate nearest-neighbor search are known only for DiskANN with greedy search (approximation (α+1)/(α−1) for any metric), and nothing is proven for beam search returning k>1 candidates.

Approach

Exploit the sorting step in DiskANN's pruning (closest remaining candidate chosen first) to define sorted α-reachability, which adds the constraint D(v,t) ≤ D(v,a); combined with Euclidean geometry (SDP duality) this improves the approximation to α/(α−1), and the analysis is extended to beam search.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Sort candidate neighbors before pruning (ablation)DiskANN · SIFT1M (at 99% recall)QPS: 5% higher QPSHelped
Sort candidate neighbors before pruning (ablation)DiskANN · OpenAI (at 90% recall)QPS: 8% higher QPSHelped
Sort candidate neighbors before pruning (ablation)DiskANN · SPACEV (at 95% recall)QPS: 7.5% higher QPSHelped
Sort candidate neighbors before pruning (ablation)DiskANN · SIFT1M (at 99.9% recall)average distance comparisons: 10% fewer comparisonsHelped
Sort candidate neighbors before pruning (ablation)DiskANN · OpenAI (at 90% recall)average distance comparisons: 6% fewerHelped
Sort candidate neighbors before pruning (ablation)DiskANN · SPACEV (at 95% recall)average distance comparisons: 18% fewerHelped
Sort candidate neighbors before pruning (ablation)DiskANN · OpenAImean max approximation ratio: worse by 25% on OpenAI (at a 1.008 approx. ratio)Hurt
Sort candidate neighbors before pruning (ablation)DiskANN · SIFT1Mmean max approximation ratio: better by 9% on SIFT (at a 1.001 approx. ratio)Helped
Sort candidate neighbors before pruning (ablation)DiskANN · SPACEVmean max approximation ratio: 17% on SPACEV (at a 1.020 approx. ratio)Helped
Sort candidate neighbors before pruning (ablation)DiskANN disk-based index · SPACEV100@100 recall: approximately a 0.5% improved recallHelped

Surprising findings

Limitations

Experimental setup

Datasets: SIFT1M OpenAI embeddings (Arxiv abstracts) Cohere Wikipedia embeddings Microsoft SPACEV

Benchmarks: SIFT1M OpenAI Wikipedia SPACEV

Metrics: Recall100@100 QPS average distance comparisons mean max approximation ratio disk IOs build time average degree

Baselines: unsorted DiskANN Indyk & Xu (2024) bound

Builds on: DiskANN alpha-reachable graphs (Indyk & Xu)

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy