Zoom: SSD-based Vector Search for Optimizing Accuracy, Latency and Memory

Minjia Zhang, Yuxiong HearXiv 2018

Introduction

In modern information retrieval, from web search to image recognition, data is increasingly represented as high-dimensional vectors. Finding the "best match" for a query involves searching for the nearest neighbors in a massive vector space. As datasets scale to billions of vectors, system architects face a fundamental "trilemma": balancing high accuracy, low latency, and a small memory footprint.

Overview of vector search in information retrieval

Traditional approaches fall into two camps. Graph-based methods like HNSW offer high speed and accuracy but require storing full vectors in expensive RAM. Quantization-based methods like IVFPQ save memory by compressing vectors, but this lossy compression often results in poor recall. Zoom, a novel vector search engine, breaks this trade-off by utilizing SSDs as a primary storage layer for high-precision data while maintaining a fast, quantized index in memory.

The Zoom Architecture: A Multi-View Approach

Zoom introduces a "multi-view" architecture that decouples the search process into two distinct phases:

  1. The "Preview" Step (In-Memory): Zoom utilizes a Cluster Routing Layer (CRL) based on a modified HNSW graph to navigate to relevant neighborhoods. It then employs a Product Quantization Layer (PQL) to scan compressed vectors and identify a small set of $R$ high-potential candidates.
  2. The "Full-view" Step (On-SSD): Rather than relying solely on quantized approximations, Zoom fetches the full-precision, uncompressed vectors for the $R$ candidates from an SSD. These are then reranked to determine the final top-$K$ results.

To optimize this process, Zoom implements several key innovations:

  • Connectivity Augmentation: Using graph algorithms (such as Kosaraju’s algorithm) to eliminate isolated nodes in the cluster graph, ensuring all data points are reachable.
  • Distance Computation Optimization: Mathematically refactoring Euclidean distance formulas to precompute query-independent terms, minimizing memory lookups during search.
  • Asynchronous SSD I/O: Using batched, non-blocking I/O to overlap CPU processing with disk latency, effectively hiding the slower access speeds of SSDs.

Key Insights: The Power of Filtering

The fundamental "aha moment" of Zoom is the observation that while quantization is poor at identifying the single best neighbor, it is highly effective at ensuring the true neighbor is included within a small set of candidates.

Probability of finding the true neighbor vs. number of selected clusters

The core insight is to treat quantization as a high-speed filter rather than a final decision-maker. As shown in the empirical analysis, the probability of the true top-1 neighbor being present in the candidate set increases significantly as more clusters are searched and as the candidate set size ($R$) grows. By verifying a small number of candidates against full-precision data on the SSD, Zoom can achieve near-perfect recall.

Evaluation and Results

Zoom was evaluated using industry-standard benchmarks: SIFT1M (1 million vectors) and Deep10M (10 million vectors). The authors introduced the VQ (Vector-Query) metric—the product of vectors per machine and queries per second—to measure holistic system efficiency.

  • Efficiency Gains: Compared to IVFPQ, Zoom improved accuracy from ~60% to over 90% while boosting VQ efficiency by 1.7x to 8.0x.
  • Memory Savings: Zoom achieved accuracy comparable to HNSW while reducing RAM consumption by approximately 12x.
  • Cost-Effectiveness: For a fixed accuracy target, Zoom improved the VQ metric by 12.2x to 14.9x over baselines, representing a massive potential reduction in infrastructure costs for large-scale deployments.

Conclusion

Zoom demonstrates that SSDs can be integrated as first-class citizens in vector search architectures. By intelligently splitting the workload between fast, lossy in-memory previews and slow, precise SSD-based reranking, Zoom provides a scalable solution for billion-scale vector search that does not compromise on accuracy or cost. Future work includes exploring advanced SSD drivers and scaling to even larger datasets on commodity hardware.

Reference: Zhang, M., & He, Y. (2018). Zoom: SSD-based Vector Search for Optimizing Accuracy, Latency and Memory. arXiv:1809.04067.

Summary updated

BibTeX
@misc{zhang2018zoom,
  author = {Minjia Zhang and Yuxiong He},
  title = {{Zoom: SSD-based Vector Search for Optimizing Accuracy, Latency and Memory}},
  year = {2018},
  eprint = {1809.04067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1809.04067},
}
Figure