Papers › KGLM: Integrating Knowledge Graph Structure in Language Models for Link Prediction
KGLM: Integrating Knowledge Graph Structure in Language Models for Link Prediction
Jason Youn, Ilias Tagkopoulos
The ability of knowledge graphs to represent complex relationships at scale has led to their adoption for various needs including knowledge representation, question-answering, and recommendation systems. Knowledge graphs are often incomplete in the information they represent, necessitating the need for knowledge graph completion tasks. Pre-trained and fine-tuned language models have shown promise in these tasks although these models ignore the intrinsic information encoded in the knowledge graph, namely the entity and relation types. In this work, we propose the Knowledge Graph Language Model (KGLM) architecture, where we introduce a new entity/relation embedding layer that learns to differentiate distinctive entity and relation types, therefore allowing the model to learn the structure of the knowledge graph. In this work, we show that further pre-training the language models with this additional embedding layer using the triples extracted from the knowledge graph, followed by the standard fine-tuning phase sets a new state-of-the-art performance for the link prediction task on the benchmark datasets.
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2211.02744")
Code
Syntology Ran 0 of 5 code samples harvested from 1 repository linked to this paper; 5 have no recorded run.
By repository: official repository: 5 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
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
5 samples harvested; 0 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.
Licence: 0 of the 5 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from ibpa/kglm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
2ce92b702160bbc7 · report
5f35d379d18bcd19 · report
18b9c7deeedbe427 · report
91aa29c918ad6d38 · report
23a2b85946f4ccc3 · report
Tasks
1 archive task tag without a task page not shown.
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Link Prediction | FB15k-237 | KGLM | Hits@1 | 0.200 | #49 of 75 | Archive leaderboard | report |
| Link Prediction | FB15k-237 | KGLM | Hits@10 | 0.468 | #49 of 75 | Archive leaderboard | report |
| Link Prediction | FB15k-237 | KGLM | Hits@3 | 0.314 | #49 of 75 | Archive leaderboard | report |
| Link Prediction | FB15k-237 | KGLM | MR | 125.9 | #49 of 75 | Archive leaderboard | report |
| Link Prediction | FB15k-237 | KGLM | MRR | .289 | #49 of 75 | Archive leaderboard | report |
| Link Prediction | UMLS | KGLM | Hits@10 | 0.995 | #2 of 10 | Archive leaderboard | report |
| Link Prediction | UMLS | KGLM | MR | 1.19 | #2 of 10 | Archive leaderboard | report |
| Link Prediction | WN18RR | KGLM | Hits@1 | 0.330 | #8 of 75 | Archive leaderboard | report |
| Link Prediction | WN18RR | KGLM | Hits@10 | 0.741 | #8 of 75 | Archive leaderboard | report |
| Link Prediction | WN18RR | KGLM | Hits@3 | 0.538 | #8 of 75 | Archive leaderboard | report |
| Link Prediction | WN18RR | KGLM | MR | 40.18 | #8 of 75 | Archive leaderboard | report |
| Link Prediction | WN18RR | KGLM | MRR | 0.467 | #8 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.
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