Graph Contrastive Invariant Learning from the Causal Perspective

Yanhu Mo, Xiao Wang, Shaohua Fan, Chuan Shi
1/23/2024
cs.LGcs.SI

No official code found. Best implementation: BUPT-GAMMA/GCIL (29 stars, Apache-2.0, last commit 2024-03-11).

Abstract

Graph contrastive learning (GCL), learning the node representation by contrasting two augmented graphs in a self-supervised way, has attracted considerable attention. GCL is usually believed to learn the invariant representation. However, does this understanding always hold in practice? In this paper, we first study GCL from the perspective of causality. By analyzing GCL with the structural causal model (SCM), we discover that traditional GCL may not well learn the invariant representations due to the non-causal information contained in the graph. How can we fix it and encourage the current GCL to learn better invariant representations? The SCM offers two requirements and motives us to propose a novel GCL method. Particularly, we introduce the spectral graph augmentation to simulate the intervention upon non-causal factors. Then we design the invariance objective and independence objective to better capture the causal factors. Specifically, (i) the invariance objective encourages the encoder to capture the invariant information contained in causal variables, and (ii) the independence objective aims to reduce the influence of confounders on the causal variables. Experimental results demonstrate the effectiveness of our approach on node classification tasks.

View on arXivView PDF

Code Implementations(1)

BUPT-GAMMA/GCILCommunity100%
Apache-2.0

Code for AAAI-2024 paper: Graph Contrastive Invariant Learning from the Causal Perspective

291PythonDec 14, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{mo2024graph,
  title  = {Graph Contrastive Invariant Learning from the Causal Perspective},
  author = {Yanhu Mo and Xiao Wang and Shaohua Fan and Chuan Shi},
  year   = {2024},
  eprint = {2401.12564},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.12564v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.12564.svg)](https://codeofpaper.com/paper/2401.12564)

Discussion