TL;DR
Vector search at a billion-scale is hitting a wall: even the fastest modern SSDs can't keep up with the way we currently fetch data. This paper introduces TriVS, a "trilogy" approach that intelligently sifts through data in memory using "blurry" versions of vectors before ever touching the disk, slashing I/O by over 60% and tripling search throughput.
What Problem Does This Paper Address?
Imagine you’re looking for a specific book in a massive, city-sized library. Modern "vector search" does this for data—finding the most similar items (images, text, etc.) in a sea of billions. Because these datasets are too big for expensive RAM, we store them on SSDs.
The authors found that even with top-of-the-line PCIe 5.0 SSDs, current systems spend 87–93% of their time just waiting for the disk. They identified a "granularity mismatch" in existing designs:
- Cluster-based systems (like SPANN) find the right "shelf" quickly in memory, but then they have to grab the entire shelf from the disk, even if they only need one book. This wastes bandwidth.
- Graph-based systems (like DiskANN) are great at picking up individual books, but they have to wander through the library aisles, checking one book at a time to find the next one. This creates a long chain of "wait-and-see" disk reads.
Methods
The authors propose TriVS, which re-architects the search into a three-act "trilogy" to get the best of both worlds:
- Act I: Approach Coarsely. Like cluster systems, it uses a small index in RAM to find the general "neighborhood" of the answer. No disk hits yet.
- Act II: Distill Progressively. This is the secret sauce. Instead of going to the disk immediately, TriVS uses "quantized" (highly compressed, slightly blurry) versions of the vectors stored in RAM. It sifts through the neighborhood, discarding the obvious mismatches until it has a tiny "shortlist" of candidates.
- Act III: Converge Exactly. Finally, it goes to the disk—but only to fetch the exact, full-precision vectors for that tiny shortlist.
To make this work without blowing the RAM budget, TriVS uses coarser clustering. By having fewer, larger clusters, it shrinks the "map" (centroid index), freeing up space to store those compressed vectors used in the distillation phase.
Datasets
The researchers put TriVS through its paces on five diverse, large-scale datasets:
- DEEP-100M & DEEP-1B: Standard benchmarks for deep learning descriptors.
- Text-to-Image: A cross-modal dataset (searching images with text queries).
- Wiki: A 100-million vector dataset built from Wikipedia text using the BGE embedding model.
- SIFT-1B: A classic billion-scale dataset for image features.
Key Insights and Ideas
- Granularity Decoupling: You don't have to use the same "zoom level" for the whole search. Start with a wide lens (clusters) to save time, and switch to a microscope (individual vectors) only at the very end.
- The "I/O Volume" Bottleneck: The paper proves that simply making SSDs faster isn't enough. To scale, you must fundamentally reduce the amount of data requested per query.
- Memory Reallocation: Instead of asking for more RAM, TriVS "recycles" it. By making the initial search index coarser (and thus smaller), it creates a "distillation budget" in the existing memory footprint.
Key Results
TriVS consistently outperformed the state-of-the-art (PipeANN) across all tests:
- 3.42× higher throughput on average.
- 51.2% lower latency, meaning queries return twice as fast.
- 63.7% less disk I/O, proving the "distillation" phase effectively shields the SSD from unnecessary work.
- Smaller Footprint: It achieved these gains while using less memory and storage than its competitors.
Limitations and Future Work
- Quantization Sensitivity: The efficiency of the "distill" phase depends on how well the compressed vectors represent the real ones. While TriVS uses a robust method (RaBitQ), extremely high-dimensional or "noisy" data might require more bits in RAM to maintain accuracy.
- Online Updates: While the authors discuss how TriVS could handle adding or deleting data (by assigning vectors to unique clusters without replication), they didn't focus on building a high-frequency update system in this specific paper.
- Hardware Orthogonality: The current work focuses on standard CPUs and SSDs. Future versions could potentially leverage specialized hardware like GPUs or "SmartSSDs" to accelerate the in-memory distillation even further.
Summary updated