
摘要
我们研究了在知识图谱中学习实体和关系表示以预测缺失链接的问题。此类任务的成功在很大程度上取决于对关系模式(或关系之间)进行建模和推理的能力。在本文中,我们提出了一种新的知识图谱嵌入方法——RotatE,该方法能够建模和推理多种关系模式,包括对称性/反对称性、逆关系和复合关系。具体而言,RotatE模型将每个关系定义为从源实体到目标实体在复向量空间中的旋转。此外,我们提出了一种新颖的自对抗负采样技术,用于高效且有效地训练RotatE模型。多个基准知识图谱上的实验结果表明,所提出的RotatE模型不仅具有可扩展性,还能够推理和建模各种关系模式,并显著优于现有的最先进链接预测模型。
代码仓库
jiean001/models_m/tree/main/rotate
mindspore
davendw49/gakg
pytorch
GitHub 中提及
MS-Mind/MS-Code-01/tree/main/rotate
mindspore
snap-stanford/ConE
pytorch
GitHub 中提及
cui0523/Code6/tree/main/rotate
mindspore
awslabs/dgl-ke
pytorch
GitHub 中提及
基准测试
| 基准 | 方法 | 指标 |
|---|---|---|
| link-prediction-on-fb122 | RotatE | HITS@3: 70.8 Hits@10: 77.0 Hits@5: 73.57 MRR: 67.8 |
| link-prediction-on-fb15k | pRotatE | Hits@1: 0.750 Hits@10: 0.884 Hits@3: 0.829 MR: 43 MRR: 0.799 |
| link-prediction-on-fb15k | RotatE | Hits@1: 0.746 Hits@10: 0.884 Hits@3: 0.830 MR: 40 MRR: 0.797 |
| link-prediction-on-fb15k-237 | pRotatE | Hits@1: 0.23 Hits@10: 0.524 Hits@3: 0.365 MR: 178 MRR: 0.328 |
| link-prediction-on-fb15k-237 | RotatE | Hits@1: 0.241 Hits@10: 0.533 Hits@3: 0.375 MR: 177 MRR: 0.338 |
| link-prediction-on-wn18 | pRotatE | Hits@1: 0.942 Hits@10: 0.957 Hits@3: 0.950 MR: 254 MRR: 0.947 |
| link-prediction-on-wn18 | RotatE | Hits@1: 0.944 Hits@10: 0.959 Hits@3: 0.952 MR: 309 MRR: 0.949 |
| link-prediction-on-wn18rr | RotatE | Hits@1: 0.428 Hits@10: 0.571 Hits@3: 0.492 MR: 3340 MRR: 0.476 |
| link-prediction-on-wn18rr | pRotatE | Hits@1: 0.417 Hits@10: 0.552 Hits@3: 0.479 MR: 2923 MRR: 0.462 |
| link-property-prediction-on-ogbl-biokg | RotatE | Ext. data: No Number of params: 187597000 Test MRR: 0.7989 ± 0.0004 Validation MRR: 0.7997 ± 0.0002 |
| link-property-prediction-on-ogbl-wikikg2 | RotatE (50dim) | Ext. data: No Number of params: 250087150 Test MRR: 0.2530 ± 0.0034 Validation MRR: 0.2250 ± 0.0035 |
| link-property-prediction-on-ogbl-wikikg2 | RotatE (250dim) | Ext. data: No Number of params: 1250435750 Test MRR: 0.4332 ± 0.0025 Validation MRR: 0.4353 ± 0.0028 |