From Discrimination to Generation: Knowledge Graph Completion with Generative Transformer

Xin Xie, Ningyu Zhang, Zhoubo Li, Shumin Deng, Hui Chen +3 more
2/4/2022
cs.CLcs.AIcs.DB
transformer-attention

Official code: zjunlp/PromptKG (736 stars, Python, MIT, PyTorch, last commit 2024-03-22).

Abstract

Knowledge graph completion aims to address the problem of extending a KG with missing triples. In this paper, we provide an approach GenKGC, which converts knowledge graph completion to sequence-to-sequence generation task with the pre-trained language model.

Show full abstract

We further introduce relation-guided demonstration and entity-aware hierarchical decoding for better representation learning and fast inference. Experimental results on three datasets show that our approach can obtain better or comparable performance than baselines and achieve faster inference speed compared with previous methods with pre-trained language models. We also release a new large-scale Chinese knowledge graph dataset AliopenKG500 for research purpose. Code and datasets are available in https://github.com/zjunlp/PromptKG/tree/main/GenKGC.

View on arXivView PDF

Code Implementations(1)

zjunlp/PromptKGOfficial100%
PyTorchMIT

PromptKG Family: a Gallery of Prompt Learning & KG-related research works, toolkits, and paper-list.

73676Python, ShellDec 18, 20212 years agoMIT
awsome-listdemo-tuningdialoguegenkgcknowledge-graph+15 more

Similar Papers

Cite this paper

@article{xie2022from,
  title  = {From Discrimination to Generation: Knowledge Graph Completion with Generative Transformer},
  author = {Xin Xie and Ningyu Zhang and Zhoubo Li and Shumin Deng and Hui Chen and Feiyu Xiong and Mosha Chen and Huajun Chen},
  year   = {2022},
  eprint = {2202.02113},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.02113}
}

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/2202.02113.svg)](https://codeofpaper.com/paper/2202.02113)

Discussion