{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/contrastive-multi-view-representation","title":"Contrastive Multi-View Representation Learning on Graphs","arxiv_id":"2006.05582","date":"2020-06-10","proceeding":"ICML 2020 1","authors":["Kaveh Hassani","Amir Hosein Khasahmadi"],"abstract":"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","url_abs":"https://arxiv.org/abs/2006.05582v1","url_pdf":"https://arxiv.org/pdf/2006.05582v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"contrastive-multi-view-representation","repo_url":"https://github.com/kavehhassani/mvgrl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"contrastive-multi-view-representation","repo_url":"https://github.com/hengruizhang98/mvgrl","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"contrastive-multi-view-representation","repo_url":"https://github.com/timothewt/AdvancedGraphClustering","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":null},{"paper_slug":"contrastive-multi-view-representation","repo_url":"https://github.com/ycremar/DIG-SSL","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"contrastive-multi-view-representation","repo_url":"https://github.com/dmlc/dgl/tree/master/examples/pytorch/mvgrl","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"classification","task_name":"General Classification"},{"task_slug":"graph-classification","task_name":"Graph Classification"},{"task_slug":"linear-evaluation","task_name":"Linear evaluation"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"self-supervised-learning","task_name":"Self-Supervised Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2006.05582","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2006.05582"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/timothewt/AdvancedGraphClustering","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/dmlc/dgl/tree/master/examples/pytorch/mvgrl","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ycremar/DIG-SSL","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kavehhassani/mvgrl","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/hengruizhang98/mvgrl","reach":{"status":"ok"}}],"summary":{"ran":10,"ran_draft_wrong":3,"ran_fixture":2,"ran_violates":1,"unverified":6},"by_repo_kind":{"listed":{"samples":22,"ran":16,"repositories":3}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":9,"samples":[{"code_sha256_prefix":"aa8592921f0a1166","entry":"Algorithm","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aa8592921f0a1166"}},{"code_sha256_prefix":"e8420d8fd1b6ff84","entry":"Discriminator","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e8420d8fd1b6ff84"}},{"code_sha256_prefix":"8dc21381dd6d399e","entry":"GCN","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8dc21381dd6d399e"}},{"code_sha256_prefix":"735edbdc1444cbb5","entry":"Graph","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"735edbdc1444cbb5"}},{"code_sha256_prefix":"4d9728453fe03cc6","entry":"JSE_global_global","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4d9728453fe03cc6"}},{"code_sha256_prefix":"3d5b953b308a310f","entry":"JSE_local_global","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d5b953b308a310f"}},{"code_sha256_prefix":"0fae77463fdd09d3","entry":"JSE_local_global_negative_paired","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0fae77463fdd09d3"}},{"code_sha256_prefix":"d7304af9c880b521","entry":"JSE_loss","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d7304af9c880b521"}},{"code_sha256_prefix":"223a803cd8563f7e","entry":"MVGRLModel","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"223a803cd8563f7e"}},{"code_sha256_prefix":"999ccf5675c0bb55","entry":"MVGRL_enc","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"999ccf5675c0bb55"}},{"code_sha256_prefix":"a746050f57f068ee","entry":"ProjHead","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a746050f57f068ee"}},{"code_sha256_prefix":"958dd6844f7b1b39","entry":"Projection","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"958dd6844f7b1b39"}},{"code_sha256_prefix":"c956f8c1a7e84185","entry":"Readout","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c956f8c1a7e84185"}},{"code_sha256_prefix":"cfac6c086d0b45f8","entry":"compute_diffusion_matrix","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cfac6c086d0b45f8"}},{"code_sha256_prefix":"95811669b9827928","entry":"diffusion","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"95811669b9827928"}},{"code_sha256_prefix":"6c35beaf2f4f4958","entry":"get_clusters","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6c35beaf2f4f4958"}},{"code_sha256_prefix":"41b7f635984ee5af","entry":"BaseTransform","repo":"dmlc/dgl","repo_kind":"listed","path":"python/dgl/transforms/module.py","file_url":"https://github.com/dmlc/dgl/blob/HEAD/python/dgl/transforms/module.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"41b7f635984ee5af"}},{"code_sha256_prefix":"f70262e4e6cc1fb3","entry":"Contrastive","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f70262e4e6cc1fb3"}},{"code_sha256_prefix":"848f5e9c8a204f34","entry":"DeepAlgorithm","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"848f5e9c8a204f34"}},{"code_sha256_prefix":"d1837f554f3ba0c1","entry":"FeatMask","repo":"dmlc/dgl","repo_kind":"listed","path":"python/dgl/transforms/module.py","file_url":"https://github.com/dmlc/dgl/blob/HEAD/python/dgl/transforms/module.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d1837f554f3ba0c1"}},{"code_sha256_prefix":"f742d0b48473328a","entry":"MVGRL","repo":"timothewt/AdvancedGraphClustering","repo_kind":"listed","path":"src/algorithms/deep/MVGRL.py","file_url":"https://github.com/timothewt/AdvancedGraphClustering/blob/HEAD/src/algorithms/deep/MVGRL.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f742d0b48473328a"}},{"code_sha256_prefix":"e59b03802d233cb8","entry":"MVGRL","repo":"ycremar/DIG-SSL","repo_kind":"listed","path":"sslgraph/contrastive/model/mvgrl.py","file_url":"https://github.com/ycremar/DIG-SSL/blob/HEAD/sslgraph/contrastive/model/mvgrl.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e59b03802d233cb8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}