{"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/non-homophilic-graph-pre-training-and-prompt","title":"Non-Homophilic Graph Pre-Training and Prompt Learning","arxiv_id":"2408.12594","date":"2024-08-22","proceeding":null,"authors":["Xingtong Yu","Jie Zhang","Yuan Fang","Renhe Jiang"],"abstract":"Graphs are ubiquitous for modeling complex relationships between objects across various fields. Graph neural networks (GNNs) have become a mainstream technique for graph-based applications, but their performance heavily relies on abundant labeled data. To reduce labeling requirement, pre-training and prompt learning has become a popular alternative. However, most existing prompt methods do not differentiate homophilic and heterophilic characteristics of real-world graphs. In particular, many real-world graphs are non-homophilic, not strictly or uniformly homophilic with mixing homophilic and heterophilic patterns, exhibiting varying non-homophilic characteristics across graphs and nodes. In this paper, we propose ProNoG, a novel pre-training and prompt learning framework for such non-homophilic graphs. First, we analyze existing graph pre-training methods, providing theoretical insights into the choice of pre-training tasks. Second, recognizing that each node exhibits unique non-homophilic characteristics, we propose a conditional network to characterize the node-specific patterns in downstream tasks. Finally, we thoroughly evaluate and analyze ProNoG through extensive experiments on ten public datasets.","url_abs":"https://arxiv.org/abs/2408.12594v5","url_pdf":"https://arxiv.org/pdf/2408.12594v5.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":"non-homophilic-graph-pre-training-and-prompt","repo_url":"https://github.com/jaygagaga/pronog","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"prompt-learning","task_name":"Prompt Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2408.12594","atlas_url":"https://app.syntology.ai/?focus=2408.12594","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2408.12594"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/jaygagaga/pronog","reach":null}],"summary":{"ran_draft_wrong":3,"ran_honours":1,"ran_fixture":1},"by_repo_kind":{"official":{"samples":4,"ran":4,"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":5,"samples":[{"code_sha256_prefix":"5b1e08138a13d5ec","entry":"averageemb","repo":"jaygagaga/pronog","repo_kind":"official","path":"downprompt_metanet3.py","file_url":"https://github.com/jaygagaga/pronog/blob/HEAD/downprompt_metanet3.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":"5b1e08138a13d5ec"}},{"code_sha256_prefix":"fd09b516ae8e2395","entry":"extract_args_from_json","repo":"jaygagaga/pronog","repo_kind":"official","path":"DSSL/ENZYMES_pretrain.py","file_url":"https://github.com/jaygagaga/pronog/blob/HEAD/DSSL/ENZYMES_pretrain.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fd09b516ae8e2395"}},{"code_sha256_prefix":"3904db7d99ca426e","entry":"load_data","repo":"jaygagaga/pronog","repo_kind":"official","path":"DSSL/ENZYMES_pretrain.py","file_url":"https://github.com/jaygagaga/pronog/blob/HEAD/DSSL/ENZYMES_pretrain.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3904db7d99ca426e"}},{"code_sha256_prefix":"c1d6392f89c5e495","entry":"parse_index_file","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"c1d6392f89c5e495"}},{"code_sha256_prefix":"7c37491a7f04588e","entry":"split_and_batchify_graph_feats","repo":"jaygagaga/pronog","repo_kind":"official","path":"downprompt_metanet3.py","file_url":"https://github.com/jaygagaga/pronog/blob/HEAD/downprompt_metanet3.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":"7c37491a7f04588e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}