Fast Graph Vector Search via Hardware Acceleration and Delayed-Synchronization Traversal

Wenqi Jiang, Hang Hu, Torsten Hoefler, Gustavo Alonso

TL;DR

This paper introduces Falcon, a novel hardware accelerator for graph-based vector search (GVS), and Delayed-Synchronization Traversal (DST), an optimized traversal algorithm. Together, they achieve significant reductions in search latency and energy consumption compared to existing CPU and GPU-based GVS systems, making large-scale vector search more efficient for applications like LLMs and recommendation systems.

What Problem Does This Paper Address?

In today's data-driven world, systems like large language models (LLMs), search engines, and recommendation engines heavily rely on vector search to find similar items in massive datasets. Approximate Nearest Neighbor (ANN) search, particularly graph-based vector search (GVS), offers a good balance of speed and accuracy. However, existing GVS systems face challenges in achieving low latency, especially for real-time applications. This is due to limitations in current hardware architectures (CPUs and GPUs) that struggle with the inherent sequential nature of graph traversals and the high synchronization overhead when trying to parallelize them. Furthermore, existing hardware accelerators are often limited to specific graph structures like HNSW, hindering their adaptability to newer, more efficient graph algorithms.

Methods

The paper proposes a co-design approach, combining hardware and algorithmic innovations:

  • Falcon: A Hardware GVS Accelerator: Falcon is a specialized hardware accelerator designed for GVS. It features:
  • Efficient GVS Operators: Dedicated hardware units for core GVS operations.
  • Pipelined Execution: Overlapping of GVS stages to improve throughput.
  • On-chip Bloom Filter: Minimizes memory accesses by efficiently tracking visited nodes, reducing latency and power consumption.
  • Networked Service: Integrated TCP/IP stack allows direct access, reducing end-to-end latency.
  • Flexible Graph Support: Designed to work with various graph structures, not just HNSW.
  • Parallelism Variants: Supports both "across-query parallelism" (handling multiple queries simultaneously) and "intra-query parallelism" (maximizing resources for a single query to reduce its latency).
  • Delayed-Synchronization Traversal (DST): An Optimized Algorithm: DST is an algorithm designed to work in tandem with hardware accelerators like Falcon. It addresses the limitations of the traditional Best-First Search (BFS) algorithm:
  • Relaxed Traversal Order: DST relaxes the strict greedy traversal order of BFS.
  • Delayed Synchronization: Instead of synchronizing after every candidate evaluation, DST allows multiple candidate groups to be processed in the pipeline, keeping hardware resources busy and minimizing idle time.
  • Improved Accelerator Utilization: By keeping PEs (processing elements) more consistently utilized, DST significantly boosts search performance and energy efficiency.
  • Enhanced Recall: The relaxed traversal can explore more paths, potentially leading to better recall without compromising latency.

Datasets

The paper evaluates its approach on several standard datasets:

  • SIFT1M: A dataset of 1 million SIFT features (128-dimensional).
  • Deep1M: A dataset of 1 million deep descriptors (96-dimensional).
  • SPACEV1B: A dataset of natural language embeddings (100-dimensional).

The authors also mention using subsets of these datasets for experiments, specifically mentioning "ten million vectors" for GPU and FPGA memory constraints.

Key Insights and Ideas

  • Hardware-Algorithm Co-design is Crucial: The paper strongly argues that achieving low-latency, high-efficiency GVS requires simultaneous optimization of both hardware architecture and traversal algorithms. Neither alone is sufficient.
  • BFS is Inefficient on Parallel Hardware: The greedy, sequential nature of BFS, while effective on CPUs, leads to significant under-utilization of parallel hardware like FPGAs and GPUs.
  • Delayed Synchronization Unlocks Parallelism: By strategically delaying synchronization points, DST allows for continuous processing of candidate nodes, dramatically improving hardware utilization and thus performance.
  • Bloom Filters are Key for Memory Efficiency: Using on-chip Bloom filters to track visited nodes is a critical optimization for reducing off-chip memory accesses, a major bottleneck in GVS.
  • Intra-query Parallelism Benefits from DST: While across-query parallelism is useful for batching, DST's ability to keep multiple processing units busy on a single query makes intra-query parallelism particularly effective for minimizing individual query latency.

Key Results

  • Latency Reduction: Falcon with DST achieves up to 4.3x lower latency than CPU-based GVS and 19.5x lower latency than GPU-based GVS.
  • Energy Efficiency: Falcon with DST offers up to 8.0x better energy efficiency than CPU-based GVS and 26.9x better than GPU-based GVS.
  • DST Performance: The DST algorithm itself provides a 1.7x to 2.9x speedup over BFS on Falcon, while also improving recall.
  • Scalability: DST demonstrates significantly better performance scalability with increasing numbers of processing units compared to BFS.
  • Application Speedup: Deploying Falcon in recommender and RAG systems can provide end-to-end speedups of up to 1.60x.

Limitations and Future Work

  • Parameter Tuning: DST introduces parameters (number of candidate groups mg, candidates per group mc) that require empirical tuning for optimal performance, as analytical modeling is challenging due to data variance.
  • Insertion/Deletion/Updates: The current Falcon prototype focuses on search. Future work could explore efficient mechanisms for handling data insertions, deletions, and updates, potentially by offloading these operations to CPUs.
  • Scale-out: The current prototype is limited by the number of available FPGAs. Future work could focus on scaling out the system by partitioning datasets and distributing them across multiple Falcon nodes.
  • Hardware Portability: While the architecture is portable to other FPGAs and ASICs, specific optimizations might be needed for different platforms.
  • Alternative Hardware: The paper suggests that Falcon's principles can be applied to other hardware backends like ASICs, potentially integrating with technologies like HBM for even greater performance.

Summary updated

BibTeX
@article{jiang2025fast,
  author = {Wenqi Jiang and Hang Hu and Torsten Hoefler and Gustavo Alonso},
  title = {{Fast Graph Vector Search via Hardware Acceleration and Delayed-Synchronization Traversal}},
  journal = {Proc. VLDB Endow.},
  year = {2025},
  url = {https://openreview.net/forum?id=8vCBcKhT8V},
}
Figure