{"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/drew-dynamically-rewired-message-passing-with","title":"DRew: Dynamically Rewired Message Passing with Delay","arxiv_id":"2305.08018","date":"2023-05-13","proceeding":null,"authors":["Benjamin Gutteridge","Xiaowen Dong","Michael Bronstein","Francesco Di Giovanni"],"abstract":"Message passing neural networks (MPNNs) have been shown to suffer from the phenomenon of over-squashing that causes poor performance for tasks relying on long-range interactions. This can be largely attributed to message passing only occurring locally, over a node's immediate neighbours. Rewiring approaches attempting to make graphs 'more connected', and supposedly better suited to long-range tasks, often lose the inductive bias provided by distance on the graph since they make distant nodes communicate instantly at every layer. In this paper we propose a framework, applicable to any MPNN architecture, that performs a layer-dependent rewiring to ensure gradual densification of the graph. We also propose a delay mechanism that permits skip connections between nodes depending on the layer and their mutual distance. We validate our approach on several long-range tasks and show that it outperforms graph Transformers and multi-hop MPNNs.","url_abs":"https://arxiv.org/abs/2305.08018v2","url_pdf":"https://arxiv.org/pdf/2305.08018v2.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":"drew-dynamically-rewired-message-passing-with","repo_url":"https://github.com/bengutteridge/drew","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"graph-classification","task_name":"Graph Classification"},{"task_slug":"graph-regression","task_name":"Graph Regression"},{"task_slug":"inductive-bias","task_name":"Inductive Bias"},{"task_slug":"link-prediction","task_name":"Link Prediction"},{"task_slug":"node-classification","task_name":"Node Classification"}],"methods":[{"method_slug":"mpnn","method_name":"MPNN"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/graph-classification-on-peptides-func","task":"Graph Classification","dataset":"Peptides-func","model":"DRew-GCN+LapPE","rank_in_archive_order":9,"of":44,"metrics":{"AP":"0.7150±0.0044"},"uses_additional_data":false},{"leaderboard":"/sota/graph-regression-on-peptides-struct","task":"Graph Regression","dataset":"Peptides-struct","model":"DRew-GCN+LapPE","rank_in_archive_order":27,"of":39,"metrics":{"MAE":"0.2536±0.0015"},"uses_additional_data":false},{"leaderboard":"/sota/link-prediction-on-pcqm-contact","task":"Link Prediction","dataset":"PCQM-Contact","model":"DRew-GCN","rank_in_archive_order":15,"of":18,"metrics":{"MRR":"0.3444±0.0017"},"uses_additional_data":false},{"leaderboard":"/sota/node-classification-on-pascalvoc-sp-1","task":"Node Classification","dataset":"PascalVOC-SP","model":"DRew-GatedGCN+LapPE","rank_in_archive_order":9,"of":21,"metrics":{"macro F1":"0.3314±0.0024"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.08018","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.08018"}},"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/bengutteridge/drew","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":2,"unverified":7},"by_repo_kind":{"official":{"samples":9,"ran":2,"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":"1bb331bf70a78136","entry":"get_final_pretrained_ckpt","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/graphgps/finetuning.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/graphgps/finetuning.py","link_basis":"harvester_set","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":"1bb331bf70a78136"}},{"code_sha256_prefix":"8653a762bb268420","entry":"init_model_from_pretrained","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/graphgps/finetuning.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/graphgps/finetuning.py","link_basis":"plan_row","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":"8653a762bb268420"}},{"code_sha256_prefix":"55d80bdb901afbfb","entry":"get_edge_labels","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/graphgps/drew_utils.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/graphgps/drew_utils.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":"55d80bdb901afbfb"}},{"code_sha256_prefix":"252ce98ed1b8e82f","entry":"get_k_neighbourhoods","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/param_calcs.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/param_calcs.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":"252ce98ed1b8e82f"}},{"code_sha256_prefix":"f81b9780d64581c0","entry":"get_laplacian","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/graphgps/stage/drew_gnn.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/graphgps/stage/drew_gnn.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":"f81b9780d64581c0"}},{"code_sha256_prefix":"b8ea15638c38ec3c","entry":"get_num_fc_drew","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/param_calcs.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/param_calcs.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":"b8ea15638c38ec3c"}},{"code_sha256_prefix":"8d75472ca0c91c64","entry":"get_run_name","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/graphgps/drew_utils.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/graphgps/drew_utils.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":"8d75472ca0c91c64"}},{"code_sha256_prefix":"995500eb98f90144","entry":"load_pretrained_model_cfg","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/graphgps/finetuning.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/graphgps/finetuning.py","link_basis":"plan_row","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":"995500eb98f90144"}},{"code_sha256_prefix":"ca403e2f8771a00f","entry":"tonp","repo":"bengutteridge/drew","repo_kind":"official","path":"lrgb/graphgps/stage/drew_gnn.py","file_url":"https://github.com/bengutteridge/drew/blob/HEAD/lrgb/graphgps/stage/drew_gnn.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":"ca403e2f8771a00f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}