Skip to content

Ultra-fast GPU Graph ANNS via Accuracy-Efficiency Co-design

ZeAi Sun, Xuhao Chen

cs.DB

Abstract

GPUs have been used to accelerate approximate nearest neighbor search (ANNS). While recent quantized graph ANNS has made significant progress on CPU, we find that directly porting CPU-side methods to GPU is ineffective. This is because using quantized distances to rank the beam perturbs traversal paths, increases search hops, and can offset the savings from cheaper distance computation. We present fastGANN, an accuracy- and hardware-aware GPU graph-ANNS method, to adaptively find the best accuracy-work balance and enhance GPU hardware utilization. fastGANN adopts a hybrid-precision search strategy. It preserves exact distances for precision-critical decisions, including beam ranking and expander selection, while using quantized estimates only for error-tolerant neighbor pruning. This reduces exact vector accesses without degrading convergence speed. However, pruning alone does not fully unlock the GPU; it leaves bandwidth underutilized. We thus introduce hardware-aware speculative expansion to explore multiple beam nodes per iteration, so that the work/bandwidth saved by pruning is converted into more parallelism. We also introduce a bounded phase-adaptive controller that adjusts pruning online from search progress and derives the speculation degree analytically from GPU bandwidth and occupancy, avoiding manual tuning. On an L40S GPU, across six datasets, fastGANN improves QPS at 95% recall@100 on average (geomean) by 6.5x over CAGRA, 5.2x over PathWeaver, and 4.6x over Jasper. We consistently observe significant speedups across various GPU models, graph types/degrees, recall targets, and quantizers. fastGANN scales to multi-GPU and outperforms cuVS by 3.4x on four H200 GPUs at billion scale.

Create a lesson