SimGRACE: A Simple Framework for Graph Contrastive Learning without Data Augmentation

Jun Xia, Lirong Wu, Jintao Chen, Bozhen Hu, Stan Z. Li
2/7/2022
cs.LGcs.SI
contrastive-ssl

Official code: junxia97/SimGRACE (83 stars, Python, last commit 2022-06-13).

Abstract

Graph contrastive learning (GCL) has emerged as a dominant technique for graph representation learning which maximizes the mutual information between paired graph augmentations that share the same semantics. Unfortunately, it is difficult to preserve semantics well during augmentations in view of the diverse nature of graph data.

Show full abstract

Currently, data augmentations in GCL that are designed to preserve semantics broadly fall into three unsatisfactory ways. First, the augmentations can be manually picked per dataset by trial-and-errors. Second, the augmentations can be selected via cumbersome search. Third, the augmentations can be obtained by introducing expensive domain-specific knowledge as guidance. All of these limit the efficiency and more general applicability of existing GCL methods. To circumvent these crucial issues, we propose a \underline{Sim}ple framework for \underline{GRA}ph \underline{C}ontrastive l\underline{E}arning, \textbf{SimGRACE} for brevity, which does not require data augmentations. Specifically, we take original graph as input and GNN model with its perturbed version as two encoders to obtain two correlated views for contrast. SimGRACE is inspired by the observation that graph data can preserve their semantics well during encoder perturbations while not requiring manual trial-and-errors, cumbersome search or expensive domain knowledge for augmentations selection. Also, we explain why SimGRACE can succeed. Furthermore, we devise adversarial training scheme, dubbed \textbf{AT-SimGRACE}, to enhance the robustness of graph contrastive learning and theoretically explain the reasons. Albeit simple, we show that SimGRACE can yield competitive or better performance compared with state-of-the-art methods in terms of generalizability, transferability and robustness, while enjoying unprecedented degree of flexibility and efficiency.

View on arXivView PDF

Code Implementations(1)

junxia97/SimGRACEOfficial100%

[WWW 2022] "SimGRACE: A Simple Framework for Graph Contrastive Learning without Data Augmentation"

836Python, CJan 29, 20224 years ago
graph-contrastive-learninggraph-neural-networksgraph-self-supervised-learningmolecular-representation-learningpretraining

Similar Papers

Cite this paper

@article{xia2022simgrace,
  title  = {SimGRACE: A Simple Framework for Graph Contrastive Learning without Data Augmentation},
  author = {Jun Xia and Lirong Wu and Jintao Chen and Bozhen Hu and Stan Z. Li},
  year   = {2022},
  eprint = {2202.03104},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.03104}
}

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

Discussion