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.
Introduction
Knowledge Graphs (KGs) such as Freebase and WordNet are foundational to modern AI, yet they are perpetually incomplete. Traditional Knowledge Graph Embedding (KGE) models, including TransE, TransH, and TransR, represent entities and relations as atomic, unique vectors. While effective for static datasets, these models face a significant "Cold Start" problem: they cannot generate representations for new entities or relations that appear after training. This limitation arises because these models ignore the semantic information inherent in the names of entities and relations. For example, a model might fail to understand the relation /film/performance/character even if it has learned /film/film/starring, despite the clear linguistic overlap.
The TransW Approach
To overcome the limitations of atomic representations, we introduce TransW. This model bridges the gap between general-purpose word embedding spaces (such as GloVe) and the structural requirements of Knowledge Graph spaces.
Compositional Representation
Instead of learning a direct vector for an entity $h$, TransW represents it as a combination of its constituent words. For an entity with $n$ words, the vector is calculated as:
$$\mathbf{h} = \sum_{i=0}^{n} (\mathbf{h}_i \otimes \mathbf{w}_{hi} + \mathbf{b}_h)$$
Where $\mathbf{h}_i$ is a pre-trained word embedding, $\otimes$ is the Hadamard (element-wise) product, $\mathbf{w}_{hi}$ is a learned connection vector, and $\mathbf{b}_h$ is a bias term. This allows the model to map the "common sense" found in natural language into the specific structural context of a KG.
As shown in the vector space diagram, this compositional approach allows relations with shared semantic components (like "film" or "character") to be mapped into proximal regions, facilitating generalization to unseen relations.
Experimental Evaluation
TransW was evaluated on three standard benchmarks: FB13, FB15K, and WN11, utilizing 100-dimensional GloVe vectors as the base word embeddings.
Link Prediction Results
TransW significantly outperformed existing state-of-the-art models on the FB13 dataset. It achieved a HIT@10 (Filtered) score of 47.93%, compared to 35.22% for TransD and 32.75% for TransE. This performance indicates that word-level composition does not sacrifice accuracy on standard tasks while providing superior generalization.
Zero-Shot Capability
A primary advantage of TransW is its ability to detect "unknown" facts involving relations never seen during training. In a 10-fold cross-validation on FB15K, TransW achieved an average accuracy of 55.5% in identifying valid triples for hidden relations—a task that traditional atomic models are fundamentally unable to perform.
Conclusion
TransW demonstrates that composing knowledge embeddings from word embeddings is a viable and powerful method for KG completion. By leveraging linguistic semantics, TransW provides a robust solution to the cold-start problem and outperforms traditional models on standard benchmarks. Future research will explore more sophisticated composition functions, such as Recurrent Neural Networks or Transformers, to better capture word order and syntax.
Summary updated