Context-aware Inductive Knowledge Graph Completion with Latent Type Constraints and Subgraph Reasoning

Muzhi Li, Cehao Yang, Chengjin Xu, Zixing Song, Xuhui Jiang +3 more
10/22/2024
cs.AIcs.CL

No official code found. Best implementation: DataArcTech/CATS (28 stars, last commit 2025-05-26).

Abstract

Inductive knowledge graph completion (KGC) aims to predict missing triples with unseen entities. Recent works focus on modeling reasoning paths between the head and tail entity as direct supporting evidence. However, these methods depend heavily on the existence and quality of reasoning paths, which limits their general applicability in different scenarios. In addition, we observe that latent type constraints and neighboring facts inherent in KGs are also vital in inferring missing triples. To effectively utilize all useful information in KGs, we introduce CATS, a novel context-aware inductive KGC solution. With sufficient guidance from proper prompts and supervised fine-tuning, CATS activates the strong semantic understanding and reasoning capabilities of large language models to assess the existence of query triples, which consist of two modules. First, the type-aware reasoning module evaluates whether the candidate entity matches the latent entity type as required by the query relation. Then, the subgraph reasoning module selects relevant reasoning paths and neighboring facts, and evaluates their correlation to the query triple. Experiment results on three widely used datasets demonstrate that CATS significantly outperforms state-of-the-art methods in 16 out of 18 transductive, inductive, and few-shot settings with an average absolute MRR improvement of 7.2%.

View on arXivView PDF

Code Implementations(1)

DataArcTech/CATSCommunity100%

Offical code implementation of our AAAI2025 paper "Context-aware Inductive Knowledge Graph Completion with Latent Type Constraints and Subgraph Reasoning"

282PythonDec 10, 20241 years ago

Similar Papers

Cite this paper

@article{li2024contextaware,
  title  = {Context-aware Inductive Knowledge Graph Completion with Latent Type Constraints and Subgraph Reasoning},
  author = {Muzhi Li and Cehao Yang and Chengjin Xu and Zixing Song and Xuhui Jiang and Jian Guo and Ho-fung Leung and Irwin King},
  year   = {2024},
  eprint = {2410.16803},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.16803v3}
}

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/2410.16803.svg)](https://codeofpaper.com/paper/2410.16803)

Discussion