Abstract
Knowledge Graph (KG) embedding models are essential for link prediction, yet many existing methods struggle to capture complex relational properties like non-commutative composition. This paper introduces DihEdral, a novel embedding model that represents relations using elements of the dihedral group—the symmetries of a regular polygon. By incorporating both rotations and reflections, DihEdral naturally models non-commutative logic, outperforming traditional bilinear models on standard benchmarks like WN18RR and FB15K-237.
Introduction
Knowledge Graphs (KGs) such as Freebase and WordNet serve as critical infrastructure for modern AI applications. However, these graphs are frequently incomplete. Link prediction—the task of predicting missing relationships between entities—is the primary method used to address this incompleteness. While models like DistMult or ComplEx effectively handle symmetric and asymmetric relations, they often fail to model relation composition accurately, particularly when the order of relations matters (non-commutativity).
The Challenge of Non-Commutative Composition
In many real-world scenarios, the composition of relations is non-commutative. For example, the composition of "parent_of" followed by "spouse_of" yields a different logical result than "spouse_of" followed by "parent_of." Most existing KG embedding models represent relations as matrices in a way that defaults to commutative behavior or lacks the structural constraints to enforce non-commutative logic efficiently. This limitation hinders their ability to learn the underlying "directionality" of logic in complex datasets.
The DihEdral Model
To address these challenges, the authors propose representing relations using the Dihedral Group ($D_K$), which describes the rotations and reflections of a $K$-sided regular polygon.
In the DihEdral model, each relation is represented as a block-diagonal matrix where each $2 \times 2$ block is an element from a dihedral group. These elements include both rotations (which are commutative) and reflections (which introduce non-commutativity when combined with rotations).
Discrete Constraints and Training
Unlike standard models that allow matrix values to be any real number, DihEdral restricts relation parameters to a finite set of group operations. This quantization acts as a powerful form of regularization, preventing overfitting to noise. To train this discrete model, the authors utilize two specialized techniques:
- DK-Gumbel: Employs the Gumbel-Softmax trick to provide a differentiable approximation of discrete choices.
- DK-STE: Uses a Straight-Through Estimator to propagate gradients through discrete functions during backpropagation.
Experimental Results
DihEdral was evaluated on five standard link prediction benchmarks, including WN18RR, FB15K-237, and a synthetic "FAMILY" dataset designed to test non-commutative logic.
- WN18RR: DihEdral achieved a Mean Reciprocal Rank (MRR) of 0.486, significantly outperforming ComplEx (0.440).
- FB15K-237: The model reached an MRR of 0.320, matching the performance of more computationally expensive deep learning models like ConvE.
- Synthetic Logic: On the FAMILY dataset, DihEdral successfully modeled non-commutative family relations that rotation-only models failed to capture.
Conclusion
By leveraging the mathematical properties of dihedral groups, DihEdral provides a robust framework for modeling the complex logic inherent in Knowledge Graphs. The inclusion of reflections is the key "secret sauce" that enables the model to handle non-commutative compositions. Furthermore, the use of discrete group elements serves as an effective regularization strategy, leading to superior generalization on unseen facts.
Summary updated