Abstract
Knowledge Graph Completion (KGC) is essential for addressing the inherent incompleteness of large-scale Knowledge Graphs. While recent text-based models have shown promise, they often overlook the rich structural context provided by an entity's neighborhood. We present NNKGC (Node Neighborhood-enhanced Knowledge Graph Completion), a framework that integrates Graph Neural Networks (GNNs) to capture multi-hop structural information. By combining text-based representations with a novel neighborhood edge prediction task, NNKGC achieves state-of-the-art results on benchmark datasets while improving prediction explainability.
Introduction
Knowledge Graphs (KGs) like Freebase and WordNet serve as the backbone for numerous downstream applications, yet they are notoriously incomplete. The task of Knowledge Graph Completion (KGC) aims to predict missing links between entities. Existing approaches typically fall into two categories: embedding-based models, which learn geometric representations, and text-based models, which utilize pre-trained language models like BERT to process entity descriptions.
Despite their success, text-based models often treat neighbors as flat lists or restrict their view to immediate connections. NNKGC addresses this by explicitly modeling the multi-hop structural context of entities, arguing that local topology is vital for accurate and explainable link prediction.
Methodology
The NNKGC framework consists of three primary components designed to fuse textual and structural information:
- Node Encoder: A pre-trained BERT model encodes entity names, descriptions, and relation text into initial vector representations.
- Neighborhood Modeling: The model identifies neighbors up to $k$ hops away and employs a Graph Neural Network (GNN)—such as GCN, GAT, or GraphSAGE—to aggregate information. This allows the model to propagate context from the broader graph into the head entity's embedding.
- Dual-Task Learning: The model is optimized using two simultaneous objectives:
- KGC Task: Predicting the target tail entity using contrastive learning (InfoNCE loss).
- Neighborhood Edge Prediction: A Variational Graph Autoencoder (VGAE) attempts to reconstruct missing edges within the local neighborhood. This structural regularizer ($\mathcal{L}_{edge}$) forces the GNN to capture the underlying graph geometry.
Experimental Setup
We evaluated NNKGC on two standard benchmarks:
- FB15k-237: A subset of Freebase containing general world knowledge.
- WN18RR: A subset of WordNet focusing on lexical relations.
Key Results
NNKGC consistently outperformed previous state-of-the-art models. The inclusion of the edge prediction loss (denoted as NNKGC$_e$) provided a significant performance boost, demonstrating the value of structural regularization.
On FB15k-237, NNKGC achieved a Mean Reciprocal Rank (MRR) of 33.8, surpassing the previous leader, SimKGC (33.6). On WN18RR, the model reached an MRR of 67.4, establishing a new competitive mark. Qualitative analysis revealed that the model successfully "borrows" information from neighbors when entity descriptions are sparse, such as using a neighbor's location to infer a person's nationality.
Discussion and Analysis
- The Impact of Hops: Empirical results suggest that 2-hop neighborhoods offer the optimal balance between context and noise. While additional hops provide more information, they increase computational complexity and can introduce irrelevant data that degrades performance.
- GNN Architectures: GraphSAGE and Graph Attention Networks (GAT) generally outperformed vanilla GCNs. Their ability to weigh the importance of different neighbors is crucial for filtering relevant structural context.
- Explainability: By leveraging neighborhood structures, NNKGC provides inherent evidence for its predictions. The model can point to specific neighbor entities whose attributes support a predicted relation.
Conclusion
NNKGC demonstrates that integrating multi-hop structural context with text-based representations significantly improves Knowledge Graph Completion. While challenges remain regarding scalability to massive graphs and sensitivity to neighborhood noise, the dual-task learning approach provides a robust foundation for future structural-textual hybrid models.
Summary updated