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 View this paper on Syntology, its page in Syntology's graph. That page lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

zjunlp/PromptKG officialjaxMITSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Decoupling Knowledge from Memorization: Retrieval-augmented Prompt Learning (arXiv:2205.14704; that paper's own run record: 1 ran (of which 0 constructed an object rather than computing a result; 0 with no instrument failure: 0 honoured, 0 violated, 0 with no contract checked; 1 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

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