An Open-World Extension to Knowledge Graph Completion Models.

Haseeb Shah, Johannes Villmow, Adrian Ulges, Ulrich Schwanecke, Faisal Shafait

Abstract

We present a novel extension to embedding-based knowledge graph completion models which enables them to perform open-world link prediction, i.e. to predict facts for entities unseen in training based on their textual description. Our model combines a regular link prediction model learned from a knowledge graph with word embeddings learned from a textual corpus. After training both independently, we learn a transformation to map the embeddings of an entity’s name and description to the graph-based embedding space. In experiments on several datasets including FB20k, DBPedia50k and our new dataset FB15k-237-OWE, we demonstrate competitive results. Particularly, our approach exploits the full knowledge graph structure even when textual descriptions are scarce, does not require a joint training on graph and text, and can be applied to any embedding-based link prediction model, such as TransE, ComplEx and DistMult.

Introduction: The Challenge of Open-World Completion

Knowledge Graphs (KGs) such as Freebase or DBpedia are foundational to modern AI, yet they are inherently incomplete. Knowledge Graph Completion (KGC) aims to predict missing links between entities. However, traditional KGC models operate under a "closed-world" assumption: they can only reason about entities present during the training phase. If a new entity is introduced, these models are unable to process it without computationally expensive retraining.

Previous attempts at "open-world" KGC often required joint training on graph and text or demanded extensive textual descriptions for every entity. The Open World Extension (OWE) addresses these limitations by providing a modular framework that works with any standard KGC model and remains robust even when textual data is sparse.

The OWE Framework

The OWE approach is designed to be modular and model-agnostic, consisting of three primary phases:

  1. Graph Embedding: A standard KGC model (e.g., TransE, DistMult, or ComplEx) is trained on the existing knowledge graph to create a graph-based embedding space $u$.
  2. Text Aggregation: For entities with textual metadata, pre-trained word embeddings (such as GloVe) are aggregated (e.g., by averaging) to create a text-based representation $v$.
  3. Alignment Mapping ($\Psi^{map}$): A transformation—typically a simple affine transformation—is learned to map the text-based vectors into the pre-existing graph-based embedding space.
Overview of the OWE pipeline: Textual and graph-based embeddings are learned independently and then aligned via a learned transformation.

When an unseen entity is encountered, the model generates its text-based embedding, transforms it into the graph space using $\Psi^{map}$, and then utilizes the pre-trained KGC model to predict its relationships as if it were a known entity.

Experimental Setup and Datasets

The authors evaluated OWE on three key datasets:

  • FB20k: A standard subset of Freebase for text-enhanced KGC.
  • DBpedia50k: A dataset derived from DBpedia.
  • FB15k-237-OWE: A new benchmark introduced to address the "leakage" of inverse relations in older datasets. This dataset uses significantly shorter descriptions (averaging 5 words) to simulate real-world scenarios where detailed metadata is rare.

Key Results and Insights

OWE was benchmarked against state-of-the-art models like ConMask and DKRL, yielding several critical insights:

  • Superiority on Sparse Text: On the FB15k-237-OWE dataset, OWE significantly outperformed ConMask, achieving a Hits@10 of 56.0% compared to 45.8%. This demonstrates the model's effectiveness even with minimal textual input.
  • Decoupling and Robustness: By training the graph model and the text transformation independently, OWE leverages the full graph structure even if only a small fraction of entities have descriptions. The model remains accurate even when 90% of entity descriptions are removed during the mapping phase, as long as entity names are available.
  • Simplicity and Linearity: While complex Multi-Layer Perceptrons were tested, a simple affine transformation often performed best. This suggests a surprisingly linear relationship between semantic text space and graph structure.
  • Model Agnosticism: OWE proved effective across various architectures, with ComplEx-OWE generally providing the best results due to its ability to model asymmetric relations.

Conclusion and Future Work

OWE provides a flexible, efficient bridge between text-based semantic knowledge and graph-based structural knowledge. While the current simple averaging of word vectors is effective and prevents overfitting, it may overlook nuances in longer descriptions. Future research directions include exploring advanced aggregators like Transformers and implementing relation-specific attention mechanisms to focus on relevant keywords within entity descriptions.

Summary updated

BibTeX
@inproceedings{shah2019open,
  author = {Haseeb Shah and Johannes Villmow and Adrian Ulges and Ulrich Schwanecke and Faisal Shafait},
  title = {{An Open-World Extension to Knowledge Graph Completion Models.}},
  booktitle = {AAAI},
  year = {2019},
  url = {https://openreview.net/forum?id=BsWEbGzl_pB},
}
Figure