NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Relational Message Passing for Knowledge Graph Completion

Hongwei Wang, Hongyu Ren, Jure Leskovec

Introduction

Knowledge Graphs (KGs) such as Freebase and WordNet are foundational to modern AI, yet they are notoriously incomplete. Traditional Knowledge Graph Completion (KGC) methods, like TransE or RotatE, rely on learning unique embeddings for every entity. This approach suffers from three major drawbacks: poor scalability due to massive memory requirements, an inability to handle unseen entities (inductive reasoning), and a lack of interpretability.

Methods: The PathCon Framework

Researchers from Stanford have developed PathCon (Relational Paths and Context), a novel framework that shifts the focus from entity identities to relation types. PathCon utilizes two key modules to predict missing links:

  • Relational Context: This module analyzes the "neighborhood" of head and tail entities. By observing the types of relations an entity participates in, the model can infer its semantic role.
  • Relational Paths: This module examines the sequences of relations connecting two entities to identify logical patterns.
The PathCon framework aggregates local relational context and connectivity paths to predict the relationship $r$ between a head $h$ and tail $t$.

To ensure computational efficiency, PathCon introduces Alternate Relational Message Passing. This technique passes messages between edges and nodes iteratively, maintaining the efficiency of standard node-based Graph Neural Networks (GNNs) while focusing on relational connectivity.

Datasets and Evaluation

PathCon was evaluated on five standard benchmarks (FB15K, FB15K-237, WN18, WN18RR, and NELL995) and a new dataset, DDB14. DDB14 is a Disease Database containing 14 relation types and over 9,000 nodes, providing a high-quality, relation-focused resource for medical KG research.

Key Insights: The Power of Relations

A central finding of this work is that relations are sufficient for high-quality link prediction. By focusing on relation types rather than entity IDs, PathCon achieves several advantages:

  • Inductive Capability: The model can generalize to entirely new entities at test time, as it only needs to observe the relations they participate in.
  • Synergy of Context and Paths: Empirical results demonstrate that combining relational context with connectivity paths is significantly more effective than using either in isolation.
Ablation study comparing the performance of context-only, path-only, and combined models across different entity representation types.
  • Rule Discovery: The model's attention weights can be used to extract human-readable logical rules, providing transparency into its decision-making process.

Key Results

PathCon consistently outperformed state-of-the-art embedding-based models:

  • Accuracy: It achieved a 16.7% absolute gain in Hit@1 on the sparse WN18RR dataset.
  • Efficiency: On the DDB14 dataset, PathCon used only 0.06M parameters, a 245x reduction compared to QuatE.
  • Inductive Performance: The model maintained high accuracy even when 100% of test entities were unseen during training.

Future Directions

While PathCon represents a significant step forward, there are opportunities for further enhancement. Integrating richer node features, such as text descriptions via BERT embeddings, could improve performance in feature-rich KGs. Additionally, the authors found that simple path embeddings surprisingly outperformed RNNs for path modeling, suggesting that future work should explore more principled ways to fuse context and path representations.

Summary updated

BibTeX
@inproceedings{wang2021relational,
  author = {Hongwei Wang and Hongyu Ren and Jure Leskovec},
  title = {{Relational Message Passing for Knowledge Graph Completion}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467247},
}
Figure