arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.16681cs.CLcs.AI
收藏

SPI:向量数据库中流式RAG的查询深度自适应索引

SPI: Query-Depth-Adaptive Indexing for Streaming RAG in Vector Databases

Yale University(耶鲁大学);Columbia University(哥伦比亚大学)

Dong Liu, Yanxuan Yu

AI总结:

提出语义金字塔索引(SPI),通过多级分辨率组织和不确定性感知控制器实现查询深度自适应,支持流式插入和渐进式ANN搜索,在MS MARCO和Natural Questions上相比基线实现1.4-2.3倍延迟降低。

摘要:

向量数据库(VecDB)越来越多地部署在检索增强生成(RAG)管道中,其中查询处理和文档摄取同时发生。索引层需要提供低延迟搜索,同时在不频繁全局重建的情况下纳入新向量。现有的VecDB管道通常在统一表示机制下运行,尽管查询所需的语义粒度存在显著差异。这促使设计一种支持增量更新同时根据查询分布和复杂性调整检索深度的索引。我们提出**语义金字塔索引(SPI)**,一种VecDB层索引框架,将嵌入组织成$L$个语义对齐的分辨率级别,并通过轻量级不确定性感知控制器为每个查询选择检索深度。SPI支持渐进式粗到细ANN搜索、无需全局重建的逐级流式插入,以及通过LSH分区和异步gRPC协调的分布式执行。与具有固定遍历规则的分层ANN结构(例如SPANN)不同,SPI在查询时自适应分辨率,同时保持与FAISS和Qdrant后端的兼容性。在MS MARCO和Natural Questions上,在相同密集编码器系列下,SPI在Recall@10上具有竞争力且延迟更低,相对于可比较的近似ANN基线,在固定Recall@10目标下实现了**1.4-2.3倍**的平均检索延迟降低。一个最多8个节点的原型扩展研究显示吞吐量扩展了6.2倍(约73%效率);为完整性包含了16节点配置,但显示出递减的效率。我们提供了top-$K$稳定性保证:具有足够检索裕度的查询在较浅层返回相同的top-$K$集合。代码和配置可从此https URL获取。

英文摘要:

Vector databases (VecDBs) are increasingly deployed in retrieval-augmented generation (RAG) pipelines where query processing and document ingestion occur concurrently. The index layer needs to provide low-latency search while incorporating new vectors without frequent global rebuilding. Existing VecDB pipelines typically operate within a uniform representation regime, despite substantial variation in the semantic granularity required across queries. This motivates an index design that supports incremental updates while adapting retrieval depth to query distribution and complexity. We propose \textbf{Semantic Pyramid Indexing (SPI)}, a VecDB-layer indexing framework that organizes embeddings into $L$ semantically aligned resolution levels and selects retrieval depth per query via a lightweight uncertainty-aware controller. SPI supports progressive coarse-to-fine ANN search, level-wise streaming insertion without global rebuilds, and distributed execution through LSH partitioning with asynchronous gRPC coordination. Unlike hierarchical ANN structures with fixed traversal rules (e.g., SPANN), SPI adapts resolution at query time while remaining compatible with FAISS and Qdrant backends. On MS MARCO and Natural Questions, SPI achieves competitive Recall@10 with lower latency under the same dense encoder family, yielding a \textbf{1.4--2.3$\times$} average retrieval latency reduction under fixed Recall@10 targets relative to comparable approximate-ANN baselines. A prototype scaling study up to 8 nodes shows $6.2\times$ throughput scaling (${\approx}73\%$ efficiency); the 16-node configuration is included for completeness but shows diminishing efficiency. We provide a top-$K$ stability guarantee: queries with sufficient retrieval margin return an identical top-$K$ set at a shallower level. Code and configurations are available at https://github.com/FastLM/SPI_VecDB.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑