Prompting Disentangled Embeddings for Knowledge Graph Completion with Pre-trained Language Model

Yuxia Geng, Jiaoyan Chen, Yuhang Zeng, Zhuo Chen, Wen Zhang +3 more
12/4/2023
21 citations
cs.CL

Official code: genggengcss/PDKGC (13 stars, Python, last commit 2024-05-09).

Abstract

Both graph structures and textual information play a critical role in Knowledge Graph Completion (KGC). With the success of Pre-trained Language Models (PLMs) such as BERT, they have been applied for text encoding for KGC.

Show full abstract

However, the current methods mostly prefer to fine-tune PLMs, leading to huge training costs and limited scalability to larger PLMs. In contrast, we propose to utilize prompts and perform KGC on a frozen PLM with only the prompts trained. Accordingly, we propose a new KGC method named PDKGC with two prompts -- a hard task prompt which is to adapt the KGC task to the PLM pre-training task of token prediction, and a disentangled structure prompt which learns disentangled graph representation so as to enable the PLM to combine more relevant structure knowledge with the text information. With the two prompts, PDKGC builds a textual predictor and a structural predictor, respectively, and their combination leads to more comprehensive entity prediction. Solid evaluation on three widely used KGC datasets has shown that PDKGC often outperforms the baselines including the state-of-the-art, and its components are all effective. Our codes and data are available at https://github.com/genggengcss/PDKGC.

View on arXivView PDF

Code Implementations(1)

genggengcss/PDKGCOfficial100%
132PythonOct 9, 20232 years ago

Similar Papers

Cite this paper

@article{geng2023prompting,
  title  = {Prompting Disentangled Embeddings for Knowledge Graph Completion with Pre-trained Language Model},
  author = {Yuxia Geng and Jiaoyan Chen and Yuhang Zeng and Zhuo Chen and Wen Zhang and Jeff Z. Pan and Yuxiang Wang and Xiaoliang Xu},
  year   = {2023},
  eprint = {2312.01837},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.01837v2}
}

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

Discussion