Skip to main content
QUICK REVIEW

[Paper Review] Composing Knowledge Graph Embeddings via Word Embeddings

Lianbo Ma, Peng Sun|arXiv (Cornell University)|Sep 9, 2019
Advanced Graph Neural NetworksComputer Science27 references8 citations
TL;DR

This paper proposes TransW, a novel method that composes knowledge graph embeddings by leveraging pre-trained word embeddings to represent entities and relations, enabling effective inference for unseen (unknown) entities and relations. By learning a mapping from word embedding space to knowledge embedding space, TransW achieves state-of-the-art performance on link prediction and triple classification, particularly on knowledge graphs with rich textual relations like FB13 and FB15K.

ABSTRACT

Learning knowledge graph embedding from an existing knowledge graph is very important to knowledge graph completion. For a fact $(h,r,t)$ with the head entity $h$ having a relation $r$ with the tail entity $t$, the current approaches aim to learn low dimensional representations $(\mathbf{h},\mathbf{r},\mathbf{t})$, each of which corresponds to the elements in $(h, r, t)$, respectively. As $(\mathbf{h},\mathbf{r},\mathbf{t})$ is learned from the existing facts within a knowledge graph, these representations can not be used to detect unknown facts (if the entities or relations never occur in the knowledge graph). This paper proposes a new approach called TransW, aiming to go beyond the current work by composing knowledge graph embeddings using word embeddings. Given the fact that an entity or a relation contains one or more words (quite often), it is sensible to learn a mapping function from word embedding spaces to knowledge embedding spaces, which shows how entities are constructed using human words. More importantly, composing knowledge embeddings using word embeddings makes it possible to deal with the emerging new facts (either new entities or relations). Experimental results using three public datasets show the consistency and outperformance of the proposed TransW.

Motivation & Objective

  • Address the limitation of existing knowledge graph embedding models in handling unknown entities and relations not present in the training data.
  • Leverage the semantic richness of word embeddings to represent entities and relations composed of multiple words.
  • Develop a mapping function from word embedding space to knowledge embedding space to generalize to unseen facts.
  • Enable zero-shot inference for new entities and relations by composing their embeddings from constituent words.
  • Improve knowledge graph completion performance by incorporating lexical and semantic information from word embeddings.

Proposed method

  • Represent each entity and relation as a sequence of words, and use pre-trained word embeddings to encode their semantic meaning.
  • Learn a differentiable mapping function $ g: \mathbb{W} \rightarrow \mathbb{K} $ from word embedding space $ \mathbb{W} $ to knowledge embedding space $ \mathbb{K} $, where $ \mathbb{W} $ and $ \mathbb{K} $ are low-dimensional vector spaces.
  • Compose knowledge graph embeddings for a triple $ (h, r, t) $ by aggregating the word embeddings of the head entity, relation, and tail entity through the learned mapping function.
  • Adapt the TransE scoring function $ f_r(\mathbf{h}, \mathbf{t}) = \| \mathbf{h} + \mathbf{r} - \mathbf{t} \|_2^2 $, but with embeddings derived from word-level representations.
  • Train the model end-to-end using negative sampling and stochastic gradient descent to minimize the ranking loss on known triples.
  • Use entity and relation names as input to the word embedding layer, enabling zero-shot inference for new entities or relations based on their textual form.

Experimental results

Research questions

  • RQ1Can word embeddings be effectively used to compose knowledge graph embeddings for unseen entities and relations?
  • RQ2Does incorporating lexical semantics from word embeddings improve generalization in knowledge graph completion tasks?
  • RQ3How does the proposed TransW model compare to existing state-of-the-art models in link prediction and triple classification?
  • RQ4To what extent does the performance of TransW depend on the quality and semantic richness of the underlying word embeddings?
  • RQ5Can the model generalize to new facts where either the head, tail entity, or relation is not present in the original knowledge graph?

Key findings

  • TransW achieves a HITS@10 score of 47.93 on the FB13 dataset, significantly outperforming TransE (32.65) and TransR (26.83), demonstrating superior link prediction performance.
  • On the FB15K dataset, TransW achieves a HITS@10 score of 35.94, outperforming TransD (35.22) and TransH (25.80), indicating strong generalization on large-scale knowledge graphs.
  • In triple classification, TransW achieves 87.5% accuracy on FB13, surpassing most baselines including TransD (87.7%) and ManifoldE (87.2%), with only a 0.2% margin behind the best-performing model.
  • On WN11, TransW achieves 81.1% accuracy in triple classification, outperforming TransE (75.7%) and Complex (60.0%), showing effectiveness even on simpler, word-based knowledge graphs.
  • The model shows consistent improvement on datasets with rich relational semantics (e.g., FB13), where relations are multi-word and semantically similar, indicating that word-level composition enhances semantic generalization.
  • TransW demonstrates zero-shot capability for unknown entities and relations by composing their embeddings from word embeddings, validating the core hypothesis of the approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.