KG-Agent: An Efficient Autonomous Agent Framework for Complex Reasoning over Knowledge Graph
Jinhao Jiang, Kun Zhou, Xin Zhao, Yang Song, Chen Zhu, Hengshu Zhu, Ji-Rong Wen
Abstract
In this paper, we aim to improve the reasoning ability of large language models (LLMs) over knowledge graphs (KGs) to answer complex questions. Inspired by existing methods that design the interaction strategy between LLMs and KG, we propose an autonomous LLM-based agent framework, called KG-Agent, which enables a small LLM to actively make decisions until finishing the reasoning process over KGs. In KG-Agent, we integrate the LLM, multifunctional toolbox, KG-based executor, and knowledge memory, and develop an iteration mechanism that autonomously selects the tool and then updates the memory for reasoning over KG. To guarantee the effectiveness, we leverage program language to formulate the multi-hop reasoning process over the KG and synthesize a code-based instruction dataset to fine-tune the base LLM. Extensive experiments demonstrate that only using 10K samples for tuning LLaMA2-7B can outperform competitive methods using larger LLMs or more data, on both in-domain and out-domain datasets. Our code and data will be publicly released.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
36 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Debate on Graph: A Flexible and Reliable Reasoning Framework for Large Language Models cites Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning
- Debate on Graph: A Flexible and Reliable Reasoning Framework for Large Language Models cites Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness cites Language Models are Few-Shot Learners
- Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning cites Language Models are Few-Shot Learners
- Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning cites Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings
Cited by top-tier papers36
- Reasoning on Graphs: Faithful and Interpretable Large Language Model ReasoningLinhao Luo, Yuan-Fang Li, Gholamreza Haffari, Shirui PanICLR 2024 · 499 citations
- Can Machine Translation be a Reasonable Alternative for Multilingual Question Answering Systems over Knowledge Graphs?Aleksandr Perevalov, Andreas Both, Dennis Diefenbach, Axel-Cyrille Ngonga NgomoWWW 2022 · 19 citations
- SQLFixAgent: Towards Semantic-Accurate Text-to-SQL Parsing via Consistency-Enhanced Multi-Agent CollaborationJipeng Cen, Jiaxin Liu, Zhixu Li, Jingjing WangAAAI 2025 · 18 citations
- Debate on Graph: A Flexible and Reliable Reasoning Framework for Large Language ModelsJie Ma, Zhitao Gao, Qi Chai, Wangchun Sun et al.AAAI 2025 · 8 citations
- Beyond Single Pass, Looping Through Time: KG-IRAG with Iterative Knowledge RetrievalRuiyi Yang, Hao Xue, Imran Razzak, Flora D. SalimWWW 2026 · 8 citations
Builds on22
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan et al.NeurIPS 2023 · 5,828 citations
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra et al.NeurIPS 2022 · 5,493 citations
- Reasoning on Graphs: Faithful and Interpretable Large Language Model ReasoningLinhao Luo, Yuan-Fang Li, Gholamreza Haffari, Shirui PanICLR 2024 · 499 citations
- Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base EmbeddingsApoorv Saxena, Aditay Tripathi, Partha P. TalukdarACL 2020 · 488 citations
Related papers
- ProgRAG: Hallucination-Resistant Progressive Retrieval and Reasoning over Knowledge GraphsMinbae Park, Hyemin Yang, Jeonghyun Kim, Kunsoo Park et al.AAAI 2026
- EvoMemKG: An Evolvable Memory Agent for Multi-hop Knowledge Graph ReasoningShiyu Tian, Shuyue Xing, Zhuoxin Han, Caixia Yuan et al.ACL Findings 2026
- SymAgent: A Neural-Symbolic Self-Learning Agent Framework for Complex Reasoning over Knowledge GraphsBen Liu, Jihai Zhang, Fangquan Lin, Cheng Yang et al.WWW 2025 · 21 citations
- A Framework of Knowledge Graph-Enhanced Large Language Model Based on Question Decomposition and Atomic RetrievalYading Li, Dandan Song, Changzhi Zhou, Yuhang Tian et al.EMNLP Findings 2024 · 11 citations
- ODA: Observation-Driven Agent for integrating LLMs and Knowledge GraphsLei Sun, Zhengwei Tao, Youdi Li, Hiroshi ArakawaACL Findings 2024 · 11 citations
