EM-RBR: a reinforced framework for knowledge graph completion from reasoning perspective

Zhaochong An, Bozhou Chen, Houde Quan, Qihui Lin, Hongzhi Wang

Abstract

Knowledge graph completion aims to predict new links between entities in a knowledge graph (KG). Most mainstream embedding methods focus on fact triplets within the KG, often ignoring the rich background information provided by implicit logic rules. In this paper, we propose EM-RBR (Embedding and Rule-Based Reasoning), a general framework that combines the advantages of rule-based reasoning with state-of-the-art embedding models. EM-RBR utilizes relational background knowledge to conduct multi-relation reasoning for link prediction, exploring deeper contexts to achieve higher accuracy. Experiments on FB15k, WN18, and a new dataset, FB15k-R, demonstrate that EM-RBR outperforms existing models, particularly on rule-rich datasets.

Introduction

Knowledge Graphs (KGs) are structured databases of facts, typically represented as triplets like (head entity, relation, tail entity). While foundational for AI tasks such as search and information extraction, KGs are often incomplete.

Current approaches to filling these gaps primarily rely on embedding-based methods (e.g., TransE, TransD), which map entities and relations into a continuous vector space. While effective, these models depend on data density and struggle with "weak" or infrequent relations. Conversely, rule-based reasoning offers precision through logical inference (e.g., "If X is the leader of Y, then X is a member of Y") but lacks the flexibility to handle the probabilistic nature of real-world data. EM-RBR addresses this by using embeddings to guide and quantify logical reasoning, offering a "best of both worlds" solution.

Methods

The EM-RBR framework treats link prediction as a heuristic search problem, integrating latent embeddings with explicit logic rules through a four-step process.

The four-step architecture of the EM-RBR framework, showing the integration of embedding models and rule mining for reasoning.
  1. Embedding: An initial model (such as TransE or TransD) is trained to represent entities and relations as vectors.
  2. Rule Mining: Logical rules are automatically extracted from the graph using tools like AMIE (e.g., $B_1(x, z) \wedge B_2(z, y) \implies H(x, y)$).
  3. Rule Scoring: Instead of binary logic, rules are scored based on their validity within the vector space. If the embedding vectors for the rule's body align with the head relation vector, the rule receives a higher confidence score.
  4. Reasoning via BFS: To predict a missing link, the model performs a heuristic Breadth-First Search (BFS). It explores multi-relation paths and intermediate entities, using a priority queue to evaluate the most probable paths first, guided by combined rule and embedding scores.

Experimental Evaluation

The model was evaluated on three datasets: FB15k (standard benchmark), WN18 (standard benchmark), and FB15k-R. The latter is a new dataset introduced by the authors, consisting of 1,000 triplets from FB15k that possess "rich rules," designed to test the framework's reasoning capabilities.

Key Results

EM-RBR consistently outperformed standalone embedding models across Mean Rank (MR), MRR, and Hits@n metrics.

  • Significant Gains on WN18: Integrating EM-RBR with the TransD model improved Hits@1 from 0.296 to 0.752—a massive jump in accuracy.
  • Superiority on FB15k-R: On the rule-rich dataset, EM-RBR achieved a Mean Rank of 1.73, significantly better than state-of-the-art models like RotatE (26.66) and ComplEx (51.43).
  • Plug-and-Play Flexibility: The framework demonstrated performance boosts regardless of the underlying embedding model (TransE, TransH, TransR, or TransD).

Discussion and Conclusion

EM-RBR effectively solves the "weak relation" problem by finding logical paths through stronger, more frequent relations to support the prediction of rarer ones. By transforming discrete logic into continuous probability scores via exponential transformations of vector distances, the framework fits seamlessly into modern machine learning pipelines.

However, the framework's efficacy is tied to the quality of mined rules. If no logical rules describe a specific relation, the model reverts to standard embedding performance. Additionally, the BFS-based reasoning is more computationally intensive than simple vector calculations. Future work will focus on integrating more diverse embedding models and optimizing the search process for massive graphs.

Summary updated

BibTeX
@misc{an2020em,
  author = {Zhaochong An and Bozhou Chen and Houde Quan and Qihui Lin and Hongzhi Wang},
  title = {{EM-RBR: a reinforced framework for knowledge graph completion from reasoning perspective}},
  year = {2020},
  eprint = {2009.08656},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.08656},
}
Figure