Manuscript Offprint

arXiv:2610.21676

ConStore: Search-Overlapped Prefetch and Co-Retrieval-Aware Content Storage for Disk-Based ANNS

Zhutao Zhuang, Nong Xiao, Zhiguang Chen, Yue Yu

Abstract

Disk-based approximate nearest-neighbor search (ANNS) supports retrieval-augmented generation (RAG), search, recommendation, and advertising over corpora that exceed memory capacity. Existing ANNS research often focuses on vector search at small top-K, whereas industrial-scale applications require larger retrieval sets. Fetching the corresponding content from storage remains comparatively underexplored. Our profiling across million- to billion-vector corpora shows that, at large K, content fetch latency can match or exceed vector-search latency and cannot be ignored in end-to-end retrieval.

We present ConStore, a content storage engine combining two complementary techniques to reduce end-to-end retrieval latency. Speculative Inline Content Prefetch (SICP) commonly abstracts graph-based and cluster-based ANNS as progressive SSD I/O that refines an in-flight candidate queue. It prefetches content for stable leading candidates under a bounded I/O budget, overlapping content reads with search without changing the final top-K results. Co-Retrieval-Pattern-Aware Grouping (RPAG) uses query logs to place frequently co-retrieved documents in contiguous segments. Workload-Adaptive Segment Reorganization (WASR) adapts this layout to workload shifts by selectively regrouping segments under a bounded rewrite budget. Group Content Fetch (GCF) exploits this layout to coalesce per-document random reads into batched, page-aware I/O requests. SICP works independently of the content layout, while RPAG and GCF reduce fetch cost even without prefetching.

Across three multi-hop QA workloads with K from 10 to 1600, ConStore reduces end-to-end retrieval latency over the best per-document-read baseline by up to 48% on DiskANN and 25% on SPANN. Separate experiments on 100M- and billion-vector indexes demonstrate SICP’s applicability at larger scales.

1 Introduction

Disk-based approximate nearest-neighbor search (ANNS) has been widely adopted to overcome the memory limitations of large-scale vector search [6, 19, 46]. By keeping large indexes on SSD rather than entirely in DRAM, these systems support retrieval-augmented generation (RAG), search, recommendation, and advertising over corpora containing millions to billions of vectors [19, 32].

Once a query is embedded, the storage-facing ANNS retrieval pipeline has two phases: vector search identifies the top-K item IDs, and content fetch loads their associated payloads from storage for downstream processing. For example, RAG loads passages for an LLM prompt, while search and recommendation retrieve item content or features for re-ranking and presentation. Both phases contribute to end-to-end retrieval latency.

Prior work has heavily optimized vector search through two main families of disk-based indexes. Graph-based systems, including DiskANN, PipeANN, OdinANN, and Starling, optimize graph traversal, storage layout, or update handling [13, 14, 46, 52]. Clustering-based systems, including SPANN and FusionANNS, organize vectors into clusters for efficient candidate retrieval [6, 48]. In contrast, the content-fetch phase that delivers the selected payloads has received comparatively little attention.

Much ANNS research emphasizes small top-K settings such as K=10, but industrial applications retrieve hundreds or thousands of candidates. Recent study reports search workloads with K around 100–3,000 to supply downstream re-ranking models and advertising workloads with K up to 3,000 [19]. These larger retrieval sets challenge the assumption that content fetch is only a minor overhead. Our profiling across million- to billion-vector indexes shows that content-fetch latency can match or exceed vector-search latency at large K (Figures 2 and 3). At small K, vector search pays an initial cost to locate promising regions of the index. As K grows, expanding and scoring the candidate set adds work, while fetching fixed-size payloads requires proportionally more content reads. In the measured large-K regime, both phases exhibit approximately linear growth with K, making content fetch a first-class retrieval cost rather than a negligible follow-up.

Conventional retrieval serializes content fetch after vector search, waiting for the final top-K IDs before issuing content reads. We study graph-based and clustering-based ANNS and it reveals a shared opportunity: both can be viewed as progressive SSD I/O processes that iteratively refine a candidate queue. DiskANN reads graph neighborhoods, while SPANN reads and scores posting lists in batches. In both cases, likely results emerge before search finishes, allowing some content reads to overlap with the remaining search I/O.

Choosing when and what to prefetch is non-trivial. Early candidates can change, wasting content reads; late prefetches leave too little search time to hide their cost. Variable search tails and competition for SSD bandwidth therefore require selective, budgeted speculation.

Another challenge is that content is commonly stored in insertion or key order, unrelated to which items are retrieved together [38, 51, 53]. Co-retrieved payloads are consequently scattered, requiring many random reads and limiting opportunities for coalescing.

Embedding-based clustering is an imperfect alternative: proximity in vector space need not imply co-access. A multihop query can retrieve a film page and its director's biography from different semantic clusters. Grouping content by observed co-retrieval patterns can capture this locality that insertion order and embedding clusters miss.

We present ConStore, a content storage engine for disk-based ANNS that reduces end-to-end retrieval latency through two complementary techniques: overlapping content fetch with search and reducing fetch cost through co-retrieval-aware layout. Either technique can be deployed independently. Our contributions are:

  1. Content-fetch profiling: Across million- to billion-vector indexes, we show that content-fetch cost grows approximately linearly with K and can match or exceed vector-search latency, motivating optimization of the complete search-plus-fetch pipeline.

  2. Speculative Inline Content Prefetch (SICP): Using the shared progressive-I/O abstraction, SICP prefetches content for stable leading candidates under a bounded I/O budget and fetches missing payloads after search. It preserves the final top-K and requires only a document-to-textent lookup, independent of content layout.

  3. Co-Retrieval Content Segments (CCS) with Group Content Fetch (GCF): Retrieval-Pattern-Aware Grouping (RPAG) uses query logs to group frequently co-retrieved documents into contiguous CCS segments. At query time, GCF coalesces requested content into batched, page-aware reads. Together they reduce fetch cost without changing the ANN engine, with or without SICP. Workload-Adaptive Segment Reorganization (WASR) adapts the layout to workload shifts by selectively regrouping segments under a bounded rewrite budget when recurring co-retrieval patterns change.

  4. Evaluation: On three multi-hop QA workloads, ConStore reduces end-to-end retrieval latency by up to 48% on DiskANN and 25% on SPANN over the best per-document-read baseline, while preserving retrieval results. Ablations isolate each technique, and synthetic-payload experiments

Figure

Figure 1. Two-phase retrieval over disk-based ANNS, illustrated with a RAG application.

on 100M- and billion-vector indexes demonstrate SICP at larger scales.

References (13)