Inductive Relation Prediction by BERT

Hanwen Zha, Zhiyu Chen, Xifeng Yan
3/12/2021
cs.CL

Official code: zhw12/BERTRL (64 stars, Python, last commit 2023-01-27).

Abstract

Relation prediction in knowledge graphs is dominated by embedding based methods which mainly focus on the transductive setting. Unfortunately, they are not able to handle inductive learning where unseen entities and relations are present and cannot take advantage of prior knowledge.

Show full abstract

Furthermore, their inference process is not easily explainable. In this work, we propose an all-in-one solution, called BERTRL (BERT-based Relational Learning), which leverages pre-trained language model and fine-tunes it by taking relation instances and their possible reasoning paths as training samples. BERTRL outperforms the SOTAs in 15 out of 18 cases in both inductive and transductive settings. Meanwhile, it demonstrates strong generalization capability in few-shot learning and is explainable.

View on arXivView PDF

Code Implementations(1)

zhw12/BERTRLOfficial100%
6421Python, ShellMar 10, 20213 years ago

Similar Papers

Cite this paper

@article{zha2021inductive,
  title  = {Inductive Relation Prediction by BERT},
  author = {Hanwen Zha and Zhiyu Chen and Xifeng Yan},
  year   = {2021},
  eprint = {2103.07102},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.07102}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.07102.svg)](https://codeofpaper.com/paper/2103.07102)

Discussion