S-GAP: A Stealthy Graph Attack Primitive for Graph Large Language ModelsS-GAP: Stealthy Graph Attack Primitives for Graph Large Language Models
S-GAP iteratively constructs text–structure perturbations with a unified graph attack primitive; the authors claim it achieves the highest ASR on all 24 settings, averaging 7.02% higher than the strongest baseline.
Strict black-box, untargeted evasion: the attacker only observes the clean graph and training labels, cannot query the fixed victim GraphLLM, and aims to change the node prediction to any other class. GIA injects nodes, text, and associated edges; GMA modifies the target text and adds or deletes edges with the target as an endpoint. Perturbations are constructed on a surrogate GNN and then evaluated for transfer.
- GraphLLMs depend on both node text and graph structure. The authors consider that existing attacks construct the two kinds of perturbation in stages, with inconsistent intents and implausible relations, making them more easily ignored and reducing attack effectiveness.
- S-GAP uses GAP to write the target semantics to be preserved and the adversarial semantics to be introduced as the same intent, which is then iteratively instantiated by planning, attack, and main-control agents based on surrogate GNN scores and text feedback, covering both GIA and GMA.
- Across 24 combinations of four datasets, three GraphLLMs, and two settings, the authors state that S-GAP has the highest ASR in all, on average 7.02% higher than the strongest baseline; GMA and GIA are on average 12.78 and 1.25 percentage points higher, respectively, and High-Plaus. is also higher.
- The main text does not separately list limitations or follow-up experiments. The evaluation covers Cora, PubMed, OGBN-Arxiv, the OGBN-Products subset, and LLaGA, RGLM, TEA-GLM; the filtering and binning figures are mainly Cora and PubMed. The names of the surrogate GNN and the agent LLM are not written in the main text.
- Evaluated models
- LLaGARGLMTEA-GLM
- Benchmarks
- CoraPubMedOGBN-ArxivOGBN-Products
- Metrics
- ASRHigh-Plaus.
The paper proposes S-GAP, a stealthy adversarial attack method against graph large language models (GraphLLM), achieving an average attack success rate 7.02% higher than the strongest baseline across four datasets, three GraphLLMs, and two attack settings. The authors point out that existing attacks construct textual and structural perturbations in stages, causing fragmented attack intent and semantic incoherence between the two types of perturbations, which weakens stealthiness and makes them easier for GraphLLM to recognize and ignore. To this end, the paper proposes the graph attack primitive (GAP), which represents textual and structural perturbations simultaneously under a unified attack intent, and uses a multi-agent framework to iteratively refine the semantic content of GAP through surrogate model evaluation and textual feedback. The authors state that the perturbations generated by this method are more reasonable in their relations, exposing the vulnerability of current GraphLLMs and promoting more robust defenses.
Paper analysis
What problem does this paper attempt to solve?
Staged text and structural perturbations fragment the attack intent; the authors use GAP and S-GAP to unify the attack intent.
GraphLLMs jointly depend on node text and graph structure, and staged perturbations reduce stealthiness and effectiveness due to fragmented attack intent.
- Scenario: The authors state that TAGs are used in knowledge-rich networks such as citation networks and product networks; GraphLLMs contextualize node semantics with relational information. The authors consider that malicious text can distort node semantics and that manipulated relations can change how these semantics are contextualized, thus bearing on deployment in knowledge-intensive, decision-sensitive applications.
- Existing shortcomings: The authors state that existing methods construct text and structural perturbations in stages, with stage intents defined by different implementation criteria rather than explicitly unified, i.e., attack-intent fragmentation. Text often cannot provide reasons for manipulated relations, and structure cannot support the adversarial semantics introduced by text, making them more easily ignored by LLM components.
- Observation: The authors use an LLM to label relations as low, medium, or high plausibility. Figure 1 marks Clean on Cora as 32 and 67; S-GAP is marked as 7, 24, 69 under GIA and 8, 47, 45 under GMA. The authors consider that existing attacks have a higher proportion of low plausibility than the clean graph, and that S-GAP is closer to the clean reference.
- Approach: GAP uses the same atomic semantic representation to constrain both kinds of perturbation; S-GAP iteratively refines this representation with multiple agents, surrogate evaluation, and text feedback, and instantiates it as GIA and GMA.
- Threat model
- Goal: untargeted evasion, changing the target node's prediction to any other class.
- Knowledge: strict black-box. Only the clean graph and training labels are observed; there is no internal knowledge of the victim model, and the fixed model cannot be queried.
- Capability: GIA injects nodes, text, and associated edges, with existing elements unchanged; GMA modifies the target text and local connections, with added or deleted edges all having the target node as an endpoint.
- Victim system: a GraphLLM performing node classification on a TAG. Perturbations are constructed and scored on a surrogate GNN, then evaluated for transfer.
What related research exists?
Related work is divided into traditional graph attacks and TAG text attacks; the authors position GAP as a semantic interface usable for both GIA and GMA.
The paper divides related work into traditional graph attacks and text–structure attacks on TAGs, and the experiments further compare against two groups of native baselines.
- Injection-based graph attacks: Chen et al. (2022) inject adversarial nodes and their associated edges. TDGIA (Zou et al., 2021) jointly optimizes injected features and connections to affect target predictions. Reinforcement-learning-based methods (Sun et al., 2020; Ju et al., 2023; Zhao and Zhang, 2025) formulate node injection as sequential decision-making under different levels of model access.
- Modification-based graph attacks: Li et al. (2021) and Xu et al. (2022) modify existing graph elements. Nettack (Zügner, Akbarnejad, and Günnemann, 2018) makes targeted local perturbations to edges and node attributes; Metattack (Zügner and Günnemann, 2019) formulates graph poisoning as meta-learning; PRBCD (Geisler et al., 2021) uses randomized block coordinate descent to improve the scalability of structural attacks. The authors state that these methods mainly operate on topology and discrete or continuous features and do not directly construct or edit natural language text.
- Attacks on TAGs: WTGIA (Lei et al., 2024) converts adversarial feature patterns into interpretable text nodes. ATAG-LLM (Lyu et al., 2025) uses an LLM to generate candidate injected text and uses graph explanations to decide injection locations in a black-box setting. GraphTextack (Ma, Trivedi, and Koutra, 2026) uses evolutionary optimization to jointly search the connections and semantic features of injected nodes. On the modification side, IMDGA (Fan et al., 2026) combines graph-aware text replacement with edge pruning; BadGraph (Chen et al., 2026) uses graph priors and LLM reasoning to jointly perturb text semantics and topology. The authors state that the semantic coordination in these works is embedded in specific generation processes, such as node injection, text replacement, or topology modification.
- Baselines and data: The native GIA baselines are G2A2C, WTGIA, ATAG-LLM; the native GMA baselines are Nettack, Mettack, PRBCD, BadGraph. The datasets are Cora, PubMed, OGBN-Arxiv, and a subset of OGBN-Products.
The authors position GAP as an explicit semantic interface between the attack intent and the concrete text–structure implementation, so that the same representation can guide both GIA and GMA.
How does the paper address this problem?
S-GAP forms GAP from anchors and adversarial semantics, and iteratively instantiates it via scoring by three agents and a proxy GNN.
S-GAP writes the attack intent as a reusable Graph Attack Primitive (GAP), and then three agents—Planner, Attack, and Main—iteratively plan, instantiate, and give feedback.
Problem setting and candidate space
- Graph and task: TAG is denoted G=(V, E, T), with adjacency matrix A, and nodes have classification labels. The victim model is fixed, and the attack is transfer-based strict black-box evasion.
- GIA: injects a node set, text, and associated edges; each new edge has at least one endpoint that is an injected node, and existing elements are unchanged. In the experiments, one text node is injected per target, with at most two associated edges.
- GMA: obtains rewritten target text, an added-edge set, and a deleted-edge set; these edges all have the target node as an endpoint, and the node set, other text, and non-associated edges are unchanged. In the experiments, text revision is constrained by similarity, and at most two target-associated edges are added or deleted.
- Candidate endpoints: to reduce the combinatorial cost of selecting endpoints over all nodes, free attack edge endpoints are restricted to the contrast pool D_v, i.e., the M nodes with the lowest cosine similarity to the target under normalized text embeddings. The value of M is not given in the main text.
Semantic representation of GAP
- Interface: A GAP is an atomic semantic representation of a coherent attack intent. The implementation mapping returns a legal text–structure perturbation that realizes that intent under a given setting. The authors state that separating intent from setting-specific implementation allows the same GAP to be compatible with both GIA and GMA.
- Composition: Each primitive is written as Pv=(αv,βv), where α_v is the target semantic anchor to preserve and β_v is the adversarial semantics to introduce. The anchor aligns generated entities with the target topic, and the adversarial semantics provide contrastive evidence against the current prediction.
- Context: The target context contains the target text, bounded random one-hop neighbor text, the proxy GNN's prediction on the clean graph, and a small number of contrast nodes drawn from D_v. The proxy GNN is trained on the clean training split.
- Completeness: Proposition 1 states that, under the assumptions that LLM text is complete and retrieval has no ties, all legal perturbations within budget whose free endpoints fall in D_v are covered by the implementation of some GAP. The proof is in the appendix. This is completeness of the candidate space, not a full-graph search.
Multi-agent iteration
- Planner: each round generates primitives based on the target context and the previous round's text feedback. The first round's feedback is empty.
- Attack: instantiates the primitive into K executable perturbations and compares them using the drop in the proxy GNN's confidence. The value of K is not given in the main text.
- Scoring: for the clean predicted class, J=fsur(G,v)cv−fsur(G⊕mΔ,v)cv, where J is the drop in confidence for that class; larger means a greater drop.
- Main: maintains the planning and execution history, the current best perturbation, the edit plan, and the remaining budget, and chooses among Plan, Attack, and Stop for the next step. When Plan is chosen, the planning-oriented context and a text evaluation of the current result are given to the Planner. The authors state that easier targets use fewer primitive rounds and harder targets use more rounds, subject to a maximum round budget; the budget value is not given in the main text.
Setting-specific instantiation
- Common steps: the Attack Agent retrieves the endpoint plan and then generates the corresponding text. The authors state that under the same GAP the two types of perturbations are semantically consistent and maintain relational plausibility. Figure 2 only marks the inputs and outputs of each module; the generation instructions are not repeated here.
- GIA: retrieves existing endpoints from D_v, generates text for the injected node, and then connects the injected node to these endpoints.
- GMA: selects added-edge endpoints from D_v, selects deleted-edge endpoints from the target's existing neighbors, and generates a rewrite of the target text.
- Determination: ASR is computed only on targets that are correctly classified on the clean graph; a prediction changed to another class counts as success. Relational plausibility is scored 1–6 post hoc by an LLM based on endpoint text, with 5–6 as High; the original graph relations serve as reference.
What experiments did the paper conduct?
The authors state that ASR is highest in all 24 combinations; GMA and GIA are on average 12.78 and 1.25 percentage points higher than the strongest baseline.
Experimental Setup
- Victim models: LLaGA, RGLM, TEA-GLM. The authors state that they evaluate transfer attacks against these three GraphLLMs.
- Data: Cora, PubMed, OGBN-Arxiv, and a subset of OGBN-Products. The number of nodes, splits, and number of classes are not written in the main text; the authors state they are in the appendix.
- Baselines: GIA natively uses G2A2C, WTGIA, ATAG-LLM; GMA natively uses Nettack, Mettack, PRBCD, BadGraph. Table 1 reports these methods under both settings.
- Budget: GIA injects one text node and at most two associated edges per target; GMA makes similarity-constrained revisions to the target text and adds or deletes at most two target-associated edges.
- Metrics: ASR is the proportion of targets correctly classified on the clean graph that are successfully attacked. High-Plaus. is the proportion of relation scores of 5–6 assigned by the post-hoc LLM; Clean is the original graph relations. The paper states that the full score distributions and the filtering results by victim model are in the appendix.
- Not written in the main text: the surrogate GNN architecture, the LLM used by the agents, the post-hoc scoring LLM, the number of target nodes, and the number of repetitions. The paper states that model and baseline details are in the appendix.
Main Results
The table below lists only S-GAP; all numbers come from Table 1. Clean's High-Plaus. is Cora 66.88%, PubMed 87.12%, OGBN-Arxiv 63.90%, OGBN-Products 52.43%, the same under both settings. G2A2C's High-Plaus. is shown as "–" in the table; the main text does not explain this symbol.
Swipe horizontally to read the table
Setting and dataset LLaGA RGLM TEA-GLM High-Plaus. GIA / Cora 6.02 3.15 7.07 69.43 GIA / PubMed 2.79 1.47 0.58 61.19 GIA / OGBN-Arxiv 6.92 3.25 12.69 67.57 GIA / OGBN-Products 4.07 2.04 5.53 26.78 GMA / Cora 44.95 49.16 50.73 44.92 GMA / PubMed 49.01 47.76 56.89 46.90 GMA / OGBN-Arxiv 25.19 23.45 30.33 42.05 GMA / OGBN-Products 49.08 32.17 30.11 35.30 - Effectiveness: The authors state that ASR is highest in all 24 cases; relative to the strongest baseline, GMA is on average 12.78 percentage points higher and GIA is on average 1.25 percentage points higher. The abstract writes the average improvement as 7.02%. According to Table 1, S-GAP's GIA ASR is 0.58%–12.69% and GMA is 23.45%–56.89%.
- Two settings: The authors consider GMA generally more effective because it directly modifies the target node; GIA is more practical but only indirectly affects predictions by injecting nodes. The authors consider the baselines better under their native settings, with limited cross-setting adaptability.
- Stealthiness: The authors state that S-GAP has the highest High-Plaus. on all datasets and settings. Nettack has relatively strong ASR on Cora under GMA, with LLaGA at 38.28% and High-Plaus. at 4.89%. On OGBN-Products, GIA's High-Plaus. is 26.78%, lower than that dataset's Clean 52.43%.
Relation Plausibility Filtering
- What was measured: Edge perturbations with relation scores of 1–2 were withdrawn, text perturbations were retained, and the victim models' average ASR before and after filtering on Cora and PubMed was compared (Figure 3).
- Results: The authors state that several baselines drop considerably on Cora; changes on PubMed are smaller because there are few low-plausibility relations. S-GAP retains at least 85.0% of ASR and remains the strongest attack after filtering. The bar heights in Figure 3 are not readable in the supplied text.
- Authors' interpretation: The authors consider that S-GAP's effectiveness mainly comes from plausible text–structure interactions. On PubMed, GMA rises slightly after filtering, and the authors consider that some implausible relations may instead interfere with the attack.
Confidence Drop and Success Proportion
- What was measured: Final confidence drops were placed into four bins, <0.1, 0.1–0.2, 0.2–0.5, and ≥0.5, and the victim models' average proportion of successful attacks on Cora and PubMed was counted (Figure 4).
- Visible in the figure: The vertical axis is Mean Successful Attacks (%), the GIA subfigure is scaled to 20 and the GMA subfigure to 100; the legend is Cora and PubMed. The bar heights for each bin are not readable in the supplied text.
- Authors' interpretation: The authors state that the success proportion is generally larger at higher scores; the proportions are overall not high, which the authors consider reflects the prediction gap between the surrogate model and the victim GraphLLM, but the score still carries information about attack success.
Other Ablations and Analyses
- Table 2, GIA / Cora: after removing scoring, GAP, and feedback, LLaGA's ASR is 2.58%, 3.44%, 3.66%, and S-GAP is 6.02%.
- Table 2, GIA / PubMed: the corresponding values for TEA-GLM are 0.22%, 0.28%, 0.33%, and S-GAP is 0.58%.
- Table 2, GMA / Cora: the three variants give LLaGA 30.32%, 23.23%, 27.31%, and S-GAP is 44.95%.
- Table 2, GMA / PubMed: TEA-GLM is 25.71%, 27.65%, 25.96%, and S-GAP is 56.89%. The authors state that under GMA the victim models' average ASR drops by 18.62–28.88 percentage points.
- Table 3, GMA: text-only, structure-only, and S-GAP give victim models' average ASR of 25.10%, 11.66%, and 49.75%.
- Table 3, PubMed / TEA-GLM: structure-only 0.67%, text-only 38.62%, S-GAP 56.89%. The authors state that the two kinds of perturbation provide complementary signals and that ASR is higher when they are used jointly.
What are some points that can be further explored?
The main text does not separately list limitations; the experiments cover four datasets, three GraphLLMs, and GIA and GMA.
Limitations and Follow-up Directions Noted by the Authors
The paper does not specifically discuss limitations. The Conclusion reports that S-GAP is highest on all 24 combinations; Social Impact states that the results can be used for safety evaluation and defense development, but does not write any item as a shortcoming or follow-up experiment.
Scope of the Experiments
- The datasets are Cora, PubMed, OGBN-Arxiv, and a subset of OGBN-Products; the victim models are LLaGA, RGLM, TEA-GLM, the settings are GIA and GMA, and Table 1 has 24 combinations in total.
- The baselines include G2A2C, WTGIA, ATAG-LLM, Nettack, Mettack, PRBCD, BadGraph; Table 1 also gives ASR under non-native settings.
- Stealthiness uses the post-hoc LLM's 1–6 scores. The main-text figures for the filtering experiment and confidence binning are Cora and PubMed (Figure 3, Figure 4). The paper states that the full score distributions and the filtering results by victim model are in the appendix.
- Ablation Tables 2 and 3 cover Cora and PubMed, with variants removing scoring, removing GAP, removing feedback, and under GMA text-only or structure-only.
- The main text does not write the surrogate GNN architecture, the LLMs used by the agents and for scoring, the number of target nodes, or the number of repetitions, and states that model, baseline, and dataset statistics are in the appendix.
Summarize the main content of the paper
S-GAP iteratively constructs text–structure perturbations with a unified primitive; the authors state that all 24 combinations have the highest ASR, on average 7.02% higher.
S-GAP is a strict black-box transfer attack against GraphLLMs that uses a unified graph attack primitive to constrain text and structure simultaneously.
- Problem: The authors consider that staged construction splits the same attack objective into inconsistent implementation intents, making relations implausible and thus ignored by LLM components.
- Method: GAP consists of target semantic anchors to be preserved and adversarial semantics to be introduced. The Planner plans the primitive, Attack retrieves endpoints and generates text, then filters using the surrogate GNN's confidence drop; Main decides whether to continue planning, attack again, or stop, and writes text feedback. In the experiments, GIA injects one node and at most two edges, and GMA rewrites the target text and adds or deletes at most two associated edges.
- Main results: Among the 24 combinations in Table 1, S-GAP has the highest ASR in all. The authors state that relative to the strongest baseline, GMA is on average 12.78 percentage points higher and GIA is on average 1.25 percentage points higher; the abstract writes an average of 7.02%. According to Table 1, S-GAP's GMA ASR is 23.45%–56.89% and GIA is 0.58%–12.69%.
- Stealthiness and ablations: The authors state that High-Plaus. is highest on each dataset and setting; on Cora, GIA is 69.43%, GMA is 44.92%, and Clean is 66.88%. After filtering, at least 85.0% of ASR is retained. In Table 3, GMA gives victim models' average ASR of 49.75%, text-only 25.10%, and structure-only 11.66%.
- Authors' conclusion: The authors state that the results expose the vulnerability of current GraphLLMs in joint text and structure reasoning, and consider that these findings can be used for safety evaluation and defense development.