Papers › Multi-task Pre-training Language Model for Semantic Network Completion

Multi-task Pre-training Language Model for Semantic Network Completion

13 Jan 2022arXiv:2201.04843archive 2025-07-28

Da Li, Sen yang, Kele Xu, Ming Yi, Yukai He, Huaimin Wang

Semantic networks, such as the knowledge graph, can represent the knowledge leveraging the graph structure. Although the knowledge graph shows promising values in natural language processing, it suffers from incompleteness. This paper focuses on knowledge graph completion by predicting linkage between entities, which is a fundamental yet critical task. Semantic matching is a potential solution as it can deal with unseen entities, which the translational distance based methods struggle with. However, to achieve competitive performance as translational distance based methods, semantic matching based methods require large-scale datasets for the training purpose, which are typically unavailable in practical settings. Therefore, we employ the language model and introduce a novel knowledge graph architecture named LP-BERT, which contains two main stages: multi-task pre-training and knowledge graph fine-tuning. In the pre-training phase, three tasks are taken to drive the model to learn the relationship from triples by predicting either entities or relations. While in the fine-tuning phase, inspired by contrastive learning, we design a triple-style negative sampling in a batch, which greatly increases the proportion of negative sampling while keeping the training time almost unchanged. Furthermore, we propose a new data augmentation method utilizing the inverse relationship of triples to improve the performance and robustness of the model. To demonstrate the effectiveness of our method, we conduct extensive experiments on three widely-used datasets, WN18RR, FB15k-237, and UMLS. The experimental results demonstrate the superiority of our methods, and our approach achieves state-of-the-art results on WN18RR and FB15k-237 datasets. Significantly, Hits@10 indicator is improved by 5% from previous state-of-the-art result on the WN18RR dataset while reaching 100% on the UMLS dataset.

PaperPDFCode

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

Code

763337092/LP-BERT officialpytorch 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

Contrastive LearningData AugmentationKnowledge Graph CompletionKnowledge Graph EmbeddingKnowledge GraphsLanguage ModelingLanguage ModellingLink Prediction

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Link Prediction FB15k-237 LP-BERT Hits@1 0.223 #47 of 75 Archive leaderboard report
Link Prediction FB15k-237 LP-BERT Hits@10 0.490 #47 of 75 Archive leaderboard report
Link Prediction FB15k-237 LP-BERT Hits@3 0.336 #47 of 75 Archive leaderboard report
Link Prediction FB15k-237 LP-BERT MR 154 #47 of 75 Archive leaderboard report
Link Prediction FB15k-237 LP-BERT MRR 0.31 #47 of 75 Archive leaderboard report
Link Prediction UMLS LP-BERT Hits@10 1.000 #1 of 10 Archive leaderboard report
Link Prediction UMLS LP-BERT MR 1.18 #1 of 10 Archive leaderboard report
Link Prediction WN18RR LP-BERT Hits@1 0.343 #7 of 75 Archive leaderboard report
Link Prediction WN18RR LP-BERT Hits@10 0.752 #7 of 75 Archive leaderboard report
Link Prediction WN18RR LP-BERT Hits@3 0.563 #7 of 75 Archive leaderboard report
Link Prediction WN18RR LP-BERT MR 92 #7 of 75 Archive leaderboard report
Link Prediction WN18RR LP-BERT MRR 0.482 #7 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

AdamAttentionAttention DropoutBERTDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

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