Knowledge Graph Contrastive Learning based on Relation-Symmetrical Structure
Abstract
Knowledge graph embedding (KGE) aims at learning powerful representations to benefit various artificial intelligence applications. Meanwhile, contrastive learning has been widely leveraged in graph learning as an effective mechanism to enhance the discriminative capacity of the learned representations. However, the complex structures of KG make it hard to construct appropriate contrastive pairs. Only a few attempts have integrated contrastive learning strategies with KGE. But, most of them rely on language models (e.g., Bert) for contrastive pair construction instead of fully mining information underlying the graph structure, hindering expressive ability. Surprisingly, we find that the entities within a relational symmetrical structure are usually similar and correlated. To this end, we propose a knowledge graph contrastive learning framework based on relation-symmetrical structure, KGE-SymCL, which mines symmetrical structure information in KGs to enhance the discriminative ability of KGE models. Concretely, a plug-and-play approach is proposed by taking entities in the relation-symmetrical positions as positive pairs. Besides, a self-supervised alignment loss is designed to pull together positive pairs. Experimental results on link prediction and entity classification datasets demonstrate that our KGE-SymCL can be easily adopted to various KGE models for performance improvements. Moreover, extensive experiments show that our model could outperform other state-of-the-art baselines.
Benchmark Results
Tested on 2 datasets 6 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Knowledge Graphs
| # | Model | MRR ↑ | Paper |
|---|---|---|---|
| 1 | FedSage | 0.8426
±0.0026 | |
| 2 | FED-PUB | 0.8348
±0.0025 | |
| 3 | FedAvg | 0.8252
±0.0023 | |
| 7 | GCN | 0.8171
±0.0030 | |
| 15 | SimKGC | 0.6660 best reported | best today: KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning (ICML 2024) |
| 16 | SimKGC-SymCL | 0.6570 | This paper |
| 41 | HAKE-SymCL | 0.4970 | This paper |
| 40 | HAKE | 0.4970 | prev best: A*Net: A Scalable Path-based Reasoning Approach for Knowledge Graphs (NeurIPS 2022) |
| 45 | ComplEX-DURA-SymCL | 0.4910 | This paper |
| 47 | ComplEX-DURA | 0.4890 | This paper |
| 60 | CompGCN | 0.4790 best reported | best at pub: Composition-based Multi-Relational Graph Convolutional Networks (ICLR 2019) best today: KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning (ICML 2024) |
| 67 | COMPGCN-SymCL | 0.4710 | This paper |
| 87 | RGCN-SymCL | 0.4320 | This paper |
| 88 | DisMult | 0.4300 best reported | best at pub: AutoGEL: An Automated Graph Neural Network with Explicit Link Information (NeurIPS 2021) |
| 92 | RGCN | 0.4270 | prev best: Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction (NeurIPS 2021) |
| 93 | DisMult-SymCL | 0.4210 | This paper |
| 99 | TransE-SymCL | 0.2330 | This paper |
| 100 | TransE | 0.2310 | prev best: RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space (ICLR 2018) |
| # | Model | MRR ↑ | Paper |
|---|---|---|---|
| 1 | sum, Msg_r^3, f(t)=0 | 0.8500 | |
| 2 | sum, Msg_r^3, f(t)=t | 0.8440 | |
| 3 | PNA, Msg_r^1, f(t)=0 | 0.8010 | |
| 18 | ComplEX-DURA-SymCL | 0.3710 | This paper |
| 19 | ComplEX-DURA | 0.3700 | This paper |
| 35 | CompGCN | 0.3550 best reported | best at pub: Composition-based Multi-Relational Graph Convolutional Networks (ICLR 2019) best today: KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning (ICML 2024) |
| 37 | COMPGCN-SymCL | 0.3540 | This paper |
| 48 | HAKE-SymCL | 0.3460 | This paper |
| 55 | HAKE | 0.3410 best reported | best at pub: A*Net: A Scalable Path-based Reasoning Approach for Knowledge Graphs (NeurIPS 2022) |
| 60 | SimKGC | 0.3360 best reported | best today: KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning (ICML 2024) |
| 67 | TransE | 0.3300 best reported | best at pub: Composition-based Multi-Relational Graph Convolutional Networks (ICLR 2019) best today: KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning (ICML 2024) |
| 75 | SimKGC-SymCL | 0.3240 | This paper |
| 82 | TransE-SymCL | 0.2900 | This paper |
| 87 | RGCN | 0.2730 best reported | best at pub: Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link Prediction (NeurIPS 2021) |
| 88 | DisMult-SymCL | 0.2600 | This paper |
| 90 | RGCN-SymCL | 0.2490 | This paper |
| 92 | DisMult | 0.2430 | prev best: AutoGEL: An Automated Graph Neural Network with Explicit Link Information (NeurIPS 2021) |
