A Twist for Graph Classification: Optimizing Causal Information Flow in Graph Neural Networks

Zhe Zhao, Pengkun Wang, Haibin Wen, Yudong Zhang, Zhengyang Zhou, Yang Wang

Abstract

Graph Neural Networks (GNNs) have become a standard for analyzing structured data, yet they often struggle with out-of-distribution (OOD) generalization due to their tendency to latch onto spurious statistical correlations. This paper introduces Information-based Causal Learning (ICL), a framework designed to improve GNN robustness by disentangling causal features from non-causal ones. By leveraging information theory and multi-objective optimization, ICL maximizes the flow of causal information while suppressing noise. Experimental results across synthetic and real-world benchmarks demonstrate that ICL significantly outperforms state-of-the-art GNN architectures and existing causal learning methods.

Introduction

Standard GNNs are highly effective at pattern recognition but often fail to distinguish between causal features—the sub-structures that determine a graph's label—and non-causal features, which are spurious correlations present in training data. This phenomenon, known as "shortcut learning," leads to model failure when the data distribution shifts. For instance, in drug discovery, a model might incorrectly associate a common but harmless molecular ring with toxicity simply because it appeared frequently in toxic samples during training. To address this, the authors propose a method to transform statistical relevance into causal dependence.

Methodology

The ICL framework is built upon a Structural Causal Model (SCM) that formalizes the relationships between the input graph ($G$), causal features ($C$), non-causal features ($S$), the learned representation ($Z$), and the target label ($Y$).

The Structural Causal Model (SCM) used in ICL to define the relationships between input graphs, causal/non-causal features, and labels.

Disentanglement and Information Flow

ICL introduces a "twist" to the standard GNN learning objective. Instead of a single representation, the framework uses specialized attention layers ($Att_C$ and $Att_S$) to split the graph into two disentangled representations: $Z_c$ (causal) and $Z_s$ (non-causal). The optimization goal is redefined through two primary information-theoretic objectives:

  1. Maximize $I(Y; C)$: Enhance the information flow from invariant causal mechanisms.
  2. Minimize $I(Y; S|C)$: Reduce reliance on fragile, non-causal patterns.
A comparison between traditional GNN learning and the proposed ICL strategy, highlighting the disentanglement of intermediate representations.

Pareto Optimization

Because maximizing causal information and minimizing spurious noise can sometimes be conflicting goals, the authors utilize a Multi-Objective Gradient Descent Algorithm (MGDA). This ensures the model finds a Pareto optimal solution, balancing predictive accuracy with causal purity. This approach prevents the model from being distracted by irrelevant noise that might otherwise offer a temporary boost in training performance.

Experimental Results

The researchers evaluated ICL across a diverse range of benchmarks, including synthetic datasets like Spurious-Motif and real-world datasets such as MUTAG, PROTEINS, and Molhiv.

  • Robustness to Bias: On the Spurious-Motif dataset with high bias ($b=0.9$), ICL achieved an accuracy of 63.69%, nearly doubling the performance of a standard GCN (~34.55%).
  • Real-World Performance: ICL consistently improved average accuracy across TUDatasets, with gains of approximately 2.4% on MUTAG and 2.1% on IMDB-M.
  • OOD Generalization: On the MNIST-75sp benchmark, ICL outperformed the attention-based CAL method by 2.5-3%, demonstrating its superior ability to distill robust causal patterns from complex data.

Visual analysis using t-SNE confirmed these findings, showing that ICL's causal representations ($Z_c$) create clearly separated clusters aligned with labels, while non-causal representations ($Z_s$) show almost no correlation with the target classes.

Conclusion

Information-based Causal Learning (ICL) represents a significant step forward in making GNNs more reliable for high-stakes applications. By explicitly modeling the causal structure of graph data and optimizing information flow through a disentangled bottleneck, ICL provides a principled way to achieve robust out-of-distribution generalization. Future work may explore extending this framework to dynamic graphs and more complex causal structures.

Summary updated

BibTeX
@inproceedings{zhao2024twist,
  author = {Zhe Zhao and Pengkun Wang and Haibin Wen and Yudong Zhang and Zhengyang Zhou and Yang Wang},
  title = {{A Twist for Graph Classification: Optimizing Causal Information Flow in Graph Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i15.29648},
}
Figure