Abstract
Knowledge Graph (KG) representation learning often ignores the inherent hierarchical structure of relations, treating them as independent entities. This paper introduces TransRHS, a novel method that incorporates Relation Hierarchical Structure (RHS)—the "is-a-sub-relation-of" logic—directly into the learning process. By representing relations as vectors paired with multi-dimensional spheres, TransRHS enforces geometric constraints that mirror logical sub-relation dependencies. Evaluations on NELL-derived datasets demonstrate that TransRHS significantly outperforms state-of-the-art translation and semantic matching models in link prediction and triple classification tasks.
1. Introduction
Knowledge Graphs like Freebase or DBpedia are essential for many AI applications but are notoriously incomplete. Representation learning maps entities and relations into a continuous vector space to predict missing facts. However, most existing models, such as TransE, treat relations as independent. They ignore the Relation Hierarchical Structure (RHS), where relations exist in a hierarchy (e.g., athleteLedSportsTeam $\subset$ athletePlaysForTeam $\subset$ personBelongsToOrganization). Simply forcing these rules into existing models often degrades embeddings because the geometric constraints for a sub-relation may conflict with those of its parent. TransRHS aims to fuse this hierarchical information into the embeddings without compromising the model's ability to represent facts.
2. Methodology
TransRHS builds upon the translation-based framework where a fact $(h, r, t)$ is modeled as $\mathbf{h} + \mathbf{r} \approx \mathbf{t}$. The model introduces two primary innovations:
- Relation-Specific Spheres: Every relation $r$ is represented by a vector $\mathbf{r}$ and a multi-dimensional sphere with radius $m_r$.
- Geometric Hierarchy Modeling: To model the hierarchy, the relative positions of these spheres are constrained. If relation $r$ is a sub-relation of $p$, the model enforces a constraint where the translation error of the parent relation ($d_1$) must be smaller than the error of the child relation ($d_2$). Visually, the translation for the more general (parent) relation must fall within a tighter inner sphere, while the more specific (child) relation falls in an outer shell.
To ensure numerical stability in deep hierarchies, the authors utilize a "proportional-declined weighting strategy" to prevent radii from growing uncontrollably. The final model uses a joint loss function that balances standard triple facts with hierarchical constraint penalties.
3. Experiments and Results
The authors evaluated TransRHS on two benchmarks from NELL: Sport (1,039 entities, 4 relations) and Location (445 entities, 5 relations). These datasets feature explicit subRelationOf hierarchies often missing in larger datasets.
TransRHS demonstrated substantial improvements over state-of-the-art baselines, including TransE, RotatE, and DistMult. In link prediction on the Sport dataset, TransRHS achieved a Mean Reciprocal Rank (MRR) of 0.820, a significant jump from TransE’s 0.644. In triple classification, TransRHS reached an accuracy of 78.4% on the Location dataset, outperforming the next best baseline, TransH (73.8%).
Notably, the model achieved these results while maintaining the $O(d)$ time complexity of simple translation models, making it highly efficient for large-scale applications.
4. Discussion and Conclusion
The core insight of TransRHS is treating relation generality as a spatial constraint. By requiring parent relations to have tighter translation requirements than their children, the model naturally enforces the logic that if a specific relation holds, the general one must also hold.
Future work includes testing on larger, noisier KGs and developing methods to automatically discover latent hierarchies during the embedding process. Additionally, the "sphere" concept could be adapted to more modern rotation-based models like RotatE to further enhance performance.
Summary updated