Enhancing Knowledge Graph Completion with Entity Neighborhood and Relation Context

Jianfang Chen, Kai Zhang, Aoran Gan, Shiwei Tong, Shuanghong Shen +1 more
3/29/2025
cs.CLcs.AIcs.DB

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Knowledge Graph Completion (KGC) aims to infer missing information in Knowledge Graphs (KGs) to address their inherent incompleteness. Traditional structure-based KGC methods, while effective, face significant computational demands and scalability challenges due to the need for dense embedding learning and scoring all entities in the KG for each prediction. Recent text-based approaches using language models like T5 and BERT have mitigated these issues by converting KG triples into text for reasoning. However, they often fail to fully utilize contextual information, focusing mainly on the neighborhood of the entity and neglecting the context of the relation. To address this issue, we propose KGC-ERC, a framework that integrates both types of context to enrich the input of generative language models and enhance their reasoning capabilities. Additionally, we introduce a sampling strategy to effectively select relevant context within input token constraints, which optimizes the utilization of contextual information and potentially improves model performance. Experiments on the Wikidata5M, Wiki27K, and FB15K-237-N datasets show that KGC-ERC outperforms or matches state-of-the-art baselines in predictive performance and scalability.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025enhancing,
  title  = {Enhancing Knowledge Graph Completion with Entity Neighborhood and Relation Context},
  author = {Jianfang Chen and Kai Zhang and Aoran Gan and Shiwei Tong and Shuanghong Shen and Qi Liu},
  year   = {2025},
  eprint = {2503.23205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.23205v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.23205.svg)](https://codeofpaper.com/paper/2503.23205)

Discussion