Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs

Yongqiang ChenYonggang ZhangYatao BianHan YangKaili MaBinghui XieTongliang LiuBo HanJames Cheng

article2022NeurIPS220 citations

Proposes an information-theoretic causal framework that enables graph neural networks to generalize across out-of-distribution shifts without requiring expensive environment annotations.

Listen

Graph neural networks are widely used for complex relational data, such as molecular structures in drug discovery and social networks. However, standard models rely heavily on the assumption that training and operational data share the exact same distribution. In real-world deployments, underlying environmental differences introduce distribution shifts across graph sizes, structures, and node attributes, leading standard models to latch onto misleading shortcuts. Existing solutions designed for regular data often fail on graphs because graph shifts are multi-layered and domain labels that identify these data shifts are rarely available.

The article aims to establish guaranteed out-of-distribution generalization for graph classification under diverse shifts without requiring domain labels. To achieve this, it introduces Causality Inspired Invariant Graph Learning (CIGA), a framework that formulates graph generation through structural causal models and isolates the invariant subgraphs that causally determine labels.

The researchers designed an architecture that decomposes a graph neural network into a featurizer to extract invariant subgraphs and a downstream classifier to make final predictions. To train the featurizer without environment labels, the article introduces an information-theoretic training strategy combining contrastive learning across samples sharing the same label with a loss penalty on the non-causal graph components. The methodology was validated through mathematical proofs and extensive empirical evaluations across 16 synthetic and real-world datasets, including the AI-aided drug discovery benchmark DrugOOD.

The empirical findings demonstrate significant performance advantages. First, CIGA consistently achieved top-ranked out-of-distribution performance across all benchmarks, outperforming standard risk minimization and existing invariant methods by up to 10% in accuracy. Second, it demonstrated strong robustness against severe synthetic distribution shifts where baseline models failed entirely due to shortcut learning. Third, in real-world biomedical tasks, CIGA improved generalization across varying molecular scaffolds, assay conditions, and graph sizes where conventional methods underperformed. Finally, hyperparameter analysis showed that the model maintains stable generalization performance across different penalty weights.

These findings suggest that aligning model architecture with underlying causal mechanisms offers a reliable path toward deploying graph learning models in mission-critical settings like drug discovery. Relying on standard empirical risk minimization poses high operational risks due to vulnerability to spurious shortcuts, whereas CIGA provides improved reliability without the high cost of collecting domain annotations. Decision-makers should consider adopting causal invariance frameworks like CIGA when deploying graph neural networks in production environments subject to varying data distributions. Next steps include exploring advanced optimization techniques to mitigate training trade-offs and developing richer graph featurizer architectures.

Confidence in these findings is high for graph classification tasks, supported by both theoretical guarantees and consistent empirical results across diverse datasets. However, caution is advised regarding core assumptions: the theoretical guarantees assume the underlying graph generation processes are invertible and that invariant causal factors are better clustered than spurious factors. Performance may vary if these structural assumptions are significantly violated.

arXiv: 2202.05441
Cover for Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs

Abstract

Despite recent success in using the invariance principle for out-of-distribution (OOD) generalization on Euclidean data (e.g., images), studies on graph data are still limited. Different from images, the complex nature of graphs poses unique challenges to adopting the invariance principle. In particular, distribution shifts on graphs can appear in a variety of forms such as attributes and structures, making it difficult to identify the invariance. Moreover, domain or environment partitions, which are often required by OOD methods on Euclidean data, could be highly expensive to obtain for graphs. To bridge this gap, we propose a new framework, called Causality Inspired Invariant Graph LeArning (CIGA), to capture the invariance of graphs for guaranteed OOD generalization under various distribution shifts. Specifically, we characterize potential distribution shifts on graphs with causal models, concluding that OOD generalization on graphs is achievable when models focus only on subgraphs containing the most information about the causes of labels. Accordingly, we propose an information-theoretic objective to extract the desired subgraphs that maximally preserve the invariant intra-class information. Learning with these subgraphs is immune to distribution shifts. Extensive experiments on 16 synthetic or real-world datasets, including a challenging setting – DrugOOD, from AI-aided drug discovery, validate the superior OOD performance of CIGA¹.

Table of Contents

  • 1 Introduction
  • 2 OOD Generalization on Graphs through the Lens of Causality
  • 2.1 Problem Setup
  • 2.2 Graph Generation Process
  • 2.3 Challenges of OOD Generalization on Graphs
  • 3 Invariance Principle for OOD Generalization on Graphs
  • 3.1 Invariance for OOD Generalization on Graphs
  • 3.2 Invariant Graph Learning Framework
  • 3.3 Theoretical Analysis and Practical Discussions
  • 4 Empirical Studies
  • 5 Conclusions
  • Acknowledgments and Disclosure of Funding
  • References
  • Checklist

Knowls

  1. Knowl 1 — Paper content unavailable for knowl extraction

    limitation

    The paper content was not provided or could not be read from the attached file, so no methods, results, definitions, or data from the paper can be stated. A domain expert cannot reconstruct the paper's contribution from this entry, and no claim about the paper's content is made here.

Coverage note — The attached file's content was not accessible, so no part of the paper's contribution could be read or converted into knowls; nothing was deliberately omitted from a read contribution because no contribution text was available to process.

Citation

MLA
Chen, Y., et al. “Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs”. Advances in Neural Information Processing Systems, vol. 35, 2022, pp. 22131–48, https://proceedings.neurips.cc/paper_files/paper/2022/file/8b21a7ea42cbcd1c29a7a88c444cce45-Paper-Conference.pdf.
APA
Chen, Y., Zhang, Y., Bian, Y., Yang, H., Kaili, M., Xie, B., Liu, T., Han, B., & Cheng, J. (2022). Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs. Advances in Neural Information Processing Systems, 35, 22131–22148. https://proceedings.neurips.cc/paper_files/paper/2022/file/8b21a7ea42cbcd1c29a7a88c444cce45-Paper-Conference.pdf
Chicago
Chen, Y., Y. Zhang, Y. Bian, et al. 2022. “Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs”. Advances in Neural Information Processing Systems 35: 22131–48. https://proceedings.neurips.cc/paper_files/paper/2022/file/8b21a7ea42cbcd1c29a7a88c444cce45-Paper-Conference.pdf.
Harvard
Chen, Y. et al. (2022) “Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs”, Advances in Neural Information Processing Systems. Curran Associates, Inc., pp. 22131–22148. Available at: https://proceedings.neurips.cc/paper_files/paper/2022/file/8b21a7ea42cbcd1c29a7a88c444cce45-Paper-Conference.pdf.
Vancouver
1. Chen Y, Zhang Y, Bian Y, Yang H, Kaili M, Xie B, Liu T, Han B, Cheng J (2022) Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs. In: Advances in Neural Information Processing Systems. Curran Associates, Inc., pp 22131–22148

BibTeX

@inproceedings{chen2022learning,
  title = {Learning Causally Invariant Representations for Out-of-Distribution Generalization on Graphs},
  author = {Chen, Yongqiang and Zhang, Yonggang and Bian, Yatao and Yang, Han and Kaili, MA and Xie, Binghui and Liu, Tongliang and Han, Bo and Cheng, James},
  year = {2022},
  booktitle = {Advances in Neural Information Processing Systems},
  publisher = {Curran Associates, Inc.},
  volume = {35},
  pages = {22131-22148},
  url = {https://proceedings.neurips.cc/paper_files/paper/2022/file/8b21a7ea42cbcd1c29a7a88c444cce45-Paper-Conference.pdf}
}
Metadata:DOI registry

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF
License: Authors