Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

KG-Agent: An Efficient Autonomous Agent Framework for Complex Reasoning over Knowledge Graph (2402.11163v1)

Published 17 Feb 2024 in cs.CL

Abstract: In this paper, we aim to improve the reasoning ability of 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 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 LLaMA-7B can outperform state-of-the-art methods using larger LLMs or more data, on both in-domain and out-domain datasets. Our code and data will be publicly released.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (7)
  1. Jinhao Jiang (25 papers)
  2. Kun Zhou (217 papers)
  3. Wayne Xin Zhao (196 papers)
  4. Yang Song (298 papers)
  5. Chen Zhu (103 papers)
  6. Hengshu Zhu (66 papers)
  7. Ji-Rong Wen (299 papers)
Citations (23)
X Twitter Logo Streamline Icon: https://streamlinehq.com