Introduction
In the era of Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG), vector search has evolved from a niche academic interest into a cornerstone of modern AI infrastructure. As datasets expand from millions to billions of vectors, existing systems face significant scaling challenges. This paper introduces SPIRE, a hierarchical distributed vector index designed to maintain high search accuracy while significantly improving throughput and latency at scale.
The Distributed Search Dilemma
Graph-based indexes, such as HNSW, offer exceptional performance on single machines but are difficult to distribute efficiently. Sharding a graph across multiple nodes often results in excessive "cross-node hops" during traversal, leading to high network latency. While clustering vectors into partitions can mitigate this, it often introduces Fidelity Loss. If a cluster's centroid poorly represents the vectors at its edges, the system must probe more partitions to maintain accuracy, which increases computational and I/O costs, ultimately reducing throughput.
Methods: Balancing Granularity and Hierarchy
SPIRE addresses these challenges through two primary innovations: balanced partition granularity and an accuracy-preserving recursive hierarchy.
Balanced Partition Granularity
The researchers identified a critical metric called partition density. Their analysis revealed a "sweet spot"—an inflection point—where partitions are coarse enough to minimize network hops but fine-grained enough for centroids to remain representative. By operating just before this point (empirically around 0.1), SPIRE avoids the exponential increase in read costs seen in other systems.
Accuracy-Preserving Recursive Hierarchy
SPIRE employs a bottom-up construction strategy. It clusters vectors into a base level, then recursively treats those centroids as a new dataset for the next level. This process continues until the root index is small enough to reside in a single server's memory. Each level is tuned to preserve end-to-end accuracy, simplifying the distributed search problem into manageable local indexing tasks.
System Architecture
SPIRE utilizes a disaggregated storage model where the root index is kept in RAM for speed, while lower-level indexes and raw vectors are stored on SSDs. To further optimize performance, SPIRE implements Near-Data Processing (NDP), allowing storage nodes to perform distance calculations locally and return only the top results, significantly reducing network bandwidth requirements.
Performance Evaluation
The system was evaluated using massive benchmarks, including SIFT1B, SPACEV1B, and a real-world Production-8B dataset containing 8 billion vectors.
Key Results
SPIRE demonstrates superior scalability and efficiency compared to state-of-the-art systems like DSPANN and Milvus+. On the 8-billion vector dataset, SPIRE achieved up to 9.64× higher throughput than DSPANN while maintaining lower average and tail (P99) latencies.
The system also showed linear scalability with additional nodes and demonstrated the potential to handle 1 trillion vectors with sub-20ms latency in simulated environments. Notably, SPIRE is I/O-bound, effectively saturating SSD throughput while maintaining low CPU (<40%) and network (<30%) utilization.
Conclusion and Future Work
SPIRE represents a significant advancement in billion-scale vector search by decoupling accuracy from partition size and leveraging hardware-efficient indexing. While the current implementation focuses on static indexes, future work may explore performance under high-velocity streaming updates and further automate the profiling required to find the optimal partition density for novel datasets.
Summary updated