AutoGraph-R1: End-to-End Reinforcement Learning for Knowledge Graph Construction
Hong Ting Tsang, Jiaxin Bai, Haoyu Huang, Qiao Xiao, Tianshi Zheng, Baixuan Xu, Shujie Liu, Yangqiu Song
TL;DR
AutoGraph-R1 addresses the core gap between KG construction and downstream QA by introducing an end-to-end reinforcement learning framework that tunes an LLM-based KG constructor to maximize QA utility. It designs two task-aware rewards, the Knowledge-Carrying Reward $R_C$ and the Knowledge-Indexing Reward $R_I$, and optimizes the KG with Group-Relative Policy Optimization (GRPO) while keeping the retriever fixed. Across five QA benchmarks and multiple RAG paradigms, AutoGraph-R1 yields consistent end-to-end gains and improves both retrieval effectiveness and intrinsic factual quality of graphs, illustrating that functionally useful graphs can be learned directly from task signals. This work shifts the focus from building intrinsically good graphs to constructing graphs demonstrably useful for the intended downstream reasoning tasks, enabling more effective retrieval-augmented generation systems. $R_C$ and $R_I$ guide the KG construction to support multi-hop reasoning and efficient indexing, respectively, demonstrating robust improvements in both graph knowledge retrieval and passage recall.
Abstract
Building effective knowledge graphs (KGs) for Retrieval-Augmented Generation (RAG) is pivotal for advancing question answering (QA) systems. However, its effectiveness is hindered by a fundamental disconnect: the knowledge graph (KG) construction process is decoupled from its downstream application, yielding suboptimal graph structures. To bridge this gap, we introduce AutoGraph-R1, the first framework to directly optimize KG construction for task performance using Reinforcement Learning (RL). AutoGraph-R1 trains an LLM constructor by framing graph generation as a policy learning problem, where the reward is derived from the graph's functional utility in a RAG pipeline. We design two novel, task-aware reward functions, one for graphs as knowledge carriers and another as knowledge indices. Across multiple QA benchmarks, AutoGraph-R1 consistently enables graph RAG methods to achieve significant performance gains over using task-agnostic baseline graphs. Our work shows it is possible to close the loop between construction and application, shifting the paradigm from building intrinsically ``good'' graphs to building demonstrably ``useful'' ones.
