Community-Invariant Graph Contrastive Learning

Shiyin Tan, Dongyuan Li, Renhe Jiang, Ying Zhang, Manabu Okumura
5/2/2024
cs.LGcs.SI

Official code: ShiyinTan/CI-GCL (13 stars, last commit 2025-04-02).

Abstract

Graph augmentation has received great attention in recent years for graph contrastive learning (GCL) to learn well-generalized node/graph representations. However, mainstream GCL methods often favor randomly disrupting graphs for augmentation, which shows limited generalization and inevitably leads to the corruption of high-level graph information, i.e., the graph community. Moreover, current knowledge-based graph augmentation methods can only focus on either topology or node features, causing the model to lack robustness against various types of noise. To address these limitations, this research investigated the role of the graph community in graph augmentation and figured out its crucial advantage for learnable graph augmentation. Based on our observations, we propose a community-invariant GCL framework to maintain graph community structure during learnable graph augmentation. By maximizing the spectral changes, this framework unifies the constraints of both topology and feature augmentation, enhancing the model's robustness. Empirical evidence on 21 benchmark datasets demonstrates the exclusive merits of our framework. Code is released on Github (https://github.com/ShiyinTan/CI-GCL.git).

View on arXivView PDF

Code Implementations(1)

ShiyinTan/CI-GCLOfficial100%
131PythonJan 31, 20241 years ago

Cite this paper

@article{tan2024communityinvariant,
  title  = {Community-Invariant Graph Contrastive Learning},
  author = {Shiyin Tan and Dongyuan Li and Renhe Jiang and Ying Zhang and Manabu Okumura},
  year   = {2024},
  eprint = {2405.01350},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.01350v1},
  journal = {ICML 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/2405.01350.svg)](https://codeofpaper.com/paper/2405.01350)

Discussion