Abstract
High-dimensional vector search is critical for modern AI applications, yet scaling to billion-scale datasets faces a fundamental "performance tension" between computational efficiency and network overhead. We present CoTra, a distributed system that utilizes collaborative traversal to bridge this gap. By distinguishing between primary and secondary data partitions and employing RDMA-optimized communication modes, CoTra achieves near-linear throughput scaling (up to 13.4x on 16 machines) and outperforms existing distributed baselines by over 2x.
Introduction
Vector search—finding the most similar items in massive embedding datasets—powers modern Retrieval-Augmented Generation (RAG) and recommendation systems. As datasets grow to billions of vectors, they exceed the memory and bandwidth of single machines. Distributed scaling typically follows two paths: Independent Sharding, which is computationally wasteful as every machine must search every query, and Global Indexing, which suffers from network latency stalls even with RDMA. CoTra addresses this tension by prioritizing search quality and minimizing network chatter through a hybrid traversal strategy.
Methodology: Collaborative Traversal
CoTra introduces a "Collaborative Traversal" strategy designed to maintain the pruning power of a global index while minimizing network-induced stalls. The system relies on three core mechanisms:
- Navigation Index: A small (1%) replicated sample of the dataset allows queries to identify Primary Partitions (likely to contain top results) and Secondary Partitions.
- Co-Search Mode: Primary machines execute the search and synchronize candidate queues at regular intervals, ensuring the search follows the most promising global path without constant synchronization.
- Pull-Push Mode: For nodes in secondary partitions, CoTra dynamically chooses between RDMA READ (pulling data) or pushing tasks to the remote CPU, optimizing for both latency and bandwidth.
To further enhance performance, CoTra utilizes C++ coroutines for fine-grained task scheduling and an RDMA-friendly graph layout that pre-groups neighbors by physical location to minimize network IOPS.
Evaluation and Results
We evaluated CoTra on massive benchmarks including SIFT, DEEP, Text2Image, and LAION (up to 1B vectors).
Key results include:
- Throughput Scaling: CoTra achieved a 9.8x to 13.4x throughput increase on a 16-machine cluster compared to a single-machine baseline.
- Efficiency: At a high accuracy target (0.95 recall), CoTra was 2.12x to 3.58x faster than the best-performing distributed baseline (independent sharding).
- Computational Overhead: CoTra introduced only ~20% redundant computation compared to a single-machine index, whereas traditional sharding approaches often perform 400% (4x) more work to reach the same accuracy.
- Index Construction: The distributed builder reduced the time to create a 1-billion vector index from over 5 days to just 14 hours.
Discussion and Conclusion
The success of CoTra stems from the insight that search efficiency depends on the quality of the candidate queue. By prioritizing the synchronization of high-quality candidates, CoTra prevents the search from exploring suboptimal paths. While currently optimized for RDMA-enabled environments, future work will explore handling streaming updates and adapting to heterogeneous hardware clusters with varying CPU and memory speeds.
Summary updated