Papers › Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach

Adversarial Robustness in Graph Neural Networks: A Hamiltonian Approach

10 Oct 2023NeurIPS 2023 11arXiv:2310.06396archive 2025-07-28

Kai Zhao, Qiyu Kang, Yang song, Rui She, Sijie Wang, Wee Peng Tay

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.06396")

Code

Syntology Ran 12 of 15 code samples harvested from 3 repositories linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · honoured contract; 2 ran · our draft was wrong; 9 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 3 ran; found in paper text by Syntology: 12 samples from 2 repositories, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

zknus/neurips-2023-hang-robustness officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

15 samples harvested; 12 ran; 1 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
2ran · our draft was wrong
9ran
3unverified

Licence: 4 of the 15 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

test zknus/NeurIPS-2023-HANG-Robustness/gnn_misg.py official repository ran · our draft was wrong no licence file found · pointer only · 768b8716889709e2 · report
test_model zknus/NeurIPS-2023-HANG-Robustness/run_metattack_rate.py official repository ran · honoured contract no licence file found · pointer only · 12cfc91579987423 · report
train zknus/NeurIPS-2023-HANG-Robustness/gnn_misg.py official repository ran · our draft was wrong no licence file found · pointer only · 15cbb9f3adf7eca7 · report
GCNAdjNorm LFhase/GIA-HAO/models/model_pyg.py found in paper text by Syntology ran MIT (permissive) · 031697fa4856f0d8 · report
edge_sim_analysis LFhase/GIA-HAO/attacks/attack.py found in paper text by Syntology ran MIT (permissive) · ee46ccc0db279d01 · report
edge_sim_estimate LFhase/GIA-HAO/attacks/attack.py found in paper text by Syntology ran MIT (permissive) · 15b4190a079900a4 · report
eval_acc LFhase/GIA-HAO/attacks/metric.py found in paper text by Syntology ran MIT (permissive) · 399418345f3feb4b · report
eval_f1multilabel LFhase/GIA-HAO/attacks/metric.py found in paper text by Syntology ran MIT (permissive) · cfa29e2de3f6b394 · report
eval_rocauc LFhase/GIA-HAO/attacks/metric.py found in paper text by Syntology ran MIT (permissive) · 4eae1658e4eeb3f7 · report
flag LFhase/GIA-HAO/attacks/flag.py found in paper text by Syntology ran MIT (permissive) · 902804a2a79afef2 · report
flag_biased LFhase/GIA-HAO/attacks/flag.py found in paper text by Syntology ran MIT (permissive) · 070e6138d16be226 · report
target_select LFhase/GIA-HAO/utils.py found in paper text by Syntology ran MIT (permissive) · 231f26eaddf19604 · report
feat_normalize LFhase/GIA-HAO/utils.py found in paper text by Syntology unverified MIT (permissive) · 5a4d75b2856d14b5 · report
get_data tk-rusch/GraphCON/src/heterophilic_graphs/data_handling.py found in paper text by Syntology unverified no licence file found · pointer only · d7cd363f647d52bb · report
load_cora LFhase/GIA-HAO/load_graph.py found in paper text by Syntology unverified MIT (permissive) · 4e4cc9cc5f692636 · report

Tasks

Adversarial Robustness

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections