Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Dissecting the Failure of Invariant Learning on Graphs

About

Enhancing node-level Out-Of-Distribution (OOD) generalization on graphs remains a crucial area of research. In this paper, we develop a Structural Causal Model (SCM) to theoretically dissect the performance of two prominent invariant learning methods -- Invariant Risk Minimization (IRM) and Variance-Risk Extrapolation (VREx) -- in node-level OOD settings. Our analysis reveals a critical limitation: due to the lack of class-conditional invariance constraints, these methods may struggle to accurately identify the structure of the predictive invariant ego-graph and consequently rely on spurious features. To address this, we propose Cross-environment Intra-class Alignment (CIA), which explicitly eliminates spurious features by aligning cross-environment representations conditioned on the same class, bypassing the need for explicit knowledge of the causal pattern structure. To adapt CIA to node-level OOD scenarios where environment labels are hard to obtain, we further propose CIA-LRA (Localized Reweighting Alignment) that leverages the distribution of neighboring labels to selectively align node representations, effectively distinguishing and preserving invariant features while removing spurious ones, all without relying on environment labels. We theoretically prove CIA-LRA's effectiveness by deriving an OOD generalization error bound based on PAC-Bayesian analysis. Experiments on graph OOD benchmarks validate the superiority of CIA and CIA-LRA, marking a significant advancement in node-level OOD generalization. The codes are available at https://github.com/NOVAglow646/NeurIPS24-Invariant-Learning-on-Graphs.

Qixun Wang, Yifei Wang, Yisen Wang, Xianghua Ying• 2024

Related benchmarks

TaskDatasetResultRank
Node ClassificationCora
Accuracy97.89
1215
Node ClassificationPubmed
Accuracy92.12
178
Node ClassificationCiteseer
Mean Accuracy95.47
90
Node ClassificationCora Covariate shift (degree split)
OOD Accuracy67.08
50
Node ClassificationGOODCora Covariate shift, degree (test)
Accuracy67.08
44
Node ClassificationArxiv Covariate shift (degree split)
OOD Accuracy66.41
30
Node ClassificationWebKB university split Covariate shift
OOD Test Accuracy38.62
30
Node ClassificationWebKB university split Concept shift
OOD Test Accuracy36.7
30
Node ClassificationGOODCBAS Concept shift, color (test)
Accuracy94.53
22
Node ClassificationGOODCBAS Covariate shift, color (test)
Accuracy82.86
22
Showing 10 of 25 rows

Other info

Code

Follow for update