Abstract
Knowledge Graph Completion (KGC) is a critical task for addressing the inherent incompleteness of large-scale knowledge bases. While translation-based models like RotatE have demonstrated significant success by modeling relations as rotations in complex space, they are often constrained by rigid mathematical operations and suffer from "embedding ambiguity" in one-to-many relations. This paper introduces RatE (Relation-Adaptive translating Embedding), which enhances the RotatE framework by incorporating a relation-adaptive weighted product. By adding only eight learnable parameters per relation, RatE significantly improves modeling capacity and disambiguates entity embeddings, achieving state-of-the-art results on major benchmarks.
Introduction
Knowledge Graphs (KGs) such as Freebase and WordNet are essential for various AI applications but are notoriously incomplete. KGC models aim to predict missing links by learning low-dimensional embeddings for entities and relations. Among these, translation-based (trans-based) models are favored for their efficiency and ability to capture logical properties. However, existing models like RotatE rely on standard complex multiplication, which lacks the flexibility to adapt to diverse relational patterns and often leads to "blurred" embeddings in non-injective (one-to-many or many-to-one) relations.
The RatE Framework
1. Relation-Adaptive Weighted Product
The core innovation of RatE is the replacement of standard complex multiplication with a weighted product. In standard RotatE, the interaction between a head entity $h$ and a relation $r$ is fixed. RatE introduces a relation-specific weight matrix $W^{(r)}$ that allows the model to dynamically "mix" the real and imaginary components of the embeddings.
- Parameter Efficiency: This modification adds only eight scalar parameters per relation, a negligible increase compared to the overall model size.
- Generalization: Standard complex multiplication is a special case of this weighted product, meaning RatE can recover the behavior of RotatE while offering greater expressive power.
2. Local-Cognitive Negative Sampling
To improve training, RatE utilizes a hybrid negative sampling strategy. It combines prior knowledge—sampling distractors from the same domain as the true relation—with self-adversarial learning, which focuses on "hard" negative samples that the model currently finds difficult to distinguish from true facts.
Theoretical and Visual Advantages
RatE is designed to satisfy a wide range of logical properties, including symmetry, antisymmetry, inversion, and composition. Crucially, it is the first trans-based model to effectively address disambiguation.
In one-to-many relations, rigid models like RotatE tend to map multiple tail entities to the same spatial region. RatE’s weighted product allows the model to "warp" the space for each relation, increasing the distance between distinct tail entities and reducing ambiguity.
Experimental Results
RatE was evaluated on four standard benchmarks: WN18, FB15k, WN18RR, and FB15k-237. It achieved state-of-the-art (SOTA) performance across all datasets:
- WN18RR: Achieved a Mean Reciprocal Rank (MRR) of 0.488, outperforming RotatE (0.476).
- FB15k-237: Reached an MRR of 0.344.
- Complex Relations: The most significant gains occurred in non-injective relations. On FB15k, RatE improved tail prediction for 1-to-Many relations by 8.8% and head prediction for Many-to-1 relations by 12.2% over RotatE.
Conclusion
RatE demonstrates that adding minimal, relation-adaptive flexibility to translation-based models can yield substantial improvements in KGC performance. By solving the embedding ambiguity problem without sacrificing parameter efficiency, RatE provides a robust and scalable solution for modeling complex relational data. Future work may explore extending this weighted product approach to hypercomplex spaces like Quaternions.
Summary updated