RoSA: A Robust Self-Aligned Framework for Node-Node Graph Contrastive Learning
Yun Zhu∗ , Jianhao Guo∗ , Fei Wu and Siliang Tang†
Zhejiang University
Introduction
An Empirical Study of Graph Contrastive Learning, Zhu et al. [NIPS-21]
Different contrasting modes
augmentation
encoder
readout
1
3
2
G-G
1
3
2
1
3
4
1
3
2
Aligned Views
Non-aligned Views
N-G
1
3
2
1
3
2
1
3
2
4
3
1
1
3
2
Encoding &
Readout
?
1
3
2
N-N
Encoding
Central node
Contrasting
Representation
1
4
2
1
3
2
Introduction
Cons of Aligned Views
Pros of Non-Aligned Views
How to design sub-sampling methods that can generate unaligned views while maintaining semantic consistency?
1
How to contrast two nonaligned views even the number of nodes and correspondence between nodes are inconsistent?
2
1
3
2
4
3
1
?
3
How to boost the performance meanwhile enhance the robustness of model for unsupervised graph contrastive learning?
Challenges
positive
…
Positive pair
Contrastive loss
Negative pairs
…
negative
Method
We propose a robust self-aligned contrastive learning framework for node-node graph representation learning named RoSA.
1. Non-aligned
Subsampling
2. A novel graph-based optimal transport algorithm
3. Unsupervised graph adversarial training
Method
Other subsampling methods you can apply.
Method—Non-Aligned Sub-Sampling
1
3
2
1
3
2
4
3
1
?
1
3
2
N-N
Prior works
Motivated by optimal transport, we adopt EMD to estimate the similarity of these two embeddings
Method—A Self-Aligned Contrastive Objective
1. Earth Mover’s Distance
Method—A Self-Aligned Contrastive Objective
3. G-Earth Mover’s Distance
address this issue by using a fast iterative solution named Sinkhorn-Knopp algorithm
2. Sinkhorn-Knopp algorithm
Modified for graphs
iterations
https://vincentherrmann.github.io/blog/wasserstein/
Method—A Self-Aligned Contrastive Objective
positive
…
Positive pair
Contrastive loss
Negative pairs
…
negative
Method—Unsupervised Adversarial Training
specifically
Experiments
Datasets:
We conduct experiments on ten (+five) public benchmark datasets:
Transductive setting
Inductive setting (2)
Dynamic graphs (1)
Experimental setup:
The model size and evaluation metrics are the same as previous works(e.g. GRACE, BGRL) for fair comparison.
Baselines:
We compare RoSA with two node-graph constrasting methods DGI, SUBG-CON, and four node-node methods GMI, GRACE, GCA and BGRL.
Experiments—Transductive setting
Note: These five experiments are on the Appendix materials
Node classification(Homophilous graphs) under transductive setting
Experiments
Experiments—Ablation Study
Conclusions