Inductive Relation Inference of Knowledge Graph Enhanced by Ontology Information

Wentao Zhou, Jun Zhao, Tao Gui, Qi Zhang, Xuanjing Huang

Introduction

Knowledge Graphs (KGs) are essential for modern AI applications but often suffer from incompleteness. While transductive models can predict missing links between known entities, inductive inference—predicting relations for entirely new entities—remains a significant challenge. Existing methods typically rely on the local structural neighborhood (enclosing subgraphs). However, new entities often face a "cold-start" problem where their neighborhoods are too sparse for structural analysis. This paper proposes leveraging high-level ontology information (entity types and concepts) to bridge this gap, providing a semantic safety net when structural data is lacking.

Methodology

The proposed framework integrates structural graph data with ontological semantics through a three-step process:

  1. Ontology-Aware Node Initialization: Nodes are initialized by combining their subgraph positional features with Type Features. These features are derived from the entity's associated concepts in the ontology using an attention mechanism that prioritizes concepts relevant to the specific relation being predicted.
  2. Subgraph Neural Network: A modified Relational Graph Convolutional Network (R-GCN) processes the enclosing subgraph. By "priming" nodes with semantic type information, the GNN learns to correlate specific graph structures with high-level concepts.
  3. Type Constraint Regular Loss: To handle incomplete real-world ontologies, a "type constraint" loss forces entity embeddings to remain close to their corresponding concept embeddings in a shared semantic space. This allows the model to infer missing types for entities based on their graph behavior.
Overview of the proposed framework, showing node initialization, subgraph extraction, and the joint training with ontology constraints.

The model is trained jointly on entity-level triples and ontology-level triples (concept-to-concept relations), ensuring the entire semantic hierarchy is optimized for the prediction task.

Experimental Setup

The model was evaluated on two new inductive benchmarks:

  • YAGO21K-610: Derived from YAGO, containing over 16,000 training entities and ~4,000 unseen test entities.
  • DB45K-165: Derived from DBpedia, featuring ~30,000 training entities and ~9,600 unseen test entities.
  • FB15k-237 (Modified): Used for transductive baselines, supplemented with WikiData type information.

Key Results and Discussion

The proposed method significantly outperformed state-of-the-art (SOTA) baselines like GraIL, TACT, and SNRI. On the YAGO21K-610 dataset, the model improved Mean Reciprocal Rank (MRR) by 15.4%, while on DB45K-165, it achieved a staggering 44.1% improvement.

Cold-Start Resilience

A critical finding is the model's robustness in sparse scenarios. When entities have very few neighbors (1-2), purely structural models like GraIL see a sharp decline in performance. In contrast, the proposed model maintains high accuracy by relying on ontological information.

Performance comparison (Metrics vs. Neighbors) on YAGO21K-610 and DB45K-165, highlighting the model's superiority in sparse (low-neighbor) settings.

Insights

  • Ontology as a Safety Net: The model gracefully degrades to rely on ontology when graph structure is sparse. In contrast, purely structural models fail completely in these scenarios.
  • Semantic Constraints: Explicitly modeling entity-concept links as constraints rather than just features makes the model robust to missing metadata, allowing it to "guess" types based on graph behavior.
  • Comparison with LLMs: Despite the reasoning capabilities of Large Language Models, this specialized graph-based approach significantly outperformed ChatGPT, suggesting that dedicated architectures remain superior for structured symbolic reasoning.

Conclusion

This work demonstrates that integrating ontology information significantly enhances inductive link prediction, especially in cold-start scenarios. Future work will explore more complex hierarchical modeling of concepts and dynamic optimization of hyperparameters. While the model handles sparsity well, predicting types with zero structural context remains a challenge for future research.

Summary updated

BibTeX
@inproceedings{zhou2023inductive,
  author = {Wentao Zhou and Jun Zhao and Tao Gui and Qi Zhang and Xuanjing Huang},
  title = {{Inductive Relation Inference of Knowledge Graph Enhanced by Ontology Information}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.431},
}
Figure