{"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/arxiv-2605-25750","title":"Invariant-Based Weight Sharing for Message Passing","arxiv_id":"2605.25750","date":"2026-05-25","proceeding":null,"authors":["Florian Seiffarth"],"abstract":"Message-passing neural networks (MPNNs) are a powerful framework for learning representations of graph-structured domains. However, weights in MPNNs act on features only, limiting their ability to capture structural patterns. We introduce a novel structure-aware weight sharing principle that explicitly incorporates information inherent to the graph structure. Weights are indexed directly by user-chosen graph invariants, i.e., functions preserved under node permutations, enabling systematic reuse across structurally equivalent subgraphs. We present ShareGNNs, which instantiate this principle within a simple encoder-decoder architecture, resulting in an MPNN with learnable adjacency and transformer-like connectivity. We show that their expressivity is at least as strong as the discriminative power of the chosen invariants, providing explicit control over the model complexity. Experiments on synthetic and real-world data, as well as subgraph counting tasks, demonstrate consistent improvements over standard MPNNs, competitive expressivity beyond the 1-WL test, and scalability to large datasets.","url_abs":"https://arxiv.org/abs/2605.25750","url_pdf":"https://arxiv.org/pdf/2605.25750","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2605.25750","atlas_url":"https://app.syntology.ai/?focus=2605.25750","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.25750"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/fseiffarth/SimpleGNN","reach":null}],"summary":{"ran":10,"unverified":7},"by_repo_kind":{"found_in_text":{"samples":17,"ran":10,"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":"c1b5b4756884ae0b","entry":"binary_roc_auc","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/framework/model_configuration.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/framework/model_configuration.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c1b5b4756884ae0b"}},{"code_sha256_prefix":"bba69fc45f8d9813","entry":"build_lrgb_splits","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/lrgb_splits.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/lrgb_splits.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bba69fc45f8d9813"}},{"code_sha256_prefix":"37524176764f4267","entry":"build_ogb_splits","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/ogb_splits.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/ogb_splits.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"37524176764f4267"}},{"code_sha256_prefix":"465871547a9a1130","entry":"collect_paths","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/framework/core.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/framework/core.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"465871547a9a1130"}},{"code_sha256_prefix":"1501ddb487484bdb","entry":"format_parameter_summary","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/param_count.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/param_count.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1501ddb487484bdb"}},{"code_sha256_prefix":"722badd044c74e83","entry":"generate_layer_options","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/framework/run_configuration.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/framework/run_configuration.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"722badd044c74e83"}},{"code_sha256_prefix":"084ff864580bf3a5","entry":"loss_display_name","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/framework/model_configuration.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/framework/model_configuration.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"084ff864580bf3a5"}},{"code_sha256_prefix":"0282c1b34bec6e29","entry":"parameter_summary","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/param_count.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/param_count.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0282c1b34bec6e29"}},{"code_sha256_prefix":"c2c5fc7ee1f79e85","entry":"parse_brec_name","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/datasets/graph_dataset_preprocessing.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/datasets/graph_dataset_preprocessing.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c2c5fc7ee1f79e85"}},{"code_sha256_prefix":"abd7b6474b3f1a16","entry":"pooled_abs_error_stats","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/framework/model_configuration.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/framework/model_configuration.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"abd7b6474b3f1a16"}},{"code_sha256_prefix":"1a9d768cdfaa2bdb","entry":"build_models","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/param_count.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/param_count.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"1a9d768cdfaa2bdb"}},{"code_sha256_prefix":"a1f1e5703a4d8023","entry":"generate_lrgb_splits","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/lrgb_splits.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/lrgb_splits.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a1f1e5703a4d8023"}},{"code_sha256_prefix":"672128eff7ca0b79","entry":"generate_ogb_splits","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/ogb_splits.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/ogb_splits.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"672128eff7ca0b79"}},{"code_sha256_prefix":"793971835564654a","entry":"load_qm9_dataset","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/datasets/graph_dataset_preprocessing.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/datasets/graph_dataset_preprocessing.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"793971835564654a"}},{"code_sha256_prefix":"7ec64e6104befe90","entry":"main","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/lrgb_splits.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/lrgb_splits.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7ec64e6104befe90"}},{"code_sha256_prefix":"d1bb6a94a9604cd6","entry":"ogb_splits","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/utils/ogb_splits.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/utils/ogb_splits.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d1bb6a94a9604cd6"}},{"code_sha256_prefix":"86daa8f105b06423","entry":"transform_data","repo":"fseiffarth/SimpleGNN","repo_kind":"found_in_text","path":"src/simplegnn/datasets/graph_dataset.py","file_url":"https://github.com/fseiffarth/SimpleGNN/blob/HEAD/src/simplegnn/datasets/graph_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"86daa8f105b06423"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":6,"rejected_by_independent_check":0,"refused_by_a_rule":6,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}