[Paper Review] PairRE: Knowledge Graph Embeddings via Paired Relation Vectors
PairRE proposes a knowledge graph embedding model that uses paired relation vectors to simultaneously handle complex relations (1-to-N, N-to-1, N-to-N) and encode multiple relation patterns—symmetry/antisymmetry, inverse, composition, and subrelation—through adaptive margin learning and vector constraints. It achieves state-of-the-art performance on ogbl-wikikg2 and competitive results on other benchmarks, outperforming models like RotatE and ComplEx.
Distance based knowledge graph embedding methods show promising results on link prediction task, on which two topics have been widely studied: one is the ability to handle complex relations, such as N-to-1, 1-to-N and N-to-N, the other is to encode various relation patterns, such as symmetry/antisymmetry. However, the existing methods fail to solve these two problems at the same time, which leads to unsatisfactory results. To mitigate this problem, we propose PairRE, a model with paired vectors for each relation representation. The paired vectors enable an adaptive adjustment of the margin in loss function to fit for complex relations. Besides, PairRE is capable of encoding three important relation patterns, symmetry/antisymmetry, inverse and composition. Given simple constraints on relation representations, PairRE can encode subrelation further. Experiments on link prediction benchmarks demonstrate the proposed key capabilities of PairRE. Moreover, We set a new state-of-the-art on two knowledge graph datasets of the challenging Open Graph Benchmark.
Motivation & Objective
- To address the limitation of existing knowledge graph embedding models that cannot simultaneously handle complex relations and encode diverse relation patterns.
- To enable adaptive margin adjustment in the loss function for better modeling of 1-to-N, N-to-1, and N-to-N relations.
- To support the joint learning of symmetry/antisymmetry, inverse, composition, and subrelation patterns through structured relation vector representations.
- To achieve state-of-the-art performance on large-scale knowledge graph benchmarks like ogbl-wikikg2 and ogbl-biokg.
Proposed method
- Each relation is represented by two vectors: a head vector $\bm{r}^H$ and a tail vector $\bm{r}^T$, which project head and tail entities into a shared space.
- The scoring function minimizes the Euclidean distance between the projected head and tail entities, enabling flexible modeling of complex relations.
- The paired vector design allows adaptive margin adjustment in the loss function, improving generalization across diverse relation types.
- Relation patterns such as symmetry/antisymmetry are encoded when $\|\bm{r}^H\|^2 \approx \|\bm{r}^T\|^2$ or $\|\bm{r}^H\|^2 \neq \|\bm{r}^T\|^2$, respectively.
- Inverse and composition patterns are captured through learned vector interactions, such as $\bm{r}_3^H \circ \bm{r}_2^H \approx \bm{r}_3^T \circ \bm{r}_2^T$ for inverse relations and $\bm{r}_4^H \circ \bm{r}_5^H \circ \bm{r}_6^T \approx \bm{r}_4^T \circ \bm{r}_5^T \circ \bm{r}_6^H$ for composition.
- Subrelation relations are encoded via simple constraints on the paired vectors, such as $\bm{r}_1^H \approx \bm{r}_2^H$ and $\bm{r}_1^T \approx \bm{r}_2^T$.
Experimental results
Research questions
- RQ1Can a knowledge graph embedding model simultaneously handle complex relations (1-to-N, N-to-1, N-to-N) and encode multiple relation patterns?
- RQ2How effective is the paired vector representation in modeling symmetry, antisymmetry, inverse, and composition relations?
- RQ3Can the model generalize to large-scale knowledge graphs while maintaining high performance on link prediction?
- RQ4Does the use of paired vectors enable better performance on subrelation learning compared to existing methods?
Key findings
- PairRE achieves a new state-of-the-art on the ogbl-wikikg2 benchmark, outperforming all prior methods.
- On the ogbl-wikikg2 dataset, PairRE achieves a Hits@10 score of 0.940, significantly outperforming RotatE (0.908) and ComplEx (0.902).
- For 1-to-N relations, PairRE shows a 27.5% improvement over RotatE when using the same embedding dimension, demonstrating strong generalization on complex relations.
- Visualization of learned embeddings confirms that symmetry/antisymmetry, inverse, and composition patterns are effectively encoded through vector magnitude and interaction patterns.
- The model maintains high performance on subrelation learning, with a Hits@10 score of 0.587 on ogbl-wikikg2, indicating effective subrelation representation.
- Ablation experiments show that replacing RotatE’s single vector with paired vectors (RotatE+PairRelation) improves performance by up to 39.1% on N-to-N relations, validating the effectiveness of the paired vector design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.