Mind the Label Shift of Augmentation-based Graph OOD Generalization

Junchi Yu, Jian Liang, R. He

Main figure for Mind the Label Shift of Augmentation-based Graph OOD Generalization

Abstract

Out-of-distribution (OOD) generalization is an important issue for Graph Neural Networks (GNNs). Recent works employ different graph editions to generate augmented environments and learn an invariant GNN for generalization. However, the label shift usually occurs in augmentation since graph structural edition inevitably alters the graph label. This brings inconsistent predictive relationships among augmented environments, which is harmful to generalization. To address this issue, we propose LiSA, which generates label-invariant augmentations to facilitate graph OOD generalization. Instead of resorting to graph editions, LiSA exploits Label-invariant Subgraphs of the training graphs to construct Augmented environments. Specifically, LiSA first designs the variational subgraph generators to extract locally predictive patterns and construct multiple label-invariant subgraphs efficiently. Then, the subgraphs produced by different generators are collected to build different augmented environments. To promote diversity among augmented environments, LiSA further introduces a tractable energy-based regularization to enlarge pair-wise distances between the distributions of environments. In this manner, LiSA generates diverse augmented environments with a consistent predictive relationship and facilitates learning an invariant GNN. Extensive experiments on node-level and graph-level OOD benchmarks show that LiSA achieves impressive generalization performance with different GNN backbones. Code is available on.

Proposed method: LiSA

Benchmark Results

Tested on 1 dataset

Tables show presented results in global context (best 3 papers + GCN + MLP).

TU Dortmund

#ModelAccuracy ↑Paper
1
MSH-GNN
0.9910 ±0.0030
2
ID-GNN+BEC
0.9830 ±0.0360
3
SupCosine
0.9830 ±0.0250
14
DIR
actual #14 vs paper #227 213 places worse
0.9601 ±0.0224
best reported
actual #14 vs paper #227 213 places worse
paper 0.8950 ±0.0490

Difference within reported uncertainty; not counted as underperformance.

paper 0.8950 ±0.0490 Δ today 0.0651
34
LiSA
0.9370 ±0.0140
This paper
39
GIN
0.9330 ±0.0290
80
Attention
actual #80 vs paper #80
0.9170 ±0.0120
actual #80 vs paper #80
paper 0.9170 ±0.0120
paper 0.9170 ±0.0120 Δ at pub 0.1145
101
TopKPool
actual #101 vs paper #101
0.9130 ±0.0070
actual #101 vs paper #101
paper 0.9130 ±0.0070
paper 0.9130 ±0.0070 Δ at pub 0.1146
119
IRM
0.9100 ±0.0150
This paper
177
ERM
0.9030 ±0.0090
This paper
196
V-REx
0.9000 ±0.0200
This paper
299
GIB
0.8870 ±0.0530
This paper
403
MLP
0.8660 ±0.0495
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported value improved over the best known when published