Graph Contrastive Learning under Heterophily via Graph Filters
Abstract
Graph contrastive learning (CL) methods learn node representations in a self-supervised manner by maximizing the similarity between the augmented node representations obtained via a GNN-based encoder. However, CL methods perform poorly on graphs with heterophily, where connected nodes tend to belong to different classes. In this work, we address this problem by proposing an effective graph CL method, namely HLCL, for learning graph representations under heterophily. HLCL first identifies a homophilic and a heterophilic subgraph based on the cosine similarity of node features. It then uses a low-pass and a high-pass graph filter to aggregate representations of nodes connected in the homophilic subgraph and differentiate representations of nodes in the heterophilic subgraph. The final node representations are learned by contrasting both the augmented high-pass filtered views and the augmented low-pass filtered node views. Our extensive experiments show that HLCL outperforms state-of-the-art graph CL methods on benchmark datasets with heterophily, as well as large-scale real-world graphs, by up to 7\
Benchmark Results
Tested on 3 datasets 13 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 | |
| 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 | |
| 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) |
| 102 | GloGNN | 0.7740
±0.0170 | prev best: Uplifting Message Passing Neural Network with Graph Original Information (2022) |
| 111 | H2GCN | 0.7711
±0.0157 best reported | best at pub: Optimization-Induced Graph Implicit Nonlinear Diffusion (ICML 2022) |
| 126 | MixHop | 0.7626
±0.0295 best reported | best at pub: Structural Entropy Guided Graph Hierarchical Pooling (ICML 2022) |
| 136 | BGRL | 0.7600
±0.0020 best reported | best at pub: Augmentation-Free Graph Contrastive Learning with Performance Guarantee (2022) best today: Oversmoothing: A Nightmare for Graph Contrastive Learning? (2023) |
| 201 | GRACE | 0.7450
±0.0010 best reported | best at pub: Enhancing Graph Contrastive Learning with Node Similarity (2022) best today: Oversmoothing: A Nightmare for Graph Contrastive Learning? (2023) |
| 350 | MLP | 0.7289
±0.0010 | |
| 459 | SP-GCL | 0.7200
±0.0040 | This paper |
| 458 | CPGNN | 0.7200
±0.0050 | |
| 476 | HLCL_Simplified | 0.7180
±0.0140 | This paper |
| 557 | HGRL | 0.7100
±0.0070 | This paper |
| 619 | HLCL | 0.7010
±0.0080 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | LGTL | 0.9518
±0.0011 | |
| 2 | MixHop (LO) | 0.9513
±0.0038 | |
| 3 | GraphSAGE (LO) | 0.9511
±0.0036 | |
| 16 | H2GCN | 0.9361
±0.0013 best reported | best at pub: Optimization-Induced Graph Implicit Nonlinear Diffusion (ICML 2022) |
| 18 | GCN | 0.9296
±0.0015 best reported | best at pub: Tackling Over-Smoothing for General Graph Convolutional Networks (2020) |
| 70 | MixHop | 0.8510
±0.0030 | prev best: Power up! Robust Graph Convolutional Network via Graph Powering (AAAI 2019) best today: Language is All a Graph Needs (2023) Improvement within reported uncertainty; not highlighted. |
| 85 | GloGNN | 0.8960
±0.0040 | prev best: Uplifting Message Passing Neural Network with Graph Original Information (2022) |
| 116 | SAGE | 0.8881
±0.0015 | |
| 144 | BGRL | 0.8830
±0.0010 best reported | best at pub: Decoupled Self-supervised Learning for Non-Homophilou Graphs (2022) best today: Oversmoothing: A Nightmare for Graph Contrastive Learning? (2023) |
| 194 | GRACE | 0.8670
±0.0010 | prev best: Enhancing Graph Contrastive Learning with Node Similarity (2022) best today: Oversmoothing: A Nightmare for Graph Contrastive Learning? (2023) Improvement within reported uncertainty; not highlighted. |
| 204 | DGI | 0.8708
±0.0017 best reported | |
| 210 | MLP | 0.8690
±0.0074 | |
| 220 | CPGNN | 0.8670
±0.0020 | This paper |
| 265 | HLCL | 0.8450
±0.0040 | This paper |
| 274 | HGRL | 0.8420
±0.0020 | This paper |
| 559 | SP-GCL | 0.7920
±0.0070 | This paper |
