Learning Collaborative Agents with Rule Guidance for Knowledge Graph Reasoning

Deren Lei, Gangrong Jiang, Xiaotao Gu, Kexuan Sun, Yuning Mao, Xiang Ren

Abstract

Knowledge Graph (KG) reasoning is a fundamental task in artificial intelligence, aimed at predicting missing links within large-scale factual networks. While embedding-based models offer high accuracy, they lack interpretability. Conversely, walk-based reinforcement learning (RL) models provide transparency but often struggle with the "sparse reward" problem. This paper introduces RuleGuider, a framework that leverages symbolic logic rules to provide a dense reward signal, guiding RL agents toward logical reasoning paths. By employing a collaborative multi-agent architecture, RuleGuider achieves state-of-the-art performance on benchmark datasets like WN18RR and NELL-995 while producing human-readable explanations.

Introduction

Knowledge Graphs (KGs) represent facts as triples (e.g., [Paris, capital_of, France]). Despite their utility, KGs are notoriously incomplete. Predicting missing links—KG reasoning—is typically approached via three paradigms:

  1. Embedding-based models: Highly accurate but "black box" in nature.
  2. Symbolic-based models: Use logic rules (e.g., If A is father of B, and B is father of C, then A is grandfather of C). These are interpretable but limited by the scope of mined rules.
  3. Walk-based (RL) models: Agents navigate the graph to find answers. While interpretable, agents often wander aimlessly due to sparse rewards, receiving feedback only upon reaching the correct destination.

RuleGuider addresses the sparse reward challenge by using logic rules as a "warm" reward signal, coaching the agent before it reaches its goal.

Methods

RuleGuider integrates a symbolic Rule Miner with a collaborative multi-agent RL system.

Collaborative Multi-Agent Architecture

The reasoning task is split between two specialized agents to prune the search space effectively:

  • Relation Agent: Determines the next relationship type to follow, pre-trained on patterns from mined logic rules.
  • Entity Agent: Selects the specific destination entity from available options once a relation is chosen.
The RuleGuider framework featuring collaborative Relation and Entity Agents guided by a Pretrained Rule Miner.

Reward Shaping

The "secret sauce" of RuleGuider is its composite reward function:

  • Rule Guidance Reward ($R_r$): Encourages paths that align with high-confidence logic rules mined by AnyBURL.
  • Hit Reward ($R_h$): A standard binary reward for reaching the correct target entity.

This combination provides incremental encouragement for logical paths, even if the final destination hasn't been reached yet.

Experimental Setup

The model was evaluated on three standard benchmarks: WN18RR (lexical relations), NELL-995 (general facts), and FB15k-237 (world knowledge). These datasets vary in rule quality and graph density, providing a robust testing ground for the framework.

Key Results

RuleGuider demonstrates significant improvements over existing interpretable and embedding-based models.

Performance Benchmarks

As shown in the table below, RuleGuider (using ComplEx embeddings) achieved an MRR of 48.0 on WN18RR, outperforming previous state-of-the-art interpretable models like MultiHop.

Comparison of RuleGuider against baseline interpretable and embedding-based models across three datasets.

Human Evaluation and Interpretability

A study on Amazon Mechanical Turk revealed that humans preferred RuleGuider’s reasoning paths 63% of the time compared to baselines. The collaborative agent approach also proved more efficient at navigating large relational spaces than single-agent variants.

Conclusion

RuleGuider successfully bridges the gap between symbolic logic and reinforcement learning. By using rules as heuristics, the model overcomes the sparse reward problem inherent in graph navigation. While performance is somewhat dependent on the quality of mined rules, the framework sets a new standard for interpretable and accurate Knowledge Graph reasoning. Future work may involve incorporating more complex acyclic rules to further enhance reasoning depth.

Summary updated

BibTeX
@inproceedings{lei2020learning,
  author = {Deren Lei and Gangrong Jiang and Xiaotao Gu and Kexuan Sun and Yuning Mao and Xiang Ren},
  title = {{Learning Collaborative Agents with Rule Guidance for Knowledge Graph Reasoning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.688},
}
Figure