Abstract:
Large Language Models (LLMs) have increased the performance of knowledge graph (KG) question answering (QA) significantly, but struggle to jointly guarantee factual grounding, traceable reasoning and robust multi-hop inference. Hallucinated answers and vague reasoning chains are especially problematic when trustworthiness is required. We propose GraphWalker, an agentic LLM paradigm relying on the interplay between two agents leveraging KG interconnections to overcome these issues. The first agent takes a particular node and question as input and operates in the small immediate neighbourhood around the node to make an informed decision about which direction should be explored to gather more relevant context information before formulating an answer. The second agent generates targeted subquestions, based on the main question and the path that has been walked so far, to steer the first agent. This second agent is also responsible for assessing whether enough context has been gathered so far to formulate the answer. Our design, which aims to reduce hallucinations by dynamically exploring only those KG regions relevant to the original question, enforces step-level provenance of retrieved domain knowledge, as the path that was followed to find the answer can be traced explicitly. We evaluate GraphWalker on the text-based MetaQA splits and compare it to other zero-shot LLM-based question answering approaches, including parametric LLMs, text-based RAG, and KG-based RAG. Across all hop distances, GraphWalker achieves higher answer accuracy (+20.87 percentage points on average over best baseline), produces fewer hallucinated responses (-16.47 percentage points on average over best baseline), and better satisfies the requirements of factual grounding and traceability.