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

HedraRAG:在异构RAG服务中协调LLM生成与数据库检索

HedraRAG: Coordinating LLM Generation and Database Retrieval in Heterogeneous RAG Serving

University of California San Diego(加州大学圣地亚哥分校);Rice University(里士满大学)

Zhengding Hu, Vibha Murthy, Zaifeng Pan, Wanlu Li, Xiaoyi Fang, Yufei Ding, Yuke Wang

AI总结:

本文提出HedraRAG运行时系统,通过基于图的抽象和动态图变换协调LLM生成与数据库检索,在异构RAG服务中实现跨阶段并行与混合CPU-GPU流水线映射,显著提升资源利用率并降低延迟。

摘要:

本文解决异构检索增强生成(RAG)服务中新兴的系统级挑战,其中复杂的多阶段工作流和多样的请求模式使高效执行变得复杂。我们提出HedraRAG,这是一个基于图抽象构建的运行时系统,它揭示了跨阶段级并行性、请求内相似性和请求间偏斜性的优化机会。这些机会通过动态图变换(如节点分裂、重排序、边添加和依赖重新布线)来实现,这些变换应用于跨越并发请求的子图波前。生成的执行计划被映射到混合CPU-GPU流水线上,以提高资源利用率并降低延迟。在广泛的RAG工作流上的评估表明,与现有框架相比,加速比超过1.5倍,最高达到5倍,展示了在服务环境中协调生成和检索的有效性。

英文摘要:

This paper addresses emerging system-level challenges in heterogeneous retrieval-augmented generation (RAG) serving, where complex multi-stage workflows and diverse request patterns complicate efficient execution. We present HedraRAG, a runtime system built on a graph-based abstraction that exposes optimization opportunities across stage-level parallelism, intra-request similarity, and inter-request skewness. These opportunities are realized through dynamic graph transformations, such as node splitting, reordering, edge addition, and dependency rewiring, applied to wavefronts of subgraphs spanning concurrent requests. The resulting execution plans are mapped onto hybrid CPU-GPU pipelines to improve resource utilization and reduce latency. Evaluations across a wide range of RAG workflows demonstrate speedups exceeding 1.5x and reaching up to 5x over existing frameworks, showcasing the effectiveness of coordinated generation and retrieval in serving environments.

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

↑