{"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/prompt-tuning-for-multi-view-graph","title":"Self-Pro: A Self-Prompt and Tuning Framework for Graph Neural Networks","arxiv_id":"2310.10362","date":"2023-10-16","proceeding":null,"authors":["Chenghua Gong","Xiang Li","Jianxiang Yu","Cheng Yao","Jiaqi Tan","Chengcheng Yu"],"abstract":"Graphs have become an important modeling tool for web applications, and Graph Neural Networks (GNNs) have achieved great success in graph representation learning. However, the performance of traditional GNNs heavily relies on a large amount of supervision. Recently, ``pre-train, fine-tune'' has become the paradigm to address the issues of label dependency and poor generalization. However, the pre-training strategies vary for graphs with homophily and heterophily, and the objectives for various downstream tasks also differ. This leads to a gap between pretexts and downstream tasks, resulting in ``negative transfer'' and poor performance. Inspired by prompt learning in Natural Language Processing (NLP), many studies turn to bridge the gap and fully leverage the pre-trained model. However, existing methods for graph prompting are tailored to homophily, neglecting inherent heterophily on graphs. Meanwhile, most of them rely on the randomly initialized prompts, which negatively impact on the stability. Therefore, we propose Self-Prompt, a prompting framework for graphs based on the model and data itself. We first introduce asymmetric graph contrastive learning for pretext to address heterophily and align the objectives of pretext and downstream tasks. Then we reuse the component from pre-training phase as the self adapter and introduce self-prompts based on graph itself for task adaptation. Finally, we conduct extensive experiments on 11 benchmark datasets to demonstrate its superiority. We provide our codes at https://github.com/gongchenghua/Self-Pro.","url_abs":"https://arxiv.org/abs/2310.10362v3","url_pdf":"https://arxiv.org/pdf/2310.10362v3.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":"prompt-tuning-for-multi-view-graph","repo_url":"https://github.com/gongchenghua/self-pro","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"graph-representation-learning","task_name":"Graph Representation Learning"},{"task_slug":"prompt-learning","task_name":"Prompt Learning"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[{"method_slug":"align","method_name":"ALIGN"},{"method_slug":"adapter","method_name":"Adapter"},{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.10362","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.10362"}},"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/gongchenghua/self-pro","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"ran":5,"unverified":1},"by_repo_kind":{"official":{"samples":7,"ran":6,"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":7,"samples":[{"code_sha256_prefix":"adf3b9c6c22af5ce","entry":"accuracy","repo":"gongchenghua/self-pro","repo_kind":"official","path":"Self-Pro/hete/utils.py","file_url":"https://github.com/gongchenghua/self-pro/blob/HEAD/Self-Pro/hete/utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"adf3b9c6c22af5ce"}},{"code_sha256_prefix":"68394def69dae059","entry":"contrastive_loss","repo":"gongchenghua/self-pro","repo_kind":"official","path":"Self-Pro/hete/model.py","file_url":"https://github.com/gongchenghua/self-pro/blob/HEAD/Self-Pro/hete/model.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":"68394def69dae059"}},{"code_sha256_prefix":"904eed5da93ee392","entry":"get_centeremb","repo":"gongchenghua/self-pro","repo_kind":"official","path":"Self-Pro/hete/utils.py","file_url":"https://github.com/gongchenghua/self-pro/blob/HEAD/Self-Pro/hete/utils.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":"904eed5da93ee392"}},{"code_sha256_prefix":"ee2bc565d6f81f12","entry":"load_fixed_splits","repo":"gongchenghua/self-pro","repo_kind":"official","path":"Self-Pro/hete/dataset.py","file_url":"https://github.com/gongchenghua/self-pro/blob/HEAD/Self-Pro/hete/dataset.py","link_basis":"plan_row","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":"ee2bc565d6f81f12"}},{"code_sha256_prefix":"f39fcc758d981393","entry":"train","repo":"gongchenghua/self-pro","repo_kind":"official","path":"Self-Pro/hete/ds.py","file_url":"https://github.com/gongchenghua/self-pro/blob/HEAD/Self-Pro/hete/ds.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":"f39fcc758d981393"}},{"code_sha256_prefix":"facfb4f3eaf05f2a","entry":"udf_u_add_log_e","repo":"gongchenghua/self-pro","repo_kind":"official","path":"Self-Pro/homo/model.py","file_url":"https://github.com/gongchenghua/self-pro/blob/HEAD/Self-Pro/homo/model.py","link_basis":"plan_row","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":"facfb4f3eaf05f2a"}},{"code_sha256_prefix":"320e1e2142cea229","entry":"evaluate","repo":"gongchenghua/self-pro","repo_kind":"official","path":"Self-Pro/hete/ds.py","file_url":"https://github.com/gongchenghua/self-pro/blob/HEAD/Self-Pro/hete/ds.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":"320e1e2142cea229"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}