How Does Knowledge Graph Embedding Extrapolate to Unseen Data: A Semantic Evidence View

Ren Li, Yanan Cao, Qiannan Zhu, Guanqun Bi, Fang Fang, Yi Liu, Qian Li

Introduction

Knowledge Graph Embedding (KGE) models represent entities and relations in a continuous vector space, enabling the prediction of missing links—a process known as extrapolation. While numerous scoring functions have been proposed to improve performance, the underlying data patterns that facilitate this extrapolation have remained largely unexplored. This research, presented at AAAI-2022, shifts the focus from model complexity to a data-centric analysis of how KGE models generalize from training data to unseen triples.

The Semantic Evidence Framework

The authors propose that a model's ability to predict an unseen triple $(h, r, t)$ is driven by Semantic Evidence (SE) present in the training graph. They categorize this evidence into three distinct levels:

  1. Relation-level SE: Captures the statistical correlation between a relation $r$ and a target entity $t$. For instance, certain relations naturally point to specific types of entities (e.g., "born_in" typically connects to locations).
  2. Entity-level SE: Identifies structural paths or indirect connections between the head entity $h$ and tail entity $t$ within the training set.
  3. Triple-level SE: Leverages the existence of other ground-truth triples $(h, r, t')$ where $t'$ is semantically or structurally similar to $t$.
Illustration of Relation-level, Entity-level, and Triple-level Semantic Evidence.

Empirical analysis across various baseline models (such as TransE, RotatE, and DistMult) demonstrates a strong correlation between the availability of these SE patterns and model performance. Specifically, Mean Rank (MR) improves significantly as the density of semantic evidence increases, suggesting that SE is a fundamental driver of KGE extrapolation regardless of the specific scoring function used.

SE-GNN: Explicitly Modeling Semantic Evidence

To better exploit these patterns, the authors introduced SE-GNN (Semantic Evidence aware Graph Neural Network). Unlike standard GNNs that may capture these signals implicitly, SE-GNN explicitly aggregates information at each of the three SE levels.

The architecture consists of multiple layers that perform specialized aggregations:

  • Relation Aggregation: Employs attention mechanisms to weigh the relevance of neighboring relations.
  • Entity Aggregation: Uses message passing to capture multi-hop path information.
  • Triple Aggregation: Utilizes a composition function to integrate entity and relation features, identifying structural similarities between triples.
Architecture of the SE-GNN model, showing the parallel aggregation of the three levels of Semantic Evidence.

As shown in the architecture diagram, these three representations—$(\mathbf{s}^{rel})$, $(\mathbf{s}^{ent})$, and $(\mathbf{s}^{tri})$—are merged with the initial entity embeddings at each layer. The final output embeddings are then passed to a decoder (e.g., ConvE) for triple scoring and link prediction.

Experimental Results

The model was evaluated on the FB15k-237 and WN18RR benchmarks. SE-GNN achieved state-of-the-art (SOTA) results in 9 out of 10 metrics. Notably, on FB15k-237, it reached a Mean Reciprocal Rank (MRR) of 0.365, outperforming previous GNN-based leaders like CompGCN (0.355).

Ablation studies confirmed the necessity of all three SE components; removing any single level of aggregation resulted in a measurable performance decline. The improvements were particularly significant on FB15k-237, which possesses a richer relational structure compared to the sparser WN18RR dataset.

Conclusion

This work provides a theoretical and empirical foundation for understanding KGE extrapolation through the lens of Semantic Evidence. By explicitly modeling relation, entity, and triple-level patterns, SE-GNN demonstrates superior generalization capabilities. Future research may extend this framework by incorporating external data sources, such as textual descriptions, to further enrich the evidence available for knowledge graph completion.

Summary updated

BibTeX
@inproceedings{li2022how,
  author = {Ren Li and Yanan Cao and Qiannan Zhu and Guanqun Bi and Fang Fang and Yi Liu and Qian Li},
  title = {{How Does Knowledge Graph Embedding Extrapolate to Unseen Data: A Semantic Evidence View}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i5.20521},
}
Figure