{"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/robustness-of-graph-neural-networks-at-scale","title":"Robustness of Graph Neural Networks at Scale","arxiv_id":"2110.14038","date":"2021-10-26","proceeding":"NeurIPS 2021 12","authors":["Simon Geisler","Tobias Schmidt","Hakan Şirin","Daniel Zügner","Aleksandar Bojchevski","Stephan Günnemann"],"abstract":"Graph Neural Networks (GNNs) are increasingly important given their popularity and the diversity of applications. Yet, existing studies of their vulnerability to adversarial attacks rely on relatively small graphs. We address this gap and study how to attack and defend GNNs at scale. We propose two sparsity-aware first-order optimization attacks that maintain an efficient representation despite optimizing over a number of parameters which is quadratic in the number of nodes. We show that common surrogate losses are not well-suited for global attacks on GNNs. Our alternatives can double the attack strength. Moreover, to improve GNNs' reliability we design a robust aggregation function, Soft Median, resulting in an effective defense at all scales. We evaluate our attacks and defense with standard GNNs on graphs more than 100 times larger compared to previous work. We even scale one order of magnitude further by extending our techniques to a scalable GNN.","url_abs":"https://arxiv.org/abs/2110.14038v4","url_pdf":"https://arxiv.org/pdf/2110.14038v4.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":"robustness-of-graph-neural-networks-at-scale","repo_url":"https://github.com/sigeisler/robustness_of_gnns_at_scale","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"robustness-of-graph-neural-networks-at-scale","repo_url":"https://github.com/ventr1c/res-gcl","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"diversity","task_name":"Diversity"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2110.14038","atlas_url":"https://app.syntology.ai/?focus=2110.14038","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.14038"}},"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/ventr1c/res-gcl","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sigeisler/robustness_of_gnns_at_scale","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":16,"ran_draft_wrong":2,"ran_honours":1,"unverified":1},"by_repo_kind":{"official":{"samples":7,"ran":6,"repositories":1},"listed":{"samples":13,"ran":13,"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":"b3092c017157cf84","entry":"accuracy","repo":"sigeisler/robustness_of_gnns_at_scale","repo_kind":"official","path":"rgnn_at_scale/models/deeprobust_rgcn.py","file_url":"https://github.com/sigeisler/robustness_of_gnns_at_scale/blob/HEAD/rgnn_at_scale/models/deeprobust_rgcn.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b3092c017157cf84"}},{"code_sha256_prefix":"9498bd40d6f15afd","entry":"bisection","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"models/Ariel.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/models/Ariel.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":"9498bd40d6f15afd"}},{"code_sha256_prefix":"3dfa8f8448457f20","entry":"compute_alpha","repo":"sigeisler/robustness_of_gnns_at_scale","repo_kind":"official","path":"rgnn_at_scale/attacks/nettack.py","file_url":"https://github.com/sigeisler/robustness_of_gnns_at_scale/blob/HEAD/rgnn_at_scale/attacks/nettack.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3dfa8f8448457f20"}},{"code_sha256_prefix":"e76a55dd6370c052","entry":"connected_after","repo":"sigeisler/robustness_of_gnns_at_scale","repo_kind":"official","path":"rgnn_at_scale/attacks/nettack.py","file_url":"https://github.com/sigeisler/robustness_of_gnns_at_scale/blob/HEAD/rgnn_at_scale/attacks/nettack.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e76a55dd6370c052"}},{"code_sha256_prefix":"80acc2e293289c02","entry":"construct_noisy_graph","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"construct_graph.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/construct_graph.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":"80acc2e293289c02"}},{"code_sha256_prefix":"2b95b2022a5eee3b","entry":"drop_adj_1by1","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"construct_graph.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/construct_graph.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":"2b95b2022a5eee3b"}},{"code_sha256_prefix":"22bfb6129463d322","entry":"drop_feature","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"model.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/model.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"22bfb6129463d322"}},{"code_sha256_prefix":"984b1cb236080dc5","entry":"entropy","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"PRBCD.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/PRBCD.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":"984b1cb236080dc5"}},{"code_sha256_prefix":"27df0ca78376c074","entry":"get_train_test","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"dataset.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/dataset.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":"27df0ca78376c074"}},{"code_sha256_prefix":"820df99d83238fea","entry":"get_train_val_test","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"dataset.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/dataset.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":"820df99d83238fea"}},{"code_sha256_prefix":"f026518c0f413ac8","entry":"make_gin_conv","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"models/BGRL_G2L.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/models/BGRL_G2L.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":"f026518c0f413ac8"}},{"code_sha256_prefix":"5c3fa9402a9405bc","entry":"parse_index_file","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"dataset.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/dataset.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5c3fa9402a9405bc"}},{"code_sha256_prefix":"0d6e69d908e99da6","entry":"partial_distance_matrix","repo":"sigeisler/robustness_of_gnns_at_scale","repo_kind":"official","path":"rgnn_at_scale/aggregation.py","file_url":"https://github.com/sigeisler/robustness_of_gnns_at_scale/blob/HEAD/rgnn_at_scale/aggregation.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0d6e69d908e99da6"}},{"code_sha256_prefix":"91c9b17caed9c461","entry":"softmax_entropy","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"PRBCD.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/PRBCD.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":"91c9b17caed9c461"}},{"code_sha256_prefix":"c97b99c4e8201a97","entry":"sparse_mx_to_torch_sparse_tensor","repo":"sigeisler/robustness_of_gnns_at_scale","repo_kind":"official","path":"rgnn_at_scale/models/deeprobust_rgcn.py","file_url":"https://github.com/sigeisler/robustness_of_gnns_at_scale/blob/HEAD/rgnn_at_scale/models/deeprobust_rgcn.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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c97b99c4e8201a97"}},{"code_sha256_prefix":"0cd45d466fcc03c8","entry":"test","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"models/GAE.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/models/GAE.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":"0cd45d466fcc03c8"}},{"code_sha256_prefix":"4947c15e3f5ad1d3","entry":"to_tensor","repo":"sigeisler/robustness_of_gnns_at_scale","repo_kind":"official","path":"rgnn_at_scale/models/deeprobust_rgcn.py","file_url":"https://github.com/sigeisler/robustness_of_gnns_at_scale/blob/HEAD/rgnn_at_scale/models/deeprobust_rgcn.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4947c15e3f5ad1d3"}},{"code_sha256_prefix":"09cbcddd5413d6be","entry":"train","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"models/BGRL.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/models/BGRL.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":"09cbcddd5413d6be"}},{"code_sha256_prefix":"c310eff3a8517be9","entry":"train","repo":"ventr1c/res-gcl","repo_kind":"listed","path":"models/BGRL_G2L.py","file_url":"https://github.com/ventr1c/res-gcl/blob/HEAD/models/BGRL_G2L.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":"c310eff3a8517be9"}},{"code_sha256_prefix":"f7fada718dfb80fa","entry":"compute_new_a_hat_uv","repo":"sigeisler/robustness_of_gnns_at_scale","repo_kind":"official","path":"rgnn_at_scale/attacks/nettack.py","file_url":"https://github.com/sigeisler/robustness_of_gnns_at_scale/blob/HEAD/rgnn_at_scale/attacks/nettack.py","link_basis":"harvester_set","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":"f7fada718dfb80fa"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}