B+ANN: A Fast Billion-Scale Disk-based Nearest-Neighbor Index

Selim Furkan Tekin, Rajesh BordawekararXiv 2025 · DOI

Abstract

B+ANN is a novel disk-based indexing algorithm that adapts the classic B+ tree structure for high-dimensional vector search. By combining hierarchical clustering with graph-like "skip-connections," it achieves up to a 50x speedup over the industry-standard HNSW on certain architectures while requiring significantly less memory and offering 24x faster build times than existing disk-based solutions like DiskANN. This approach addresses the memory hunger and cache inefficiency of traditional graph-based indices while introducing support for dissimilarity queries and temporal query correlation.

Introduction

Modern AI pipelines rely on Vector Databases (VDBs) to store and retrieve embeddings. The current gold standard for searching these databases is HNSW (Hierarchical Navigable Small Worlds). However, HNSW faces three major challenges: it is designed to live entirely in RAM, making billion-scale datasets prohibitively expensive; it performs "pointer-chasing" traversals that lead to high CPU cache miss rates; and it struggles with dissimilarity queries or exploiting temporal patterns in chat-based retrieval-augmented generation (RAG).

Methodology

B+ANN treats vector search like a relational database problem through a multi-phase approach:

  1. Recursive Partitioning: Using K-Means++ clustering, the vector space is recursively divided into blocks of semantically similar items.
  2. The B+ANN Tree: The B+ tree structure is repurposed where cluster centroids act as internal node keys (stored in memory), and actual vectors reside in leaf nodes on the disk. This ensures spatial locality, where semantically similar vectors are physically close on disk.
  3. Hybrid Traversal (Skip-Edges): To resolve the "edge problem" where neighbors might span different clusters, graph-like skip-connections are added between leaf nodes. Search begins as a tree traversal and transitions into a greedy graph search.
  4. Semantic Views: For temporally correlated queries, such as multi-turn chatbot conversations, B+ANN extracts a "view"—a small, in-memory sub-tree that handles subsequent related queries without additional disk I/O.
Comparison of traversal patterns between HNSW (a) and B+ANN (b), showing the significant reduction in steps required for B+ANN.

Experimental Evaluation

The authors evaluated B+ANN using three diverse benchmarks: Glove-1.2M (1.2 million word embeddings), SIFT-1B (1 billion image descriptors), and a Spotify dataset (243k vectors) for dissimilarity search testing.

Traversal Efficiency

By moving from random memory access to block-based I/O, B+ANN reduced L1 cache misses by over 19% compared to HNSW. Furthermore, B+ANN requires approximately 15x fewer "hops" (visited nodes) than HNSW to reach 95% recall, significantly mitigating the I/O bottleneck inherent in large-scale search.

Temporal Correlation and Views

In RAG scenarios, the probability of needing the same or nearby documents remains high across multiple turns. B+ANN’s "Views" exploit this temporal correlation to keep relevant data in the cache longer, maintaining high recall over sequences of related queries.

Analysis of document retrieval probability across turns (a) and the survival time of views in temporally related queries (b).

Key Results

  • Performance: On Arm64 architectures, B+ANN achieved a 10x speedup at 10-Recall and a 50x speedup at 100-Recall compared to HNSW.
  • Scalability: On the SIFT-1B dataset, B+ANN built its index 24x faster than DiskANN while using 350GB less memory during construction.
  • Disk Efficiency: The system reaches 99.8% recall in under 9ms on billion-scale data starting with zero pre-loaded data.
  • Dissimilarity Search: B+ANN achieved 100% recall on dissimilarity queries in less than 0.6ms, a task where traditional graph indices often fail.

Conclusion and Future Work

B+ANN demonstrates that relational database structures like B+ trees can be successfully adapted for high-dimensional vector search, offering superior locality and efficiency. While skip-edge construction currently accounts for 84% of indexing time, future optimizations in vector ordering within leaves and the exploration of low-precision representations (e.g., INT8) promise even greater performance gains.

Summary updated

BibTeX
@misc{tekin2025b,
  author = {Selim Furkan Tekin and Rajesh Bordawekar},
  title = {{B+ANN: A Fast Billion-Scale Disk-based Nearest-Neighbor Index}},
  year = {2025},
  eprint = {2511.15557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.15557},
}
Figure