An Empirical Study of Graph Contrastive Learning

Yanqiao Zhu, Yichen Xu, Qiang Liu, Shu Wu
9/2/2021
230 citations
cs.LGcs.SI
contrastive-ssl

Official code: PyGCL/PyGCL (967 stars, Python, Apache-2.0, last commit 2026-02-17).

Abstract

Graph Contrastive Learning (GCL) establishes a new paradigm for learning graph representations without human annotations. Although remarkable progress has been witnessed recently, the success behind GCL is still left somewhat mysterious.

Show full abstract

In this work, we first identify several critical design considerations within a general GCL paradigm, including augmentation functions, contrasting modes, contrastive objectives, and negative mining techniques. Then, to understand the interplay of different GCL components, we conduct extensive, controlled experiments over a set of benchmark tasks on datasets across various domains. Our empirical studies suggest a set of general receipts for effective GCL, e.g., simple topology augmentations that produce sparse graph views bring promising performance improvements; contrasting modes should be aligned with the granularities of end tasks. In addition, to foster future research and ease the implementation of GCL algorithms, we develop an easy-to-use library PyGCL, featuring modularized CL components, standardized evaluation, and experiment management. We envision this work to provide useful empirical evidence of effective GCL algorithms and offer several insights for future research.

View on arXivView PDF

Code Implementations(1)

PyGCL/PyGCLOfficial100%
Apache-2.0

PyGCL: A PyTorch Library for Graph Contrastive Learning

96798PythonJun 7, 20219 months agoApache-2.0
contrastive-learninggraph-contrastive-learninggraph-representation-learningmachine-learning

Similar Papers

Cite this paper

@article{zhu2021empirical,
  title  = {An Empirical Study of Graph Contrastive Learning},
  author = {Yanqiao Zhu and Yichen Xu and Qiang Liu and Shu Wu},
  year   = {2021},
  eprint = {2109.01116},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.01116}
}

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

Discussion