Graph Contrastive Learning with Adaptive Augmentation

Yanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu, Shu Wu +1 more
10/27/2020
1,569 citations
cs.LG
contrastive-ssl

Official code: CRIPAC-DIG/GCA (180 stars, Python, MIT, PyTorch, last commit 2024-04-25).

Abstract

Recently, contrastive learning (CL) has emerged as a successful method for unsupervised graph representation learning. Most graph CL methods first perform stochastic augmentation on the input graph to obtain two graph views and maximize the agreement of representations in the two views.

Show full abstract

Despite the prosperous development of graph CL methods, the design of graph augmentation schemes -- a crucial component in CL -- remains rarely explored. We argue that the data augmentation schemes should preserve intrinsic structures and attributes of graphs, which will force the model to learn representations that are insensitive to perturbation on unimportant nodes and edges. However, most existing methods adopt uniform data augmentation schemes, like uniformly dropping edges and uniformly shuffling features, leading to suboptimal performance. In this paper, we propose a novel graph contrastive representation learning method with adaptive augmentation that incorporates various priors for topological and semantic aspects of the graph. Specifically, on the topology level, we design augmentation schemes based on node centrality measures to highlight important connective structures. On the node attribute level, we corrupt node features by adding more noise to unimportant node features, to enforce the model to recognize underlying semantic information. We perform extensive experiments of node classification on a variety of real-world datasets. Experimental results demonstrate that our proposed method consistently outperforms existing state-of-the-art baselines and even surpasses some supervised counterparts, which validates the effectiveness of the proposed contrastive framework with adaptive augmentation.

View on arXivView PDF

Code Implementations(1)

CRIPAC-DIG/GCAOfficial100%
PyTorchMIT

[WWW 2021] Source code for "Graph Contrastive Learning with Adaptive Augmentation"

18024PythonApr 9, 20212 years agoMIT
contrastive-learningdeep-learninggraph-contrastive-learninggraph-representation-learningpytorch+1 more

Similar Papers

Cite this paper

@article{zhu2020graph,
  title  = {Graph Contrastive Learning with Adaptive Augmentation},
  author = {Yanqiao Zhu and Yichen Xu and Feng Yu and Qiang Liu and Shu Wu and Liang Wang},
  year   = {2020},
  eprint = {2010.14945},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.14945}
}

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

Discussion