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

Exploring Relational Semantics for Inductive Knowledge Graph Completion

Changjian Wang, Xiaofei Zhou, Shirui Pan, Linhua Dong, Zeliang Song, Ying Sha

Abstract

Knowledge Graph Completion (KGC) typically operates in a transductive setting, assuming all entities are known during training. However, real-world Knowledge Graphs (KGs) are dynamic, with new entities emerging constantly. This paper introduces CFAG, a novel framework for inductive KGC that leverages coarse-grained global relational semantics via hypergraphs and fine-grained query-specific semantics through a Generative Adversarial Network (GAN). By aligning new entities with known relational distributions, CFAG achieves significant performance gains on benchmark datasets like FB15k-237 and NELL-995, demonstrating robustness in the face of information scarcity.

Introduction

Knowledge Graphs like DBpedia or NELL are massive networks of facts stored as triples: (head entity, relation, tail entity). Most completion models are transductive, meaning they only work if every entity in the test set was already present during training.

In contrast, the inductive scenario involves predicting facts about entities that emerge after the model has been trained. Existing inductive methods usually rely on Graph Neural Networks (GNNs) to aggregate information from an entity's immediate neighbors. However, these methods often suffer from a narrow local focus and fail to capture the multi-faceted semantics of entities (e.g., an entity acting as both a "writer" and a "director"). CFAG addresses these limitations by incorporating global relational patterns and query-specific refinement.

Methodology: The CFAG Framework

The authors propose CFAG (Coarse-grained and Fine-grained Aggregator), which operates at two distinct levels of semantic granularity.

1. Coarse-Grained Aggregator (CG-AGG)

To capture global context, the model treats relations as hyperedges. In this hypergraph, a "relation" hyperedge connects all entities that share that relation (e.g., all entities that are "authors").

  • Global Aggregator: Uses a Hypergraph Neural Network (HGNN) to gather information from these broad semantic groups.
  • Local Aggregator: Uses a standard GNN to aggregate features from an entity's immediate neighbors.
  • The results are fused to create a multi-semantic base representation.

2. Fine-Grained Generative Adversarial Net (FG-GAN)

To refine these representations for specific queries, the authors employ a Conditional GAN.

  • Generator: A CNN-based module that takes the base entity representation and a specific query relation to produce a "fine-grained" embedding.
  • Discriminator: Forces the generated embeddings to match a prior distribution (a multivariate Gaussian) associated with that specific relation.
The CFAG architecture, illustrating the transition from triples to a hyperedge matrix, the coarse-grained aggregation (CG-AGG), and the fine-grained GAN (FG-GAN) modules.

Experimental Evaluation

The model was evaluated on inductive versions of two standard benchmarks: FB15k-237 and NELL-995. The authors created four specific inductive subsets (Subject-based and Object-based versions) by withholding 30% of triples to create "emerging" entities that the model only encounters at test time.

Key Results

CFAG consistently outperformed state-of-the-art inductive baselines across all metrics:

  • Significant Gains: On the NELL-995-Sub dataset, CFAG achieved a 36.6% relative improvement in Hits@1 compared to the next best model.
  • Robustness: As the percentage of emerging entities increased, CFAG’s performance remained more stable than its competitors, proving it is more robust to "information scarcity."
  • Versatility: Even in traditional transductive settings, CFAG remained competitive with specialized models like ConvE.

Key Insights

The core innovation of CFAG is treating relations as semantic anchors. Even if an entity is new, the relations it participates in are known. By aligning new entities with the established "semantic distribution" of a relation, the model can generalize effectively.

Visualization of entity embeddings using t-SNE. Comparing CFAG without the generator (left) to the full CFAG model (right) shows that the fine-grained component significantly improves semantic clustering for specific relations.

As shown in the t-SNE visualizations, the adversarial training acts as a powerful regularizer. It prevents the model from creating "noisy" embeddings for new entities by forcing them to look like valid members of a relation's known entity distribution.

Limitations and Future Work

While CFAG represents a significant step forward, it still requires at least some "auxiliary triples" (initial connections) for a new entity to generate an embedding; it cannot yet handle "cold-start" entities with zero connections. Additionally, the current model uses a single multivariate Gaussian as a prior for relations, which may not capture more complex, multi-modal distributions. Future research will explore more flexible prior distributions and methods to reduce the computational complexity of training GANs alongside Hypergraph GNNs.

Summary updated

BibTeX
@inproceedings{wang2022exploring,
  author = {Changjian Wang and Xiaofei Zhou and Shirui Pan and Linhua Dong and Zeliang Song and Ying Sha},
  title = {{Exploring Relational Semantics for Inductive Knowledge Graph Completion}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i4.20337},
}
Figure