Abstract
DualE is a novel knowledge graph embedding (KGE) framework that unifies two major schools of thought: translation-based models and rotation-based models. By representing entities and relations in the dual quaternion space, the model can simultaneously capture complex relational patterns like hierarchy, symmetry, and composition within a single, principled geometric framework.
Introduction: The Representation Gap
Knowledge Graph Embedding (KGE) is the task of representing entities (e.g., "Paris") and relations (e.g., "is_capital_of") as low-dimensional vectors to predict missing links. Historically, research has been divided into two primary paradigms:
- The Translation Family (e.g., TransE): These models treat relations as additive shifts in space ($head + relation \approx tail$). They are effective at modeling hierarchical structures but fail to capture symmetric relations.
- The Rotation Family (e.g., RotatE, QuatE): These treat relations as rotations in complex or quaternion space. They excel at modeling symmetry and composition but struggle with hierarchies and multiple distinct relations between the same two entities.
The authors identify a "representation gap": real-world data often requires both translation and rotation to be modeled accurately. As shown in the figure above, pure translation or rotation models often fail to capture the full spectrum of relations (like "neighbor" and "guardian" simultaneously). Until now, there was no unified mathematical framework that could handle both without becoming overly complex or losing geometric meaning.
Methods: Unifying with Dual Quaternions
The authors introduce DualE, which leverages dual quaternions—a number system frequently used in robotics to represent "screw motions" (combined rotation and translation).
Mathematical Framework
A dual quaternion $Q = a + \epsilon b$ consists of two quaternions ($a$ and $b$) and a dual unit $\epsilon$ (where $\epsilon^2 = 0$). While a standard quaternion represents a rotation in 3D space, a dual quaternion represents a full rigid transformation.
In the DualE model, entities and relations are embedded as dual quaternions. To ensure the relations represent valid geometric transformations, a normalization step (Schmidt orthogonalization) is applied to the relation embeddings, constraining them to "unit dual quaternions."
DualE is a mathematical superset of previous models. By setting specific parts of the dual quaternion to zero, it can "degenerate" into either a pure rotation model (like QuatE) or a pure translation model (like TransE). The likelihood of a triplet $(h, r, t)$ is calculated using a dual quaternion inner product after the head entity has been transformed by the relation.
Key Insights and Results
DualE's geometric properties provide several advantages for relational logic:
- Non-commutativity: Captures directional logic naturally (e.g., "Father of Mother" vs "Mother of Father").
- Associativity: Unlike Octonions, dual quaternions are associative, which is crucial for modeling long chains of relations (composition) consistently.
- Physical Realism: By constraining relations to 6 degrees of freedom, the model gains a more intuitive physical interpretation than high-dimensional vector space models.
Performance Benchmarks
DualE achieved state-of-the-art (SOTA) or near-SOTA results across four standard benchmarks (WN18, FB15K, WN18RR, and FB15K-237). Notably, it reached a Mean Reciprocal Ranking (MRR) of 0.952 on WN18 and 0.813 on FB15K, significantly outperforming baselines like QuatE. The model also demonstrated high parameter efficiency, achieving superior accuracy even with lower embedding dimensions compared to other hypercomplex models.
Conclusion
By bridging the gap between translation and rotation, DualE provides a robust and geometrically principled framework for knowledge graph embedding. While the normalization step is vital and adds sensitivity to the optimization landscape, the model's ability to handle diverse relational patterns—including hierarchy and multiple relations—marks a significant step forward in the field. Future research may explore whether higher-dimensional dual-hypercomplex systems can capture even more abstract relational semantics.
Summary updated