[论文解读] PairRE: Knowledge Graph Embeddings via Paired Relation Vectors
PairRE 提出了一种知识图谱嵌入模型,通过成对关系向量同时处理复杂关系(1对N、N对1、N对N)并利用自适应边缘学习和向量约束编码多种关系模式——对称/反对称、逆关系、复合关系及子关系。该模型在 ogbl-wikikg2 上达到最先进性能,在其他基准上也表现优异,优于 RotatE 和 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.
研究动机与目标
- 为解决现有知识图谱嵌入模型无法同时处理复杂关系并编码多样化关系模式的局限性。
- 在损失函数中实现自适应边缘调整,以更好地建模 1对N、N对1 和 N对N 关系。
- 通过结构化的关系向量表示,支持对称/反对称、逆关系、复合关系及子关系模式的联合学习。
- 在大规模知识图谱基准(如 ogbl-wikikg2 和 ogbl-biokg)上实现最先进性能。
提出的方法
- 每个关系由两个向量表示:头向量 $\bm{r}^H$ 和尾向量 $\bm{r}^T$,分别将头实体和尾实体投影到共享空间。
- 打分函数通过最小化投影后头实体与尾实体之间的欧氏距离,实现对复杂关系的灵活建模。
- 成对向量设计使损失函数中可实现自适应边缘调整,提升在多样化关系类型上的泛化能力。
- 当 $\|\bm{r}^H\|^2 \approx \|\bm{r}^T\|^2$ 时编码对称关系,当 $\|\bm{r}^H\|^2 \neq \|\bm{r}^T\|^2$ 时编码反对称关系。
- 通过学习到的向量交互捕捉逆关系与复合关系模式,例如逆关系满足 $\bm{r}_3^H \circ \bm{r}_2^H \approx \bm{r}_3^T \circ \bm{r}_2^T$,复合关系满足 $\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$。
- 通过成对向量上的简单约束编码子关系,例如 $\bm{r}_1^H \approx \bm{r}_2^H$ 与 $\bm{r}_1^T \approx \bm{r}_2^T$。
实验结果
研究问题
- RQ1知识图谱嵌入模型能否同时处理复杂关系(1对N、N对1、N对N)并编码多种关系模式?
- RQ2成对向量表示在建模对称性、反对称性、逆关系与复合关系方面效果如何?
- RQ3该模型能否在保持高链接预测性能的同时泛化至大规模知识图谱?
- RQ4成对向量设计是否相比现有方法在子关系学习上带来更好的性能表现?
主要发现
- PairRE 在 ogbl-wikikg2 基准上达到新的最先进性能,超越所有先前方法。
- 在 ogbl-wikikg2 数据集上,PairRE 的 Hits@10 得分为 0.940,显著优于 RotatE(0.908)和 ComplEx(0.902)。
- 对于 1对N 关系,PairRE 在相同嵌入维度下相比 RotatE 提升 27.5%,展现出在复杂关系上的强大泛化能力。
- 嵌入可视化结果表明,通过对向量模长和交互模式的建模,对称/反对称、逆关系与复合关系模式被有效编码。
- 模型在子关系学习上保持高性能,ogbl-wikikg2 上 Hits@10 得分为 0.587,表明子关系表示能力出色。
- 消融实验表明,将 RotatE 的单个向量替换为成对向量(RotatE+PairRelation)后,在 N对N 关系上性能最高提升 39.1%,验证了成对向量设计的有效性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。