{"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/logical-expressiveness-of-graph-neural-1","title":"Logical Expressiveness of Graph Neural Networks with Hierarchical Node Individualization","arxiv_id":"2506.13911","date":"2025-06-16","proceeding":null,"authors":["Arie Soeteman","Balder ten Cate"],"abstract":"We propose and study Hierarchical Ego Graph Neural Networks (HEGNNs), an expressive extension of graph neural networks (GNNs) with hierarchical node individualization, inspired by the Individualization-Refinement paradigm for graph isomorphism testing. HEGNNs generalize subgraph-GNNs and form a hierarchy of increasingly expressive models that, in the limit, can distinguish graphs up to isomorphism. We provide a logical characterization of HEGNN node classifiers, with and without subgraph restrictions, using graded hybrid logic. This characterization enables us to relate the separating power of HEGNNs to that of higher-order GNNs, GNNs enriched with local homomorphism count features, and color refinement algorithms based on Individualization-Refinement. Our experimental results confirm the practical feasibility of HEGNNs and show benefits in comparison with traditional GNN architectures, both with and without local homomorphism count features.","url_abs":"https://arxiv.org/abs/2506.13911v1","url_pdf":"https://arxiv.org/pdf/2506.13911v1.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":"logical-expressiveness-of-graph-neural-1","repo_url":"https://github.com/ariesoeteman/hegnn","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"isomorphism-testing","task_name":"Isomorphism Testing"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2506.13911","atlas_url":"https://app.syntology.ai/?focus=2506.13911","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2506.13911"}},"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/ariesoeteman/hegnn","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":8,"ran":0,"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":0,"samples":[{"code_sha256_prefix":"5f06c3eac54e5a1a","entry":"array_list_to_tensor_list","repo":"ariesoeteman/hegnn","repo_kind":"official","path":"hegnn/data_processing/hdf5_structures.py","file_url":"https://github.com/ariesoeteman/hegnn/blob/HEAD/hegnn/data_processing/hdf5_structures.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":"5f06c3eac54e5a1a"}},{"code_sha256_prefix":"741b7ffa6d75215b","entry":"count_cycles","repo":"ariesoeteman/hegnn","repo_kind":"official","path":"hegnn/data_processing/cycle_counts.py","file_url":"https://github.com/ariesoeteman/hegnn/blob/HEAD/hegnn/data_processing/cycle_counts.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":"741b7ffa6d75215b"}},{"code_sha256_prefix":"f46e7cceda763952","entry":"merge_batch_list","repo":"ariesoeteman/hegnn","repo_kind":"official","path":"hegnn/data_processing/data_structures.py","file_url":"https://github.com/ariesoeteman/hegnn/blob/HEAD/hegnn/data_processing/data_structures.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":"f46e7cceda763952"}},{"code_sha256_prefix":"efbd80279eae3407","entry":"recursive_dict_update","repo":"ariesoeteman/hegnn","repo_kind":"official","path":"hegnn/config/parse_config.py","file_url":"https://github.com/ariesoeteman/hegnn/blob/HEAD/hegnn/config/parse_config.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":"efbd80279eae3407"}},{"code_sha256_prefix":"1df314f5090b4621","entry":"square_edge_index","repo":"ariesoeteman/hegnn","repo_kind":"official","path":"hegnn/data_processing/data_preprocessing.py","file_url":"https://github.com/ariesoeteman/hegnn/blob/HEAD/hegnn/data_processing/data_preprocessing.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":"1df314f5090b4621"}},{"code_sha256_prefix":"7486d5df90e40102","entry":"square_x","repo":"ariesoeteman/hegnn","repo_kind":"official","path":"hegnn/data_processing/data_preprocessing.py","file_url":"https://github.com/ariesoeteman/hegnn/blob/HEAD/hegnn/data_processing/data_preprocessing.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":"7486d5df90e40102"}},{"code_sha256_prefix":"a0d88b4d6461590b","entry":"to_numpy","repo":"ariesoeteman/hegnn","repo_kind":"official","path":"hegnn/data_processing/hdf5_structures.py","file_url":"https://github.com/ariesoeteman/hegnn/blob/HEAD/hegnn/data_processing/hdf5_structures.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":"a0d88b4d6461590b"}},{"code_sha256_prefix":"273d3b1783ffc1ae","entry":"to_tensor","repo":"ariesoeteman/hegnn","repo_kind":"official","path":"hegnn/data_processing/hdf5_structures.py","file_url":"https://github.com/ariesoeteman/hegnn/blob/HEAD/hegnn/data_processing/hdf5_structures.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":"273d3b1783ffc1ae"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}