Skip to main content
QUICK REVIEW

[Paper Review] Debiasing Graph Neural Networks via Learning Disentangled Causal Substructure

Shaohua Fan, Xiao Wang|arXiv (Cornell University)|Sep 28, 2022
Advanced Graph Neural NetworksComputer Science38 citations
TL;DR

Proposes DisC, a disentangled GNN framework that splits graphs into causal and bias subgraphs via a learnable edge mask, trains separate GNNs on each subgraph with bias-aware and causal losses, and generates counterfactual unbiased samples to improve generalization under severe bias.

ABSTRACT

Most Graph Neural Networks (GNNs) predict the labels of unseen graphs by learning the correlation between the input graphs and labels. However, by presenting a graph classification investigation on the training graphs with severe bias, surprisingly, we discover that GNNs always tend to explore the spurious correlations to make decision, even if the causal correlation always exists. This implies that existing GNNs trained on such biased datasets will suffer from poor generalization capability. By analyzing this problem in a causal view, we find that disentangling and decorrelating the causal and bias latent variables from the biased graphs are both crucial for debiasing. Inspiring by this, we propose a general disentangled GNN framework to learn the causal substructure and bias substructure, respectively. Particularly, we design a parameterized edge mask generator to explicitly split the input graph into causal and bias subgraphs. Then two GNN modules supervised by causal/bias-aware loss functions respectively are trained to encode causal and bias subgraphs into their corresponding representations. With the disentangled representations, we synthesize the counterfactual unbiased training samples to further decorrelate causal and bias variables. Moreover, to better benchmark the severe bias problem, we construct three new graph datasets, which have controllable bias degrees and are easier to visualize and explain. Experimental results well demonstrate that our approach achieves superior generalization performance over existing baselines. Furthermore, owing to the learned edge mask, the proposed model has appealing interpretability and transferability. Code and data are available at: https://github.com/googlebaba/DisC.

Motivation & Objective

  • Motivate and analyze the impact of severe bias on graph classification with GNNs from a causal perspective.
  • Develop a framework to disentangle causal and bias substructures in graphs.
  • Learn a global edge-mask to partition graphs into causal and bias subgraphs.
  • Train dedicated GNN modules on each subgraph with bias-aware and causal losses.
  • Generate counterfactual unbiased representations to decorrelate causal and bias signals.

Proposed method

  • Introduce a parameterized edge mask generator that assigns edge-level probabilities to form causal and bias subgraphs.
  • Train two GNNs on the masked subgraphs: a causal GNN and a bias GNN, each with corresponding loss functions (causal loss and generalized cross-entropy bias loss).
  • Use a bias-aware loss (generalized cross-entropy) to amplify learning of bias substructure; use a weighted cross-entropy to emphasize causality in the causal branch.
  • Compute an unbiased score to reweight graphs and train the causal branch with selectively weighted loss.
  • Generate counterfactual unbiased samples by permuting the bias representations across graphs and swapping corresponding labels, then train with a combined loss that includes these samples.

Experimental results

Research questions

  • RQ1How does severe bias affect GNN generalization in graph classification?
  • RQ2Can causal and bias substructures be disentangled from biased graphs in a population-wide manner?
  • RQ3Can counterfactual unbiased samples be generated to decorrelate causal and bias factors and improve generalization?
  • RQ4How effective is a global edge-mask in identifying causal versus bias subgraphs across graph populations?
  • RQ5Does the DisC framework improve generalization across multiple base GNN architectures?

Key findings

  • DisC significantly improves generalization over base GNNs on three biased graph datasets across multiple bias degrees.
  • DisC consistently outperforms existing debiasing methods like DIR and StableGNN, especially under heavier bias.
  • Edge masking yields interpretable subgraphs where causal subgraphs align with true discriminative structure, and bias subgraphs align with spurious patterns.
  • Counterfactual embedding generation decorrelates causal and bias factors, enabling the causal signal to drive predictions.
  • Disentangled representations show clustering by causal vs. bias factors in latent spaces, supporting interpretability and transferability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.