Unifying Graph Contrastive Learning with Flexible Contextual Scopes
Abstract
Graph contrastive learning (GCL) has recently emerged as an effective learning paradigm to alleviate the reliance on labelling information for. The core of GCL is to maximise the mutual information between the representation of a node and its contextual representation (i.e., the corresponding instance with similar semantic information) summarised from the contextual scope (e.g., the whole graph or 1-hop neighbourhood). This scheme distils valuable self-supervision signals for GCL training. However, existing GCL methods still suffer from limitations, such as the incapacity or inconvenience in choosing a suitable contextual scope for different datasets and building biased contrastiveness. To address aforementioned problems, we present a simple self-supervised learning method nifying raph ontrastive earning with Flexible Contextual Scopes (UGCL\ for short). Our algorithm builds flexible contextual representations with tunable contextual scopes by controlling the power of an adjacency matrix. Additionally, our method ensures contrastiveness is built within connected components to reduce the bias of contextual representations. Based on representations from both local and contextual scopes, UGCL \ optimises a very simple contrastive loss function for graph representation learning. Essentially, the architecture of UGCL\ can be considered as a general framework to unify existing GCL methods. We have conducted intensive experiments and achieved new state-of-the-art performance in six out of eight benchmark datasets compared with self-supervised graph representation learning baselines. Our code has been open sourced.
Benchmark Results
Tested on 3 datasets 17 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Classic
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9703
±0.0019 | |
| 2 | GAT | 0.9669
±0.0014 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) |
| 3 | GAT+T | 0.9660
±0.0007 | |
| 7 | SAGE | 0.9643
±0.0027 | |
| 8 | GCN | 0.9632
±0.0008 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) |
| 50 | SGC | 0.9511
±0.0009 best reported | best at pub: ROD: Reception-aware Online Distillation for Sparse Graphs (KDD 2021) |
| 116 | Unifying Graph Contrastive Learning | 0.9380
±0.0070 | This paper |
| 172 | BGRL | 0.9337
±0.0021 best reported | best at pub: Wiener Graph Deconvolutional Network Improves Graph Self-Supervised Learning (AAAI 2022) Difference within reported uncertainty; not counted as underperformance. |
| 191 | GCA | 0.9320
±0.0030 | prev best: Calibrating and Improving Graph Contrastive Learning (TMLR 2021) Improvement within reported uncertainty; not highlighted. |
| 203 | GRACE | 0.9313
±0.0017 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) best today: Learn Beneficial Noise as Graph Augmentation (ICML 2025) Difference within reported uncertainty; not counted as underperformance. |
| 206 | MVGRL | 0.9310
±0.0040 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) best today: Decoupling Weighing and Selecting for Integrating Multiple Graph Pre-training Tasks (ICLR 2024) |
| 213 | DGI | 0.9309
±0.0008 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) |
| 317 | VGAE | 0.9224 best reported | best at pub: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) Difference within reported uncertainty; not counted as underperformance. |
| 352 | GAE | 0.9185
±0.0006 best reported | best at pub: Graph Masked Autoencoders with Transformers (2022) |
| 390 | MLP | 0.9128
±0.0063 best reported | best at pub: Eliciting Structural and Semantic Global Knowledge in Unsupervised Graph Contrastive Learning (AAAI 2022) best today: Clarify Confused Nodes via Separated Learning (2023) |
| 408 | GMI | 0.9081
±0.0015 best reported | |
| 444 | DeepWalk | 0.9005
±0.0008 best reported | best at pub: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) |
| 457 | Node2Vec | 0.8970
±0.0010 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GrokFormer | 0.9831
±0.0018 | |
| 2 | PolyFormer | 0.9808
±0.0027 | |
| 3 | SGFormer | 0.9796
±0.0081 | |
| 6 | GAT | 0.9782
±0.0028 best reported | best at pub: SelfGNN: Self-supervised Graph Neural Networks without explicit negative sampling (WWW 2021) best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 9 | GCN | 0.9774
±0.0035 best reported | best at pub: SelfGNN: Self-supervised Graph Neural Networks without explicit negative sampling (WWW 2021) best today: GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers (ICML 2024) |
| 17 | SAGE | 0.9739
±0.0018 | |
| 58 | MLP | 0.9597
±0.0007 best reported | |
| 63 | GCA | 0.9590
±0.0020 | prev best: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) Improvement within reported uncertainty; not highlighted. |
| 70 | SGC | 0.9580
±0.0010 | This paper |
| 69 | BGRL | 0.9580
±0.0040 | prev best: Learning Graph Augmentations to Learn Graph Representations (2022) Improvement within reported uncertainty; not highlighted. |
| 104 | Unifying Graph Contrastive Learning | 0.9560
±0.0030 | This paper |
| 125 | MVGRL | 0.9544
±0.0027 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) best today: HAT-GAE: Self-Supervised Graph Auto-encoders with Hierarchical Adaptive Masking and Trainable Corruption (2023) Difference within reported uncertainty; not counted as underperformance. |
| 146 | GAE | 0.9520
±0.0010 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) best today: Revisiting Graph Autoencoders as Implicit Contrastive Learners (KDD 2024) |
| 163 | DeepWalk | 0.9490 best reported | best at pub: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) |
| 167 | DGI | 0.9489
±0.0009 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) best today: Balancing Graph Embedding Smoothness in Self-Supervised Learning via Information-Theoretic Decomposition (WWW 2025) Difference within reported uncertainty; not counted as underperformance. |
| 174 | VGAE | 0.9452 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) best today: Beyond Smoothing: Unsupervised Graph Representation Learning with Edge Heterophily Discriminating (AAAI 2022) Difference within reported uncertainty; not counted as underperformance. |
| 268 | Node2Vec | 0.9120
±0.0010 | This paper |
