arXiv:2610.02652cs.DBOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.02652

RaBitQ-SSD: Split Codes and Pipelined I/O for SSD-Resident Vector Search

Yuexuan Xu, Jianyang Gao, Michael Norris, Alibek Zhakubayev, Pankaj Singh, Junjie Qi, Matthijs Douze, Cheng Long

Yuexuan Xu

Nanyang Technological

University, Singapore

yuexuan001@e.ntu.edu.sg

Pankaj Singh

Meta

Bellevue, United States

pankajsingh@meta.com

Jianyang Gao

ETH Zurich

Zurich, Switzerland

jianyang.gao@inf.ethz.ch

Junjie Qi

Meta

Bellevue, United States

jqi@meta.com

Abstract

SSD-resident approximate nearest-neighbor search is essential when vector collections exceed DRAM capacity. The challenge is to reduce SSD reads and hide I/O latency through concurrent reads and overlap with computation. However, for graph-based search, progressive candidate discovery limits advance I/O planning while IVF search reads inverted lists in full, incurring unnecessary SSD reads. In this paper, we present RaBitQ-SSD, an extension of IVF-RaBitQ for SSD-resident vector search. Specifically, we propose Split-RaBitQ, which retains a configurable prefix of each binary code in DRAM, allowing in-memory code storage below one bit per dimension. Using this partial representation, it provides an unbiased distance estimator with a probabilistic error bound. Once the in-memory coarse quantizer identifies candidate lists, this bound supports pruning individual candidates within them, enabling finer-grained SSD access. We also design an asynchronous search pipeline that coordinates candidate pruning with SSD read scheduling to reduce unnecessary reads while overlapping I/O with computation. On datasets ranging from 5 million to 1 billion vectors, RaBitQ-SSD delivers up to 1.74×1.74\times the throughput of graph-based baselines at 90% recall, while reducing SSD page reads by up to 3.8×3.8\times. Its on-SSD indexes are up to 7.0×7.0\times smaller and 10.0×10.0\times faster to build than DiskANN. We also build and search an index of 10 billion vectors on a single machine with one SSD, achieving over 3,000 queries per second at 90% recall.

1 Introduction

Modern embedding models represent unstructured data, such as images and text, as high-dimensional vectors, typically with hundreds to thousands of dimensions. Approximate nearest-neighbor (ANN) search retrieves vectors close to a query without exhaustively scanning the collection and underlies applications such as semantic search, recommendation, and retrieval-augmented generation [32, 43]. As collections grow, however, the vectors themselves can exceed the memory capacity of a single machine: one billion 1024-dimensional vectors in FP32 already occupy 4 TB. Flash storage provides a natural storage tier for such collections: modern flash-based SSDs offer roughly 10–50× lower cost per byte than DRAM and a single PCIe 4.0 NVMe SSD can deliver over one million random-read IOPS [25]. Consequently, storing the vectors on SSD while keeping compressed representations in memory has

Michael Norris

Meta

Menlo Park, United States

mnorris@meta.com

Alibek Zhakubayev

Meta

Menlo Park, United States

alibek@meta.com

Matthijs Douze

Meta

Paris, France

matthijs@meta.com

Cheng Long

Nanyang Technological

University, Singapore

c.long@ntu.edu.sg

Figure

Number of vectors (in-memory index in GB)

Figure 1: RaBitQ-SSD scales from 100 thousand to 10 billion DINO vectors (1,024 dimensions) on one server with one SSD. Solid lines show throughput for a given recall target (left axis); dashed lines show the fraction of the on-SSD data that is read to perform the search (right axis, log scale): at 10B scale it is less than one millionth.

become a practical and cost-effective design for billion-scale ANN search [9, 22, 53, 63].

DiskANN [53] established a widely adopted graph-based design for SSD-based ANN search in which compact quantized codes in DRAM guide the search while the graph and full-precision vectors reside on SSD. Its synchronous beam search batches reads to exploit device parallelism, but each search round waits for those reads to complete before the next round, limiting I/O-computation overlap. Starling [63] reduces SSD I/O through locality-aware graph reordering and shorter traversal paths. However, as vector dimensionality grows and vertex records become larger, fewer related vertices can be co-located within the same SSD block. PipeANN [22] breaks the strict compute-I/O ordering of conventional beam search by speculatively issuing reads while computation proceeds. However, later I/O completions may reveal better candidates, making some speculative reads unnecessary. Subsequent work further optimizes disk layouts and caching [30, 34, 42, 75], the placement of compressed codes [44, 54, 73], distance computation [10], and I/O-computation scheduling [31]. Despite these optimizations, graph methods with SSD-resident adjacency lists retain a structural constraint: candidates are discovered progressively as the traversal proceeds. Expanding an uncached vertex requires accessing its on-disk record to obtain its neighbors for subsequent exploration. This causality limits how far SSD accesses can be planned ahead of time.

On the other hand, IVF-based indexes organize vectors into inverted lists, avoiding the cost of building and storing a proximity graph over the full collection. An in-memory coarse index identifies candidate lists before accessing their SSD-resident contents. Among these methods, SPANN [9] uses query-aware pruning to select inverted lists, while HELMSMAN [27] learns how many lists to probe. Both read the selected lists in full from SSD.

This motivates finer-grained I/O pruning within probed inverted lists. If an in-memory representation provides distance estimates with lower bounds for each vector, the bounds can help rule out vectors that cannot improve the current kNN result before fetching their SSD-resident data. The in-memory IVF-RaBitQ [16, 17, 59] supports such error-bounded pruning by maintaining two representations of each vector. It scans a compact D-bit RaBitQ code to estimate distances and prune candidates, and accesses a higher-precision representation only for the surviving candidates, where D denotes the vector dimensionality. This separation naturally suggests an SSD-based extension: retain the compact codes in DRAM for pruning and place the higher-precision representations on SSD for re-ranking, but this exposes two challenges. First, this direct extension retains the full binary code and cannot accommodate memory budgets below one bit per dimension that is necessary on billion scale datasets, e.g., for 10 billion 1024-dimensional vectors, the binary codes alone require about 1.28TB of DRAM. Second, the in-memory pruning needs careful coordination with I/O pipelining so as to reduce unnecessary reads and enable I/O-computation overlap, e.g., fetching the candidates surviving the pruning individually wastes page bandwidth, issuing pages too early can read data that later pruning would eliminate, etc.

In this paper, we present RaBitQ-SSD, an SSD-based extension of in-memory IVF-RaBitQ that addresses these two challenges. First, we propose Split-RaBitQ (§3), which keeps only a prefix of Dm≤DD_m \leq D bits of each binary code in memory. Therefore, the memory consumption is configurable by setting DmD_m. We derive an unbiased distance estimator and a corresponding error bound from the prefix alone, enabling error-bounded pruning. Second, we develop an asynchronous SSD search pipeline that reduces SSD reads while overlapping I/O with computation. The pipeline coalesces surviving candidates at page granularity and issues page reads asynchronously under a bounded in-flight I/O budget. It prioritizes more promising pages and re-evaluates them against the latest distance threshold before issuance, allowing updated search results to eliminate many unnecessary SSD reads without sacrificing I/O concurrency.

In summary, we make the following contributions.

  • We propose Split-RaBitQ (§3), which keeps a configurable prefix of each RaBitQ binary code in DRAM. We derive an unbiased distance estimator and a probabilistic error bound from the prefix, enabling candidate pruning with an in-memory code footprint below one bit per dimension.

• We design an asynchronous search pipeline (§4) that reduces unnecessary SSD I/O while sustaining I/O-computation overlap.

• We conduct an extensive evaluation of RaBitQ-SSD (§5) on six datasets ranging from 5M to 1B vectors and 512–1536 dimensions, comparing against strong baselines. We further evaluate scalability from 100 thousand to 10 billion DINO vectors on a single server with one SSD (Figure 1).

RaBitQ-SSD is open-sourced at https://github.com/VectorDBNTU/RaBitQ-SSD.

References (34)