RouteRAG: Efficient Retrieval-Augmented Generation from Text and Graph via Reinforcement Learning

Yucan Guo, Miao Su, Saiping Guan, Zihao Sun, Xiaolong Jin, Jiafeng Guo, Xueqi ChengarXiv 2025 · DOI

Abstract

RouteRAG is a reinforcement learning (RL) framework that teaches Large Language Models (LLMs) to intelligently navigate between unstructured text and structured knowledge graphs during retrieval. By jointly optimizing for answer accuracy and retrieval efficiency, it enables small open-source models (3B/7B) to outperform much larger systems on complex, multi-hop reasoning tasks.

Introduction

Retrieval-Augmented Generation (RAG) has become the standard for grounding LLMs in external knowledge. However, current systems face two major hurdles: the "Static Pipeline" problem, where fixed pipelines fail for complex multi-hop questions requiring dynamic planning, and the "Text-Graph Trade-off," where unstructured text is relational-poor and structured knowledge graphs (KGs) are computationally expensive. Smaller open-source models often lack the intrinsic planning skills to manage these trade-offs, leading to over-retrieval or hallucinations.

Methodology

RouteRAG introduces an RL-based approach to transform retrieval into a dynamic, sequential decision-making process.

Unified Generation Policy

The model learns a policy where it can choose between three actions at any step: internal reasoning (<think>), triggering a search (<search>), or providing a final answer (<answer>).

Adaptive Routing

When searching, the model explicitly chooses its "mode": [passage] (dense text retrieval), [graph] (relational KG retrieval), or a [hybrid] of both.

Two-Stage RL Training

The framework utilizes Group Relative Policy Optimization (GRPO) to train the policy in two phases:

  1. Stage 1 (Outcome-Oriented): The model is rewarded solely for answer accuracy (Exact Match).
  2. Stage 2 (Accuracy-Efficiency): A new reward penalizes excessive retrieval time, forcing the model to learn when it has sufficient information.
Overview of the RouteRAG framework and its two-stage reinforcement learning training process compared to previous methods.

Experimental Setup

RouteRAG was evaluated across five benchmarks: PopQA and Natural Questions (NQ) for simple QA, and HotpotQA, 2WikiMultihopQA, and MuSiQue for multi-hop reasoning. Training was conducted on a 10k query subset of HotpotQA.

Key Results and Insights

RouteRAG-7B outperformed previous state-of-the-art RL-based systems like Search-R1 and strong graph-based baselines like HippoRAG 2.

  • Performance Breakthroughs: On MuSiQue, RouteRAG-7B achieved a 39.6 EM, nearly tripling vanilla RAG performance (11.4 EM).
  • Efficiency Gains: Stage 2 training reduced average retrieval turns by up to 20% while maintaining or improving accuracy.
  • Model Scaling: RouteRAG-3B outperformed much larger 7B baselines, demonstrating that a smart retrieval policy can compensate for lower parameter counts.
Performance comparison (F1 Score vs Response Token Length) of RouteRAG against baselines across multi-hop QA benchmarks.

Discussion

The success of RouteRAG highlights that RL can bridge the reasoning gap between small and large models. By treating efficiency as a learnable trait, the model reserves expensive graph retrievers for complex relational links. Furthermore, the model's ability to "route" around failures makes it less sensitive to initial retriever quality compared to traditional systems.

Limitations and Future Work

Current limitations include the focus on 3B/7B models and a dependency on the underlying knowledge graph quality (HippoRAG 2). Future work will explore scaling to 70B+ models and integrating more diverse tools beyond text and graph retrievers.

Summary updated

BibTeX
@misc{guo2025routerag,
  author = {Yucan Guo and Miao Su and Saiping Guan and Zihao Sun and Xiaolong Jin and Jiafeng Guo and Xueqi Cheng},
  title = {{RouteRAG: Efficient Retrieval-Augmented Generation from Text and Graph via Reinforcement Learning}},
  year = {2025},
  eprint = {2512.09487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.09487},
}
Figure