English

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

Databases 2025-07-15 v1 Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.2507.09138,
  title  = {HedraRAG: Coordinating LLM Generation and Database Retrieval in Heterogeneous RAG Serving},
  author = {Zhengding Hu and Vibha Murthy and Zaifeng Pan and Wanlu Li and Xiaoyi Fang and Yufei Ding and Yuke Wang},
  journal= {arXiv preprint arXiv:2507.09138},
  year   = {2025}
}

Comments

Accepted by SOSP 2025

R2 v1 2026-07-01T03:57:39.619Z