Command Palette
Search for a command to run...
Relation Prediction as an Auxiliary Training Objective for Improving Multi-Relational Graph Representations
Yihong Chen; Pasquale Minervini; Sebastian Riedel; Pontus Stenetorp

Abstract
Learning good representations on multi-relational graphs is essential to knowledge base completion (KBC). In this paper, we propose a new self-supervised training objective for multi-relational graph representation learning, via simply incorporating relation prediction into the commonly used 1vsAll objective. The new training objective contains not only terms for predicting the subject and object of a given triple, but also a term for predicting the relation type. We analyse how this new objective impacts multi-relational learning in KBC: experiments on a variety of datasets and models show that relation prediction can significantly improve entity ranking, the most widely used evaluation task for KBC, yielding a 6.1% increase in MRR and 9.9% increase in Hits@1 on FB15k-237 as well as a 3.1% increase in MRR and 3.4% in Hits@1 on Aristo-v4. Moreover, we observe that the proposed objective is especially effective on highly multi-relational datasets, i.e. datasets with a large number of predicates, and generates better representations when larger embedding sizes are used.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| link-prediction-on-aristo-v4 | ComplEx-N3-RP | Hits@1: 0.24 Hits@10: 0.447 Hits@3: 0.336 MRR: 0.311 |
| link-prediction-on-codex | ComplEx-N3-RP | Hits@1: 0.375 Hits@10: 0.663 Hits@3: 0.514 MRR: 0.473 |
| link-prediction-on-codex-large | ComplEx-N3-RP | Hits@1: 0.277 Hits@10: 0.473 Hits@3: 0.377 MRR: 0.345 |
| link-prediction-on-codex-medium | ComplEx-N3-RP | Hits@1: 0.277 Hits@10: 0.490 Hits@3: 0.386 MRR: 0.352 |
| link-prediction-on-fb15k-237 | TuckER-RP | Hits@1: 0.264 Hits@10: 0.535 Hits@3: 0.388 MRR: 0.354 |
| link-prediction-on-fb15k-237 | ComplEx-N3-RP | Hits@1: 0.298 Hits@10: 0.568 Hits@3: 0.424 MR: 163 MRR: 0.389 |
| link-prediction-on-fb15k-237 | CP-N3-RP | Hits@10: 0.55 MRR: 0.366 |
| link-prediction-on-wn18rr | ComplEx-N3-RP | Hits@1: 0.443 Hits@10: 0.578 Hits@3: 0.505 MRR: 0.488 |
| link-property-prediction-on-ogbl-biokg | ComplEx-N3-RP | Number of params: 187750000 Test MRR: 0.8494 Validation MRR: 0.8497 |
| link-property-prediction-on-ogbl-wikikg2 | ComplEx-N3-RP (50dim) | Number of params: 250167400 Test MRR: 0.6364 Validation MRR: 0.6594 |
| link-property-prediction-on-ogbl-wikikg2 | ComplEx-N3-RP (100dim) | Number of params: 500334800 Test MRR: 0.6481 Validation MRR: 0.6701 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.