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. 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.
Finetuning Generative Large Language Models with Discrimination Instructions for Knowledge Graph Completion
State Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术国家重点实验室);National Institute of Healthcare Data Science, Nanjing University(南京大学国家卫生健康数据科学研究院)
Greater accessibility can amplify discrimination in generative AI
Trustworthy AI Lab, University of Hamburg(可信AI实验室,汉堡大学);NALA Group, JGU Mainz(NALA集团,吉森大学);Cornell University(康奈尔大学);Together AI;Allen Institute for AI(人工智能研究院);CU Boulder(博尔德大学)