Reproduce “DeepPath: A Reinforcement Learning Method for Knowledge Graph Reasoning” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Wenhan Xiong, Thien Hoang, William Yang Wang

Researchers at the University of California, Santa Barbara introduced DeepPath, a reinforcement learning method that discovers multi-hop relational paths in knowledge graphs for reasoning. The system achieved a Mean Average Precision of 0.796 on NELL-995 for link prediction and 0.493 for fact prediction, surpassing previous path-based and embedding-based methods while learning a more compact set of interpretable reasoning paths.

Key insights

  • Representing the Knowledge Graph reasoning environment with continuous entity and relation embeddings as states allows the reinforcement learning agent to leverage semantic information effectively.
  • A multi-component reward function, incorporating global accuracy, path efficiency, and path diversity, effectively guides the RL agent to discover high-quality, interpretable multi-hop reasoning paths.
  • A two-stage training approach, combining supervised pre-training with a randomized BFS and subsequent reinforcement learning with the custom reward function, significantly improves convergence and scalability in environments with large action spaces.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.