Shuai Zhang, Yi Tay, Lina Yao, Qi Liu
In this work, we move beyond the traditional complex-valued representations, introducing more expressive hypercomplex representations to model entities and relations for knowledge graph embeddings. More specifically, quaternion embeddings, hypercomplex-valued embeddings with three imaginary components, are utilized to represent entities. Relations are modelled as rotations in the quaternion space. The advantages of the proposed approach are: (1) Latent inter-dependencies (between all components) are aptly captured with Hamilton product, encouraging a more compact interaction between entities and relations; (2) Quaternions enable expressive rotation in four-dimensional space and have more degree of freedom than rotation in complex plane; (3) The proposed framework is a generalization of ComplEx on hypercomplex space while offering better geometrical interpretations, concurrently satisfying the key desiderata of relational representation learning (i.e., modeling symmetry, anti-symmetry and inversion). Experimental results demonstrate that our method achieves state-of-the-art performance on four well-established knowledge graph completion benchmarks.
| Task | Dataset | Metric | Value | Model |
|---|---|---|---|---|
| Link Prediction | FB15k | Hits@1 | 0.8 | QuatE |
| Link Prediction | FB15k | Hits@10 | 0.9 | QuatE |
| Link Prediction | FB15k | Hits@3 | 0.859 | QuatE |
| Link Prediction | FB15k | MR | 17 | QuatE |
| Link Prediction | FB15k | MRR | 0.833 | QuatE |
| Link Prediction | WN18RR | Hits@1 | 0.438 | QuatE |
| Link Prediction | WN18RR | Hits@10 | 0.582 | QuatE |
| Link Prediction | WN18RR | Hits@3 | 0.508 | QuatE |
| Link Prediction | WN18RR | MR | 2314 | QuatE |
| Link Prediction | WN18RR | MRR | 0.488 | QuatE |
| Link Prediction | WN18 | Hits@1 | 0.945 | QuatE |
| Link Prediction | WN18 | Hits@10 | 0.959 | QuatE |
| Link Prediction | WN18 | Hits@3 | 0.954 | QuatE |
| Link Prediction | WN18 | MR | 162 | QuatE |
| Link Prediction | WN18 | MRR | 0.95 | QuatE |
| Link Prediction | FB15k-237 | Hits@1 | 0.248 | QuatE |
| Link Prediction | FB15k-237 | Hits@10 | 0.55 | QuatE |
| Link Prediction | FB15k-237 | Hits@3 | 0.382 | QuatE |
| Link Prediction | FB15k-237 | MR | 87 | QuatE |
| Link Prediction | FB15k-237 | MRR | 0.348 | QuatE |