Introduction
In the era of Large Language Models (LLMs) and Retrieval-Augmented Generation (RAG), vector search has scaled to billions of embeddings. Since these datasets exceed available RAM, they are typically stored on SSDs in an "out-of-core" configuration. However, existing out-of-core systems often assume a uniform data distribution, failing to account for the significant "semantic skew" found in real-world datasets. OrchANN addresses this by treating SSD I/O as a unified orchestration problem, optimizing indexing and routing for non-uniform data.
The Challenge of Semantic Skew
Current vector search systems face three primary bottlenecks when dealing with skewed data. First, they often apply uniform indexing, using the same index type for every cluster regardless of size. Second, static routing based on centroids often leads to inaccurate cluster selection. Finally, techniques like Product Quantization (PQ) result in high "fetch-to-discard" rates in dense regions, where the system reads a vector from the SSD only to realize it is not a top match.
Methods: Unified I/O Orchestration
OrchANN introduces a framework that dynamically adapts to the underlying data distribution through three key components:
Hybrid Scale-Aware Indexing
Rather than using a single index type, OrchANN employs an offline "Auto Profiler" to assign the optimal index to each cluster based on its size and hardware constraints. As shown in Figure 6, the performance (QPS) of different index types varies significantly with cluster size. By selecting Flat scans for small clusters and Graph or IVF structures for larger ones, OrchANN maximizes efficiency across the entire distribution.
Query-Aware Dynamic Graph Abstraction
The in-memory routing layer in OrchANN is not static. It tracks "hot regions" frequently visited by queries and dynamically updates the navigation graph. This improves routing accuracy over time, ensuring queries are directed to the most relevant clusters with minimal SSD overhead.
Multi-Level Pruning
OrchANN implements pruning at both the cluster and vector levels. At the cluster level, it uses "probe evidence" for early stopping. At the vector level, it utilizes strict triangle-inequality geometric bounds to reject candidates before they are fetched from the SSD, significantly reducing wasted I/O operations.
Evaluation and Results
OrchANN was evaluated on diverse datasets, including billion-scale benchmarks (SPACEV) and semantic corpora (HotpotQA, TriviaQA). Key performance highlights include:
- Throughput: OrchANN achieved up to 17.2× higher QPS than SPANN on semantic workloads.
- Latency: The system demonstrated up to 25.0× lower latency at comparable recall levels.
- Scalability: On the 1-billion vector SPACEV dataset, OrchANN maintained a 24.1× QPS advantage over DiskANN under a strict 5GB memory constraint.
- I/O Efficiency: At 97% recall, OrchANN required 7× fewer SSD accesses than DiskANN.
Conclusion
OrchANN demonstrates that indexing for billion-scale vector search should be treated as a resource-allocation problem rather than a one-size-fits-all geometric task. By acknowledging and optimizing for semantic skew through hybrid indexing and dynamic orchestration, OrchANN sets a new standard for out-of-core vector search performance. Future work will explore hardware specialization and support for dynamic, rapidly changing datasets.
Summary updated