Introduction
In the era of Retrieval-Augmented Generation (RAG) and Large Language Models (LLMs), vector search—specifically Approximate Nearest Neighbor Search (ANNS)—has become foundational infrastructure. As embedding models grow in complexity, moving from 100-dimensional vectors to thousands of dimensions, the computational tax of finding the "nearest neighbor" in billions of points is skyrocketing. AverSearch, a framework from Tsinghua University, challenges the long-standing trade-off between ultra-low latency and total system throughput.
The Synchronization Bottleneck
To accelerate vector search, developers typically employ intra-query parallelism. However, most current systems rely on a "fork-join" model where the system forks tasks (like distance calculations) to multiple threads and joins them to update a global priority queue. This creates significant synchronization overhead, where threads idle at join barriers. Furthermore, periodic synchronization leads to "redundant work"—calculating distances for points that a serial algorithm would have pruned. As thread counts increase to lower latency, these inefficiencies cause throughput to collapse.
AverSearch: An Asynchronous Framework
The core innovation of AverSearch is its fully asynchronous architecture. It deconstructs the search process into three distinct, non-blocking roles:
- Sub-queue Maintainers: Manage local priority queues, focusing on sorting and pruning rather than heavy computation.
- Distance Calculators (Dis-cal): Perform heavy-duty vector math using AVX512 instructions. These workers never wait; if a maintainer hasn't updated the queue, a calculator speculatively processes the next most likely candidate.
- Global Balancer: A background thread that periodically scans sub-queues to calculate a global "L-threshold" for pruning unpromising branches without global locks.
This decoupling allows the system to maximize Physical Memory Bandwidth (PMB) utilization while minimizing the Redundant Ratio (RR). By using dynamic work-stealing, AverSearch ensures that idle threads can pick up tasks from overloaded sub-queues, maintaining high hardware saturation.
Experimental Evaluation
AverSearch was evaluated against leading engines like iQAN, FAISS, and Milvus using traditional benchmarks (SIFT100M, DEEP100M) and modern LLM-based datasets (Wiki100M, SE-OpenAI).
Key results include:
- Throughput Gains: On DEEP100M, AverSearch achieved 8.93× higher throughput than iQAN at comparable latency.
- Latency Reduction: Minimum average latency was reduced by 1.5× to 1.9× across various datasets.
- Hardware Efficiency: On Wiki100M, AverSearch utilized 149 GB/s of memory bandwidth (vs. iQAN’s 89 GB/s) while reducing redundant work from 31% to 8%.
Conclusion
AverSearch demonstrates that decoupling logic from math and embracing asynchrony can break the latency-throughput trade-off in high-dimensional vector search. While future work may address static role assignment and heterogeneous hardware (CPU-GPU), AverSearch currently provides a high-performance blueprint for scaling RAG applications.
Summary updated