Abstract
Since large knowledge bases are typically incomplete, missing facts need to be inferred from observed facts in a task called knowledge base completion. The most successful approaches to this task have typically explored explicit paths through sequences of triples. These approaches have usually resorted to human-designed sampling procedures, since large knowledge graphs produce prohibitively large numbers of possible paths, most of which are uninformative. As an alternative approach, we propose performing a single, short sequence of interactive lookup operations on an embedded knowledge graph which has been trained through end-to-end backpropagation to be an optimized and compressed version of the initial knowledge base. Our proposed model, called Embedded Knowledge Graph Network (EKGN), achieves new state-of-the-art results on popular knowledge base completion benchmarks.
Introduction
Knowledge bases (KBs) such as Freebase and WordNet serve as critical backbones for many AI applications, yet they are frequently incomplete. For example, a significant portion of entities in Freebase lack basic attributes like nationality. Filling these gaps, a task known as Knowledge Base Completion (KBC) or link prediction, typically involves reasoning over existing facts. Traditional methods often rely on symbolic path sampling—random walks through the graph to find informative sequences of triples. However, as KBs scale, the explosion of possible paths makes this approach computationally expensive and dependent on hand-tuned heuristics.
We propose the Embedded Knowledge Graph Network (EKGN), which shifts reasoning from discrete symbolic paths to a continuous vector space. By compressing the entire knowledge graph into a set of "memory" vectors, EKGN learns to iteratively query this internal representation to predict missing facts without explicit path sampling.
Methodology
The EKGN architecture is designed to perform multi-hop reasoning through an optimized, compressed representation of the knowledge graph. It consists of four primary components:
- Encoder: Converts an input query (an entity and a relation, e.g.,
(Obama, Citizenship, ?)) into an initial state vector. - Embedded Knowledge Graph (EKG): A compact weight matrix that serves as external memory. Unlike traditional memory networks that store facts explicitly, the EKG learns a compressed representation of the training data.
- Controller: A Recurrent Neural Network (RNN) that manages the reasoning process. At each time step $t$, the controller uses an attention mechanism to query the EKG memory, updates its hidden state $S_t$, and gathers context for the prediction.
- Termination Module: Trained via the REINFORCE algorithm, this module calculates the probability $P(stop|S_t)$ that the model has sufficient information to output an answer. This allows for dynamic reasoning depth based on query complexity.
Experiments and Results
The model was evaluated on standard benchmarks: WN18, FB15k, and FB15k-237. The latter is particularly challenging as it removes inverse relations, forcing the model to perform genuine multi-step reasoning.
Performance
EKGN achieved state-of-the-art results across these datasets. On FB15k, it reached a Hits@10 of 92.7% and significantly reduced the Mean Rank (MR) to 38. Even on the more rigorous FB15k-237 dataset, EKGN maintained strong performance with a Hits@10 of 46.4%.
Key Insights
- Extreme Compression: The model effectively distilled 483,000 triples from FB15k into just 64 memory vectors, highlighting the high redundancy in knowledge graphs.
- Semantic Specialization: Analysis of the EKG revealed that specific memory vectors specialized in thematic clusters, such as "sports," "family," or "film/awards."
- Iterative Refinement: Qualitative analysis showed that the model's prediction accuracy improves with each reasoning step as the controller accumulates relevant context from the EKG.
Conclusion
The Embedded Knowledge Graph Network demonstrates that large-scale structured relationships can be modeled effectively in a continuous vector space using shared memory. By replacing explicit path searching with end-to-end learned iterative lookups, EKGN achieves superior performance on link prediction tasks while maintaining a highly compressed representation of knowledge. Future work will explore scaling these memory structures for web-scale graphs and enabling dynamic updates to the embedded knowledge.
Summary updated