PilotANN: Memory-Bounded GPU Acceleration for Vector Search

Yuntao Gui, Peiqi Yin, Xiao Yan, Chaorui Zhang, Weixi Zhang, James ChengarXiv 2025 · DOI

Abstract

Approximate Nearest Neighbor Search (ANNS) is a cornerstone of modern retrieval-augmented generation (RAG) and generative AI. However, current hardware presents a dilemma: CPUs offer high memory capacity but limited parallel throughput, while GPUs provide massive parallelism but are constrained by limited VRAM. PilotANN bridges this gap with a hybrid CPU-GPU system that uses the GPU as a "pilot" to navigate massive datasets residing in CPU memory. By employing dimensionality reduction and a multi-stage traversal pipeline, PilotANN achieves up to 5.4× throughput speedups over state-of-the-art CPU methods and handles datasets up to 14.9× larger than the available GPU memory.

Introduction

The explosion of high-dimensional vector embeddings from Transformer models has made vector search a critical bottleneck. Production datasets often reach hundreds of gigabytes, far exceeding the 24GB–80GB capacity of standard GPUs. Existing solutions typically fall into two camps: CPU-only implementations like HNSW, which struggle with high-dimensional throughput, or GPU-centric methods that require expensive multi-GPU clusters or suffer from performance degradation when using Unified Virtual Memory (UVM). PilotANN introduces a "staged data ready" paradigm to enable efficient billion-scale search on a single commodity GPU.

System Architecture and Methodology

The core of PilotANN is its Multi-stage ANNS Processing pipeline, which intelligently distributes the search workload between the GPU and CPU.

The PilotANN multi-stage processing pipeline, showing the division of labor between GPU (piloting) and CPU (refinement and final traversal).

The pipeline consists of three primary phases:

  1. GPU Piloting: The GPU stores a "sketch" of the dataset—a combination of a sampled subgraph and dimensionality-reduced vectors (via SVD). It performs the initial graph traversal to identify a candidate neighborhood.
  2. Residual Refinement (CPU): The CPU receives these candidates and calculates full distances by incorporating the "residual" vector components discarded during SVD, allowing for precise re-ranking.
  3. Final Traversal (CPU): Using the refined candidates as high-quality starting points, the CPU performs a final greedy search on the full-dimensional graph to ensure high recall.

To further optimize performance, PilotANN utilizes Fast Entry Selection (FES). Instead of random entry points, FES leverages GPU-optimized matrix multiplication (GEMM) to identify optimal starting nodes, reducing the total number of graph hops required.

Experimental Evaluation

PilotANN was evaluated on four 100-million scale datasets: DEEP (96D), T2I (200D), WIKI (768D), and LAION (768D). The index sizes ranged from 59.6 GB to 288.2 GB, all significantly larger than the 24GB VRAM of the NVIDIA A10 GPU used for testing.

Performance Results

PilotANN demonstrates superior throughput across all tested datasets while maintaining high recall levels.

Throughput (QPS) vs. Recall@10 comparison across four 100M-scale datasets, showing PilotANN significantly outperforming HNSW-CPU and RUMMY.

Key findings include:

  • Throughput Gains: PilotANN achieved a 3.9× to 5.4× speedup in queries per second (QPS) compared to the industry-standard HNSW CPU implementation at 0.90 recall.
  • Memory Efficiency: The system successfully indexed the 288GB LAION dataset using only 19.4GB of GPU memory, representing a 14.9× memory oversubscription.
  • Cost Efficiency: PilotANN provided 2.3× to 3.2× better performance-per-dollar than CPU-only solutions, even accounting for the higher cost of GPU instances.

Conclusion and Future Work

PilotANN proves that low-dimensional sketches are sufficient for effective graph navigation, allowing GPUs to accelerate searches on datasets that do not fit in VRAM. While pure-GPU solutions like CAGRA may be faster for small datasets, PilotANN's hybrid approach is essential for large-scale, memory-bounded scenarios. Future work includes integrating quantization techniques like Product Quantization (PQ) to further scale the system toward billion-scale search on single-workstation hardware.

Summary updated

BibTeX
@misc{gui2025pilotann,
  author = {Yuntao Gui and Peiqi Yin and Xiao Yan and Chaorui Zhang and Weixi Zhang and James Cheng},
  title = {{PilotANN: Memory-Bounded GPU Acceleration for Vector Search}},
  year = {2025},
  eprint = {2503.21206},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.21206},
}
Figure