Abstract
Our goal is to combine the rich multistep inference of symbolic logical reasoning with the generalization capabilities of neural networks. We are particularly interested in complex reasoning about entities and relations in text and large-scale knowledge bases (KBs). Neelakantan et al. (2015) use RNNs to compose the distributed semantics of multi-hop paths in KBs; however for multiple reasons, the approach lacks accuracy and practicality. This paper proposes three significant modeling advances: (1) we learn to jointly reason about relations, entities, and entity-types; (2) we use neural attention modeling to incorporate multiple paths; (3) we learn to share strength in a single RNN that represents logical composition across all relations. On a largescale Freebase+ClueWeb prediction task, we achieve 25% error reduction, and a 53% error reduction on sparse relations due to shared strength. On chains of reasoning in WordNet we reduce error in mean quantile by 84% versus previous state-of-the-art. The code and data are available at https://rajarshd.github.io/ChainsofReasoning
Introduction
Knowledge Bases (KBs) such as Freebase or WordNet are foundational for many AI applications, yet they are inherently incomplete. While traditional link prediction methods often rely on single-step evidence (e.g., symmetry in a "spouse" relation), human reasoning frequently involves complex, multi-hop chains. For instance, if Melinda is the spouse of Bill, and Bill is the chairman of Microsoft, which is headquartered in Seattle, one can infer that Melinda likely resides in Seattle.
Previous attempts to automate this via "Path-RNNs" faced significant limitations. They often ignored specific entities, focusing solely on relation types, which stripped away vital context. Furthermore, they typically relied on a single "best" path, ignoring supporting evidence from alternative routes, and required separate models for every relation type, hindering scalability.
Methodology
To address these shortcomings, this paper introduces three major modeling advances to the Path-RNN framework:
Joint Entity-Relation Modeling
The model incorporates entity representations at each step of the RNN, rather than just relation embeddings. To handle the challenge of rare entities, the authors represent an entity as the sum of its types (e.g., "Melinda Gates" as a combination of CEO, Philanthropist, etc.). This allows the model to capture context-dependent logical rules.
LogSumExp (LSE) Pooling
Instead of max-pooling, which selects only the most probable path, the model utilizes a LogSumExp function to aggregate multiple paths between entity pairs. This serves as a soft attention mechanism, ensuring that all paths contribute to the learning signal during training, leading to more stable and faster convergence.
Shared Parameter Architecture
By training a single, high-capacity RNN across all relations—a "Single-Model" approach—the framework leverages multi-task learning. This shared strength is particularly beneficial for "long-tail" or sparse relations that have limited training data.
Experimental Setup
The model was evaluated on two benchmarks:
- Freebase + ClueWeb: A large-scale dataset combining structured KB facts with relations extracted from 191 million paths in web text.
- WordNet: A standard linguistic reasoning benchmark with 22 relation types and approximately 38,000 entities.
Results and Discussion
The proposed model demonstrated significant performance gains:
- Freebase+ClueWeb: Achieved a 25% error reduction in Mean Average Precision (MAP). For sparse relations, the improvement reached 53%, validating the effectiveness of the shared parameter architecture.
- WordNet: Reduced error in mean quantile by 84% compared to previous state-of-the-art compositional models like Trans-E.
- Efficiency: The LogSumExp pooling strategy significantly outperformed standard max-pooling in terms of training speed and loss reduction.
A key insight is that entities act as existential quantifiers. By including entity types, the model can distinguish between universally true logical rules (e.g., location transitivity) and those conditional on specific entity characteristics.
Conclusion
This work bridges the gap between symbolic reasoning and neural networks by modeling complex chains of reasoning over entities and relations. While the model successfully integrates textual patterns, future work will focus on overcoming textual sparsity in longer chains and further refining entity representations to balance general type information with specific identity.
Summary updated