Abstract
Billion-scale vector search on SSDs currently forces a "performance-size dilemma": users must either accept sluggish search speeds or pay for massive storage overhead (up to 8x the dataset size). This paper breaks the dilemma by leveraging "second-tier memory" (CXL, RDMA, or NVM), redesigning index layouts and execution pipelines to achieve up to 7x higher throughput with a fraction of the storage footprint.
Introduction: The Performance-Size Dilemma
Vector search is the engine behind modern AI tasks like Retrieval-Augmented Generation (RAG) and web search. At the "billion-scale," datasets are too large for expensive local DRAM, forcing systems to rely on secondary storage like SSDs. However, a fundamental hardware mismatch exists: Approximate Nearest Neighbor Search (ANNS) algorithms rely on fine-grained, random lookups (often 256 bytes), while SSDs are optimized for coarse-grained 4KB block access. To compensate, state-of-the-art indexes like DiskANN use storage amplification—replicating data to satisfy SSD bandwidth—resulting in indexes 5x to 8x larger than the raw data.
Leveraging Second-Tier Memory (2TM)
The authors propose moving vector indexes to Second-Tier Memory (2TM)—technologies such as remote DRAM via RDMA, CXL-attached memory, or Non-Volatile Memory (NVM). These devices support the fine-grained access (64B–256B) required by vector search while offering higher capacity than local DRAM.
Redesigning Index Layouts and Execution
Simply migrating indexes to 2TM is insufficient due to higher latencies (300ns–3000ns) compared to local DRAM. The authors introduced two major redesigns:
Graph-based Index Optimization
To handle the latency of 2TM, the authors implemented software pipelining, which interleaves memory requests from multiple queries. This allows the CPU to process distance computations for one query while another waits for data from the CXL or network bus. Additionally, they replaced padded, SSD-friendly layouts with a Compressed Sparse Row (CSR) format, eliminating the "wasted" space previously used for SSD block alignment.
Cluster-based Index Optimization
For cluster-based indexes, the authors introduced a decoupled layout. Instead of replicating full vectors across multiple clusters, they store vectors once and use 8-byte pointers. To maintain efficiency, a greedy optimization algorithm groups vectors that frequently appear together in the same clusters into adjacent memory locations, reducing random I/O.
Evaluation and Key Results
The study evaluated three billion-scale benchmarks: SPACEV (94 GB), BIGANN (120 GB), and DEEP (358 GB).
- Performance: The optimized graph index on 2TM achieved 2.3x to 4.1x higher throughput than DiskANN on SSD.
- Storage Efficiency: Cluster indexes achieved optimal performance with a size only 1.1x to 1.4x the original dataset, a massive reduction from the ~7x amplification required on SSDs.
- I/O Reduction: Cluster-aware grouping reduced I/O requests by 62% to 80% compared to naive layouts.
Conclusion
The "dilemma" of billion-scale search is largely a tax paid to SSD block sizes. By transitioning to hardware that supports 256B access and optimizing software pipelines to hide latency, the need for data replication vanishes. While 2TM systems currently face CPU bottlenecks as I/O speeds increase, they represent a significant step toward efficient, large-scale vector retrieval.
Summary updated