Graph Soft-Contrastive Learning via Neighborhood Ranking
Abstract
Graph Contrastive Learning (GCL) has emerged as a promising approach in the realm of graph self-supervised learning. Prevailing GCL methods mainly derive from the principles of contrastive learning in the field of computer vision: modeling invariance by specifying absolutely similar pairs. However, when applied to graph data, this paradigm encounters two significant limitations: (1) the validity of the generated views cannot be guaranteed: graph perturbation may produce invalid views against semantics and intrinsic topology of graph data; (2) specifying absolutely similar pairs in the graph views is unreliable: for abstract and non-Euclidean graph data, it is difficult for humans to decide the absolute similarity and dissimilarity intuitively. Despite the notable performance of current GCL methods, these challenges necessitate a reevaluation: Could GCL be more effectively tailored to the intrinsic properties of graphs, rather than merely adopting principles from computer vision? In response to this query, we propose a novel paradigm, Graph Soft-Contrastive Learning (GSCL). This approach facilitates GCL via neighborhood ranking, avoiding the need to specify absolutely similar pairs. GSCL leverages the underlying graph characteristic of diminishing label consistency, asserting that nodes that are closer in the graph are overall more similar than far-distant nodes. Within the GSCL framework, we introduce pairwise and listwise gated ranking InfoNCE loss functions to effectively preserve the relative similarity ranking within neighborhoods. Moreover, as the neighborhood size exponentially expands with more hops considered, we propose neighborhood sampling strategies to improve learning efficiency. Our extensive empirical results across 11 commonly used graph datasets—including 8 homophily graphs and 3 heterophily graphs—demonstrate GSCL's superior performance compared to 20 state-of-the-art GCL methods.
Benchmark Results
Tested on 4 datasets 13 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) |
| 130 | AFGRL | 0.9361
±0.0020 best reported | best at pub: Wiener Graph Deconvolutional Network Improves Graph Self-Supervised Learning (AAAI 2022) Difference within reported uncertainty; not counted as underperformance. |
| 153 | AutoSSL | 0.9350
±0.0070 best reported | best today: Decoupling Weighing and Selecting for Integrating Multiple Graph Pre-training Tasks (ICLR 2024) Difference within reported uncertainty; not counted as underperformance. |
| 162 | GSCL-Pairwise | 0.9342
±0.0044 | This paper |
| 164 | GraphMAE | 0.9341
±0.0010 best reported | best at pub: Calibrating and Improving Graph Contrastive Learning (TMLR 2021) best today: Rethinking and Simplifying Bootstrapped Graph Latents (2023) |
| 170 | GSCL-Listwise | 0.9340
±0.0048 | 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. |
| 186 | CCA-SSG | 0.9325
±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.0060 best reported | best at pub: Calibrating and Improving Graph Contrastive Learning (TMLR 2021) best today: Decoupling Weighing and Selecting for Integrating Multiple Graph Pre-training Tasks (ICLR 2024) |
| 194 | SUGRL | 0.9285
±0.0024 | |
| 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) |
| 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) |
| 263 | COSTA | 0.9267
±0.0016 best reported | best today: Noise-Resilient Unsupervised Graph Representation Learning via Multi-Hop Feature Quality Estimation (2024) Difference within reported uncertainty; not counted as underperformance. |
| 267 | G-BT | 0.9263
±0.0044 | This paper |
| 284 | AF-GCL | 0.9249
±0.0031 | This paper |
| 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 | |
| 408 | GMI | 0.9081
±0.0015 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) best today: Energy-Balanced Hyperspherical Graph Representation Learning via Structural Binding and Entropic Dispersion (2025) Difference within reported uncertainty; not counted as underperformance. |
| 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 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) best today: Multiplex Graph Contrastive Learning with Soft Negatives (2024) Difference within reported uncertainty; not counted as underperformance. |
| 531 | Raw features | 0.7999
±0.0090 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) best today: Model-Driven Graph Contrastive Learning (2025) |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphTARIF | 0.9461
±0.0017 | |
| 2 | GCN | 0.9412
±0.0008 best reported | best at pub: Learning on Attribute-Missing Graphs (2020) |
| 3 | GAT | 0.9398
±0.0022 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) |
| 8 | SAGE | 0.9351
±0.0006 | |
| 79 | BGRL | 0.9034
±0.0019 best reported | best at pub: Graph Representation Learning via Aggregation Enhancement (2022) best today: Adaptive Negative Scheduling for Graph Contrastive Learning (2026) |
| 89 | GSCL-Pairwise | 0.9014
±0.0035 | This paper |
| 100 | GraphMAE | 0.9002
±0.0024 best reported | best at pub: Calibrating and Improving Graph Contrastive Learning (TMLR 2021) best today: Discrepancy-Aware Graph Mask Auto-Encoder (KDD 2025) |
| 103 | GSCL-Listwise | 0.8999
±0.0038 | This paper |
| 112 | AFGRL | 0.8988
±0.0033 | This paper |
| 127 | AF-GCL | 0.8968
±0.0019 | This paper |
| 139 | GRACE | 0.8953
±0.0035 best reported | best at pub: Graph Representation Learning via Aggregation Enhancement (2022) best today: Adaptive Negative Scheduling for Graph Contrastive Learning (2026) |
| 159 | CCA-SSG | 0.8874
±0.0028 | prev best: Wiener Graph Deconvolutional Network Improves Graph Self-Supervised Learning (AAAI 2022) |
| 160 | GCA | 0.8894
±0.0015 best reported | best at pub: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) best today: Adaptive Negative Scheduling for Graph Contrastive Learning (2026) |
| 162 | SUGRL | 0.8893
±0.0021 best reported | best today: Localized Graph Contrastive Learning (2022) Difference within reported uncertainty; not counted as underperformance. |
| 179 | MVGRL | 0.8861
±0.0064 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) |
| 188 | AutoSSL | 0.8840
±0.0030 best reported | best today: Decoupling Weighing and Selecting for Integrating Multiple Graph Pre-training Tasks (ICLR 2024) Difference within reported uncertainty; not counted as underperformance. |
| 192 | COSTA | 0.8837
±0.0022 best reported | best today: HomoGCL: Rethinking Homophily in Graph Contrastive Learning (KDD 2023) Difference within reported uncertainty; not counted as underperformance. |
| 202 | G-BT | 0.8814
±0.0033 | This paper |
| 210 | DGI | 0.8798
±0.0081 best reported | best at pub: Graph Representation Learning via Aggregation Enhancement (2022) best today: Bootstrap Latents of Nodes and Neighbors for Graph Self-Supervised Learning (2024) |
| 246 | VGAE | 0.8721
±0.0026 best reported | best at pub: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) best today: HC-GAE: The Hierarchical Cluster-based Graph Auto-Encoder for Graph Representation Learning (NeurIPS 2024) |
| 264 | GAE | 0.8666
±0.0007 best reported | best at pub: Graph Masked Autoencoders with Transformers (2022) |
| 278 | DeepWalk | 0.8628
±0.0007 best reported | best at pub: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) |
| 320 | MLP | 0.8463 | |
| 330 | Node2Vec | 0.8440
±0.0010 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) best today: Multiplex Graph Contrastive Learning with Soft Negatives (2024) Difference within reported uncertainty; not counted as underperformance. |
| 342 | GMI | 0.8422
±0.0052 best reported | best at pub: Graph Contrastive Learning with Adaptive Augmentation (WWW 2020) best today: Localized Graph Contrastive Learning (2022) |
| 456 | Raw features | 0.7381 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GCN | 0.9302
±0.0011 best reported | best at pub: Augmentation-Free Graph Contrastive Learning with Performance Guarantee (2022) |
| 2 | RSE + RGCN (70b) | 0.8852
±0.0019 | |
| 3 | LEMP+T | 0.8825 | |
| 9 | SAGE | 0.8771 | |
| 31 | GAT | 0.8533 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) |
| 84 | GraphMAE | 0.8052
±0.0032 best reported | best today: Discrepancy-Aware Graph Mask Auto-Encoder (KDD 2025) |
| 92 | GSCL-Listwise | 0.8016
±0.0058 | This paper |
| 95 | GSCL-Pairwise | 0.8014
±0.0051 | This paper |
| 94 | GRACE | 0.8014
±0.0048 best reported | best at pub: Large-Scale Representation Learning on Graphs via Bootstrapping (ICLR 2021) best today: Adaptive Negative Scheduling for Graph Contrastive Learning (2026) |
| 100 | BGRL | 0.8000
±0.0010 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) best today: PyG-SSL: A Graph Self-Supervised Learning Toolkit (2024) Difference within reported uncertainty; not counted as underperformance. |
| 129 | COSTA | 0.7912
±0.0002 | This paper |
| 130 | CCA-SSG | 0.7865
±0.0014 | prev best: Relational Self-Supervised Learning on Graphs (2022) |
| 133 | AF-GCL | 0.7901
±0.0051 | This paper |
| 138 | SUGRL | 0.7897
±0.0022 | This paper |
| 143 | AFGRL | 0.7890
±0.0060 best reported | best at pub: Augmentation-Free Self-Supervised Learning on Graphs (AAAI 2021) best today: PyG-SSL: A Graph Self-Supervised Learning Toolkit (2024) |
| 151 | DGI | 0.7865
±0.0690 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) best today: Quantizing Text-attributed Graphs for Semantic-Structural Integration (KDD 2025) Difference within reported uncertainty; not counted as underperformance. |
| 162 | GCA | 0.7840
±0.0013 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) best today: Augmentation-Free Graph Contrastive Learning with Performance Guarantee (2022) Difference within reported uncertainty; not counted as underperformance. |
| 181 | GAE | 0.7787
±0.0053 best reported | best at pub: Augmentation-Free Graph Contrastive Learning with Performance Guarantee (2022) best today: Negative-Free Self-Supervised Gaussian Embedding of Graphs (2024) |
| 180 | VGAE | 0.7787
±0.0053 best reported | best at pub: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) best today: Negative-Free Self-Supervised Gaussian Embedding of Graphs (2024) |
| 190 | MVGRL | 0.7757
±0.0046 best reported | best at pub: Graph Barlow Twins: A self-supervised representation learning framework for graphs (2021) best today: Negative-Free Self-Supervised Gaussian Embedding of Graphs (2024) Difference within reported uncertainty; not counted as underperformance. |
| 198 | DeepWalk | 0.7721 best reported | best at pub: Barlow Graph Auto-Encoder for Unsupervised Network Embedding (2021) |
| 211 | G-BT | 0.7683
±0.0073 best reported | best at pub: Graph Barlow Twins: A self-supervised representation learning framework for graphs (2021) best today: Negative-Free Self-Supervised Gaussian Embedding of Graphs (2024) Difference within reported uncertainty; not counted as underperformance. |
| 212 | AutoSSL | 0.7680
±0.0013 | This paper |
| 234 | GMI | 0.7490
±0.0010 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) Difference within reported uncertainty; not counted as underperformance. |
| 237 | MLP | 0.7469
±0.0085 | |
| 256 | Raw features | 0.7198 | This paper |
| 258 | Node2Vec | 0.7180
±0.0010 best reported | best at pub: Learning Graph Augmentations to Learn Graph Representations (2022) Difference within reported uncertainty; not counted as underperformance. |
