arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29263

RACER: Reinforced Agent Collaboration for Explainable Reasoning on Knowledge Graphs

Yuwei Lou, Hao Hu, Yuzhou Jiang, Zongfei Zhang, Liang Wang, Jincai Liu, Jidong Ge, Xianping Tao

Yuwei Lou 1^{1}[0009-0002-5058-6401], Hao Hu 1^{1}[0009-0001-8277-9876], Yuzhou Jiang 1^{1}[0009-0006-5881-8843], Zongfei Zhang 2^{2}[0009-0000-6702-8807], Liang Wang 1^{1}[0000-0001-5444-748X], Jincai Liu 3^{3}[0009-0003-4411-9847], Jidong Ge 1^{1}[0000-0003-1773-0942], and Xianping Tao 1^{1}[0000-0002-5536-3891]

State Key Laboratory for Novel Software Technology, Nanjing University, China

{yuweilou, jiangyuzhou}@smail.nju.edu.cn, {myou,wl,gjd,txp}@nju.edu.cn

Independent Researcher zhangzongfei007@gmail.com

Chinaunicom Software Nanjing Branch liujc50@chinaunicom.cn

Abstract. Large Language Models (LLMs) often suffer from hallucination and struggle with complex reasoning tasks requiring multi-hop domain knowledge. While integrating Knowledge Graphs (KGs) provides a structured and verifiable information source, current KG-enhanced LLM paradigms usually rely on single-agent path extraction and fixed prompting, lacking adaptability and facing huge search spaces. To address these challenges, we propose RACER, a Reinforced Agent Collaboration framework for Explainable Reasoning on knowledge graphs. RACER employs a semantic-aware action pruning and teacher-guided reinforcement learning mechanism to efficiently extract high-quality reasoning pathways from large-scale KGs. Furthermore, to mitigate single-path generation pitfalls, we introduce a cross-task accumulated shared memory graph paired with an attention-driven multi-path knowledge refinement module. Finally, RACER orchestrates these components through a four-role multi-agent collaboration system (GraphAgent, TemplateAgent, AnswerAgent, and CriticAgent) to dynamically refine prompts and evaluate answers. Extensive experiments on CommonsenseQA and OpenBookQA datasets demonstrate that RACER significantly outperforms state-of-the-art KG-enhanced LLM baselines with an average improvement of 5%, offering robust and highly interpretable reasoning capabilities.

Keywords: Large Language Models · Knowledge Graphs · Reinforcement Learning · Multi-Agent Systems · Commonsense Reasoning.

1 Introduction

As Large Language Models (LLMs) continue to demonstrate increasingly powerful capabilities [1,19], agents built upon models such as Gemini 3 and Claude 4.5 have begun to see widespread deployment in real-world applications [3,10,18,21]. Despite the impressive performance exhibited by these model-based agents, hallucination problems [4], inherent to their underlying architecture, inevitably emerge and compromise task accuracy. A particularly critical challenge arises

Y. Lou et al.

when LLMs encounter scenarios absent from their training data or involving long-range dependencies between related samples, where their effectiveness often degrades significantly [18,21].

Retrieval-Augmented Generation (RAG) has been regarded as a promising solution for mitigating hallucinations. By leveraging external knowledge bases relevant to the query, RAG enhances the operational efficacy of LLMs [11,12,18], substantially reducing hallucination occurrences and thereby improving task accuracy. However, due to variations in data quality, scattered distribution of query-relevant knowledge within external corpora [12], or the necessity of synthesizing multiple external knowledge sources for correct reasoning, RAG often fails to retrieve knowledge that accurately matches the query. These practical challenges significantly limit the effectiveness of RAG in real-world deployments [21]. Although Microsoft's GraphRAG [5] advances RAG beyond dense vector retrieval by incorporating knowledge graph structures, the core retrieval process itself does not involve the graph structure in a learnable manner, nor does it incorporate trainable retrieval strategies.

Structured Knowledge Graphs (KGs) [9,21] store atomic facts as (head, relation, tail) triples, inherently supporting multi-hop reasoning, verifiability, and plug-and-play updates [9,21,21,31]. The knowledge encoded in KGs explicitly represents relational logical pathways from one entity to another [9,21,31], offering a novel paradigm for LLMs to execute complex tasks. Current research primarily focuses on incorporating fixed KG knowledge during LLM pre-training [22,25], while another line of work investigates leveraging structural and logical knowledge within KGs to augment internal LLM reasoning processes, as exemplified by K-BERT [14]. However, many state-of-the-art LLMs, such as GPT, Gemini, and Claude series, remain closed-source and inaccessible. Consequently, recent efforts have shifted toward utilizing structured KG knowledge for prompt engineering with LLMs [13,21]. For instance, CoK [28] validates the faithfulness of LLM-generated reasoning chains by contrasting them with external KG knowledge; KGR [7] progressively extracts and refines knowledge from KGs to optimize LLM reasoning trajectories; and KnowGPT [33] proposes extracting reasoning paths from KGs through machine learning techniques, combined with templates, to enhance LLM performance.

Despite the promising progress in integrating Knowledge Graphs with LLMs, several critical challenges remain: (1) Enormous search space. The vast scale of KGs renders retrieval inherently difficult. Although some approaches [29,33] employ machine learning techniques to address this, their efficiency remains limited. (2) Fixed template constraints. Most templates designed for LLM execution rely on handcrafted expert rules. Even in KnowGPT, templates are predominantly pre-designed and dynamically selected via multi-armed bandits during task execution, which demonstrates suboptimal performance in practice. (3) Limited task execution efficiency. While enhancing prompt engineering through KGs presents a compelling direction, most existing approaches delegate tasks to a single LLM, completely overlooking the advantages of Multi-Agent Systems (MAS) research.

To address these challenges, we propose RACER: Reinforced Agent Collaboration for Explainable Reasoning on Knowledge Graphs, a task-enhancement framework that integrates reinforcement learning, knowledge graphs, and multi-agent collaboration. RACER leverages reinforcement learning to extract critical reasoning paths from knowledge graphs, refining knowledge to establish strong relevance with the query. Furthermore, it employs multi-agent collaborative procedures to align these paths more effectively with task execution, substantially improving operational efficiency. Our key contributions are summarized as follows:

  1. We propose a semantic-aware action pruning and teacher-guided reinforcement learning (RL) framework for extracting efficient reasoning paths over large-scale knowledge graphs conditioned on query inputs.

  2. We design a cross-task accumulated shared memory graph that records global statistical information for each edge, integrating this knowledge into path selection and refinement processes. Through a dual attention mechanism, we refine multiple candidate paths to generate high-quality natural language knowledge snippets, providing interpretable knowledge support for downstream language models.

  3. We construct a four-role multi-agent collaborative reasoning framework built upon the aforementioned contributions. Through well-defined division of labor and active feedback mechanisms (including a closed-loop review by the CriticAgent), we achieve end-to-end optimization spanning from path search to knowledge generation and final question answering.

  4. We systematically validate the effectiveness of our proposed method across multiple benchmark datasets, achieving approximately 5% performance improvement over state-of-the-art baselines.

References (32)