Dissecting the Failure of Invariant Learning on Graphs

Qixun Wang, Yifei Wang, Yisen Wang, Xianghua Ying
2/3/2026

No official code found. Best implementation: NOVAglow646/NeurIPS24-Invariant-Learning-on-Graphs (2 stars, GPL-3.0, last commit 2024-11-10).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

GPL-3.0

Official code of our NeurIPS 2024 paper "Dissecting the Failure of Invariant Learning on Graphs"

20Shell, PythonOct 16, 20241 years agoGPL-3.0

Similar Papers

Cite this paper

@article{wang2026dissecting,
  title  = {Dissecting the Failure of Invariant Learning on Graphs},
  author = {Qixun Wang and Yifei Wang and Yisen Wang and Xianghua Ying},
  year   = {2026},
  eprint = {2411.02847},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.02847},
  url    = {https://arxiv.org/abs/2411.02847},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.02847.svg)](https://codeofpaper.com/paper/2411.02847)

Discussion