Abstract
Knowledge bases (KBs) are essential for modern AI but often suffer from incompleteness. While embedding models like TransE and TransR have been developed to predict missing links, they struggle with data sparsity and complex many-to-many mappings. This paper introduces PTransR, a model that augments the TransR architecture with multi-hop relation path information. By treating paths as additional evidence and using a Path-Constraint Resource Algorithm (PCRA) for reliability, PTransR significantly improves link prediction accuracy, particularly for rare relations where direct data is sparse.
Introduction
Knowledge base completion involves predicting missing triplets—for example, predicting the tail entity in (Shanghai, located_in, ? ). Early translation-based models like TransE represented entities and relations in a single vector space ($h + r \approx t$). However, TransE fails at "one-to-many" relations because it attempts to force diverse tail entities into nearly identical embeddings, reducing discriminative power.
TransR addressed this by projecting entities into relation-specific spaces. However, as a "one-hop" model, TransR remains vulnerable to data sparsity: if a relation appears rarely in the training set, the model cannot learn it effectively. PTransR addresses these limitations by leveraging the "wisdom of the crowd" found in multi-hop paths to regularize direct relations.
Methodology
PTransR (Path-Augmented TransR) combines the structural advantages of TransR with contextual path information through three key components:
- TransR Foundation: Entities are mapped from a general entity space to a specific relation space using a projection matrix $M_r$. This allows the model to handle complex 1-to-N and N-to-N mappings effectively.
- Path Composition and Reliability: Multi-hop paths (e.g.,
father + mother) are represented as the sum of their relation embeddings, which should ideally approximate the direct relation (e.g.,grandmother). To filter noise, the Path-Constraint Resource Algorithm (PCRA) weights paths based on their connectivity and "traffic" between head and tail entities. - Joint Optimization: The model minimizes a combined loss function that ensures direct relation embeddings are consistent with both the triplets and the supporting multi-hop path evidence.
Experimental Setup
The model was evaluated on FB15k, a standard subset of Freebase containing 14,951 entities and 1,345 relations across 483,142 training triplets. This dataset is a benchmark for link prediction due to its diverse mix of relation types.
Results and Discussion
PTransR demonstrates significant improvements in entity prediction tasks, outperforming both its base model and previous path-augmented iterations.
As shown in the results, PTransR (2-hop) achieves a state-of-the-art Mean Rank of 47 (filtered), a substantial improvement over the base TransR (77) and PTransE (54). The model is particularly effective at handling data sparsity; for the rarest relations (1-3 occurrences), PTransR improved the Mean Rank by 46.5% compared to standard TransR. Furthermore, the model maintains a clear edge in complex 1-to-N and N-to-1 scenarios, particularly when predicting the "many" side of a relationship.
Conclusion
By integrating multi-hop paths as regularizers, PTransR effectively mitigates the data sparsity issues inherent in one-hop embedding models. While currently limited to 2-hop structural paths, the model proves that path augmentation provides additive benefits to advanced base architectures like TransR. Future work may incorporate external textual information to further enhance predictive accuracy.
Summary updated