{"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/rosa-a-robust-self-aligned-framework-for-node","title":"RoSA: A Robust Self-Aligned Framework for Node-Node Graph Contrastive Learning","arxiv_id":"2204.13846","date":"2022-04-29","proceeding":null,"authors":["Yun Zhu","Jianhao Guo","Fei Wu","Siliang Tang"],"abstract":"Graph contrastive learning has gained significant progress recently. However, existing works have rarely explored non-aligned node-node contrasting. In this paper, we propose a novel graph contrastive learning method named RoSA that focuses on utilizing non-aligned augmented views for node-level representation learning. First, we leverage the earth mover's distance to model the minimum effort to transform the distribution of one view to the other as our contrastive objective, which does not require alignment between views. Then we introduce adversarial training as an auxiliary method to increase sampling diversity and enhance the robustness of our model. Experimental results show that RoSA outperforms a series of graph contrastive learning frameworks on homophilous, non-homophilous and dynamic graphs, which validates the effectiveness of our work. To the best of our awareness, RoSA is the first work focuses on the non-aligned node-node graph contrastive learning problem. Our codes are available at: \\href{https://github.com/ZhuYun97/RoSA}{\\texttt{https://github.com/ZhuYun97/RoSA}}","url_abs":"https://arxiv.org/abs/2204.13846v1","url_pdf":"https://arxiv.org/pdf/2204.13846v1.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":"rosa-a-robust-self-aligned-framework-for-node","repo_url":"https://github.com/zhuyun97/rosa","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"node-classification","task_name":"Node Classification"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2204.13846","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.13846"}},"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/zhuyun97/rosa","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/ZhuYun97/RoSA","reach":{"status":"ok"}}],"summary":{"ran":1,"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"official":{"samples":6,"ran":2,"repositories":1}},"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":6,"samples":[{"code_sha256_prefix":"b7ce842ad5a16ebf","entry":"Projector","repo":"ZhuYun97/RoSA","repo_kind":"official","path":"model.py","file_url":"https://github.com/ZhuYun97/RoSA/blob/HEAD/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b7ce842ad5a16ebf"}},{"code_sha256_prefix":"f29345568db89515","entry":"matrix_diag","repo":"ZhuYun97/RoSA","repo_kind":"official","path":"model.py","file_url":"https://github.com/ZhuYun97/RoSA/blob/HEAD/model.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":"f29345568db89515"}},{"code_sha256_prefix":"3f0d2666f360c676","entry":"GCN","repo":"ZhuYun97/RoSA","repo_kind":"official","path":"model.py","file_url":"https://github.com/ZhuYun97/RoSA/blob/HEAD/model.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":"3f0d2666f360c676"}},{"code_sha256_prefix":"c0bac938f146d150","entry":"GraphSAGE_GCN","repo":"ZhuYun97/RoSA","repo_kind":"official","path":"model.py","file_url":"https://github.com/ZhuYun97/RoSA/blob/HEAD/model.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":"c0bac938f146d150"}},{"code_sha256_prefix":"761a9ccf900e69cd","entry":"RoSA","repo":"ZhuYun97/RoSA","repo_kind":"official","path":"model.py","file_url":"https://github.com/ZhuYun97/RoSA/blob/HEAD/model.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":"761a9ccf900e69cd"}},{"code_sha256_prefix":"7c38fd3d3d187380","entry":"get_value","repo":"ZhuYun97/RoSA","repo_kind":"official","path":"model.py","file_url":"https://github.com/ZhuYun97/RoSA/blob/HEAD/model.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":"7c38fd3d3d187380"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}