Passing the Baton: High Throughput Distributed Disk-Based Vector Search with BatANN

Nam Anh Dang, Ben Landrum, Ken BirmanarXiv 2025 · DOI

Abstract

BatANN is a distributed, disk-based vector search system designed for web-scale retrieval. Unlike traditional scatter-gather approaches that search independent shards, BatANN operates over a single global graph index. It introduces a "state-passing" (or baton) architecture that forwards the entire query state between servers, minimizing network idle time. Evaluation on billion-scale datasets shows that BatANN achieves up to 6.5x the throughput of standard baselines while maintaining low latency on commodity hardware.

Introduction

Modern AI applications, such as retrieval-augmented generation (RAG) and large-scale image search, require efficient querying of billions of high-dimensional embeddings. When datasets exceed RAM capacity, disk-based indices like DiskANN are used. However, the throughput of a single server is eventually limited by local SSD bandwidth.

Scaling these systems typically involves distribution. Most current solutions use a scatter-gather approach, partitioning data into independent shards and searching every shard for every query. This is inherently inefficient as total work grows linearly with the number of shards. An alternative is a distributed global graph, but previous implementations suffered from high network overhead due to "request-reply" patterns, where orchestrators wait for remote data, leaving expensive CPU and I/O resources idle.

Methodology: The State-Passing Architecture

BatANN addresses these bottlenecks by replacing request-reply communication with an asynchronous state-passing mechanism.

The Baton Mechanism

When a search needs to explore graph nodes stored on a different server, BatANN packages the "query state"—including current best results, the search beam, and the query vector—and sends it to the target server. This server then continues the execution locally, effectively "passing the baton."

The BatANN state-passing architecture where query state is forwarded between servers.

System Components

  1. Global Graph Partitioning: To minimize inter-server transfers, BatANN uses neighborhood-aware partitioning, ensuring that high-dimensional neighbors are likely stored on the same physical machine.
  2. In-Memory Head Index: Each server maintains a small (1%) sample of the global graph in RAM to route incoming queries to the optimal starting point.
  3. Distributed I/O Pipelining: The system adapts beam search for a distributed environment. By increasing the pipeline width ($W$), more nodes are explored per "hop," reducing the frequency of network transfers.

Experimental Evaluation

The system was evaluated using three major benchmarks: BIGANN (SIFT1B), DEEP (100M), and MSSPACEV (1B).

Key Results

  • Throughput: BatANN achieved 6.21–6.49x the throughput of scatter-gather baselines on 100M-point scales and 2.5–5.10x at the 1B-point scale.
  • Latency: Mean latency remained under 6ms at 0.95 recall, demonstrating that the multi-hop approach does not compromise speed.
  • Scalability: The system showed near-linear weak scaling, where throughput increases proportionally with the addition of servers and data.

Insights and Discussion

A critical finding is the role of I/O pipeline width. Increasing the width from $W=1$ to $W=8$ significantly reduces the number of inter-server hops. As shown in the evaluation on the BIGANN-1B dataset, higher pipeline widths act as a "network compressor," directly boosting throughput by minimizing expensive cross-partition communication.

Impact of pipeline width (BW) on mean hops and inter-partition hops across recall levels.

Furthermore, BatANN demonstrates that specialized hardware like RDMA is not strictly necessary for high performance; near-linear scaling was achieved on standard 25Gb Ethernet using TCP.

Limitations and Future Work

While BatANN excels in throughput, it faces challenges with tail latency (99th percentile) due to its sequential multi-hop nature. Current versions lack robust fault tolerance, which could be addressed by integrating replication frameworks. Future optimizations include reducing message size by sending partial results directly to clients and extending the system to support dynamic updates on the global graph.

Summary updated

BibTeX
@misc{dang2025passing,
  author = {Nam Anh Dang and Ben Landrum and Ken Birman},
  title = {{Passing the Baton: High Throughput Distributed Disk-Based Vector Search with BatANN}},
  year = {2025},
  eprint = {2512.09331},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.09331},
}
Figure