{"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/pc-conv-unifying-homophily-and-heterophily","title":"PC-Conv: Unifying Homophily and Heterophily with Two-fold Filtering","arxiv_id":"2312.14438","date":"2023-12-22","proceeding":null,"authors":["Bingheng Li","Erlin Pan","Zhao Kang"],"abstract":"Recently, many carefully crafted graph representation learning methods have achieved impressive performance on either strong heterophilic or homophilic graphs, but not both. Therefore, they are incapable of generalizing well across real-world graphs with different levels of homophily. This is attributed to their neglect of homophily in heterophilic graphs, and vice versa. In this paper, we propose a two-fold filtering mechanism to extract homophily in heterophilic graphs and vice versa. In particular, we extend the graph heat equation to perform heterophilic aggregation of global information from a long distance. The resultant filter can be exactly approximated by the Possion-Charlier (PC) polynomials. To further exploit information at multiple orders, we introduce a powerful graph convolution PC-Conv and its instantiation PCNet for the node classification task. Compared with state-of-the-art GNNs, PCNet shows competitive performance on well-known homophilic and heterophilic graphs. Our implementation is available at https://github.com/uestclbh/PC-Conv.","url_abs":"https://arxiv.org/abs/2312.14438v1","url_pdf":"https://arxiv.org/pdf/2312.14438v1.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":"pc-conv-unifying-homophily-and-heterophily","repo_url":"https://github.com/uestclbh/pc-conv","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"graph-representation-learning","task_name":"Graph Representation Learning"},{"task_slug":"node-classification","task_name":"Node Classification"},{"task_slug":"representation-learning","task_name":"Representation Learning"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2312.14438","atlas_url":"https://app.syntology.ai/?focus=2312.14438","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.14438"}},"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/uestclbh/pc-conv","reach":{"status":"ok"}}],"summary":{"ran":7,"ran_draft_wrong":1,"unverified":6},"by_repo_kind":{"official":{"samples":14,"ran":8,"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":14,"samples":[{"code_sha256_prefix":"5faa5891809f7a8f","entry":"C_n","repo":"uestclbh/pc-conv","repo_kind":"official","path":"PCpro.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/PCpro.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":"5faa5891809f7a8f"}},{"code_sha256_prefix":"2914c033f304f32d","entry":"compat_matrix","repo":"uestclbh/pc-conv","repo_kind":"official","path":"homophily.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/homophily.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":"2914c033f304f32d"}},{"code_sha256_prefix":"a061693c2c61c152","entry":"edge_homophily","repo":"uestclbh/pc-conv","repo_kind":"official","path":"homophily.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/homophily.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":"a061693c2c61c152"}},{"code_sha256_prefix":"015b48620e1b8319","entry":"index_to_mask","repo":"uestclbh/pc-conv","repo_kind":"official","path":"utils.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/utils.py","link_basis":"harvester_set","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":"015b48620e1b8319"}},{"code_sha256_prefix":"d4e6fd9f6cd8a3ad","entry":"load_twitch_gamer","repo":"uestclbh/pc-conv","repo_kind":"official","path":"load_data.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/load_data.py","link_basis":"harvester_set","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":"d4e6fd9f6cd8a3ad"}},{"code_sha256_prefix":"280c74dd9f80b25b","entry":"node_homophily","repo":"uestclbh/pc-conv","repo_kind":"official","path":"homophily.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/homophily.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":"280c74dd9f80b25b"}},{"code_sha256_prefix":"aca424782db4d4f5","entry":"random_planetoid_splits0","repo":"uestclbh/pc-conv","repo_kind":"official","path":"utils.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/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":"aca424782db4d4f5"}},{"code_sha256_prefix":"7261b9cc9f190250","entry":"random_planetoid_splits1","repo":"uestclbh/pc-conv","repo_kind":"official","path":"utils.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/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":"7261b9cc9f190250"}},{"code_sha256_prefix":"5c9307a7a17f1a3f","entry":"even_quantile_labels","repo":"uestclbh/pc-conv","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/data_utils.py","link_basis":"harvester_set","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":"5c9307a7a17f1a3f"}},{"code_sha256_prefix":"1d59bf5d64372120","entry":"load_dataset_filtered","repo":"uestclbh/pc-conv","repo_kind":"official","path":"datasets.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/datasets.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":"1d59bf5d64372120"}},{"code_sha256_prefix":"0765a875204d931d","entry":"load_fb100","repo":"uestclbh/pc-conv","repo_kind":"official","path":"load_data.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/load_data.py","link_basis":"harvester_set","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":"0765a875204d931d"}},{"code_sha256_prefix":"563a5ce4dce55a17","entry":"load_twitch","repo":"uestclbh/pc-conv","repo_kind":"official","path":"load_data.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/load_data.py","link_basis":"harvester_set","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":"563a5ce4dce55a17"}},{"code_sha256_prefix":"13234652741e2264","entry":"rand_train_test_idx","repo":"uestclbh/pc-conv","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/data_utils.py","link_basis":"harvester_set","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":"13234652741e2264"}},{"code_sha256_prefix":"f7843797de50ce62","entry":"to_planetoid","repo":"uestclbh/pc-conv","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/uestclbh/pc-conv/blob/HEAD/data_utils.py","link_basis":"harvester_set","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":"f7843797de50ce62"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}