RAILD: Towards Leveraging Relation Features for Inductive Link Prediction In Knowledge Graphs

Genet Asefa Gesese, Harald Sack, Mehwish AlamarXiv 2022

TL;DR

RAILD is the first inductive link prediction model for Knowledge Graphs (KGs) capable of handling both unseen entities and unseen relations. By combining textual descriptions with a novel graph-based relation feature generator called WeiDNeR, it sets a new state-of-the-art for inductive KG completion.

What Problem Does This Paper Address?

Knowledge Graphs like Wikidata or DBpedia are inherently incomplete. Link Prediction (LP) is the task of automatically filling these gaps by predicting missing triples (head, relation, tail).

Most existing models are transductive, meaning they can only predict links between entities they saw during training. Inductive models are more flexible, using features like textual descriptions to handle new entities. However, even these models hit a wall when they encounter a new relation type. For example, a model trained on "producer" and "director" might fail to understand a new "distributed_by" relationship in a test set.

The authors define three levels of inductive LP, as illustrated in Figure 1:

  • Semi-inductive: One entity is unseen.
  • Fully-inductive: Both entities are unseen.
  • Truly-inductive: Both entities and the relation are unseen.
Figure 1: An example illustrating different settings of in- ductive LP tasks, i.e., semi-inductive (the link from Tenet to Christopher Nolan), fully-inductive (the link from Inception to Christopher Nolan), and truly-inductive (the link from Christopher Nolan to Directors Guild of America) settings

Methods

The RAILD (Relation Aware Inductive Link preDiction) framework uses a two-pronged approach to generate features for entities and relations:

  1. Textual Encoding: It uses a pre-trained BERT model to encode the textual descriptions of both entities and relations into dense vectors.
  2. Structural Encoding (WeiDNeR): For relations, the authors introduce a novel algorithm called WeiDNeR (Weighted and Directed Network of Relations). It builds a "meta-graph" where nodes are relations. An edge is created between two relations if they share entities in specific patterns (e.g., if the tail of relation $r_1$ is the head of relation $r_2$).
  3. Feature Fusion: The model applies Node2Vec to the WeiDNeR graph to extract structural embeddings for relations. These are concatenated with the BERT textual embeddings to create a comprehensive representation.

The final prediction is made using standard scoring functions like TransE or ComplEx, which are fine-tuned alongside the BERT encoder. The full framework is shown in Figure 2.

Figure 2: RAILD framework

Datasets

The authors evaluated RAILD on several benchmarks:

  • Standard Inductive Benchmarks: WN18RR and FB15K-237 (semi-inductive splits).
  • Large-scale Benchmark: Wikidata5M (fully-inductive).
  • New Benchmark: Wikidata68K. Because no existing dataset tested unseen relations, the authors created this new benchmark where the sets of relations in training, validation, and testing are 100% mutually exclusive.

Key Insights and Ideas

  • Relations have "Context": Just as words are defined by the words around them, relations are defined by the types of entities they connect. WeiDNeR captures this "relational context" mathematically.
  • Structure vs. Text: Textual descriptions are great but not always available or descriptive. The authors found that their graph-based features (WeiDNeR) are highly competitive on their own and provide a significant boost when combined with text.
  • Truly-Inductive is Hard: The results on Wikidata68K are lower than standard benchmarks, highlighting that predicting links with entirely new relationship types is a significantly more challenging frontier for AI.

Key Results

RAILD consistently outperformed State-of-the-Art (SOTA) models like BLP and KEPLER:

  • FB15K-237: RAILD-TransE achieved a Hits@10 of 0.3974, outperforming the previous best (BLP-TransE) at 0.363.
  • WN18RR: RAILD-ComplEx reached a Hits@10 of 0.6087.
  • Wikidata5M: Even using a lighter DistilBERT model, RAILD outperformed the KEPLER model across almost all metrics.
  • Ablation Studies: The authors proved that their WeiDNeR features alone (without text) outperformed baseline models that randomly initialize relations, proving the value of relational structural information.

Limitations and Future Work

While RAILD is a breakthrough for unseen relations, it has some limitations:

  • Computational Complexity: Fine-tuning BERT on large KGs is computationally expensive.
  • Graph Sparsity: WeiDNeR relies on shared entities to build the relation network. In extremely sparse graphs where relations don't share many entities, the structural features might be less effective.
  • Future Directions: The authors plan to adapt RAILD for hyper-relational KGs (graphs where triples have extra qualifiers) and investigate how the model performs in "few-shot" scenarios where only a handful of examples exist for a new relation.

Summary updated

BibTeX
@misc{gesese2022raild,
  author = {Genet Asefa Gesese and Harald Sack and Mehwish Alam},
  title = {{RAILD: Towards Leveraging Relation Features for Inductive Link Prediction In Knowledge Graphs}},
  year = {2022},
  eprint = {2211.11407},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.11407},
}
Figure