Generalizing Graph Neural Networks on Out-Of-Distribution Graphs

Shaohua Fan, Xiao Wang, Chuan Shi, Peng Cui, Bai Wang
11/20/2021
cs.LGcs.AI
gnn

Official code: googlebaba/StableGNN (26 stars, Python, MIT, last commit 2023-10-22).

Abstract

Graph Neural Networks (GNNs) are proposed without considering the agnostic distribution shifts between training and testing graphs, inducing the degeneration of the generalization ability of GNNs on Out-Of-Distribution (OOD) settings. The fundamental reason for such degeneration is that most GNNs are developed based on the I.I.D hypothesis.

Show full abstract

In such a setting, GNNs tend to exploit subtle statistical correlations existing in the training set for predictions, even though it is a spurious correlation. However, such spurious correlations may change in testing environments, leading to the failure of GNNs. Therefore, eliminating the impact of spurious correlations is crucial for stable GNNs. To this end, we propose a general causal representation framework, called StableGNN. The main idea is to extract high-level representations from graph data first and resort to the distinguishing ability of causal inference to help the model get rid of spurious correlations. Particularly, we exploit a graph pooling layer to extract subgraph-based representations as high-level representations. Furthermore, we propose a causal variable distinguishing regularizer to correct the biased training distribution. Hence, GNNs would concentrate more on the stable correlations. Extensive experiments on both synthetic and real-world OOD graph datasets well verify the effectiveness, flexibility and interpretability of the proposed framework.

View on arXivView PDF

Code Implementations(1)

MIT

StableGNN-Generalizing Graph Neural Networks on Out-Of-Distribution Graphs

265Python, ShellOct 2, 20223 years agoMIT

Similar Papers

Cite this paper

@article{fan2021generalizing,
  title  = {Generalizing Graph Neural Networks on Out-Of-Distribution Graphs},
  author = {Shaohua Fan and Xiao Wang and Chuan Shi and Peng Cui and Bai Wang},
  year   = {2021},
  eprint = {2111.10657},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.10657}
}

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/2111.10657.svg)](https://codeofpaper.com/paper/2111.10657)

Discussion