Towards human-like perception: Learning structural causal model in heterogeneous graph

Tianqianjin Lin, Kaisong Song, Zhuoren Jiang, Yangyang Kang, Weikang Yuan, Xurui Li, Changlong Sun, Cui Huang, Xiaozhong Liu

Introduction

Heterogeneous Graph Neural Networks (HGNNs) are essential for modeling complex systems like academic networks or e-commerce platforms, where diverse node types (e.g., authors, papers, venues) interact. However, traditional HGNNs struggle with two major issues: generalizability and interpretability. Most models assume data is identically and independently distributed (i.i.d.), making them prone to latching onto spurious correlations. For example, a model might predict an author's research area based on a noisy co-author relationship rather than the actual content of their work.

Comparison of traditional graph inference vs. causal structure discovery for predicting an author's research area.

To achieve "human-like perception," the authors propose shifting from associational inference to a causal paradigm. This involves identifying meaningful variables and discovering the underlying causal structure governing them.

The HG-SCM Framework

The proposed HG-SCM (Heterogeneous Graph as Structural Causal Model) framework operates in three distinct phases to mimic human reasoning:

  1. Variable Construction: Instead of treating the graph as a monolithic feature matrix, the model defines "human-understandable" variables based on the graph schema. These include target node features, labels, and neighbor sets reached via specific meta-paths (e.g., "Author-Paper-Venue").
  2. Causal Structure Modeling: These variables are treated as nodes in a Structural Causal Model (SCM). The model learns a Directed Acyclic Graph (DAG) representing the causal relationships between variables. It employs a continuous optimization approach, using a "DAG-ness" loss inspired by the NOTEARS algorithm to ensure acyclicity.
  3. Label Prediction: Unlike standard GNNs that aggregate all available data, HG-SCM makes predictions by reconstructing the target label variable based solely on its direct causal parents in the learned DAG.
The HG-SCM architecture: from graph schema and real-world data to variable construction and causal structure modeling.

The model is trained using a joint loss function that balances task accuracy, variable reconstruction from causes, and the mathematical constraints of a valid DAG.

Experimental Evaluation

The researchers evaluated HG-SCM on three standard benchmarks from the Heterogeneous Graph Benchmark (HGB): DBLP (author research area), ACM (paper category), and IMDB (movie genre). To test robustness, they created three out-of-distribution (OOD) settings by clustering nodes based on homophily, degree, and feature biases.

Key Insights

  • Task-Level Logic: While most GNNs focus on sample-level adaptation, HG-SCM argues that a consistent causal principle usually applies to all samples in a task. Learning this stable logic is key to robustness.
  • The Simplicity Paradox: Interestingly, simple average pooling for neighbor sets often outperformed complex attention mechanisms within the causal framework. This suggests that a correct causal structure inherently filters out noise, reducing the need for complex encoders.
  • Human Alignment: The learned DAGs align with human intuition. In the DBLP task, for instance, the model correctly identified that an author’s research area is directly caused by the venues they publish in.

Results and Impact

HG-SCM demonstrated superior generalizability, achieving the highest average performance rank across all OOD experiments compared to seven state-of-the-art baselines (including HGT and SeHGNN). It also showed remarkable stability; while baseline models like GTN performed inconsistently across different settings, HG-SCM maintained the lowest standard deviation in rankings.

Beyond performance, HG-SCM provides a transparent "causal diagram" for every task. In the IMDB task, it automatically learned that a movie's category is determined by its plot keywords and actors, offering a clear reasoning path that traditional models lack.

Limitations and Future Work

Despite its success, HG-SCM faces challenges. Learning a DAG can be computationally expensive as the number of meta-paths increases. Future work aims to incorporate "human-in-the-loop" refinement, allowing domain experts to nudge the learned causal logic. Additionally, the authors plan to develop rigorous quantitative metrics to evaluate how well the model's logic matches established social theories or physical laws.

Summary updated

BibTeX
@article{lin2024towards,
  author = {Tianqianjin Lin and Kaisong Song and Zhuoren Jiang and Yangyang Kang and Weikang Yuan and Xurui Li and Changlong Sun and Cui Huang and Xiaozhong Liu},
  title = {{Towards human-like perception: Learning structural causal model in heterogeneous graph}},
  journal = {Information Processing \& Management},
  year = {2024},
  doi = {10.1016/j.ipm.2023.103600},
}
Figure