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

VectorLiteRAG: 一种面向延迟敏感的细粒度资源划分方法以实现高效的RAG系统

VectorLiteRAG: Latency-Aware and Fine-Grained Resource Partitioning for Efficient RAG

Junkyum Kim, Divya Mahajan

AI总结:

VectorLiteRAG通过细粒度GPU资源划分方法,提升RAG系统在延迟敏感场景下的吞吐量性能,无需额外硬件资源。

摘要:

检索增强生成(RAG)系统通过向量相似性搜索与大型语言模型(LLM)相结合,提供准确且上下文感知的响应。然而,将向量检索器和LLM置于共享的GPU基础设施上会引入显著挑战:向量搜索是内存和I/O密集型的,而LLM推理需要高吞吐量和低延迟。简单的资源共享往往导致严重的性能下降,特别是在高请求负载或大索引规模时。我们提出了VectorLiteRAG,一种部署友好的RAG系统,能够在不增加额外硬件资源的情况下实现延迟合规的推理。VectorLiteRAG引入了一种基于详细性能建模和访问模式分析的细粒度GPU资源分配机制。通过估计搜索延迟和查询命中率分布,它在CPU和GPU层级之间确定一个最优的索引划分点,以最小化竞争并最大化吞吐量。我们的评估显示,VectorLiteRAG在所有测试配置中,包括小和大LLM以及小和大向量数据库的情况下,都能持续扩展SLO符合的请求速率范围。在最佳情况下,VectorLiteRAG在不牺牲生成质量或不增加计算资源的情况下,将可实现的SLO吞吐量提高了最高1.5倍。

英文摘要:

Retrieval-Augmented Generation (RAG) systems combine vector similarity search with large language models (LLMs) to deliver accurate, context-aware responses. However, co-locating the vector retriever and the LLM on shared GPU infrastructure introduces significant challenges: vector search is memory and I/O intensive, while LLM inference demands high throughput and low latency. Naive resource sharing often leads to severe performance degradation, particularly under high request load or large index sizes. We present VectorLiteRAG, a deployment-friendly RAG system that achieves latency-compliant inference without requiring additional hardware resources. VectorLiteRAG introduces a fine-grained GPU resource allocation mechanism based on detailed performance modeling and access pattern analysis. By estimating search latency and query hit rate distributions, it identifies an optimal index partitioning point across CPU and GPU tiers to minimize contention and maximize throughput. Our evaluations show that VectorLiteRAG consistently expands the SLO compliant request rate range across all tested configurations, including both small and large LLMs, and small and large vector databases compared to naive baselines and state of the art alternatives. In the best case, VectorLiteRAG improves the attainable SLO throughput by up to 1.5 times without compromising generation quality or requiring additional compute resources.

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

↑