Skip to content

Optimal transport-guided adversarial attacks against graph neural network bot detectionOptimal Transport-Guided Adversarial Attacks on Graph Neural Network-Based Bot Detection

arXiv· arXiv:2602.00318· Kunal Mukherjee, Zulfikar Alom, Tran Gia Bao Ngo, Cuneyt Gurcan Akcora, Murat Kantarcioglu·Indexed by this site · 2026-10-12· Originally publishedAttacks

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

The authors use BOCLOAK to attack GNN bot detectors on three social graphs, claiming a success rate 80.13% higher than SOTA under constraints.

Threat modelEvasion at black-box test time. The attacker injects new bots or edits the associated edges of existing bots so that they are classified as human by a fixed detector; budget B, cannot force humans to follow back, cannot modify non-target nodes. The attacker can access the training graph, labels, and feature schema, but cannot obtain structure, parameters, gradients, or scores, and cannot query the model. The victim systems are vanilla and non-adaptively defended GNN bot detectors.

Questions
The robustness of GNN bot detectors under domain and temporal constraints remains unclear. Existing graph attacks often assume features or edges can be arbitrarily modified, but bots cannot arbitrarily rewire, nor can they force humans to follow back.
Methods
BOCLOAK represents the k-hop neighborhood as a probability measure on spatiotemporal features, learns an optimal transport cost that separates humans from bots, and then decodes the transport plan into sparse edge edits or node injections that are within budget, act only on the target, and prohibit forcing humans to follow back.
Experiments and results
BotRGCN, Δ=1, constrained, BOCLOAK misclassification rate is 99.34%, 86.67%, 58.22% on Cresci-15, TwiBot-22, BotSim-24 (Table 2), higher than the four graph attacks in the same table. The authors claim at most 99.80% less GPU memory.
Limitations and future work
The authors state in Section 5 that feature vectors are fixed and do not model content that changes over time. Experiments cover three social bot graphs, five GNN detectors, three adversarial defenses, and NoisyGNN on TwiBot-22, with 50 targets per condition; the paper does not report the number of repetitions.
Experimental setupBotRGCN、GAT et al. · Cresci-15、TwiBot-22 et al. · misclassification rate、F1
Evaluated models
BotRGCNGATSimple-HGNN (S-HGN)GCNRGTGNNGuardGRANDRobustGCNNoisyGNN
Benchmarks
Cresci-15TwiBot-22BotSim-24
Metrics
misclassification rateF1
AI summaryThe researchers propose BOCLOAK, an optimal transport-based adversarial attack method to evaluate the robustness of graph neural network (GNN) social bot detection under realistic constraints. The method constructs probability measures on spatiotemporal neighbor features, learns an optimal transport geometry that separates human and bot behaviors, and decodes the transport plan into sparse and plausible edge edits that evade detection while satisfying realistic constraints. The study evaluates on three social bot datasets, five advanced detectors, and three adversarial defenses, and compares with four mainstream graph adversarial attack baselines. BOCLOAK improves attack success rate by up to 80.13% and reduces GPU memory usage by 99.80%. The authors state that optimal transport provides a lightweight and principled framework connecting adversarial attacks and realistic bot detection.

The researchers propose BOCLOAK, an optimal transport-based adversarial attack method to evaluate the robustness of graph neural network (GNN) social bot detection under realistic constraints. The method constructs probability measures on spatiotemporal neighbor features, learns an optimal transport geometry that separates human and bot behaviors, and decodes the transport plan into sparse and plausible edge edits that evade detection while satisfying realistic constraints. The study evaluates on three social bot datasets, five advanced detectors, and three adversarial defenses, and compares with four mainstream graph adversarial attack baselines. BOCLOAK improves attack success rate by up to 80.13% and reduces GPU memory usage by 99.80%. The authors state that optimal transport provides a lightweight and principled framework connecting adversarial attacks and realistic bot detection.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Under the constraint of not being able to arbitrarily modify the graph, evaluate whether GNN bot detectors can be evaded by associated edge edits.

    Under real social constraints, can GNN bot detectors be misled by evasion attacks that only modify the target account's associated edges?

    • Scenario: The authors claim bots distort interactions, amplify misinformation, and manipulate public discourse at scale. Detectors already combine profile, content, and connections, but robustness under real adversarial conditions remains unclear.
    • Existing methods: The authors claim existing graph attacks are mostly limited by fixed budgets, allowing arbitrary feature changes or edge flips; this does not match deployment conditions where bots cannot arbitrarily reconnect or immediately gain high-reputation connections.
    • Observation: The authors believe optimal transport can compare local neighborhoods under partial observability and behavioral plausibility constraints. The authors claim a single human follower can mislead SOTA detectors in 81.50% of cases (introduction to Figure 1).
    • Proposal: The method is BOCLOAK, which uses transport plans on spatiotemporal neighborhoods to generate sparse edge edits and node injections. The authors claim this is the first application of optimal transport to social bot detection and GNN attacks.
    • Threat model:
      • Goal: Test-time evasion, making injected or edited bots classified as human by a fixed detector; no poisoning or availability attacks.
      • Knowledge: The paper calls it black-box. It can see the training graph, labels, and feature patterns; it does not know structure, parameters, gradients, or output scores, and cannot query or see logits. It observes whether accounts are flagged, removed, or still active via metadata such as account age.
      • Capability: Only modifies the target vt's associated edges, with budget B. Outgoing edges can be freely chosen; cannot force humans to follow back, nor modify other nodes' edges, features, labels, or metadata. When injecting, can specify non-temporal profile and content features.
      • Victim system: Deployed GNN bot detectors, including vanilla detectors and defended detectors that typically do not anticipate specific attacks.
  2. What related research exists?

    The paper positions itself between social bot detection and general GNN attacks, distinguishing itself by domain constraints.

    Related work is organized by detectors, general graph attacks, and bot evasion; the authors position this paper on neighborhood transport under domain and temporal constraints.

    • Social bot detection: Ferrara et al. (2016), Varol et al. (2017), Kudugunta and Ferrara (2018) use supervised classifiers, with later work shifting to graph detectors that more explicitly use social structure. Cresci-2015, TwiBot-20, TwiBot-22 incorporate user attributes, node and edge types into evaluation; BotSim-24 (Qiao et al., 2025) is used to show that LLM-driven bots degrade existing detector performance. The authors treat BotRGCN, S-HGN, and RGT as victim models.
    • GNN adversarial attacks: Nettack (Zügner et al., 2018) greedily modifies features and edges around the victim node; FGA (Chen et al., 2018) uses gradient saliency to select edge reconnections; GOttack (Alom et al., 2025) learns transferable perturbations using node orbits; PR-BCD (Geisler et al., 2021) formulates topological attacks as continuous optimization over adjacency perturbations. LR-BCD (Gosch et al., 2023) adds node-level local budgets, PGA (Zhu et al., 2024) distributes a global budget to vulnerable nodes, and EvA (Akhondzadeh et al., 2026) uses an evolutionary black-box procedure to optimize discrete perturbations.
    • Bot evasion: Cresci et al. (2019; 2021) feature-space attacks do not use network structure. Wang et al. (2023; 2025) and Liu et al. (2024) introduce auxiliary bots for node edits to evade; the authors claim they do not characterize vulnerable local neighborhoods or explain how to construct these neighborhoods under temporal and domain constraints.
    • Baselines and data: Node-edit baselines are Nettack, FGA, PR-BCD, GOttack; data are Cresci-15, TwiBot-22, BotSim-24. The authors claim that under their feasibility rules, there is no existing social graph node injection attack directly comparable, so the injection control is random.

    The authors claim two differences: evasion is written on domain- and time-aware neighborhood distributions, and explicit human/bot ground costs are learned; the attack is optimized to imitate misclassified bots while respecting node injection, degree, and temporal constraints. The authors claim LR-BCD and EvA are not designed around social feasibility such as not being able to force humans to follow back, and PGA is global budget allocation rather than per-target test-time evasion.

  3. How does the paper address this problem?

    BOCLOAK learns the neighborhood transport geometry of humans and bots, then decodes the plan into feasible sparse edge edits.

    BOCLOAK treats the local neighborhood rather than a single edge as the operation target: it first learns an optimal transport geometry that separates humans and bots, then decodes the transport plan into sparse edge edits or node injections that satisfy social constraints.

    Problem Setting and Constraints

    • Graph and detector: The social platform is written as a directed graph, nodes are accounts, edges are follows, and features come from profiles, posts, or tweets. The detector performs semi-supervised node classification, with labels human or bot. The attack occurs at test time, and the model remains fixed.
    • Feasible set: All constrained outcomes share the same editable set. The number of edits does not exceed the budget; each edit is associated with the target vt; forced human-to-bot follow-backs are prohibited; edits with invalid directions or temporal inconsistencies are rejected. Unrelated regions cannot be rewritten, and the features, labels, or metadata of non-target nodes cannot be changed.
    • Two scenarios: Node injection adds new bots and only adds edges; node editing modifies the associated edges of existing bots, allowing both additions and deletions. Injection is written as a special case of editing where the initial node has no associated edges.

    Neighborhood Measure and Transport Geometry

    • Representation: The experiments use 1-hop ego neighborhoods. Each neighbor is encoded into a fixed-dimensional feature vector containing static, behavioral, content, and temporal information; Appendix C.1 lists the fields. The weight is the product of a structural term and a temporal term; the authors state that a neighbor only receives high quality if it has both structural information and temporal plausibility.
    • Distance: The ground cost is defined by a neural network embedding and a Mahalanobis distance on a learnable positive semidefinite matrix. The node distance is D_\theta(v,\xi)\triangleq\langle P^\star_{v\xi},C_{v\xi}\rangle, the inner product of the entropy-regularized optimal plan and the cost matrix. The plan is computed with Sinkhorn iterations.
    • Why transport: The authors state that homophily or embedding similarity can only show that two neighborhoods are close, not which part of the neighborhood quality should be aligned under a budget; the coupling is used to pick out a small number of high-quality correspondences that can be decoded into target-associated edges.

    Boundary Cloak and Attack Objective

    • Boundary: For each bot, the margin equals the transport distance to the nearest human minus the distance to the nearest other bot. Bots whose margin does not exceed the validation-set threshold enter the boundary set; then, using the pretrained classifier's predictions, bots classified as human are extracted. The candidate template is the intersection of the two.
    • Template selection: The authors state that misclassified bots are preferred over real humans because existing bots are more likely to retain connections needed for promotion or coordination; imitating arbitrary humans may evade detection but produces no meaningful interaction. When no bot template exists, the method falls back to nearby human neighborhoods in transport space.
    • Objective: Within the feasible set, bring the edited target neighborhood close to some cloak, and penalize implausible edits and the number of edits. The authors state that directly optimizing the discrete edge set is infeasible, so they first learn the distance offline, then select a small number of boundary templates, and finally decode.

    Decoding and Training

    • Decoding: Compare the transport plan between the cloak and its nearest human, extract high-quality cloak-side neighbors, convert them into target-associated edges, and apply budget and feasibility constraints. For injection, these edges form the initial neighborhood of the new node; for editing, they replace or supplement existing associated edges. The algorithm is given in Appendix Algorithm 1 and Algorithm 2.
    • Loss: A BCE surrogate shapes the transport margin, a sparsity term penalizes diffuse plans, and a plausibility term penalizes transport quality that mismatches degree or account age.
    • Fixed parameters: Table 8 gives ε=0.2, 30 Sinkhorn iterations, boundary threshold 0.1, BCE temperature 0.01, three loss weights 2, 0.05, 0.10, degree and time weights 0.8 and 0.2, boundary bot cap 50, and each template reused at most 3 times. The time and space of one local transport grow with the sizes of the two neighborhoods and the number of Sinkhorn iterations, not with the number of nodes in the full graph.
  4. What experiments did the paper conduct?

    The authors claim 80.13% higher than the best SOTA under constraints; BotRGCN, BotSim-24, Δ=1 is 58.22%.

    Experimental Setup

    • Detectors: GCN, GAT, BotRGCN, Simple-HGNN (S-HGN), RGT. Main defenses are GNNGuard, GRAND, RobustGCN; NoisyGNN is only added on BotRGCN for TwiBot-22.
    • Data: In Table 1, Cresci-15 has 5,301 nodes and 14,220 edges, TwiBot-22 has 1,000,000 nodes and 170,185,937 edges, BotSim-24 has 2,907 nodes and 46,518 edges. Splits follow the training, validation, and test protocols given by the dataset authors.
    • Controls: Node edits are Nettack, FGA, PR-BCD, GOttack; the appendix also has FGA-mod, PR-BCD-mod, LR-BCD, and Homophily. Node injection control is random.
    • Protocol: For each condition, 50 targets uniformly sampled from originally correctly classified bots on the original graph, with the graph reset before attack. Edits can add or remove edges; injections only add edges; neither can create human follow-backs. Constraint columns share budget and feasible set; baselines filter infeasible edits along their own ranking proposals, without adding BOCLOAK's information.
    • Metrics and clean performance: Misclassification rate is the proportion of targets flipped from bot to human. Table 10 reports F1. The authors claim implementations meet or exceed reported clean accuracy; vanilla BotRGCN F1 on the three datasets is 0.98, 0.58, 0.96.
    • Not specified: k=1. The paper states defenses typically do not anticipate specific attacks. The paper does not report the number of independent repetitions. Node-edit tables list GAT, BotRGCN, S-HGN; GCN and RGT appear in Table 10 and injection tables.

    Main Results

    Table 2 is misclassification rates (%) for Δ=1, fifty originally correctly classified bots. The table below lists only some columns, omitting PR-BCD.

    Swipe horizontally to read the table

    ConditionNettackFGAGOttackBOCLOAK
    Cresci-15 BotRGCN unconstrained94.67±6.5596.89±4.8198.54±12.4099.34±0.29
    Cresci-15 BotRGCN constrained4.32±2.103.95±2.443.55±2.3499.34±0.29
    TwiBot-22 BotRGCN constrained9.33±3.064.00±2.006.89±3.3386.67±2.31
    BotSim-24 BotRGCN constrained0.00±0.000.00±0.000.00±0.0058.22±7.20
    TwiBot-22 S-HGN constrained5.03±4.725.79±6.525.55±7.9897.42±1.39
    BotSim-24 GAT constrained5.52±1.925.79±1.917.08±3.0688.74±3.12
    • Constraint gap: The authors claim SOTA is effective when unconstrained but degrades after adding social domain constraints. In Table 2, BOCLOAK on vanilla BotRGCN has identical numbers in unconstrained and constrained columns. Omitted PR-BCD on BotRGCN constrained Δ=1 is 4.10%, 8.67%, 2.00%.
    • Authors' summary: The authors claim that on Cresci-15, constrained SOTA rises only mildly from 3–9% at Δ=1 to 12–23% at Δ=5, still below BOCLOAK; and claim 80.13% higher than the best constrained SOTA. The abstract says up to 80.13%.
    • Exception: On BotSim-24, BotRGCN, +GRAND, constrained, Δ=1, FGA is 54.98±1.33, while the other FGA defense cells in that row are 0.00±0.00, and BOCLOAK is 54.98±2.45.

    Node Injection

    • Low budget: In Table 13, BOCLOAK, Δ=1, vanilla: on Cresci-15, GCN to RGT are 99.12%, 98.76%, 97.94%, 98.31%, 99.43%; on TwiBot-22 are 97.85%, 96.92%, 98.14%, 97.26%, 98.67%; on BotSim-24 are 18.30%, 15.20%, 14.50%, 12.33%, 13.50%.
    • Budget and random: In Table 13, BOCLOAK on BotSim-24, BotRGCN is 47.49% at Δ=5 and 67.49% at Δ=20. In Table 15, random, BotRGCN, Δ=20 is Cresci-15 96.67%, TwiBot-22 96.67%, BotSim-24 22.00%; in the same table, BOCLOAK, Δ≤5 on BotSim-24 ranges from 47.49% to 40.68%. The authors claim that on easier benchmarks, high-budget random can also approach high success rates, and on BotSim-24 BOCLOAK varies more with budget.
    • Reuse: Table 14 shows 100.00% reuse for Δ=1 injection on Cresci-15 and TwiBot-22; Table 18 shows 0.00±0.00 for edit reuse on BotSim-24, BotRGCN, Δ=1. The authors claim that repeatedly using the same most human-like template creates a single point of failure.

    Constraint Controls and NoisyGNN

    • In-loop projection: Table 20, on TwiBot-22, BotRGCN, edit, Δ=1, constrained, FGA-mod is 7.11%, PR-BCD-mod is 13.21%, LR-BCD is 9.86%, Homophily is 13.12%, BOCLOAK is 86.67%. The authors claim these controls only slightly improve constrained baselines.
    • Noise defense: Table 11, same setting with NoisyGNN, Nettack, FGA, PR-BCD, GOttack are 4.34%, 3.65%, 5.45%, 4.11%, BOCLOAK is 85.12%. The authors claim hidden-state noise does not remove the domain-feasible neighborhood vulnerability that BOCLOAK exploits.
    • Removing constraints: Table 19, at Δ=5, TwiBot-22, vanilla BotRGCN, GOttack is 99.55%, BOCLOAK is 94.00%; on BotSim-24, +RobustGCN, BOCLOAK is 44.00±19.16%, GOttack is 90.72±4.93%. The authors claim unconstrained success largely comes from infeasible edits.

    Other Ablations and Analyses

    • Table 3, vanilla BotRGCN, Δ=5, removing λBCE: a row labeled Cresci-17 is 38.21%, TwiBot-22 is 22.45%, BotSim-24 is 32.45%; full BOCLOAK is 99.67%, 94.00%, 99.33%. Appendix Table 21 labels the same set of vanilla numbers as Cresci-15.
    • In the same table, removing λsp gives 96.88%, 92.12%, 96.55%; removing λpl gives 57.99%, 55.23%, 60.34%. The authors claim the BCE margin term is the main contributor.
    • Table 22, ε=0.2 and τbdry=0.10, the three datasets are 99.67%, 94.00%, 99.33%; ε=100 gives 13.83%, 22.00%, 18.23%. The authors claim too small ε makes the plan sharp, too large makes it diffuse.
    • Table 12, Δ=5, BotSim-24, BotRGCN, BOCLOAK: vanilla 99.33%, +RobustGCN 66.20%.
    • Table 23, TwiBot-22, vanilla BotRGCN, Δ=1: BOCLOAK takes 0.5±0.14 seconds and 13±2 MB GPU; GOttack takes 853.9±19.95 seconds; PR-BCD uses 6178±4 MB GPU. The authors claim at most 99.80% less GPU memory and a footprint of 13MB; Table 4's BotSim-24 GPU is 11±1 MB.
    • Appendix practice statistics state that on TwiBot-22, BotRGCN, Δ=5, 50 trials flip 48/50. Figure 1 caption claims misclassified bots more often have edges with humans, especially incoming edges; the main text extraction does not align the bar values 295, 460, 342, 340, 485, 1036, 1885, 4590 to categories.
  5. What are some points that can be further explored?

    The authors state that feature vectors are kept fixed in the study, and content that changes over time has not yet been modeled.

    Limitations and Future Directions Noted by the Authors

    • Fixed features: Section 5, Limitation paragraph, states that the study assumes feature vectors are fixed throughout. The authors state that in practice, content such as tweets changes over time and affects detection and evasion; modeling these effects requires time-resolved content and metadata, which are not yet available.
    • Others: The Conclusion does not separately list limitations or future work. Appendix X presents a defense idea targeting neighborhood distributions but does not frame it as future work.

    Experimental Coverage

    • Data and detectors: The experiments use Cresci-15, TwiBot-22, and BotSim-24. The evaluated detectors are GCN, GAT, BotRGCN, S-HGN, and RGT, 5 in total (Section 5, Table 10, Table 13).
    • Attacks and defenses: Node editing baselines include Nettack, FGA, PR-BCD, GOttack, plus FGA-mod, PR-BCD-mod, LR-BCD, and Homophily in the appendix (Table 20). Defense evaluations include GNNGuard, GRAND, and RobustGCN; NoisyGNN is reported on TwiBot-22/BotRGCN (Table 11). The paper states that these defenses generally do not anticipate a specific attack.
    • Scale and budget: Each listed condition uses 50 targets. The editing budget is Δ=1 in Table 2, with Δ=3 and Δ=5 in Appendix Table 12; injection additionally reports Δ=20 (Table 13, Table 15).
    • Knowledge setting: Section 3.1 states black-box test-time evasion; the attacker cannot query the model or observe logits, and poisoning and availability attacks are not considered. BOCLOAK does not use surrogate gradients (Table 8 writes surrogate as none).
    • Not reported in the paper: number of independent repetitions; the node editing tables do not list misclassification rates for GCN and RGT. The header of Appendix 12 still reads GAT, BotRGCN, S-HGN.
  6. Summarize the main content of the paper

    BOCLOAK uses neighborhood optimal transport for constrained bot evasion and compares detectors on three social graphs.

    BOCLOAK is a test-time evasion method against GNN social bot detectors, used to examine robustness under domain constraints.

    • Problem: The authors believe bots cannot arbitrarily reconnect users or immediately gain high-reputation connections, nor can they force humans to follow back; general graph attacks limited only by fixed budgets therefore do not match deployment conditions.
    • Approach: Write the 1-hop neighborhood as a probability measure on spatiotemporal features, and learn offline a transport cost that separates humans and bots. Misclassified bots near the boundary act as cloaks; the transport plan is decoded into edge edits or new node injections that act only on the target, subject to budget and feasibility constraints. The detector is fixed, and the paper sets the setting as black-box.
    • Edit results: Table 2 at Δ=1, constrained, on BotRGCN, BOCLOAK's misclassification rate is 99.34% on Cresci-15, 86.67% on TwiBot-22, and 58.22% on BotSim-24. Under the same table's constraints, Nettack, FGA, PR-BCD, and GOttack are mostly single digits or 0.00%; an exception is FGA on BotSim-24, BotRGCN, +GRAND, at 54.98%.
    • Other results: In Table 11, on TwiBot-22, BotRGCN with NoisyGNN, BOCLOAK is 85.12%, and the four general attacks are below 6%. In Table 13, Δ=1 injection on BotSim-24, BotRGCN is 14.50%, and on Cresci-15's RGT is 99.43%. The authors claim the constrained success rate is 80.13% higher than the best SOTA; the abstract says up to 80.13%; and they claim 99.80% less GPU memory.
    • Authors' conclusion: The authors believe optimal transport provides a lightweight framework connecting adversarial edits and bot detection with domain constraints; and claim it is equally effective in settings without domain restrictions. Section 5 states that content changes over time are not yet modeled.
Read originalarxiv.org