Block-Diagonal Orthogonal Relation and Matrix Entity for Knowledge Graph Embedding

Yihua Zhu, Hidetoshi Shimodaira

Introduction

Knowledge Graph Embedding (KGE) is a fundamental task in link prediction, mapping entities and relations into continuous low-dimensional spaces to predict missing facts. While rotation-based models like RotatE (utilizing 2D complex rotations) and QuatE (utilizing 3D quaternion rotations) have achieved significant success, they face two primary limitations: flexibility and generality.

In these models, the relation embedding size is strictly tied to the entity dimension, leading to a quadratic explosion of parameters when scaling representational capacity. Furthermore, generalizing these models to higher dimensions is mathematically cumbersome; algebraic structures like octonions become increasingly complex and lose desirable properties such as associativity. OrthogonalE is introduced to overcome these bottlenecks by decoupling capacity from complexity through a novel matrix-based architecture.

Methodology: The OrthogonalE Framework

OrthogonalE introduces three key innovations to the KGE landscape: matrix entities, block-diagonal orthogonal relations, and Riemannian optimization.

Matrix Entities and Block-Diagonal Relations

Unlike traditional vector-based embeddings, OrthogonalE represents an entity as a matrix $E \in \mathbb{R}^{n \times m}$. This "width" parameter $m$ allows for increased representational capacity without a corresponding explosion in relation parameters. Relations are modeled as block-diagonal matrices $R \in \mathbb{R}^{n \times n}$, composed of smaller $d \times d$ orthogonal blocks ($X_i$). This structure naturally generalizes previous models: a block size of $d=2$ corresponds to RotatE, and $d=3$ to QuatE.

OrthogonalE architecture illustrating the interaction between block-diagonal relation matrices (optimized via Riemannian manifolds) and matrix-based entity embeddings.

Riemannian Optimization

To maintain the strict orthogonality constraint of the relation matrices during training, the authors employ Riemannian optimization rather than standard Euclidean Stochastic Gradient Descent (SGD). By performing updates directly on the orthogonal manifold $\mathcal{O}_d$, the model ensures that transformations remain valid rotations or reflections without requiring computationally expensive normalization steps like Gram-Schmidt. This maintains the mathematical integrity of the transformation throughout the learning process.

Key Insights

  • Decoupling Capacity: By adjusting the entity matrix width $m$, representational capacity can be scaled independently of the relation matrix size, solving the "parameter explosion" problem found in earlier rotation models.
  • Non-Commutativity: For dimensions $d > 2$, orthogonal transformations are non-commutative. This allows OrthogonalE to naturally model complex relational compositions where order matters (e.g., the mother of my father is distinct from the father of my mother).
  • Tunable Generality: The block size $d$ serves as a tunable hyperparameter. While $d=2$ suffices for some datasets, more complex graphs like WN18RR benefit significantly from higher-dimensional blocks (up to $d=10$).

Experimental Results

The model was evaluated on standard benchmarks WN18RR (hierarchical relations) and FB15K-237 (real-world facts).

Performance and Efficiency

OrthogonalE achieves state-of-the-art results, reaching an MRR (Mean Reciprocal Rank) of 0.494 on WN18RR, surpassing both RotatE (0.470) and QuatE (0.481). Crucially, it maintains high performance while being more parameter-efficient; it can match RotatE's accuracy using only a fraction of the relation parameters by leveraging the matrix entity structure.

MRR performance on FB15K-237 across different entity dimensions n and block sizes d.

As shown in the figure above, increasing the entity dimension $n$ consistently improves performance, while larger block sizes (e.g., $10 \times 10$) provide additional gains on complex datasets. The model also empirically proved its ability to capture four fundamental relation patterns: Symmetry, Antisymmetry, Inversion, and Non-commutative Composition.

Conclusion and Future Work

OrthogonalE provides a flexible and mathematically grounded generalization of rotation-based KGE models. While it offers superior representational power and parameter efficiency, the use of Riemannian optimization introduces a higher computational cost—approximately four times the training time of RotatE for the same entity dimension. Future research will focus on utilizing "landing algorithms" to reduce the computational complexity of manifold optimization, potentially making the model as fast as its simpler predecessors while retaining its superior performance.

Summary updated

BibTeX
@inproceedings{zhu2024block,
  author = {Yihua Zhu and Hidetoshi Shimodaira},
  title = {{Block-Diagonal Orthogonal Relation and Matrix Entity for Knowledge Graph Embedding}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.987},
}
Figure