Abstract
Approximate Nearest Neighbor (ANN) search is a cornerstone of modern information retrieval, yet most existing indexes are optimized for static datasets. In real-world applications, data is dynamic and query patterns are often highly skewed. We introduce Quake, an adaptive indexing system that optimizes its structure in response to evolving data distributions and query workloads. By combining a cost-model-driven maintenance scheme with on-the-fly recall estimation, Quake achieves significant performance gains, offering up to a 38× reduction in query latency and a 126× reduction in update latency compared to state-of-the-art baselines like HNSW and DiskANN.
Introduction
Most vector search engines are designed under the assumption that once an index is constructed, the underlying data distribution and query patterns remain relatively stable. However, production environments—such as real-time product recommenders or evolving knowledge bases like Wikipedia—are inherently dynamic. New items are added continuously, and query traffic is frequently "skewed," where a small subset of popular items receives the majority of search volume.
Existing solutions generally fall into two categories, both of which struggle with dynamic, skewed workloads:
- Graph-based indexes (e.g., HNSW): These provide excellent search performance but are computationally expensive to update due to the need for complex graph "rewiring."
- Partitioned indexes (e.g., Faiss-IVF): These are easier to update but suffer from "hot partitions." When a specific region of the vector space grows too large or receives excessive traffic, search latency spikes as the system is forced to scan disproportionately large amounts of data.
Quake addresses these challenges by introducing an adaptive architecture that bridges the gap between update-friendly partitioning and search-efficient graph structures.
Methodology
Quake’s architecture is built upon three primary innovations designed to maintain high performance in messy, real-world environments.
Adaptive Hierarchical Partitioning
Quake organizes vectors into multiple levels of hierarchical partitions. Unlike static partitioning, Quake utilizes a Cost Model that monitors the access frequency and size of each partition. If a partition becomes a bottleneck (either due to size or high query traffic), Quake automatically triggers a split. Conversely, it merges underutilized, small partitions to minimize management overhead. To ensure stability, Quake employs an "estimate-then-verify" strategy: it tentatively performs a structural change, measures the resulting cost improvement, and rolls back the change if it does not meet a specific improvement threshold (\τ).
Adaptive Partition Scanning (APS)
Traditional partitioned indexes require a fixed nprobe parameter (the number of partitions to scan), which often requires manual tuning. Quake replaces this with Adaptive Partition Scanning (APS), which estimates recall during the search process. Using a geometric model that approximates partitions as hyperspherical caps, APS calculates the probability of finding a neighbor in the next partition. The system stops scanning as soon as the estimated recall reaches the user-defined target (e.g., 90%), allowing for "zero-tuning" performance that matches theoretical oracles within 30%.
NUMA-Aware Parallelism
To maximize hardware utilization on modern servers, Quake is designed with Non-Uniform Memory Access (NUMA) awareness. It pins specific data partitions to specific CPU cores and utilizes a work-stealing scheduler. This ensures that all cores remain productive while minimizing the latency penalties associated with moving data across slow memory interconnects.
Experimental Evaluation
Quake was evaluated against several standard and realistic benchmarks:
- Wikipedia-12M: A new dataset derived from 103 months of Wikipedia page additions and view statistics, featuring significant read and write skew.
- OpenImages-13M: A large-scale image embedding dataset used to test insertion and deletion performance.
- MSTuring (10M & 100M): High-dimensional web search datasets used to test scalability.
Key Results
- Search Performance: On the dynamic Wikipedia workload, Quake-MT (multi-threaded) was 8× faster than DiskANN and orders of magnitude faster than standard Faiss-IVF implementations.
- Update Efficiency: Quake handled index maintenance 4.5× to 126× faster than graph-based competitors, which often require hours of re-balancing to maintain search quality.
- Scalability: The system achieved near-linear speedups with additional CPU cores, reaching a scan throughput of 200 GB/s on the 100-million vector MSTuring dataset.
- Out-of-the-Box Accuracy: Quake’s APS reached recall targets without the need for the extensive offline "parameter hunting" required by other early-termination methods.
Conclusion and Future Work
Quake demonstrates that index maintenance is not merely a background task but a critical component of search optimization. By treating structural updates as a cost-minimization problem, Quake maintains high efficiency in the face of volatile data.
Future iterations of Quake aim to address current limitations, such as moving to a "copy-on-write" architecture to allow for fully concurrent search and update operations. Additionally, the authors plan to extend the cost model to support heterogeneous hardware, including GPUs and SSD-backed storage, further expanding Quake's utility for massive-scale vector search.
Summary updated