Pruning Spurious Subgraphs for Graph Out-of-Distribution Generalization

Abstract

Graph Neural Networks (GNNs) often encounter significant performance degradation under distribution shifts between training and test data, hindering their applicability in real-world scenarios. Recent studies have proposed various methods to address the out-of-distribution (OOD) generalization challenge, with many methods in the graph domain focusing on directly identifying an invariant subgraph that is predictive of the target label. However, we argue that identifying the edges from the invariant subgraph directly is challenging and error-prone, especially when some spurious edges exhibit strong correlations with the targets. In this paper, we propose $\texttt{PrunE}$, the first pruning-based graph OOD method that eliminates spurious edges to improve OOD generalizability. By pruning spurious edges, $\texttt{PrunE}$ retains the invariant subgraph more comprehensively, which is critical for OOD generalization. Specifically, $\texttt{PrunE}$ employs two regularization terms to prune spurious edges: 1) _graph size constraint_ to exclude uninformative spurious edges, and 2) _$\epsilon$-probability alignment_ to further suppress the occurrence of spurious edges. Through theoretical analysis and extensive experiments, we show that $\texttt{PrunE}$ achieves superior OOD performance and outperforms previous state-of-the-art methods significantly.

Cite

Text

Yao et al. "Pruning Spurious Subgraphs for Graph Out-of-Distribution Generalization." Advances in Neural Information Processing Systems, 2025.

Markdown

[Yao et al. "Pruning Spurious Subgraphs for Graph Out-of-Distribution Generalization." Advances in Neural Information Processing Systems, 2025.](https://mlanthology.org/neurips/2025/yao2025neurips-pruning/)

BibTeX

@inproceedings{yao2025neurips-pruning,
  title     = {{Pruning Spurious Subgraphs for Graph Out-of-Distribution Generalization}},
  author    = {Yao, Tianjun and Li, Haoxuan and Chen, Yongqiang and Liu, Tongliang and Song, Le and Xing, Eric P. and Shen, Zhiqiang},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2025},
  url       = {https://mlanthology.org/neurips/2025/yao2025neurips-pruning/}
}