Papers › From Discrimination to Generation: Knowledge Graph Completion with Generative Transformer

From Discrimination to Generation: Knowledge Graph Completion with Generative Transformer

4 Feb 2022arXiv:2202.02113archive 2025-07-28

Xin Xie, Ningyu Zhang, Zhoubo Li, Shumin Deng, Hui Chen, Feiyu Xiong, Mosha Chen, Huajun Chen

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.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

zjunlp/PromptKG officialjaxMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Knowledge Graph CompletionLanguage ModelingLanguage ModellingLink PredictionRepresentation Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Link Prediction FB15k-237 GenKGC Hits@1 0.192 #52 of 75 Archive leaderboard report
Link Prediction FB15k-237 GenKGC Hits@10 0.439 #52 of 75 Archive leaderboard report
Link Prediction FB15k-237 GenKGC Hits@3 0.355 #52 of 75 Archive leaderboard report
Link Prediction WN18RR GenKGC Hits@1 0.287 #58 of 75 Archive leaderboard report
Link Prediction WN18RR GenKGC Hits@10 0.535 #58 of 75 Archive leaderboard report
Link Prediction WN18RR GenKGC Hits@3 0.403 #58 of 75 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

SPEED

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections