Recast:以精化为核心的存储优化近似最近邻搜索
Recast: Refinement-Centered Approximate Nearest Neighbor Search Optimized for Storage
AI总结:
本文提出以精化为核心的存储优化ANNS范式,设计Recast系统,通过RecastQ编码与QUIC策略平衡存储与性能,在索引维护、查询吞吐量和存储效率上优于现有基线。
摘要:
大规模近似最近邻搜索(ANNS)系统通常会利用DRAM之外的存储来支持向量搜索,核心问题是如何在内存与存储之间分配工作负载,以同时实现高查询吞吐量-召回率和良好的索引维护性能。现有的存储优化ANNS范式无法提供完整解决方案:驻留磁盘的图索引难以支持高效的向量删除,而倒排表系统通常会导致查询时更多的磁盘I/O。本文提出一种以精化为核心的存储优化ANNS范式,将Recast作为该范式的具体设计。Recast将原始向量存储在磁盘,在内存中保留带有RecastQ量化编码的IVF索引。对于ANNS查询,Recast选择nprobe个倒排表,并对其RecastQ编码执行基于SIMD的FastScan,以在内存中识别精化候选;随后从磁盘检索候选向量,计算精确距离并精化Top-K结果。为减少磁盘I/O,RecastQ计算包含真实距离的高概率不确定区间,QUIC策略基于这些区间选择最小精化集,最小化候选检索I/O。磁盘上的原始向量和内存中的IVF结构均支持插入与删除。在真实数据集上的实验显示,Recast的批量插入和删除速度比SPFresh和OdinANN快3.10-37.27倍,在更新50%语料库后,其0.99召回率下的QPS变化最多为6.9%;在0.99召回率的静态查询中,Recast在每个数据集匹配内存预算时,QPS是最强基线的1.56-2.01倍,同时比被评估系统需要少1.22-6.75倍的外部存储;在匹配内存空间时,RecastQ比RaBitQ提供更好的召回率-精化前沿。
英文摘要:
Large-scale ANNS systems often exploit storage in addition to DRAM for supporting vector search. The central question is how to divide the work between memory and storage for achieving both high query throughput-recall and good index maintenance performance. Existing storage-optimized ANNS paradigms fall short of providing a complete answer: disk-resident graph indexes have difficulty in supporting efficient vector deletions, while posting-list systems often incur more disk I/Os for queries. In this paper, we introduce a refinement-centered paradigm for storage-optimized ANNS systems. We propose Recast as a concrete design of this paradigm. Recast stores raw vectors on disk and keeps an IVF index with our RecastQ quantization encoding in memory. For an ANNS query, Recast selects nprobe inverted lists and performs SIMD-based FastScan on their RecastQ codes to identify refinement candidates in memory. It then retrieves candidate vectors from disk, computes exact distances, and refines the top-K result. To reduce disk I/Os, RecastQ computes uncertainty intervals containing true distances with high probability. Our QUIC policy selects a minimal refinement set based on these intervals, minimizing candidate-retrieval I/Os. Both the on-disk raw vectors and the in-memory IVF structure support insertions and deletions. Experiments on real-world data sets show that Recast processes batched insertions and deletions 3.10-37.27x faster than SPFresh and OdinANN, while its QPS at 0.99 recall changes by at most 6.9% after updating 50% of the corpus. For static queries at 0.99 recall, Recast achieves 1.56-2.01x the QPS of the strongest baseline with the matched memory budget on each data set, while requiring 1.22-6.75x less external storage than the evaluated systems. At matched in-memory space, RecastQ also provides a better Recall-refinement frontier than RaBitQ.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。