Learning Invariant Representations of Graph Neural Networks via Cluster Generalization

Donglin Xia, Xiao Wang, Nian Liu, Chuan Shi
3/6/2024
cs.LG

Official code: BUPT-GAMMA/CITGNN (10 stars, last commit 2023-12-26).

Abstract

Graph neural networks (GNNs) have become increasingly popular in modeling graph-structured data due to their ability to learn node representations by aggregating local structure information. However, it is widely acknowledged that the test graph structure may differ from the training graph structure, resulting in a structure shift. In this paper, we experimentally find that the performance of GNNs drops significantly when the structure shift happens, suggesting that the learned models may be biased towards specific structure patterns. To address this challenge, we propose the Cluster Information Transfer (CIT) mechanism (Code available at https://github.com/BUPT-GAMMA/CITGNN), which can learn invariant representations for GNNs, thereby improving their generalization ability to various and unknown test graphs with structure shift. The CIT mechanism achieves this by combining different cluster information with the nodes while preserving their cluster-independent information. By generating nodes across different clusters, the mechanism significantly enhances the diversity of the nodes and helps GNNs learn the invariant representations. We provide a theoretical analysis of the CIT mechanism, showing that the impact of changing clusters during structure shift can be mitigated after transfer. Additionally, the proposed mechanism is a plug-in that can be easily used to improve existing GNNs. We comprehensively evaluate our proposed method on three typical structure shift scenarios, demonstrating its effectiveness in enhancing GNNs' performance.

View on arXivView PDF

Code Implementations(1)

BUPT-GAMMA/CITGNNOfficial100%
100PythonOct 24, 20232 years ago

Similar Papers

Cite this paper

@article{xia2024learning,
  title  = {Learning Invariant Representations of Graph Neural Networks via Cluster Generalization},
  author = {Donglin Xia and Xiao Wang and Nian Liu and Chuan Shi},
  year   = {2024},
  eprint = {2403.03599},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2403.03599},
  url    = {http://arxiv.org/abs/2403.03599v1},
  journal = {NEURIPS 2024 2024}
}

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/2403.03599.svg)](https://codeofpaper.com/paper/2403.03599)

Discussion