Papers › Contrastive Multi-View Representation Learning on Graphs

Contrastive Multi-View Representation Learning on Graphs

10 Jun 2020ICML 2020 1arXiv:2006.05582archive 2025-07-28

Kaveh Hassani, Amir Hosein Khasahmadi

We introduce a self-supervised approach for learning node and graph level representations by contrasting structural views of graphs. We show that unlike visual representation learning, increasing the number of views to more than two or contrasting multi-scale encodings do not improve performance, and the best performance is achieved by contrasting encodings from first-order neighbors and a graph diffusion. We achieve new state-of-the-art results in self-supervised learning on 8 out of 8 node and graph classification benchmarks under the linear evaluation protocol. For example, on Cora (node) and Reddit-Binary (graph) classification benchmarks, we achieve 86.8% and 84.5% accuracy, which are 5.5% and 2.4% relative improvements over previous state-of-the-art. When compared to supervised baselines, our approach outperforms them in 4 out of 8 benchmarks. Source code is released at: https://github.com/kavehhassani/mvgrl

PaperPDFConference PDFCodeCode Syntology ranMethod as code

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

The archive's official repository (kavehhassani/mvgrl) was not harvested; the 22 samples below come from 3 community repositories.

Syntology 22 code samples harvested from 3 repositories linked to this paper: 16 ran (of which 3 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 1 violated, 9 with no contract checked; 6 where Syntology's instrument failed) · 6 unverified. Where Syntology's instrument failed: 4 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: community (archive-listed): 22 samples from 3 repositories, 16 ran (10 with no instrument failure; 6 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

kavehhassani/mvgrl officialmentioned in papermentioned on GitHubpytorchSyntology: not harvested report
hengruizhang98/mvgrl mentioned on GitHubpytorchSyntology: not harvested report
timothewt/AdvancedGraphClustering mentioned on GitHubSyntology: 11 samples, 9 ran (1 instrument-failed) · 2 unverified report
ycremar/DIG-SSL mentioned on GitHubpytorchSyntology: 9 samples, 7 ran (5 instrument-failed) · 2 unverified report
dmlc/dgl pytorchSyntology: 2 samples, 0 ran · 2 unverified 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

22 samples harvested: 16 ran (of which 3 constructed an object rather than computing a result; 10 with no instrument failure: 0 honoured, 1 violated, 9 with no contract checked; 6 where Syntology's instrument failed) · 6 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · violated contract
4ran · our draft was wrong
2ran; the contract check could not run
9ran
6unverified

Licence: 9 of the 22 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 3 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. For 1 sample that ran, the graph records a signature this page does not show: for a class the fixture built without calling, the harness called the object with inputs it made up itself, so the recorded signature is the harness's probe, not the fixture's arguments. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

timothewt/AdvancedGraphClustering community (archive-listed) 11 samples, 9 ran (1 instrument-failed) · 2 unverified
Algorithm in 26 papers src/algorithms/deep/MVGRL.py ran MIT (permissive) · aa8592921f0a1166 · report fixture: returned Algorithm · level recorded 2026-09-22
Discriminator in 42 papers src/algorithms/deep/MVGRL.py ran fingerprinted MIT (permissive) · e8420d8fd1b6ff84 · report fixture: signature ha:Tensor/2/float, hb:Tensor/2/float, Ha:Tensor/2/float, Hb:Tensor/2/float, Ha_corrupted:Tensor/2/float, Hb_corrupted:Tensor/2/float · returned Tensor · level recorded 2026-09-24
GCN in 41 papers src/algorithms/deep/MVGRL.py ran MIT (permissive) · 8dc21381dd6d399e · report fixture: signature x:Tensor/2/float, edge_index:Tensor/2/int, edge_weight:NoneType/0/? · returned tuple · level recorded 2026-09-24
Graph in 18 papers src/algorithms/deep/MVGRL.py ran MIT (permissive) · 735edbdc1444cbb5 · report fixture: returned Graph · level recorded 2026-09-22
MVGRLModel src/algorithms/deep/MVGRL.py ran MIT (permissive) · 223a803cd8563f7e · report fixture: signature x:Tensor/2/float, edge_index:Tensor/2/int, diff_edge_index:Tensor/2/int, diff_edge_weight:Tensor/1/float, corrupted_idx:Tensor/1/int · returned tuple · level recorded 2026-09-24
Projection in 10 papers src/algorithms/deep/MVGRL.py ran fingerprinted MIT (permissive) · 958dd6844f7b1b39 · report fixture: returned Projection · level recorded 2026-09-22
Readout src/algorithms/deep/MVGRL.py ran fingerprinted MIT (permissive) · c956f8c1a7e84185 · report fixture: signature h1:Tensor/3/float, h2:Tensor/3/float · returned Tensor · level recorded 2026-09-24
compute_diffusion_matrix src/algorithms/deep/MVGRL.py ran · violated contract fingerprinted MIT (permissive) · cfac6c086d0b45f8 · report fixture: signature adj:ndarray/2/float, alpha:float/0/float · returned ndarray · level recorded 2026-09-22
get_clusters in 9 papers src/algorithms/deep/MVGRL.py ran; the contract check could not run (RAISES) MIT (permissive) · 6c35beaf2f4f4958 · report fixture: signature z:ndarray/2/float, n_clusters:int/0/int, method:str/0/str · returned ndarray · level recorded 2026-09-22
DeepAlgorithm src/algorithms/deep/MVGRL.py unverified MIT (permissive) · 848f5e9c8a204f34 · report
MVGRL src/algorithms/deep/MVGRL.py unverified MIT (permissive) · f742d0b48473328a · report
ycremar/DIG-SSL community (archive-listed) 9 samples, 7 ran (5 instrument-failed) · 2 unverified
JSE_global_global sslgraph/contrastive/model/mvgrl.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 4d9728453fe03cc6 · report fixture: signature z1:Tensor/2/float, z2:Tensor/2/float · returned Tensor · level recorded 2026-09-22
JSE_local_global sslgraph/contrastive/model/mvgrl.py ran · our draft was wrong no licence file found · pointer only · 3d5b953b308a310f · report fixture: signature z_g:Tensor/2/float, z_n:Tensor/2/float, batch:Tensor/1/int · returned Tensor · level recorded 2026-09-22
JSE_local_global_negative_paired sslgraph/contrastive/model/mvgrl.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 0fae77463fdd09d3 · report fixture: signature z_g:Tensor/2/float, z_n:Tensor/2/float, batch:NoneType/0/? · returned Tensor · level recorded 2026-09-22
JSE_loss sslgraph/contrastive/model/mvgrl.py ran; the contract check could not run (RAISES) no licence file found · pointer only · d7304af9c880b521 · report fixture: signature zs:list/1/Tensor, zs_n:NoneType/0/?, batch:NoneType/0/?, sigma:NoneType/0/?, neg_by_crpt:bool/0/bool · returned Tensor · level recorded 2026-09-22
MVGRL_enc sslgraph/contrastive/model/mvgrl.py ran no licence file found · pointer only · 999ccf5675c0bb55 · report fixture: signature data:TinyData/0/? · returned tuple · level recorded 2026-09-24
ProjHead sslgraph/contrastive/model/mvgrl.py ran · metamorphic tier: invariant fingerprinted no licence file found · pointer only · a746050f57f068ee · report fixture: signature x:Tensor/2/float · returned Tensor · level recorded 2026-09-22
diffusion in 6 papers sslgraph/contrastive/model/mvgrl.py ran · our draft was wrong no licence file found · pointer only · 95811669b9827928 · report fixture: signature mode:str/0/str, alpha:float/0/float, t:int/0/int, add_self_loop:bool/0/bool · returned function · level recorded 2026-09-22
Contrastive sslgraph/contrastive/model/mvgrl.py unverified no licence file found · pointer only · f70262e4e6cc1fb3 · report
MVGRL sslgraph/contrastive/model/mvgrl.py unverified no licence file found · pointer only · e59b03802d233cb8 · report
dmlc/dgl community (archive-listed) 2 samples, 0 ran · 2 unverified
BaseTransform python/dgl/transforms/module.py unverified Apache-2.0 (permissive) · 41b7f635984ee5af · report
FeatMask python/dgl/transforms/module.py unverified Apache-2.0 (permissive) · d1837f554f3ba0c1 · report

Method as code Syntology

What Syntology's graph records as this paper's claimed method, lifted into code: each assembly names its bricks (functions and classes), each with its own role and its own verification level. An assembly is not a check that the code implements the method correctly or reproduces the paper's results. Levels are each brick's own verification level in Syntology's graph (level 0: no recorded run), listed brick by brick and never combined into one level; “ran” means the brick executed on a synthesized input, not that its output is correct, and the instrument figure counts failures of Syntology's instrument, not of the code. Where a model read the code against the paper's claim, each assembly's label verdict is one model's judgement, kept in this page's JSON twin; it is not calibrated, so no card prints it. Siblings are assemblies lifted from this paper in the same batch for the same method: alternative readings kept side by side; none replaces or supersedes another.

3 assemblies on this paper: 3 harvested, 0 generated, listed in 1 groups (siblings lifted in one batch form one group).

3 sibling assemblies for Contrastive Multi-View Representation Learning on Graphs (harvested), lifted in the same batch on 2026-09-09: alternative readings kept side by side; none replaces or supersedes another.

harvested Assembly for Contrastive Multi-View Representation Learning on Graphs (graph method: Contrastive Multi-View Representation Learning on Graphs). 11 bricks; individually on a fixture: 9 ran (of which 3 constructed an object rather than computing a result; 8 with no instrument failure: 0 honoured, 1 violated, 7 with no contract checked; 1 where Syntology's instrument failed) · 2 unverified. The assembly has not been run end-to-end.

one of 3 siblings

  1. MVGRL entry · level 0 · unverified · f742d0b48473328a
  2. DeepAlgorithm helper · level 0 · unverified · 848f5e9c8a204f34
  3. Graph helper · level 1 · ran · 735edbdc1444cbb5
  4. MVGRLModel model · level 1 · ran · 223a803cd8563f7e
  5. compute_diffusion_matrix data_transform · level 1 · ran · violated contract · cfac6c086d0b45f8
  6. get_clusters helper · level 1 · ran; the contract check could not run (RAISES) · 6c35beaf2f4f4958
  7. Algorithm helper · level 1 · ran · aa8592921f0a1166
  8. Discriminator loss · level 1 · ran · e8420d8fd1b6ff84
  9. GCN model · level 1 · ran · 8dc21381dd6d399e
  10. Projection model · level 1 · ran · 958dd6844f7b1b39
  11. Readout model · level 1 · ran · c956f8c1a7e84185

harvested Assembly for Contrastive Multi-View Representation Learning on Graphs (graph method: Contrastive Multi-View Representation Learning on Graphs). 2 bricks; individually on a fixture: 0 ran · 2 unverified. The assembly has not been run end-to-end.

one of 3 siblings

  1. FeatMask entry · level 0 · unverified · d1837f554f3ba0c1
  2. BaseTransform helper · level 0 · unverified · 41b7f635984ee5af

harvested Assembly for Contrastive Multi-View Representation Learning on Graphs (graph method: Contrastive Multi-View Representation Learning on Graphs). 14 bricks; individually on a fixture: 11 ran (of which 0 constructed an object rather than computing a result; 2 with no instrument failure: 0 honoured, 0 violated, 2 with no contract checked; 9 where Syntology's instrument failed) · 3 unverified. The assembly has not been run end-to-end.

one of 3 siblings

  1. MVGRL entry · level 0 · unverified · e59b03802d233cb8
  2. Contrastive helper · level 0 · unverified · f70262e4e6cc1fb3
  3. MVGRL_enc model · level 1 · ran · 999ccf5675c0bb55
  4. ProjHead model · level 1 · ran · a746050f57f068ee
  5. diffusion helper · level 1 · ran · our draft was wrong · 95811669b9827928
  6. JSE_loss helper · level 1 · ran; the contract check could not run (RAISES) · d7304af9c880b521
  7. NCE_loss helper · level 1 · ran; the contract check could not run · 9f253c62c8e84cf5
  8. JSE_global_global helper · level 1 · ran · our draft was wrong · 4d9728453fe03cc6
  9. JSE_local_global helper · level 1 · ran · our draft was wrong · 3d5b953b308a310f
  10. JSE_local_global_negative_paired helper · level 1 · ran · our draft was wrong · 0fae77463fdd09d3
  11. NT_Xent helper · level 1 · ran; the contract check could not run · b5812fc5a667e0d5
  12. infoNCE_local_global helper · level 0 · unverified · ff71bf49cbcabcf0
  13. infoNCE_local_intra_node helper · level 1 · ran; the contract check could not run · 1045b0a0a750926e
  14. get_expectation helper · level 1 · ran; the contract check could not run · 6c5944959229bc01

Each brick ends with its code_sha256, Syntology's identity for that exact code; click one to copy the get_code call that returns it. For agents, on Syntology's MCP service: assembly(arxiv_id="2006.05582") returns these assemblies with each brick's role and wiring (how to connect).

Tasks

General ClassificationGraph ClassificationLinear evaluationRepresentation LearningSelf-Supervised Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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