A Closer Look at the Application of Causal Inference in Graph Representation Learning

Hang Gao, Kunyu Li, Huang Hong, Baoquan Cui, Fengge Wu

TL;DR

Graph representation learning methods often apply causal inference by grouping entire subgraphs into single variables, but this paper proves that such aggregation violates core causal assumptions. To fix this, the authors introduce a fine-grained Structural Causal Model based on indivisible graph elements and propose a plug-and-play Redundancy Elimination (REC) module to safely simplify graph complexity.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for analyzing networked data, from social networks to molecular structures. However, they easily fall prey to spurious correlations—mistaking a superficial pattern (like a specific functional group that happens to appear frequently in a training set) for a true causal relationship.

To build more trustworthy AI, researchers have turned to causal inference, attempting to isolate "causal subgraphs" or eliminate "confounders" (hidden variables that cause false correlations). But there is a catch: existing methods typically treat an entire subgraph or confounding region as a single, unified variable. The authors demonstrate that because real-world graph elements have highly intricate, reciprocal relationships, treating them as a single variable violates two pillars of causal inference: the Causal Markov Assumption and the Causal Faithfulness Assumption.

Figure 1: An example of the ideal case and the actual case in causal model building. In the actual case, the causal model cannot be constructed as in the ideal case due to the complex reciprocal causal relationships be- tween the merged variables.

As shown in Figure 1, when complex graph components are merged blindly, the resulting causal model fails because it cannot account for the hidden, internal feedback loops between the merged elements.

Methods

The paper approaches this challenge through both rigorous theory and practical architecture:

  1. Fine-Grained Structural Causal Model (SCM): The authors construct a new theoretical framework where individual nodes and edges are treated as separate, indivisible variables. This ensures strict adherence to causal theory.
  2. Mathematical Proofs on Merging: They derive the exact mathematical conditions (Theorem 4) under which graph variables can be safely merged without destroying causal validity. Crucially, a merged variable cannot contain both the parent and child nodes of another external variable.
  3. Redundancy Elimination Module (REC): Recognizing that modeling every single node and edge individually is computationally impossible (requiring thousands of costly data interventions), they introduce REC. This plug-and-play module uses a Multi-Layer Perceptron (MLP) alongside a progressively decaying masking parameter ($\gamma$) to filter out causally irrelevant or redundant variables during training, safely simplifying the graph's complexity.
Figure 2: Graphical illustration of the proposed SCM of the graph representation learning scenario.

Datasets

The authors evaluated their approach using several datasets:

  • RWG (Real-World knowledge-based synthesized Graph): A new benchmark dataset introduced in this paper. It uses real-world chemical motifs and citation network rules to build synthetic graphs with precisely controlled, known internal causal relationships. It includes two sub-tasks: RWG-Molecular and RWG-Citation.
  • Standard Benchmarks: SPMotif (a popular synthetic causal graph dataset), CiteSeer (real-world citation network), and ENZYMES (protein tertiary structures).
  • Hybrid Variants: SPMotif-M and SPMotif-C, which inject real-world structural linkages and molecular motifs into the standard SPMotif dataset.

Key Insights and Ideas

  • The High Cost of Perfection: The authors prove that achieving perfectly accurate causal modeling on a standard graph dataset without simplification requires an impractically massive number of data interventions—on the order of several thousand for a dataset like CiteSeer.
  • Safe Merging is Conditional: You don't have to model every atom individually, but you must be strategic. Variables can only be aggregated if they don't cross parent-child boundaries of other interacting variables.
  • Causal Data Isn't Enough: Simply training a model on purely causal data does not guarantee out-of-distribution generalization. If the model is exposed to new confounding data at test time, its performance drops sharply. Active complexity reduction (like REC) is necessary.

Key Results

The REC module was integrated into three standard GNN backbones (GCN, GIN, ChebNet) and three advanced causal GNN frameworks (CaNet, CRCG, DIR).

  • Consistent Performance Boosts: Adding REC improved accuracy across all baselines and datasets.
  • Dramatic Gains on Complex Structures: The most notable improvement occurred with the GIN backbone on the Spmotif-M dataset, where adding REC skyrocketed the classification accuracy from 14.27% to 38.60% (an absolute gain of +24.33%).
  • Robustness to Confounders: On the RWG-Citation dataset, standard GCN accuracy improved from 43.50% to 52.29% (+8.79%) when enhanced with REC, proving the module's ability to successfully clear out misleading network biases.

Limitations and Future Work

While Theorem 4 provides a blueprint for safe variable merging, implementing it perfectly still requires partial, prior knowledge of the underlying causal mechanisms in the data. Additionally, the authors note that current intervention methods cannot completely eliminate all real-world network interference due to the inherent architectural limitations of GNN message-passing. Future work will likely focus on discovering these causal boundaries automatically without relying on prior domain knowledge.

Summary updated

BibTeX
@misc{gao2026closer,
  author = {Hang Gao and Kunyu Li and Huang Hong and Baoquan Cui and Fengge Wu},
  title = {{A Closer Look at the Application of Causal Inference in Graph Representation Learning}},
  year = {2026},
  eprint = {2604.08890},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.08890},
}
Figure