{"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/adversarial-robustness-in-graph-neural-1","title":"Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach","arxiv_id":"2310.06396","date":"2023-10-10","proceeding":"NeurIPS 2023 11","authors":["Kai Zhao","Qiyu Kang","Yang song","Rui She","Sijie Wang","Wee Peng Tay"],"abstract":"Graph neural networks (GNNs) are vulnerable to adversarial perturbations, including those that affect both node features and graph topology. This paper investigates GNNs derived from diverse neural flows, concentrating on their connection to various stability notions such as BIBO stability, Lyapunov stability, structural stability, and conservative stability. We argue that Lyapunov stability, despite its common use, does not necessarily ensure adversarial robustness. Inspired by physics principles, we advocate for the use of conservative Hamiltonian neural flows to construct GNNs that are robust to adversarial attacks. The adversarial robustness of different neural flow GNNs is empirically compared on several benchmark datasets under a variety of adversarial attacks. Extensive numerical experiments demonstrate that GNNs leveraging conservative Hamiltonian flows with Lyapunov stability substantially improve robustness against adversarial perturbations. The implementation code of experiments is available at https://github.com/zknus/NeurIPS-2023-HANG-Robustness.","url_abs":"https://arxiv.org/abs/2310.06396v1","url_pdf":"https://arxiv.org/pdf/2310.06396v1.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":"adversarial-robustness-in-graph-neural-1","repo_url":"https://github.com/zknus/neurips-2023-hang-robustness","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"adversarial-robustness","task_name":"Adversarial Robustness"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2310.06396","atlas_url":"https://app.syntology.ai/?focus=2310.06396","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.06396"}},"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":"deterministic:regex_extraction","url":"https://github.com/twitter-research/graph-neural-pde","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/tk-rusch/GraphCON","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/zknus/NeurIPS-2023-HANG-Robustness","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/LFhase/GIA-HAO","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/ChandlerBang/Pro-GNN","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zknus/neurips-2023-hang-robustness","reach":{"status":"ok"}}],"summary":{"ran":10,"ran_draft_wrong":2,"ran_honours":1,"unverified":2},"by_repo_kind":{"official":{"samples":3,"ran":3,"repositories":1},"found_in_text":{"samples":12,"ran":10,"repositories":2}},"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":4,"samples":[{"code_sha256_prefix":"031697fa4856f0d8","entry":"GCNAdjNorm","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"models/model_pyg.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/models/model_pyg.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":"031697fa4856f0d8"}},{"code_sha256_prefix":"ee46ccc0db279d01","entry":"edge_sim_analysis","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"attacks/attack.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/attacks/attack.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":"ee46ccc0db279d01"}},{"code_sha256_prefix":"15b4190a079900a4","entry":"edge_sim_estimate","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"attacks/attack.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/attacks/attack.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":"15b4190a079900a4"}},{"code_sha256_prefix":"399418345f3feb4b","entry":"eval_acc","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"attacks/metric.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/attacks/metric.py","link_basis":"first_harvest_node","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":"399418345f3feb4b"}},{"code_sha256_prefix":"cfa29e2de3f6b394","entry":"eval_f1multilabel","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"attacks/metric.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/attacks/metric.py","link_basis":"first_harvest_node","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":"cfa29e2de3f6b394"}},{"code_sha256_prefix":"4eae1658e4eeb3f7","entry":"eval_rocauc","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"attacks/metric.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/attacks/metric.py","link_basis":"first_harvest_node","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":"4eae1658e4eeb3f7"}},{"code_sha256_prefix":"5a4d75b2856d14b5","entry":"feat_normalize","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/LFhase/GIA-HAO/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5a4d75b2856d14b5"}},{"code_sha256_prefix":"902804a2a79afef2","entry":"flag","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"attacks/flag.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/attacks/flag.py","link_basis":"first_harvest_node","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":"902804a2a79afef2"}},{"code_sha256_prefix":"070e6138d16be226","entry":"flag_biased","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"attacks/flag.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/attacks/flag.py","link_basis":"first_harvest_node","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":"070e6138d16be226"}},{"code_sha256_prefix":"231f26eaddf19604","entry":"target_select","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/LFhase/GIA-HAO/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"231f26eaddf19604"}},{"code_sha256_prefix":"768b8716889709e2","entry":"test","repo":"zknus/NeurIPS-2023-HANG-Robustness","repo_kind":"official","path":"gnn_misg.py","file_url":"https://github.com/zknus/NeurIPS-2023-HANG-Robustness/blob/HEAD/gnn_misg.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"768b8716889709e2"}},{"code_sha256_prefix":"12cfc91579987423","entry":"test_model","repo":"zknus/NeurIPS-2023-HANG-Robustness","repo_kind":"official","path":"run_metattack_rate.py","file_url":"https://github.com/zknus/NeurIPS-2023-HANG-Robustness/blob/HEAD/run_metattack_rate.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"12cfc91579987423"}},{"code_sha256_prefix":"15cbb9f3adf7eca7","entry":"train","repo":"zknus/NeurIPS-2023-HANG-Robustness","repo_kind":"official","path":"gnn_misg.py","file_url":"https://github.com/zknus/NeurIPS-2023-HANG-Robustness/blob/HEAD/gnn_misg.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"15cbb9f3adf7eca7"}},{"code_sha256_prefix":"d7cd363f647d52bb","entry":"get_data","repo":"tk-rusch/GraphCON","repo_kind":"found_in_text","path":"src/heterophilic_graphs/data_handling.py","file_url":"https://github.com/tk-rusch/GraphCON/blob/HEAD/src/heterophilic_graphs/data_handling.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":"d7cd363f647d52bb"}},{"code_sha256_prefix":"4e4cc9cc5f692636","entry":"load_cora","repo":"LFhase/GIA-HAO","repo_kind":"found_in_text","path":"load_graph.py","file_url":"https://github.com/LFhase/GIA-HAO/blob/HEAD/load_graph.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":"4e4cc9cc5f692636"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}