GraphWalker: Agentic Knowledge Graph Question Answering via Synthetic Trajectory Curriculum

Shuwen Xu, Yao Xu, Jiaxiang Liu, Chenhao Yuan, Wenshuo Peng +2 more
3/30/2026
cs.CL

Official code: XuShuwenn/GraphWalker (34 stars, MIT, last commit 2026-03-31).

Abstract

Agentic knowledge graph question answering (KGQA) requires an agent to iteratively interact with knowledge graphs (KGs), posing challenges in both training data scarcity and reasoning generalization. Specifically, existing approaches often restrict agent exploration: prompting-based methods lack autonomous navigation training, while current training pipelines usually confine reasoning to predefined trajectories. To this end, this paper proposes \textit{GraphWalker}, a novel agentic KGQA framework that addresses these challenges through \textit{Automated Trajectory Synthesis} and \textit{Stage-wise Fine-tuning}. GraphWalker adopts a two-stage SFT training paradigm: First, the agent is trained on structurally diverse trajectories synthesized from constrained random-walk paths, establishing a broad exploration prior over the KG; Second, the agent is further fine-tuned on a small set of expert trajectories to develop reflection and error recovery capabilities. Extensive experiments demonstrate that our stage-wise SFT paradigm unlocks a higher performance ceiling for a lightweight reinforcement learning (RL) stage, enabling GraphWalker to achieve state-of-the-art performance on CWQ and WebQSP. Additional results on GrailQA and our constructed GraphWalkerBench confirm that GraphWalker enhances generalization to out-of-distribution reasoning paths. The code is publicly available at https://github.com/XuShuwenn/GraphWalker

View on arXivView PDF

Code Implementations(1)

MIT

GraphWalker: Agentic Knowledge Graph Question Answering via Synthetic Trajectory Curriculum

341Cuda, JustMar 31, 20266 months agoMIT

Similar Papers

Cite this paper

@article{xu2026graphwalker,
  title  = {GraphWalker: Agentic Knowledge Graph Question Answering via Synthetic Trajectory Curriculum},
  author = {Shuwen Xu and Yao Xu and Jiaxiang Liu and Chenhao Yuan and Wenshuo Peng and Jun Zhao and Kang Liu},
  year   = {2026},
  eprint = {2603.28533},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.28533v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.28533.svg)](https://codeofpaper.com/paper/2603.28533)

Discussion