Generative Subgraph Contrast for Self-Supervised Graph Representation Learning
Abstract
Contrastive learning has shown great promise in the field of graph representation learning. By manually constructing positive/negative samples, most graph contrastive learning methods rely on the vector inner product based similarity metric to distinguish the samples for graph representation. However, the handcrafted sample construction (e.g., the perturbation on the nodes or edges of the graph) may not effectively capture the intrinsic local structures of the graph. Also, the vector inner product based similarity metric cannot fully exploit the local structures of the graph to characterize the graph difference well. To this end, in this paper, we propose a novel adaptive subgraph generation based contrastive learning framework for efficient and robust self-supervised graph representation learning, and the optimal transport distance is utilized as the similarity metric between the subgraphs. It aims to generate contrastive samples by capturing the intrinsic structures of the graph and distinguish the samples based on the features and structures of subgraphs simultaneously. Specifically, for each center node, by adaptively learning relation weights to the nodes of the corresponding neighborhood, we first develop a network to generate the interpolated subgraph. We then construct the positive and negative pairs of subgraphs from the same and different nodes, respectively. Finally, we employ two types of optimal transport distances (i.e., Wasserstein distance and Gromov-Wasserstein distance) to construct the structured contrastive loss. Extensive node classification experiments on benchmark datasets verify the effectiveness of our graph contrastive learning method. Source code is available at.
Benchmark Results
Tested on 4 datasets 17 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Classic
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | CNA | 0.9575
±0.0058 | |
| 2 | IS-GIB | 0.9390
±0.0187 | |
| 3 | EERM | 0.9112
±0.0145 | |
| 35 | GAT | 0.8080
±0.0026 best reported | best at pub: Gophormer: Ego-Graph Transformer for Node Classification (2021) best today: Feature Expansion for Graph Neural Networks (ICML 2023) |
| 44 | GCN | 0.8033
±0.0088 best reported | best at pub: Gophormer: Ego-Graph Transformer for Node Classification (2021) |
| 61 | GraphSAGE | 0.7923
±0.0053 best reported | best at pub: Gophormer: Ego-Graph Transformer for Node Classification (2021) |
| 66 | DGI | 0.7890
±0.0020 best reported | best at pub: Node Representation Learning in Graph via Node-to-Neighbourhood Mutual Information Maximization (2022) best today: Oversmoothing: A Nightmare for Graph Contrastive Learning? (2023) |
| 73 | GMI | 0.7869
±0.0016 best reported | |
| 255 | GSC | 0.7370
±0.0010 | This paper |
| 259 | SAGE | 0.7361
±0.0190 | |
| 307 | SubG-Con | 0.7320
±0.0020 | This paper |
| 350 | MLP | 0.7289
±0.0010 | |
| 395 | GraphCL | 0.7250
±0.0070 | prev best: Decoupled Self-supervised Learning for Non-Homophilou Graphs (2022) Improvement within reported uncertainty; not highlighted. |
| 692 | DeepWalk | 0.6785
±0.0079 best reported | best at pub: Decoupled Self-supervised Learning for Non-Homophilou Graphs (2022) |
| 709 | Raw features | 0.6730 best reported | best today: UGSL: A Unified Framework for Benchmarking Graph Structure Learning (2023) |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | LGTL | 0.9518
±0.0011 | |
| 2 | MixHop (LO) | 0.9513
±0.0038 | |
| 3 | GraphSAGE (LO) | 0.9511
±0.0036 | |
| 18 | GCN | 0.9296
±0.0015 best reported | best at pub: Tackling Over-Smoothing for General Graph Convolutional Networks (2020) |
| 20 | GAT | 0.9233
±0.0018 best reported | best at pub: Tackling Over-Smoothing for General Graph Convolutional Networks (2020) |
| 116 | SAGE | 0.8881
±0.0015 | |
| 125 | GraphSAGE | 0.8864
±0.0030 best reported | best at pub: Tackling Over-Smoothing for General Graph Convolutional Networks (2020) best today: Non-backtracking Graph Neural Networks (TMLR 2023) |
| 195 | GMI | 0.8726
±0.0016 best reported | |
| 204 | DGI | 0.8708
±0.0017 best reported | |
| 210 | MLP | 0.8690
±0.0074 | |
| 223 | DeepWalk | 0.8652
±0.0012 best reported | |
| 327 | GSC | 0.8210
±0.0020 | This paper |
| 331 | GraphCL | 0.8196
±0.0073 best reported | best at pub: Decoupled Self-supervised Learning for Non-Homophilou Graphs (2022) |
| 373 | SubG-Con | 0.8100
±0.0010 | This paper |
| 828 | Raw features | 0.7140
±0.0020 best reported | best today: HomoGCL: Rethinking Homophily in Graph Contrastive Learning (KDD 2023) |
| # | Model | F1 ↑ | Paper |
|---|---|---|---|
| 1 | EnGCN | 0.9714
±0.0003 | |
| 2 | SAGN+SLE | 0.9710 | |
| 3 | GAMLP(JK) | 0.9704
±0.0001 | |
| 14 | GraphSAGE | 0.9660 best reported | best at pub: Accelerating Large Scale Real-Time GNN Inference using Channel Pruning (2021) |
| 58 | GCN | 0.9530
±0.0010 best reported | best at pub: GraphMAE: Self-Supervised Masked Graph Autoencoders (KDD 2022) |
| 60 | GSC | 0.9530
±0.0010 | This paper |
| 62 | SubG-Con | 0.9520 | This paper |
| 65 | GraphCL | 0.9510
±0.0010 | This paper |
| 70 | GMI | 0.9500 | This paper |
| 82 | DGI | 0.9414
±0.0003 best reported | best at pub: Calibrating and Improving Graph Contrastive Learning (TMLR 2021) Difference within reported uncertainty; not counted as underperformance. |
| 132 | Raw features | 0.5850
±0.0010 | This paper |
| 143 | DeepWalk | 0.3240 | This paper |
| # | Model | F1 ↑ | Paper |
|---|---|---|---|
| 1 | GAMLP(JK) | 0.9982
±0.0001 | |
| 2 | GraphCON-GCN | 0.9960 | |
| 3 | GCNII | 0.9953
±0.0001 | |
| 21 | GCN | 0.9850 best reported | best at pub: Graph-Coupled Oscillator Networks (ICML 2022) |
| 57 | GAT | 0.9732
±0.0032 best reported | best at pub: GaAN: Gated Attention Networks for Learning on Large and Spatiotemporal Graphs (2018) 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. |
| 92 | GIN | 0.8724
±0.0002 | |
| 101 | GraphSAGE | 0.7860 best reported | best at pub: Optimization-Induced Graph Implicit Nonlinear Diffusion (ICML 2022) |
| 134 | GSC | 0.6910
±0.0030 | This paper |
| 137 | SubG-Con | 0.6690
±0.0020 | This paper |
| 140 | GraphCL | 0.6590
±0.0060 | This paper |
| 142 | GMI | 0.6500 | This paper |
| 148 | DGI | 0.6380
±0.0020 | This paper |
| 164 | DeepWalk | 0.5290 | This paper |
| 173 | MLP | 0.4620 | |
| 176 | Raw features | 0.4250
±0.0030 | This paper |
