Papers › Graph Contrastive Learning with Augmentations

Graph Contrastive Learning with Augmentations

22 Oct 2020NeurIPS 2020 12arXiv:2010.13902archive 2025-07-28

Yuning You, Tianlong Chen, Yongduo Sui, Ting Chen, Zhangyang Wang, Yang shen

Generalizable, transferrable, and robust representation learning on graph-structured data remains a challenge for current graph neural networks (GNNs). Unlike what has been developed for convolutional neural networks (CNNs) for image data, self-supervised learning and pre-training are less explored for GNNs. In this paper, we propose a graph contrastive learning (GraphCL) framework for learning unsupervised representations of graph data. We first design four types of graph augmentations to incorporate various priors. We then systematically study the impact of various combinations of graph augmentations on multiple datasets, in four different settings: semi-supervised, unsupervised, and transfer learning as well as adversarial attacks. The results show that, even without tuning augmentation extents nor using sophisticated GNN architectures, our GraphCL framework can produce graph representations of similar or better generalizability, transferrability, and robustness compared to state-of-the-art methods. We also investigate the impact of parameterized graph augmentation extents and patterns, and observe further performance gains in preliminary experiments. Our codes are available at https://github.com/Shen-Lab/GraphCL.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2010.13902")

Code

Syntology Ran 17 of 19 code samples harvested from 4 repositories linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · honoured contract; 10 ran · our draft was wrong; 4 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 1 sample from 1 repository, 1 ran; community (archive-listed): 17 samples from 3 repositories, 15 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Shen-Lab/GraphCL officialmentioned in papermentioned on GitHubpytorch report
Shen-Lab/GraphCL_Automated mentioned on GitHubpytorch report
ycremar/DIG-SSL mentioned on GitHubpytorch report
yuwvandy/g2gnn mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 17 ran; 1 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · honoured contract
10ran · our draft was wrong
4ran · fixture could not drive it
2ran
2unverified

Licence: 18 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

graphcl Shen-Lab/GraphCL/transferLearning_MoleculeNet_PPI/chem/pretrain_graphcl.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 80ece471102b74f3 · report
Contrastive ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 7359e4334ef6272b · report
NCE_loss ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · fixture could not drive it no licence file found · pointer only · 9f253c62c8e84cf5 · report
NT_Xent ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · b5812fc5a667e0d5 · report
RW_sample ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · a28760ba97472616 · report
drop_nodes Shen-Lab/GraphCL_Automated/unsupervised_TU/aug.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 9d6cd266e78dc80f · report
edge_perturbation ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 40eabff12d968735 · report
infoNCE_local_intra_node ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 1045b0a0a750926e · report
mask_nodes Shen-Lab/GraphCL_Automated/unsupervised_TU/aug.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 122a8f8967440f5a · report
node_attr_mask ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 565cd376d19d16fe · report
permute_edges Shen-Lab/GraphCL_Automated/unsupervised_TU/aug.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 4e5d7db5f75c30b6 · report
random_view ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 6a784308a8c084d2 · report
remove_edge yuwvandy/g2gnn/aug.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 2ac6b4ffab6287ac · report
subgraph Shen-Lab/GraphCL_Automated/unsupervised_TU/aug.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · f679d89508183977 · report
train Shen-Lab/GraphCL_Automated/transferLearning_MoleculeNet_PPI_LP/bio/pretrain_generative_infobn.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 84567ef3dc4cb159 · report
uniform_sample ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · 5d7733a471ca27b8 · report
GraphCL ycremar/DIG-SSL/sslgraph/contrastive/model/graphcl.py community (archive-listed) unverified no licence file found · pointer only · 8130b63d6ab585fa · report
TUDataset_aug Shen-Lab/GraphCL_Automated/unsupervised_TU/aug.py community (archive-listed) unverified no licence file found · pointer only · a74955e8b458fc65 · report
cycle_index identical code first harvested elsewhere ran · honoured contract licence of this copy not recorded · b822dd00427403bf · report

Tasks

Contrastive LearningRepresentation LearningSelf-Supervised LearningTransfer Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Introduced by this paper: GraphCL

Contrastive LearningGraphCL

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections