Introduction
Knowledge Graphs (KGs) such as Freebase and WordNet serve as structured repositories of human knowledge, yet they are inherently incomplete. While vector space models like TransE and Bilinear models have proven effective for Knowledge Base Completion (KBC)—predicting single missing edges—they often fail when tasked with answering complex, multi-hop queries. This paper introduces "compositional training," a method that enables these models to navigate multi-step paths by recursively applying vector transformations.
The Challenge of Cascading Errors
The primary obstacle in multi-hop reasoning within vector spaces is the accumulation of noise, known as "cascading errors." In a standard model, a single-step prediction might be slightly off. When these predictions are chained together (e.g., "Where did Tad Lincoln’s parents live?"), the error compounds at each step. By the time the model reaches the third or fourth hop, the resulting vector has drifted significantly from the target entity, making accurate retrieval impossible.
Compositional Training Framework
To address this, the authors propose treating relations as operators that transform entity vectors. In a Bilinear model, this is represented as matrix multiplication; in TransE, as vector addition. To answer a path query, the model starts with the vector for an anchor entity and sequentially applies the transformation for each relation in the path.
The core innovation is compositional training. Rather than training solely on individual triples, the model is trained on paths of varying lengths (up to 5 hops). Using a max-margin objective, the model learns to ensure that the final vector reached after a sequence of transformations remains close to the correct target entity. This process acts as a form of structural regularization, implicitly teaching the model logical rules and the relationships between different types of edges.
Experimental Evaluation
The framework was tested on WordNet and Freebase datasets using synthetic path data generated via random walks. The results demonstrate that compositional training significantly mitigates cascading errors across different model architectures.
Key findings include:
- Path Query Accuracy: Compositional training reduced errors in path answering by up to 76.2%. In many cases, it more than doubled the accuracy as measured by Mean Quantile (MQ).
- Improved KBC: Training on long paths surprisingly improved performance on single-edge predictions. For instance, TransE saw a 43.3% error reduction in standard KBC tasks on WordNet simply by incorporating path-based training.
- Generalization: The model successfully performed both "deduction" (traversing known edges) and "induction" (inferring paths with missing edges), proving it learns underlying logical structures rather than just memorizing the graph.
Conclusion and Future Work
By bridging the gap between vector embeddings and logical traversal, compositional training provides a robust foundation for complex KG queries. While the current focus is on linear chains, future research will explore extending this framework to handle more complex logical operations, such as intersections and unions, and improving set representations for queries with numerous valid answers.
Summary updated