Passing the Baton: High Throughput Distributed Disk-Based Vector Search with BatANN
Nam Anh Dang, Ben Landrum, Ken Birman
TL;DR
BatANN addresses the challenge of scalable disk-based ANN on datasets that exceed single-node memory by distributing a global graph and exchanging full query states between servers. Its core innovation is asynchronous, state-passing beam search that preserves locality and minimizes inter-server round-trips, enabling near-linear throughput growth with additional servers while keeping latency low. Across 100M and 1B-scale benchmarks, BatANN significantly outperforms scatter-gather baselines and maintains efficient computation and I/O, demonstrating practical viability on standard TCP networks. The work provides open-source implementations and thoughtful design choices (head index, graph partitioning, and tuned I/O width) that advance high-throughput, low-latency distributed vector search on disk.
Abstract
Vector search underpins modern information-retrieval systems, including retrieval-augmented generation (RAG) pipelines and search engines over unstructured text and images. As datasets scale to billions of vectors, disk-based vector search has emerged as a practical solution. However, looking to the future, we need to anticipate datasets too large for any single server. We present BatANN, a distributed disk-based approximate nearest neighbor (ANN) system that retains the logarithmic search efficiency of a single global graph while achieving near-linear throughput scaling in the number of servers. Our core innovation is that when accessing a neighborhood which is stored on another machine, we send the full state of the query to the other machine to continue executing there for improved locality. On 100M- and 1B-point datasets at 0.95 recall using 10 servers, BatANN achieves 6.21-6.49x and 2.5-5.10x the throughput of the scatter-gather baseline, respectively, while maintaining mean latency below 6 ms. Moreover, we get these results on standard TCP. To our knowledge, BatANN is the first open-source distributed disk-based vector search system to operate over a single global graph.
