Abstract
Knowledge base (KB) completion adds new facts to a KB by making inferences from existing facts. Most previous methods infer simple one-hop relational synonyms or use multi-hop relational paths treated as atomic features. This paper presents an approach that reasons about conjunctions of multi-hop relations non-atomically, composing the implications of a path using a recursive neural network (RNN) that takes as inputs vector embeddings of the binary relations in the path. This allows generalization to paths unseen at training time and enables zero-shot learning for new relation types. Evaluation on a new dataset of 52M triples shows that this method improves over traditional classifiers by 11% and methods leveraging pre-trained embeddings by 7%.
Introduction
Knowledge Bases (KBs) such as Freebase or Google’s Knowledge Graph are essential for many AI tasks but are notoriously incomplete. KB completion aims to automatically infer missing facts from existing ones. Traditional methods, like the Path Ranking Algorithm (PRA), typically treat multi-hop relational paths (e.g., $X \xrightarrow{bornIn} Z \xrightarrow{containedIn} Y \implies X \xrightarrow{nationality} Y$) as discrete, symbolic features. This approach suffers from feature explosion as the number of relation types grows and lacks the ability to generalize to semantically similar but syntactically different paths.
Methodology: Compositional RNNs
To address these limitations, we propose representing the semantics of a path through a Recurrent Neural Network (RNN). Instead of treating a path as an atomic string, the model composes the meaning of the path step-by-step in a vector space.
At each step, the RNN takes the current path vector and the embedding of the next relation to produce an updated vector representing the extended path. This compositional approach allows the model to handle paths of arbitrary length and generalize to unseen sequences. Furthermore, by identifying the "best" path between entities as a latent variable during training, the model learns to focus on the most predictive relational sequences.
Experimental Setup
We evaluated our approach on a massive new dataset comprising 52 million relational triples, combining structured data from Freebase with noisy, text-extracted relations from ClueWeb (OpenIE). The dataset includes 18 million entities and nearly 26,000 relation types. We benchmarked performance on 46 high-frequency Freebase relation types.
Results and Discussion
Our compositional RNN model significantly outperforms symbolic baselines. As shown in the results table, the RNN achieves a Mean Average Precision (MAP) of 56.95, compared to 51.31 for the standard PRA classifier.
The best overall performance was achieved by an ensemble of the RNN and a bigram-based classifier (RNN + PRA Classifier-b), reaching a MAP of 61.17. This represents a 15% relative improvement over previous state-of-the-art methods.
Zero-Shot Learning
A key advantage of this compositional model is its ability to perform zero-shot reasoning. By using a single high-capacity RNN and fixed relation vectors, the model can predict relations it never encountered during training. The zero-shot model achieved a MAP of 20.61, nearly triple the random baseline of 7.59, confirming that the model learns a generalized logic of relational composition.
Conclusion
By moving from symbolic path features to a compositional vector space, we enable more robust and generalizable knowledge base completion. Future work will explore architectures with better long-term memory, such as LSTMs, and the incorporation of entity embeddings to provide richer context for relational inference.
Summary updated