TL;DR
This paper introduces RTRANSE, an extension of the TransE model for knowledge graph completion. By explicitly learning to compose relationships as sequential translations in an embedding space, RTRANSE significantly improves performance on predicting not only single facts but also more complex relational reasoning tasks.
What Problem Does This Paper Address?
Knowledge Bases (KBs) are vast collections of facts, often represented as triples (head entity, relation, tail entity). However, these KBs are notoriously incomplete. Link prediction aims to fill these gaps by inferring missing entities. Embedding-based models, like TransE, represent entities and relations as vectors, where a relation acts as a translation between its head and tail entities (h + l ≈ t). While effective for single relations, these models often fail to leverage the rich, multi-hop structure of KBs, where complex relationships can be understood as compositions of simpler ones (e.g., "uncle of" can be seen as "sibling of" + "parent of"). This paper addresses the limitation of existing models in capturing these compositional relationships, which are crucial for deeper reasoning.
Methods
The core innovation is the RTRANSE model, which extends TransE by explicitly modeling relationship composition. Instead of just learning h + l ≈ t for individual triples, RTRANSE learns to handle paths of relationships. For a path like (h, l₁, e, l₂, t), the model aims to learn embeddings such that h + l₁ + l₂ ≈ t. This is achieved by:
- Recurrent TransE: The model defines a recurrent step to process sequential relationships. The embedding of the tail entity for a path of length k+1 is computed by adding the embedding of the (k+1)-th relation to the embedding of the tail entity of the path of length k.
- Path Construction and Filtering: The authors construct "quadruples" (h, {l₁, l₂}, t) representing paths of length two from existing triples in the training data. They filter these to ensure they represent meaningful reasoning steps.
- Training Objective: The training objective has two parts:
- A ranking criterion similar to TransE, which encourages the correct triple to have a lower energy score than corrupted ones.
- Regularization terms that explicitly enforce the compositionality rule (h + l₁ + l₂ ≈ t) for the constructed quadruples. This is the key difference from standard TransE, which doesn't directly optimize for this.
Datasets
- FB15K: A subset of Freebase, a large KB with millions of triples and entities.
- FAMILY: An artificial dataset designed to contain explicit compositional relationships (e.g., "uncle of" ≈ "sibling of" + "parent of").
Key Insights and Ideas
- Compositionality is Key: The paper strongly suggests that explicitly modeling how relationships can be composed is essential for unlocking deeper reasoning capabilities in KBs.
- Beyond Single Translations: Standard embedding models treat relations as isolated translations. RTRANSE demonstrates that learning to chain these translations significantly enhances performance.
- "Easy" vs. "Hard" Examples: The model shows particular strength in handling "hard" test triples, which are those not directly connected by a single triple in the training set. This indicates RTRANSE is better at inferring relationships through indirect paths.
- New Evaluation Protocol: The introduction of evaluating on quadruples (predicting missing elements in a path of length two) provides a more direct assessment of the model's compositional reasoning abilities.
Key Results
- Improved Triple Prediction: On FB15K, RTRANSE achieved a significant improvement in filtered Hits@10 (H@10) by almost 5% (from 71.5% to 76.2%) compared to TransE. This improvement was more pronounced for triples involving compositions.
- Superior Quadruple Prediction: On a new test set of quadruples, RTRANSE achieved a mean rank of 114.0 and H@10 of 68.2%, outperforming TransE (mean rank 159.9, H@10 65.2%). This represents a relative improvement of about 30% in mean rank.
- Qualitative Examples: The paper provides examples where RTRANSE correctly infers relationships (e.g., country of origin for a TV series based on actors' nationalities) where TransE falters due to specific character details.
Limitations and Future Work
- Restricted Path Length: The current work focuses on paths of length two. The authors acknowledge that studying more general paths of longer lengths is a direction for future work.
- "Unambiguous" Paths: The filtering of paths to ensure they represent sensible reasoning steps might limit the model's ability to learn from more complex or ambiguous compositional structures.
- Hyperparameter Tuning: The paper mentions the selection of hyperparameters (γ, λ, α, μ) from a discrete set, suggesting that further fine-tuning could potentially yield even better results.
Summary updated