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

Context-Driven Knowledge Graph Completion with Semantic-Aware Relational Message Passing

Siyuan Li, Ruitong Liu, Yan Wen, Te SunICONIP 2025

Abstract

Knowledge Graph Completion (KGC) is essential for addressing the inherent incompleteness of large-scale relational databases. Traditional methods often suffer from information dilution or high parameter costs. This paper introduces Semantic-Aware Relational Message Passing (SARMP), a framework that prioritizes relational features and employs a Top-K selection strategy to filter contextual noise. SARMP achieves state-of-the-art performance on benchmarks like FB15K-237 while maintaining extreme parameter efficiency, defining entity identities through local relational structures rather than static embeddings.

1. Introduction

Knowledge Graphs (KGs) such as Freebase and WordNet serve as foundational backbones for various AI applications, yet they are frequently incomplete. The task of KGC involves predicting missing triplets $(h, r, t)$ to enhance graph density. Existing methodologies typically bifurcate into embedding-based methods and Graph Neural Network (GNN) based methods.

Embedding-based approaches map entities and relations into latent vector spaces but often fail to generalize to unseen entities (the transductive limitation) and struggle with complex logical dependencies. Conversely, GNN-based methods utilize message passing to aggregate neighborhood information but are prone to "information dilution" and "over-smoothing." These models often treat all neighbors as equally important, introducing irrelevant noise that drowns out the specific semantic context needed for accurate link prediction.

2. The SARMP Framework

SARMP addresses the limitations of traditional GNNs by shifting the focus from node-centric to relation-centric message passing. The framework is built upon several core innovations designed to refine the quality of information passed through the graph.

2.1 Semantic-Aware Top-K Neighbor Selection

To combat information dilution, SARMP does not aggregate all neighboring edges. Instead, it projects edges into a shared latent space and calculates similarity scores. Only the Top-K most semantically relevant edges are selected to inform the update. This mechanism acts as a selective filter, ensuring that only contextually pertinent information influences the representation while discarding noisy, irrelevant neighbors.

2.2 Multi-Head Attention Aggregator

Following the selection of Top-K neighbors, a multi-head attention mechanism is employed to fuse their information. This allows the model to capture diverse semantic nuances by weighing different aspects of the contextual information differently, depending on the specific relation being predicted.

2.3 Alternating Message Passing

The model employs an iterative refinement process where it refines both node and edge representations. An edge's message is derived from its endpoint nodes, and a node's representation is subsequently updated by mean-pooling its incident, semantically enriched edges. This alternating cycle ensures that the structural properties of the graph are deeply integrated into the learning process.

2.4 Identity via Context

Crucially, SARMP defines a node’s identity purely through its surrounding relational structure rather than a static, stored embedding. This makes the model more robust and significantly more parameter-efficient than traditional methods.

3. Experimental Evaluation

The model was evaluated on four standard KGC benchmarks: FB15K-237 (general knowledge), WN18RR (lexical relations), Kinship (family relationships), and UMLS (biomedical terminology).

3.1 Performance and Efficiency

SARMP achieved state-of-the-art results, specifically reaching the highest Mean Reciprocal Rank (MRR) on FB15k-237 (0.492) and Kinship (0.863). It remained highly competitive on WN18RR and UMLS.

A standout feature of SARMP is its extreme parameter efficiency. Because it avoids large entity embedding lookups, it uses only 0.34M parameters on FB15k-237, compared to 5.9M for TransE or 1.67M for PathCon. This represents a significant reduction in computational overhead without sacrificing predictive power.

3.2 Key Insights

  • The "Less is More" Effect: Ablation studies confirmed that the Top-K selection was the most critical component. Removing this filter caused a significant drop in performance, proving that indiscriminate aggregation is a major bottleneck in KG reasoning.
  • Complex Relations: The model showed particular strength in predicting "1-N," "N-1," and "N-N" relationship types, which are traditionally more difficult for standard embedding models.
  • Optimal Hops: Performance was found to peak at 2 hops. Beyond this, the exponential increase in sampled neighbors introduces too much noise, leading to the classic GNN challenge of performance degradation at depth.

4. Limitations and Future Work

Despite its success, SARMP faces a "hop ceiling" where deeper graph traversals introduce noise that the current Top-K strategy cannot fully mitigate. Additionally, the model is sensitive to the choice of $K$; if $K$ is too small, the model lacks sufficient context, while a $K$ that is too large reintroduces noise. Future research will explore automated ways to handle exponential neighbor sampling to allow for deeper logical reasoning.

5. Conclusion

SARMP represents a significant advancement in Knowledge Graph Completion by demonstrating that semantic filtering is more effective than exhaustive aggregation. By focusing on relational context and maintaining a lean parameter profile, SARMP provides a scalable and accurate solution for reasoning over complex relational data.

Summary updated

BibTeX
@inproceedings{li2025context,
  author = {Siyuan Li and Ruitong Liu and Yan Wen and Te Sun},
  title = {{Context-Driven Knowledge Graph Completion with Semantic-Aware Relational Message Passing}},
  booktitle = {ICONIP},
  year = {2025},
}
Figure