TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/SimKGC: Simple Contrastive Knowledge Graph Completion with...

SimKGC: Simple Contrastive Knowledge Graph Completion with Pre-trained Language Models

Liang Wang, Wei Zhao, Zhuoyu Wei, Jingming Liu

2022-03-04ACL 2022 5Knowledge Graph CompletionContrastive LearningGraph EmbeddingLink Prediction
PaperPDFCodeCode(official)

Abstract

Knowledge graph completion (KGC) aims to reason over known facts and infer the missing links. Text-based methods such as KGBERT (Yao et al., 2019) learn entity representations from natural language descriptions, and have the potential for inductive KGC. However, the performance of text-based methods still largely lag behind graph embedding-based methods like TransE (Bordes et al., 2013) and RotatE (Sun et al., 2019b). In this paper, we identify that the key issue is efficient contrastive learning. To improve the learning efficiency, we introduce three types of negatives: in-batch negatives, pre-batch negatives, and self-negatives which act as a simple form of hard negatives. Combined with InfoNCE loss, our proposed model SimKGC can substantially outperform embedding-based methods on several benchmark datasets. In terms of mean reciprocal rank (MRR), we advance the state-of-the-art by +19% on WN18RR, +6.8% on the Wikidata5M transductive setting, and +22% on the Wikidata5M inductive setting. Thorough analyses are conducted to gain insights into each component. Our code is available at https://github.com/intfloat/SimKGC .

Results

TaskDatasetMetricValueModel
Link PredictionWN18RRHits@10.588SimKGCIB(+PB+SN)
Link PredictionWN18RRHits@100.817SimKGCIB(+PB+SN)
Link PredictionWN18RRHits@30.731SimKGCIB(+PB+SN)
Link PredictionWN18RRMRR0.671SimKGCIB(+PB+SN)
Link PredictionWikidata5MHits@10.313SimKGC + Description
Link PredictionWikidata5MHits@100.441SimKGC + Description
Link PredictionWikidata5MHits@30.376SimKGC + Description
Link PredictionWikidata5MMRR0.358SimKGC + Description
Link PredictionFB15k-237Hits@10.249SimKGCIB(+PB+SN)
Link PredictionFB15k-237Hits@100.511SimKGCIB(+PB+SN)
Link PredictionFB15k-237Hits@30.365SimKGCIB(+PB+SN)
Link PredictionFB15k-237MRR0.336SimKGCIB(+PB+SN)

Related Papers

SemCSE: Semantic Contrastive Sentence Embeddings Using LLM-Generated Summaries For Scientific Abstracts2025-07-17HapticCap: A Multimodal Dataset and Task for Understanding User Experience of Vibration Haptic Signals2025-07-17Overview of the TalentCLEF 2025: Skill and Job Title Intelligence for Human Capital Management2025-07-17SGCL: Unifying Self-Supervised and Supervised Learning for Graph Recommendation2025-07-17SMART: Relation-Aware Learning of Geometric Representations for Knowledge Graphs2025-07-17Similarity-Guided Diffusion for Contrastive Sequential Recommendation2025-07-16LLM-Driven Dual-Level Multi-Interest Modeling for Recommendation2025-07-15Latent Space Consistency for Sparse-View CT Reconstruction2025-07-15