Improved Knowledge Base Completion by Path-Augmented TransR Model

Wenhao Huang, Ge Li, Zhi JinarXiv 2016

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:

  1. 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.
The TransR model projects entities from an entity space (a) into a relation-specific space (b) to better handle complex relationships.
  1. 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.
  2. 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.

Comparison of link prediction performance on FB15k. PTransR (2-hop) achieves the best Mean Rank and competitive Hits@10.

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

BibTeX
@misc{huang2016improved,
  author = {Wenhao Huang and Ge Li and Zhi Jin},
  title = {{Improved Knowledge Base Completion by Path-Augmented TransR Model}},
  year = {2016},
  eprint = {1610.04073},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.04073},
}
Figure