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

TeleRAG: 通过前瞻性检索实现高效的检索增强生成推理

TeleRAG: Efficient Retrieval-Augmented Generation Inference with Lookahead Retrieval

Paul G. Allen School of Computer Science and Engineering, University of Washington, Seattle, WA, USA(华盛顿大学保罗·G·艾伦计算机科学与工程学院,西雅图,华盛顿州,美国);Harvard John A. Paulson School of Engineering and Applied Sciences, Harvard University, Cambridge, MA, USA(哈佛大学约翰·A·保罗森工程与应用科学学院,剑桥,马萨诸塞州,美国);Shanghai Jiao Tong University, Shanghai, China(上海交通大学,上海,中国)
Chien-Yu Lin, Keisuke Kamahori, Yiyu Liu, Xiaoxiang Shi, Madhav Kashyap, Yile Gu, Rulin Shao, Zihao Ye, Kan Zhu, Rohan Kadekodi, Stephanie Wang, Arvind Krishnam… 展开作者

Chien-Yu Lin, Keisuke Kamahori, Yiyu Liu, Xiaoxiang Shi, Madhav Kashyap, Yile Gu, Rulin Shao, Zihao Ye, Kan Zhu, Rohan Kadekodi, Stephanie Wang, Arvind Krishnamurthy, Luis Ceze, Baris Kasikci

AI总结:

本文提出TeleRAG,一种通过前瞻性检索机制减少延迟并提高吞吐量的高效检索增强生成推理系统,该系统在有限的GPU内存下实现了更高的性能和可扩展性。

摘要:

检索增强生成(RAG)通过外部数据源扩展大型语言模型(LLMs),以提高事实正确性和领域覆盖范围。现代RAG流水线依赖于大型数据存储,这带来了显著的系统挑战:在GPU内存有限时,实现高吞吐量和低延迟非常困难。为了解决这些挑战,我们提出了TeleRAG,一种高效的推理系统,该系统在最小的GPU内存需求下减少延迟并提高吞吐量。TeleRAG的核心创新是前瞻性检索,这是一种预取机制,可以预测所需的数据并将它们从CPU传输到GPU,与LLM生成同时进行。此外,TeleRAG采用预取调度器和缓存感知调度器,以支持高效的多GPU推理,且具有最小的开销。评估显示,TeleRAG在单查询情况下实现了高达1.53倍的端到端延迟减少,在批量处理时平均吞吐量提高了1.83倍,并在吞吐量方面表现出良好的可扩展性。这证实了TeleRAG在更快、更内存高效的RAG应用部署中的实用价值。

英文摘要:

Retrieval-augmented generation (RAG) extends large language models (LLMs) with external data sources to enhance factual correctness and domain coverage. Modern RAG pipelines rely on large datastores, creating a significant system challenge: achieving high throughput and low latency is difficult, especially when GPU memory is limited. To address these challenges, we propose TeleRAG, an efficient inference system that reduces latency and improves throughput with minimal GPU memory requirements. The core innovation of TeleRAG is lookahead retrieval, a prefetching mechanism that predicts required data and transfers them from CPU to GPU in parallel with LLM generation. In addition, TeleRAG adopts a prefetching scheduler and a cache-aware scheduler to support efficient multi-GPU inference with minimal overhead. Evaluations show TeleRAG achieves up to a 1.53x average end-to-end latency reduction (single-query) and 1.83x higher average throughput (batched), as well as good scalability in throughput. This confirms the practical utility of TeleRAG for faster and more memory-efficient deployments of RAG applications.

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

↑