arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.01164cs.DC
收藏

CaGR-RAG:RAG系统中基于磁盘向量搜索的上下文感知查询分组

CaGR-RAG: Context-aware Query Grouping for Disk-based Vector Search in RAG Systems

Yeonwoo Jeong, Kyuli Park, Hyunji Cho, Sungyong Park

AI总结:

针对基于磁盘的RAG向量搜索中非均匀簇访问导致的缓存效率低和延迟高问题,提出上下文感知查询分组机制CaGR-RAG,通过共享簇访问模式组织查询并结合机会性簇预取,将尾延迟降低51.55%并提升缓存命中率。

摘要:

现代嵌入模型捕获查询的语义和句法结构,常将不同查询映射到向量空间中的相似区域。这导致基于磁盘的向量搜索系统(特别是Retrieval Augmented Generation (RAG)框架)中出现非均匀的簇访问模式。现有方法优化单个查询,却忽略了簇访问模式的影响,未能考虑访问相似簇的查询的局部性效应。这一疏忽降低了缓存效率,并因过多的磁盘I/O增加了搜索延迟。为此,我们提出CaGR-RAG,一种上下文感知的查询分组机制,基于共享的簇访问模式组织查询。此外,它结合机会性簇预取,以最小化查询组之间转换时的缓存未命中,进一步优化检索性能。实验结果表明,CaGR-RAG将99百分位尾延迟降低高达51.55%,同时始终保持比基线更高的缓存命中率。

英文摘要:

Modern embedding models capture both semantic and syntactic structures of queries, often mapping different queries to similar regions in vector space. This results in non-uniform cluster access patterns in disk-based vector search systems, particularly in Retrieval Augmented Generation (RAG) framework. While existing approaches optimize individual queries, they overlook the impact of cluster access patterns, failing to account for the locality effects of queries that access similar clusters. This oversight reduces cache efficiency and increases search latency due to excessive disk I/O. To address this, we introduce CaGR-RAG, a context-aware query grouping mechanism that organizes queries based on shared cluster access patterns. Additionally, it incorporates opportunistic cluster prefetching to minimize cache misses during transitions between query groups, further optimizing retrieval performance. Experimental results show that CaGR-RAG reduces 99th percentile tail latency by up to 51.55% while consistently maintaining a higher cache hit ratio than the baseline.

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

↑