Entity Type Prediction in Knowledge Graphs using Embeddings

Russa Biswas, Radina Sofronova, Mehwish Alam, Harald SackarXiv 2020

TL;DR

This paper introduces a multi-label classification approach to predict missing or fine-grained entity types in Knowledge Graphs (KGs) like DBpedia. By treating KG triples as "sentences" and applying word embedding techniques (Word2Vec, GloVe, and FastText) followed by a Convolutional Neural Network (CNN), the researchers demonstrate a robust way to clean up and complete the messy type hierarchies found in large-scale open data.

What Problem Does This Paper Address?

Open Knowledge Graphs are the bedrock of modern AI applications, from search engines to recommendation systems. However, because they are often built using automated extraction from Wikipedia or crowd-sourced contributions, they are notoriously "noisy" and incomplete.

A major issue is coarse-grained typing. For example, an entity might be labeled generally as a SportsTeam, but the KG fails to specify if it’s a BasketballTeam or a FootballTeam. As shown in the authors' analysis of DBpedia, over 91% of entities in the SportsTeam class lack a more specific subclass assignment.

Table 1: Distribution of entities in subclasses showing the prevalence of coarse-grained typing.

Traditional KG embedding methods (like TransE or TransR) focus primarily on the graph's structure—who is connected to whom. This paper argues that these methods miss out on the implicit textual semantics embedded in the labels of the entities and relations themselves (e.g., the word "birthplace" inherently suggests a relationship between a person and a location).

Methods

The authors propose a two-step pipeline:

  1. KG as a Corpus: They treat every triple (subject, predicate, object) as a three-word sentence. For instance, <dbr:Albert_Einstein, dbo:birthPlace, dbr:Ulm> becomes a sentence used to train standard NLP word embedding models. They tested three heavy hitters: Word2Vec (CBOW), GloVe, and FastText. This allows the model to capture semantic meaning from the URI strings.
  2. Classification: Once entities are represented as 100-dimensional vectors, the authors apply two different strategies to predict types:
  3. Vector Similarity (Baseline): They calculate an average "class vector" for each type and assign types to entities based on cosine similarity.
  4. 1D CNN: They build a Convolutional Neural Network on top of the embeddings. The CNN uses multiple kernel sizes (3, 4, and 6) to extract features from the entity vectors, followed by a sigmoid layer to handle multi-label classification (since one entity can belong to multiple types).

![Fig.

  1. A subgraph from DBpedia illustrating the textual information available in labels.](/figures/art_b61b5ded22794b4fada41af4eef2e544)

Datasets

The study utilized three custom datasets derived from DBpedia 2016-10, varying in scale to test the robustness of the models:

  • Small: 59 classes, 500 entities per class.
  • Medium: 86 classes, 2,000 entities per class.
  • Large: 81 classes, 4,000 entities per class.

They also compared their results against SDTyped, a well-known heuristic-based dataset for type prediction.

Key Insights and Ideas

  • The Power of Textual Semantics: Treating URIs as text allows the model to learn that dbo:birthPlace and dbo:deathPlace are related to the same types of entities, even if the graph structure is sparse.
  • CNNs "Rescue" Poor Embeddings: One of the most interesting findings involved GloVe. While GloVe performed terribly using simple vector similarity (as low as 7.07% accuracy), the CNN was able to extract enough features from those same vectors to achieve over 53% accuracy. This suggests that the "meaning" is present in the vector space, but it isn't organized in simple linear clusters.
  • Data Hunger: The performance of the neural network models improved as the number of entities per class increased, confirming that these models scale well with the massive amounts of data typically found in KGs.

Key Results

The CNN approach consistently outperformed the vector similarity baseline across all embedding types.

  • Top Performer: The Word2Vec + CNN combination generally yielded the best results, reaching 62% accuracy on the largest dataset.
  • FastText was a close second, proving particularly useful for capturing information from rare or shorter URI strings due to its character n-gram approach.
  • Comparison with SDTyped: While a direct comparison was difficult due to low overlap between the datasets (only 26-34% of entities were shared), the authors provided an analysis of these overlapping instances to validate their ground truth.
Table 2: Experimental results comparing different embedding models and classification strategies.

Limitations and Future Work

The authors acknowledge that their current evaluation is limited by the overlap with existing benchmarks like SDTyped, making it hard to claim a definitive "state-of-the-art" victory across all possible metrics.

Table 3: Analysis of the overlap between the study's dataset and SDType data.

Moving forward, they aim to:

  • Incorporate more external metadata, such as DBpedia categories, to further enrich the embedding space.
  • Apply these learned embeddings to other critical KG tasks, such as link prediction (predicting missing relationships) and triple classification (verifying if a fact is true).

Summary updated

BibTeX
@misc{biswas2020entity,
  author = {Russa Biswas and Radina Sofronova and Mehwish Alam and Harald Sack},
  title = {{Entity Type Prediction in Knowledge Graphs using Embeddings}},
  year = {2020},
  eprint = {2004.13702},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.13702},
}
Figure