Abstract
Vector search (VS) has become a fundamental component in multimodal data management, enabling core functionalities such as image, video, and code retrieval. As vector data scales rapidly, VS faces growing challenges in balancing search, latency, scalability, and cost. The evolution of VS has been closely driven by changes in storage architecture. Early VS methods rely on all-in-memory designs for low latency, but scalability is constrained by memory capacity and cost. To address this, recent research has adopted heterogeneous architectures that offload space-intensive vectors and index structures to SSDs, while exploiting block locality and I/O-efficient strategies to maintain high search performance at billion scale. Looking ahead, the increasing demand for trillion-scale vector retrieval and cloud-native elasticity is driving a further shift toward memory-SSD-object storage architectures, which enable cost-efficient data tiering and seamless scalability. In this tutorial, we review the evolution of VS techniques from a storage-architecture perspective, covering memory-resident methods, heterogeneous storage techniques, and emerging cloud-native systems.
Introduction
Vector search is the engine behind modern AI, enabling everything from image retrieval to the "long-term memory" for Large Language Models (LLMs). Historically, these systems were designed to live entirely in a computer's RAM to ensure sub-millisecond latency. However, as datasets grow to the billion and trillion-scale, the cost of RAM becomes prohibitive. This "RAM wall" has forced a fundamental rethink of how vector indices are built and stored. The challenge is that moving data to cheaper storage like SSDs or Cloud Object Storage (e.g., Amazon S3) introduces a massive I/O bottleneck. Traditional algorithms designed for RAM perform poorly on disks because they rely on frequent, random data access. This paper explores the transition toward "storage-aware" vector indices that minimize slow disk reads while maintaining high search accuracy.
The Evolution of Vector Search Architectures
The evolution of vector search can be categorized into three distinct architectural phases, each defined by how it manages the trade-off between performance and storage cost.
- Memory-Resident VS: The classic approach using Inverted File (IVF), Hashing (LSH), Product Quantization (PQ), and Proximity Graphs (HNSW). These prioritize CPU efficiency and assume data access is essentially "free" in terms of latency.
- Static Heterogeneous Storage (Memory-SSD): A two-tier approach where lightweight "routing" structures (like cluster centroids) stay in RAM, while the heavy raw vectors and fine-grained indices live on SSDs. Techniques like SPANN and DiskANN use "block-aware" layouts, ensuring that a single disk read fetches a cluster of related vectors rather than just one, drastically reducing I/O overhead.
- Elastic Multi-Tiered VS (Cloud-Native): The current frontier where data is tiered across RAM, SSD, and Object Storage. Systems like Zilliz Cloud and TurboPuffer decouple compute from storage, allowing for "serverless" vector search that can scale up or down instantly based on demand.
Overcoming the I/O Bottleneck
You cannot simply "port" a RAM-based algorithm to an SSD. The physical properties of the storage—specifically block sizes—must be integrated into the index structure to avoid "I/O storms."
As shown in the comparison above, memory-resident systems rely on random per-vector access, which is feasible in RAM but catastrophic for SSD performance. Modern heterogeneous systems instead use a coarse index in memory to route queries to specific blocks on the SSD. By using asynchronous I/O and prefetching, these systems can perform distance calculations on one batch of vectors while the next batch is still being fetched, effectively overlapping computation with I/O.
Furthermore, graph-based methods like HNSW, which are highly effective in RAM, are often too "pointer-heavy" for disks. New methods like Vamana (used in DiskANN) employ specific pruning strategies to create "flatter" graphs that require fewer hops to find a result, minimizing the number of sequential disk reads required.
Key Results and Scalability
The shift to heterogeneous storage has fundamentally changed the scalability profile of vector search. Standard billion-scale benchmarks (like SIFT1B) that previously required massive, expensive RAM clusters can now be handled on a single commodity server. By offloading raw vectors to SSDs or Object Storage, the cost-per-million vectors has dropped significantly, making large-scale Retrieval-Augmented Generation (RAG) viable for a broader range of organizations. Through block-locality and hierarchical clustering, SSD-based systems can now achieve latencies within a small factor of all-in-memory systems while handling 10x to 100x more data.
Future Frontiers: Cloud-Native Elasticity
In the cloud, speed is no longer the only metric; elasticity is equally critical. Future systems must be natively aware of the latency differences between RAM, SSD, and S3. Key open research areas include:
- Predictive Caching: Using AI to predict query patterns and proactively move vectors from S3 to RAM.
- Dynamic Updates: Maintaining high-performance indices on disk while data is constantly being added or deleted, often utilizing LSM-tree inspired approaches for vectors.
- Cost Optimization: Finding the optimal balance between compute overhead, SSD write endurance, and object storage bandwidth to minimize the total cost of ownership (TCO).
Conclusion
The evolution of vector search is a story of adapting to storage realities. From the early days of memory-resident algorithms to the current shift toward cloud-native, multi-tiered architectures, the field continues to innovate to meet the demands of trillion-scale AI applications. As we move forward, the co-design of algorithms and storage hardware will remain the primary driver of performance and cost-efficiency in vector retrieval systems.
Summary updated