Orthogonal Relation Transforms with Graph Context Modeling for Knowledge Graph Embedding

Yun Tang, Jing Huang, Guangtao Wang, Xiaodong He, Bowen Zhou

Introduction

Knowledge Graph (KG) embedding is a critical task for predicting missing links in structured data by representing entities and relations as continuous vectors. While rotation-based models like RotatE have advanced the field, they often struggle with the high-capacity modeling required for complex relations and ignore the rich structural context surrounding entities. This paper introduces Orthogonal Transform Embedding (OTE), which extends 2D rotations to high-dimensional orthogonal transformations, and a directed graph context modeling strategy. Together, these innovations achieve state-of-the-art performance on major benchmarks, particularly in resolving the ambiguity of complex "many-to-many" relations.

The Challenge of Complex Relations

Early embedding models like TransE represent relations as simple translations, which inherently struggle with multi-mapping relations. In 1-to-N, N-to-1, or N-to-N scenarios, these models often collapse distinct entities into similar vector spaces. RotatE addressed some of these issues by modeling relations as rotations in a 2D complex plane. However, its capacity is limited by the low dimensionality of the rotation and its isolation from the broader graph structure.

Figure 1: Knowledge graph fragment for Sergei Rachmaninoff, illustrating complex relations like 'profession' and how surrounding context (e.g., 'Piano') helps disambiguate entity roles.

As illustrated in Figure 1, predicting the profession of Sergei Rachmaninoff is challenging because "profession" is an N-to-N relation. Without additional context, such as his relationship to the "Piano," a model might struggle to distinguish between "Pianist," "Composer," or "Conductor."

Methodology

Orthogonal Transform Embedding (OTE)

OTE generalizes the 2D rotations of RotatE to $d_s \times d_s$ orthogonal transformations. By using orthogonal matrices, the model preserves the L2 norm of entity embeddings, ensuring training stability while significantly increasing modeling capacity. To maintain orthogonality during training, the authors integrate the Gram-Schmidt process as a differentiable layer within the network, allowing for standard gradient-based optimization without the need for complex manifold constraints.

Directed Graph Context Modeling

To further improve prediction accuracy, the authors introduce a context-aware scoring function. For any given entity, the model calculates a context representation based on its immediate neighbors:

  • Head Context: The average of (head, relation) pairs pointing to a tail entity.
  • Tail Context: The average of (relation, tail) pairs a head entity points to.

Integrating this "neighborly advice" allows the model to leverage local graph topology to resolve ambiguities in complex relations, effectively using the surrounding web of connections to rank likely candidates higher.

Experimental Evaluation

The proposed models, OTE and its context-aware version GC-OTE, were evaluated on two standard benchmarks: FB15k-237, a dense dataset with 14,541 entities and 237 relations, and WN18RR, a sparser subset of WordNet with 40,943 entities and 11 relations.

Key Results

The experimental results demonstrate that GC-OTE consistently outperforms previous state-of-the-art models across multiple metrics.

Figure 5: Performance comparison of GC-OTE against baseline models on FB15k-237 and WN18RR. GC-OTE achieves superior MRR and Hits@10 scores across both datasets.

As detailed in Figure 5, GC-OTE achieves a Mean Reciprocal Rank (MRR) of 0.361 on FB15k-237, a significant improvement over RotatE's 0.338. The model's strength is particularly evident in handling complex relations; for example, in N-to-1 tail prediction on FB15k-237, the Hit@10 score improved from 0.850 to 0.863. Furthermore, OTE is highly parameter-efficient. An OTE model with a sub-embedding dimension of 20 achieved better results than a "Large" version of RotatE while using significantly fewer parameters (7.8M vs 29.3M).

Conclusion

OTE and GC-OTE represent a significant advancement in KG embedding by combining high-dimensional geometric transformations with structural graph context. While adding graph context increases training time (e.g., from 5 hours for base OTE to 23 hours for GC-OTE), the performance gains on complex relations are decisive. Future work may explore using attention mechanisms to weigh neighbors dynamically rather than using simple averages.

Summary updated

BibTeX
@inproceedings{tang2020orthogonal,
  author = {Yun Tang and Jing Huang and Guangtao Wang and Xiaodong He and Bowen Zhou},
  title = {{Orthogonal Relation Transforms with Graph Context Modeling for Knowledge Graph Embedding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.241},
}
Figure