Papers › Optimal Transport-Guided Adversarial Attacks on Graph Neural Network-Based Bot Detection

Optimal Transport-Guided Adversarial Attacks on Graph Neural Network-Based Bot Detection

30 Jan 2026ICMLarXiv:2602.00318added by Syntology

Kunal Mukherjee, Zulfikar Alom, Tran Gia Bao Ngo, Cuneyt Gurcan Akcora, Murat Kantarcioglu

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

The rise of bot accounts on social media poses significant risks to public discourse. To address this threat, modern bot detectors increasingly rely on Graph Neural Networks (GNNs). However, the effectiveness of these GNN-based detectors in real-world settings remains poorly understood. In practice, attackers continuously adapt their strategies as well as must operate under domain-specific and temporal constraints, which can fundamentally limit the applicability of existing attack methods. As a result, there is a critical need for robust GNN-based bot detection methods under realistic, constraint-aware attack scenarios. To address this gap, we introduce BOCLOAK to systematically evaluate the robustness of GNN-based social bot detection via both edge editing and node injection adversarial attacks under realistic constraints. BOCLOAK constructs a probability measure over spatio-temporal neighbor features and learns an optimal transport geometry that separates human and bot behaviors. It then decodes transport plans into sparse, plausible edge edits that evade detection while obeying real-world constraints. We evaluate BOCLOAK across three social bot datasets, five state-of-the-art bot detectors, three adversarial defenses, and compare it against four leading graph adversarial attack baselines. BOCLOAK achieves up to 80.13% higher attack success rates while using 99.80% less GPU memory under realistic real-world constraints. Most importantly, BOCLOAK shows that optimal transport provides a lightweight, principled framework for bridging the gap between adversarial attacks and real-world bot detection.

PaperPDFCode 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="2602.00318")

Code

Syntology Ran 13 of 21 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 6 ran · our draft was wrong; 3 ran · fixture could not drive it; 1 ran with no contract checked.

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

kunmukh/bocloak found in paper text by Syntology report

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

21 samples harvested; 13 ran; 2 honoured the contract we drafted; 8 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.

2ran · honoured contract
1ran · violated contract
6ran · our draft was wrong
3ran · fixture could not drive it
1ran
8unverified

Licence: 0 of the 21 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 kunmukh/bocloak. “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.

LoadedData kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · metamorphic tier: deterministic MIT (permissive) · 19db406a47f40e73 · report
_as_long_idx kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · violated contract MIT (permissive) · 6611f2db47e73e38 · report
_build_adj_and_degrees kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · e8092e6e86d3012d · report
_canonical_dataset_key kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · c2c20d6c4928bb14 · report
_category_for_node_from_counts kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 78086fa1d6be8dee · report
_cuda_peaks_mb kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · honoured contract MIT (permissive) · 89d2297b1a2024b5 · report
_make_loader_for_nodes kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · 5c9f537028d15101 · report
_neighbor_features_for_node kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · 3f5923968386fca4 · report
_prepare_graph_and_signals kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · bca019bb4f60bb27 · report
clone_node_as_new_bot kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · honoured contract MIT (permissive) · cbfd074acaa48717 · report
collect_edges_and_labels kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 0bed703c70211c7f · report
compute_neighbor_label_counts_generic kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 37919e75748043c8 · report
sinkhorn_ot_cost kunmukh/bocloak/bocloak.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · b5e89b42046448d5 · report
_cpu_rss_mb kunmukh/bocloak/bocloak.py found in paper text by Syntology unverified MIT (permissive) · 14ef9a3cee721083 · report
_reset_cuda_peaks kunmukh/bocloak/bocloak.py found in paper text by Syntology unverified MIT (permissive) · 6f1cddb4277410e5 · report
build_neighbor_measures_for_nodes kunmukh/bocloak/bocloak.py found in paper text by Syntology unverified MIT (permissive) · 24326f7d587fe56f · report
compute_ot_plan_between_nodes kunmukh/bocloak/bocloak.py found in paper text by Syntology unverified MIT (permissive) · 62b7dab390d49e8f · report
log_category_table kunmukh/bocloak/bocloak.py found in paper text by Syntology unverified MIT (permissive) · 8a38fe8dd11ae9c5 · report
predict_nodes kunmukh/bocloak/bocloak.py found in paper text by Syntology unverified MIT (permissive) · 72ab879f656cbb09 · report
run_human_template_special_case kunmukh/bocloak/bocloak.py found in paper text by Syntology unverified MIT (permissive) · 1214129da68a2e3f · report
run_node_injection_experiment kunmukh/bocloak/bocloak.py found in paper text by Syntology unverified MIT (permissive) · 815aafd76a56db2f · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2602.00318, was issued in February 2026, after that date, so the archive has no leaderboard rows for it.

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