TMLR 2025

Generative Risk Minimization for Out-of-Distribution Generalization on Graphs

Song Wang, Zhen Tan, Yaochen Zhu, Chuxu Zhang, Jundong Li

Main figure for Generative Risk Minimization for Out-of-Distribution Generalization on Graphs

Abstract

Out-of-distribution (OOD) generalization on graphs aims at dealing with scenarios where the test graph distribution differs from the training graph distributions. Compared to i.i.d. data like images, the OOD generalization problem on graph-structured data remains challenging due to the non-i.i.d. property and complex structural information on graphs. Recently, several works on graph OOD generalization have explored extracting invariant subgraphs that share crucial classification information across different distributions. Nevertheless, such a strategy could be suboptimal for entirely capturing the invariant information, as the extraction of discrete structures could potentially lead to the loss of invariant information or the involvement of spurious information. In this paper, we propose an innovative framework, named Generative Risk Minimization (GRM), designed to generate an invariant subgraph for each input graph to be classified, instead of extraction. To address the challenge of optimization in the absence of optimal invariant subgraphs (i.e., ground truths), we derive a tractable form of the proposed GRM objective by introducing a latent causal variable, and its effectiveness is validated by our theoretical analysis. We further conduct extensive experiments across a variety of real-world graph datasets for both node-level and graph-level OOD generalization, and the results demonstrate the superiority of our framework GRM. Our code is provided at https://github.com/SongW-SW/GRM.

Proposed method: GRM

Benchmark Results

Tested on 1 dataset

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

OGB

#ModelROC-AUC ↑Paper
1
Multi-RF Fusion with Multi-GNN Blending
0.8476 ±0.0002
2
HyperFusion
0.8475 ±0.0003
3
PAS+FPs
0.8420 ±0.0015
7
GRM
0.8102
This paper
9
GatedGCN
0.8090 ±0.0160
13
GALA
0.8053
This paper
36
CIGA
actual #36 vs paper #36
0.7975
actual #36 vs paper #36
paper 0.7975

Improvement within reported uncertainty; not highlighted.

paper 0.7975 Δ at pub 0.0005
59
GIL
0.7908
This paper
109
GIN
0.7780 ±0.0182
152
DIR
0.7705
This paper
SOTA performance (not significantly different from the best) Proposed method (this paper) Baseline / comparison (this paper) Global context (other papers)