Manuscript Offprint
arXiv:2610.23465S-GAP: Stealthy Graph Attack Primitives for Graph Large Language Models
Abstract
Graph Large Language Models (GraphLLMs) enable powerful semantic understanding and reasoning over Text-Attributed Graphs (TAGs), while their semantic reasoning may exhibit vulnerabilities to perturbations in node text and graph structure under adversarial attack evaluation. Existing attacks typically construct textual and structural perturbations in separate stages guided by distinct realization intents. However, this separation results in attack-intent fragmentation, causing semantic incoherence between the two perturbation types, thereby undermining attack stealth and making them easier for GraphLLMs to identify and disregard, ultimately weakening attack effectiveness. To avoid attack-intent fragmentation, we propose the Graph Attack Primitive (GAP), an atomic semantic representation that unifies textual and structural perturbations under a coherent attack intent. By carefully calibrating the semantic composition of a GAP, we can achieve strong attack effectiveness while maintaining sufficient attack stealth. Furthermore, we introduce S-GAP (Stealthy GAP), a multi-agent framework that iteratively refines the semantic content of the GAP. The framework unifies GAP planning and realization and continuously refines this process through surrogate evaluation and textual feedback. Extensive experiments across four datasets, three GraphLLMs, and two attack settings show that S-GAP improves ASR over the strongest baselines by 7.02% on average while producing more relationally plausible perturbations, exposing critical vulnerabilities in current GraphLLMs and motivating more robust defenses.
Introduction
Text-Attributed Graphs (TAGs), which integrate graph structure with textual content, are widely used to represent citation networks (Tang et al. 2024), product networks (Fan et al. 2022), and other knowledge-rich networks (Zhong et al. 2023; Ying et al. 2026). Recently, Graph Large Language Models (GraphLLMs) (Chen et al. 2024; Wang et al. 2024; Zhang et al. 2026) have incorporated the powerful semantic understanding and reasoning capabilities of large language models into graph learning, enabling joint reasoning over node text and graph structure. Compared with conventional graph models, this integration allows GraphLLMs to contextualize node semantics using relational information, supporting richer and more context-sensitive graph reasoning. However, this joint reliance also creates a coupled vulnerability: malicious text can distort node semantics.

(a) Graph Injection Attack (GIA)
(b) Graph Modification Attack (GMA)

Proportion (%)
Figure 1: Relational-plausibility distributions on Cora. An LLM assesses each relation as having low, medium, or high plausibility, while Clean denotes original graph relations.
tics, while manipulated relations can alter how those semantics are contextualized. Understanding how this coupled vulnerability can be exploited by adversarial attacks is therefore critical to the safe and reliable deployment of GraphLLMs in knowledge-intensive and decision-sensitive applications (Gao et al. 2025; Dai et al. 2024).
Graph adversarial attacks systematically expose the vulnerabilities of GraphLLMs through budget-constrained perturbations to graph data and commonly operate in two settings: Graph Injection Attack (GIA), which introduces adversarial nodes together with their incident edges, and Graph Modification Attack (GMA), which alters existing graph elements. Across these settings, conventional methods manipulate graph structure, vectorized node attributes, or both (Zügner, Akbarnejad, and Günnemann 2018; Zügner and Günnemann 2019; Ju et al. 2023; Ma, Trivedi, and Koutra 2026). Attacks on TAGs impose an additional constraint: attribute perturbations must be realized as valid natural-language text while being coordinated with structural manipulations (Lyu et al. 2025; Chen et al. 2026; Lei et al. 2024).
These methods typically construct textual and structural perturbations in separate stages, with each stage guided by a separately defined realization intent derived from the shared attack objective. For example, the structural stage (Lyu et al. 2025) is driven by relational criteria, whereas the textual stage (Lei et al. 2024) follows separately defined semantic constraints. Although both stages pursue the same ultimate attack objective, their stage-specific attack intents are defined by different realization criteria rather than explicitly unified. We refer to this separation as attack-intent fragmentation.
Attack-intent fragmentation can lead to semantic incoherence between textual and structural perturbations, with the generated text failing to justify the manipulated relations and the structural perturbations failing to support the adversarial semantics introduced by the text. Such incoherent perturbations lack sufficient attack stealth, making them more likely to be judged semantically implausible or weakly relevant and subsequently disregarded by the LLM components of GraphLLMs, ultimately weakening attack effectiveness. We further validate this observation by prompting an LLM to assess the plausibility of the relations produced by each attack and categorize them as low, medium, or high plausibility. As shown in Figure 1, existing attacks produce substantially larger proportions of low-plausibility relations than the clean graph under both attack settings, suggesting that their textual and structural perturbations frequently form semantically implausible relations. In contrast, our method S-GAP yields plausibility distributions much closer to the clean reference, indicating that its perturbations better preserve the relational plausibility profile of the original graph and thus achieve stronger attack stealth.
To avoid attack-intent fragmentation, we propose the Graph Attack Primitive (GAP), an atomic semantic representation that provides a coherent attack intent shared by textual and structural perturbations. By explicitly specifying the target semantics to preserve and the adversarial semantics to introduce, a GAP can avoid semantically implausible perturbations while retaining adversarial strength. However, balancing these competing semantic compositions is inherently target-dependent and difficult to achieve in a single generation step. We therefore introduce S-GAP (Stealthy GAP), a multi-agent framework that iteratively refines GAPs through surrogate evaluation and textual feedback. The Planner Agent proposes a GAP for the target, which the Attack Agent instantiates as a concrete text–structure perturbation and evaluates using a surrogate GNN. The Main Agent controls the overall process and uses the target context and execution outcome to construct a textual feedback that guides the Planner Agent's refinement in the next round.
Our contributions are summarized as follows:
• We identify attack-intent fragmentation in adversarial attacks, where textual and structural perturbations guided by independent attack intents undermine stealth, and propose GAP, which provides a unified attack intent for both perturbation types and is expressively complete over the defined attack search space.
• We introduce S-GAP, a multi-agent framework for unified target-specific GAP planning and realization with iterative feedback-guided refinement through surrogate evaluation and textual feedback.
• We conduct comprehensive experiments on four datasets with three victim GraphLLMs under two attack settings. The results demonstrate superior attack effectiveness and stealth over existing methods, exposing fundamental vulnerabilities in the joint textual and structural reasoning of current GraphLLMs.
Attacks on Text-Attributed Graphs. Recent studies extend graph attacks from vectorized attributes to textual and semantic perturbations on TAGs. WTGIA (Lei et al. 2024) pioneers text-level graph injection by converting adversarial feature patterns into interpretable textual nodes. ATAG-LLM (Lyu et al. 2025) further employs LLMs to generate candidate injection texts and uses graph explanations to determine their injection positions in a black-box setting. Beyond raw-text generation alone, GraphTextack (Ma, Trivedi, and Koutra 2026) jointly searches the connectivity and semantic feature assignments of injected nodes through evolutionary optimization. For graph modification, IMDGA (Fan et al. 2026) combines graph-aware textual substitutions with edge pruning to improve attack effectiveness and stealthiness, while BadGraph (Chen et al. 2026) leverages graph priors and LLM reasoning to jointly perturb textual semantics and topology. These studies establish textual semantics and graph structure as coupled attack surfaces. However, their semantic coordination is embedded in particular generation procedures and perturbation mechanisms, such as node injection, textual substitution, or topology modification. In contrast, S-GAP introduces the Graph Attack Primitive as an explicit semantic interface between attack intent and concrete text–structure realization, enabling the same representation to guide both GIA and GMA.

Figure 2: Overview of the proposed S-GAP framework.
Background
Text-Attributed Graphs. A Text-Attributed Graph (TAG) is denoted by , where is the node set, is the edge set, and is the collection of node texts, with denoting the text associated with node . The graph structure is represented by an adjacency matrix , where if and otherwise. In node classification, each node has a label , where denotes the label space (Lei et al. 2024; Chen et al. 2026).
Threat Model. We consider untargeted evasion attacks under a strict black-box setting. The attacker observes only the clean graph and training labels, but has no internal knowledge of or query access to the fixed victim model. The goal is to change the target node's prediction to any other class. We consider two common graph perturbation settings (Zou et al. 2021; Ma, Trivedi, and Koutra 2026; Chen et al. 2026).
(1) Graph Injection Attack (GIA). The attacker injects a set of nodes for a target node , together with their associated texts and incident edges . The perturbed TAG is
Each edge in has at least one injected node as an endpoint, while the existing nodes, edges, and texts remain unchanged (Zou et al. 2021; Lei et al. 2024; Ma, Trivedi, and Koutra 2026).
(2) Graph Modification Attack (GMA). The attacker modifies the text of an existing node v and its local connectivity, yielding a modified text , a set of added edges , and a set of removed edges . The perturbed TAG is
Each edge in has the target node as an endpoint, while the node set, all other node texts, and non- -incident edges remain unchanged (Zhang et al. 2025; Chen et al. 2026).
Methodology
Overview
As illustrated in Figure 2, S-GAP is a multi-agent framework that iteratively refines GAPs using surrogate evaluation and textual feedback. The Main Agent coordinates the process by maintaining the attack state and deciding whether refinement should continue or terminate. At each iteration, the Planner Agent composes or refines a GAP. The Attack Agent then generates setting-specific text–structure perturbations from the GAP and evaluates them using a surrogate GNN. The Main Agent then updates the attack state with the execution outcome and produces textual feedback to guide the Planner Agent's next refinement.
Graph Attack Primitive
Target context. Let be a surrogate GNN trained on the clean training split. To reduce the combinatorial cost of endpoint selection over all graph nodes, S-GAP restricts free attack-edge endpoints to a contrastive candidate pool comprising the nodes in with the lowest cosine similarity to under normalized text embeddings. We construct the target context:
where is the target text, is a bounded set of randomly sampled one-hop neighbors of , is the clean surrogate prediction, and denotes a few nodes drawn from and provided to the LLM as contrastive context, whose number is much smaller than .
Definition 1 (Graph Attack Primitive) A Graph Attack Primitive (GAP) is an atomic semantic representation of a coherent attack intent that serves as a general interface between the intent and its concrete text–structure realization. Let P denote the primitive space, with representing a GAP associated with target node v. For an attack setting , the realization map
returns the set of valid text–structure perturbations that realize the attack intent represented by under setting m.
Beyond providing a unified attack intent for text–structure perturbations, another key advantage of GAP is its compatibility with both GMA and GIA. Existing methods are typically tailored to the perturbation mechanism of a single setting and therefore support either graph modification or graph injection. By separating attack intent from setting-specific realization, GAP accommodates both settings within a unified framework through their respective realization functions.
Proposition 1 (Candidate Search-Space Completeness)
For any candidate endpoint search space and graph budget , let denote all valid perturbations under setting whose free structural endpoints lie in and whose graph cost is at most . Assume that the LLM is text-complete and that retrieval is tie-free. Then
The proof is provided in Appendix. Proposition 1 establishes candidate-space completeness under the text-completeness assumption. Accordingly, exhaustive optimization over all primitive realizations preserves the optimum within the candidate-restricted attack space.
Stealth-oriented primitive representation. To improve attack stealthiness, S-GAP represents each primitive using two semantic components:
where is the target anchor that identifies the target semantics to preserve, and denotes the adversarial semantics to introduce. The target anchor keeps the generated entity aligned with the target topic, while the adversarial semantics provide contrastive evidence against the current prediction.
The GAP provides a compact and reusable semantic specification that establishes a unified attack direction for text–structure perturbations, while its concrete realization as nodes and edges is determined by the system during instantiation. Since remains a target-specific decision variable, identifying an effective motivates the iterative multi-agent optimization framework presented next.
Framework of Stealthy Graph Attack Primitive
For target v under attack setting m, the Planner, Attack, and Main Agents jointly optimize through a recurrent cycle of primitive planning, attack realization followed by evaluation, and feedback synthesis.
Primitive planning. At round r, the Planner Agent generates a primitive from the target context and textual feedback produced by the Main Agent:
Here, denotes the textual feedback generated by the Main Agent described below, and .
Attack realization and evaluation. Given , the Attack Agent realizes it as setting-specific executable text–structure perturbations . To compare their attack efficacy, the Attack Agent evaluates each perturbation on the surrogate GNN using a confidence-drop score, defined as the reduction in confidence assigned to the class predicted on the clean graph:
where , and denotes the setting-specific graph transformation defined in Eqs. (1) and (2). A larger indicates a greater reduction in the surrogate confidence of the clean prediction.
The Attack Agent returns the resulting perturbations and their confidence-drop scores as its round output:
(9)
Textual feedback and iterative refinement. The Main Agent controls the refining optimization process by maintaining a context history and selecting each subsequent operation. This history records the planning and execution results from previous rounds, prior operation instructions, the current best perturbation and edit plan, and the remaining budget. Let denote the output returned by the agent invoked in round :
Given the current output and the preceding context history, the Main Agent selects the next operation:
The current output and selected operation are then incorporated into . When , the Planner Agent receives a planner-facing GAP context and the Main Agent's textual assessment of the current result as textual feedback:
The textual feedback provides a natural-language update direction for the primitive components, guiding the revision from to . When , the Attack
Agent executes an existing primitive and returns its outcome. When , optimization for the current target terminates. This Main-Agent-controlled adaptive decision process allocates fewer primitive rounds to easier targets and more rounds to harder ones, subject to the maximum round budget.
GAP-guided Perturbation Construction
GIA and GMA share the same GAP optimization process but use setting-specific perturbation construction. For each , the Attack Agent constructs the i-th executable text–structure perturbation from a fixed primitive by retrieving a setting-specific endpoint plan and generating its corresponding textual realization:
Here, specifies the retrieved endpoints, while denotes the generated textual realization. Guided by the same GAP, the two perturbations convey consistent semantics and maintain relational plausibility, resulting in improved attack stealthiness. Their setting-specific composition into is defined below.
Graph Injection Attack Realization. Under GIA, specifies the existing endpoints retrieved from , while contains the texts generated for the injected nodes. Together, they define the perturbation
where contains the instantiated nodes, denotes the corresponding generated node texts, and connects these nodes to the endpoints specified by . The attack is applied as , following the graph transformation in Eq. (1).
Graph Modification Attack Realization. Under GMA, specifies addition endpoints selected from and removal endpoints selected from the existing neighbors of , while is the generated rewrite of the target text. Together, they define the perturbation
where connects to the addition endpoints specified by , and removes its edges to the specified existing neighbors. The attack is applied as , following the graph transformation in Eq. (2).
Experiments
Experimental Setup
Datasets. We conduct experiments on four text-attributed graphs: Cora (McCallum et al. 2000), PubMed (Sen et al. 2008), OGBN-Arxiv (Hu et al. 2020), and a subset of OGBN-Products (Hu et al. 2020). More details and statistics of the datasets are provided in Appendix.
Victim Models and Baselines. We evaluate transfer attacks against three GraphLLMs: LLaGA (Chen et al. 2024), RGLM (Zhang et al. 2026), and TEA-GLM (Wang et al. 2024). We group the baselines according to their original attack settings. The native GIA baselines are G2A2C (Ju et al. 2023), WTGIA (Lei et al. 2024), and ATAG-LLM (Lyu et al. 2025), whereas the native GMA baselines are Nettack (Zügner, Akbarnejad, and Günnemann 2018), Mettack (Zügner and Günnemann 2019), PRBCD (Geisler et al. 2021), and BadGraph (Chen et al. 2026). See the appendix for model and baseline details.
Attack Settings. For GIA (Zou et al. 2021; Lei et al. 2024; Ma, Trivedi, and Koutra 2026), the attacker injects one textual node for each target and adds at most two incident edges. For GMA (Zhang et al. 2025; Chen et al. 2026), the attacker may make similarity-constrained revisions to the target text and add or remove at most two target-incident edges.
Evaluation metrics. We measure attack effectiveness by Attack Success Rate (ASR) over targets correctly classified on the clean graph (Zhang et al. 2025; Lyu et al. 2025), where higher ASR indicates stronger attacks. Attack stealthiness is measured by the relational plausibility of induced edges, scored from 1 to 6 by a post-hoc LLM using endpoint texts. Scores of 5–6 denote High plausibility, whose proportion increases with stealthiness; original graph relations serve as a reference. Full results for all plausibility levels are reported in the appendix.
Overall Attack Evaluation
Attack effectiveness. Table 1 shows that S-GAP achieves the highest ASR in all 24 cases, outperforming the strongest baseline by 12.78 and 1.25 percentage points on average under GMA and GIA, respectively. GMA is generally more effective because it directly modifies target nodes, whereas GIA is more practical but influences predictions indirectly through injected nodes. Baselines perform better in their native settings, suggesting limited adaptability across attack settings. In contrast, the unified GAP representation enables S-GAP to naturally adapt to both GIA and GMA, achieving consistently strong performance in both settings. Nettack, Mettack, PRBCD, and G2A2C mainly optimize structures or numerical features using GNN-oriented objectives, without explicitly modeling raw-text semantics. WTGIA, ATAG-LLM, and BadGraph incorporate textual information but depend on predefined features, similarity proxies, or fixed attack strategies, limiting the coordination between text and structure. In contrast, S-GAP directly models semantic attack intentions and uses execution feedback to jointly refine textual and structural perturbations, thereby avoiding reliance on numerical objectives or fixed proxies.
Attack stealthiness. Table 1 shows that S-GAP achieves the highest relational plausibility across all datasets and settings. Structure-oriented attacks such as Nettack, Mettack, and PRBCD generally exhibit low plausibility because their edge perturbations lack semantic constraints; for example, Nettack achieves strong GMA ASR on Cora but only 4.89% High-Plaus. Text-aware methods such as WTGIA, ATAG-
| Setting | Dataset | Metric/Model | Clean | Nettack | Mettack | PRBCD | G2A2C | WTGIA | ATAG-LLM | BadGraph | S-GAP |
|---|---|---|---|---|---|---|---|---|---|---|---|
| GIA | Cora | LLaGA | - | 3.01 | 3.01 | 3.01 | 1.72 | 2.37 | 1.94 | 3.23 | 6.02 |
| RGLM | - | 1.26 | 1.68 | 0.84 | 1.26 | 0.63 | 0.84 | 1.05 | 3.15 | ||
| TEA-GLM | - | 2.93 | 3.66 | 1.95 | 4.15 | 4.39 | 2.20 | 5.12 | 7.07 | ||
| High Plaus. | 66.88 | 2.40 | 0.20 | 2.41 | - | 4.25 | 2.86 | 0.18 | 69.43 | ||
| PubMed | LLaGA | - | 1.78 | 1.89 | 2.09 | 1.83 | 2.00 | 1.94 | 2.00 | 2.79 | |
| RGLM | - | 0.47 | 0.44 | 0.69 | 0.64 | 0.75 | 0.66 | 0.64 | 1.47 | ||
| TEA-GLM | - | 0.19 | 0.08 | 0.25 | 0.33 | 0.22 | 0.44 | 0.14 | 0.58 | ||
| High Plaus. | 87.12 | 2.10 | 2.92 | 4.03 | - | 6.80 | 2.40 | 1.30 | 61.19 | ||
| OGBN-Arxiv | LLaGA | - | 4.48 | 4.40 | 4.89 | 4.26 | 4.95 | 5.11 | 4.20 | 6.92 | |
| RGLM | - | 1.26 | 1.88 | 1.64 | 1.75 | 1.67 | 1.78 | 1.34 | 3.25 | ||
| TEA-GLM | - | 9.88 | 9.58 | 10.99 | 11.37 | 10.30 | 10.99 | 8.42 | 12.69 | ||
| High Plaus. | 63.90 | 0.00 | 3.20 | 0.25 | - | 0.70 | 1.30 | 0.00 | 67.57 | ||
| OGBN-Products | LLaGA | - | 2.17 | 2.09 | 2.14 | 2.62 | 3.10 | 3.72 | 2.19 | 4.07 | |
| RGLM | - | 0.29 | 0.18 | 0.29 | 0.34 | 0.84 | 1.05 | 0.18 | 2.04 | ||
| TEA-GLM | - | 3.59 | 2.94 | 3.74 | 4.09 | 3.78 | 3.19 | 3.47 | 5.53 | ||
| High Plaus. | 52.43 | 0.00 | 2.24 | 0.15 | - | 0.25 | 0.30 | 1.88 | 26.78 | ||
| GMA | Cora | LLaGA | - | 38.28 | 23.23 | 26.67 | 3.01 | 2.37 | 17.63 | 19.14 | 44.95 |
| RGLM | - | 28.36 | 10.71 | 22.48 | 1.89 | 0.63 | 9.45 | 21.22 | 49.16 | ||
| TEA-GLM | - | 10.24 | 9.76 | 9.51 | 1.71 | 4.39 | 6.59 | 21.95 | 50.73 | ||
| High Plaus. | 66.88 | 4.89 | 0.09 | 2.77 | - | 0.81 | 0.30 | 41.61 | 44.92 | ||
| PubMed | LLaGA | - | 27.34 | 1.80 | 13.28 | 3.33 | 4.23 | 7.98 | 26.30 | 49.01 | |
| RGLM | - | 8.06 | 0.42 | 5.01 | 0.94 | 1.75 | 2.02 | 29.42 | 47.76 | ||
| TEA-GLM | - | 0.92 | 0.08 | 0.92 | 0.14 | 0.44 | 0.56 | 42.50 | 56.89 | ||
| High Plaus. | 87.12 | 6.35 | 2.67 | 4.44 | - | 12.66 | 9.70 | 46.53 | 46.90 | ||
| OGBN-Arxiv | LLaGA | - | 9.73 | 4.62 | 13.32 | 5.30 | 9.53 | 6.68 | 20.25 | 25.19 | |
| RGLM | - | 3.23 | 1.72 | 5.51 | 1.75 | 2.96 | 2.82 | 21.54 | 23.45 | ||
| TEA-GLM | - | 11.34 | 9.49 | 13.49 | 9.94 | 12.93 | 11.07 | 15.63 | 30.33 | ||
| High Plaus. | 63.90 | 29.00 | 1.71 | 0.50 | - | 0.30 | 0.03 | 24.47 | 42.05 | ||
| OGBN-Products | LLaGA | - | 8.78 | 2.25 | 11.67 | 7.57 | 7.92 | 10.89 | 34.17 | 49.08 | |
| RGLM | - | 3.98 | 0.16 | 6.10 | 1.57 | 3.59 | 5.40 | 28.50 | 32.17 | ||
| TEA-GLM | - | 4.05 | 3.19 | 3.50 | 3.87 | 3.74 | 3.93 | 27.48 | 30.11 | ||
| High Plaus. | 52.43 | 4.48 | 1.48 | 0.15 | - | 0.42 | 0.00 | 22.56 | 35.30 |
Table 1: Overall attack effectiveness and relational plausibility under GIA and GMA. We report ASR (%) for attack effectiveness and High-Plaus. (%) for relational plausibility. Clean denotes original graph relations; bold indicates the best attack result.
LLM, and BadGraph achieve better plausibility by generating natural-language perturbations. However, their separately optimized text and structure or fixed influencer strategies limit semantic alignment. As low-plausibility relations may be ignored by GraphLLMs, we further examine their impact on attack effectiveness in the next subsection.
Robustness to Relational Plausibility Filtering
To determine whether attack success arises from plausible adversarial evidence or anomalous relational shortcuts, we apply a relational-plausibility filter that reverts edge perturbations assigned scores of 1–2 while retaining the textual perturbations. Several baselines degrade substantially on Cora, indicating reliance on semantically unjustified relations. In contrast, changes on PubMed are minor because low-plausibility relations are rare. S-GAP retains at least 85.0% of its ASR and remains the strongest attack after filtering, showing that its effectiveness primarily arises from plausible text–structure interactions. Its slight improvement under PubMed GMA further suggests that some implausible relations may even interfere with the attack. Complete plausibility-score distributions and victim-specific post-filtering results are provided in the appendix.
(a) GIA

(b) GMA
Figure 4: Victim-averaged proportions of successful attacks across confidence-drop score bins.
(a) GIA / Cora

(b) GIA / PubMed

(c) GMA / Cora

(d) GMA / PubMed

Figure 3: Victim-averaged ASR (%) before and after reverting edge perturbations assigned relational-plausibility scores of 1–2.
| Setting | Dataset | Variant | LLaGA | RGLM | TEA-GLM |
|---|---|---|---|---|---|
| GIA | Cora | w/o score | 2.58 | 1.05 | 3.66 |
| w/o GAP | 3.44 | 1.47 | 4.15 | ||
| w/o feedback | 3.66 | 1.26 | 6.83 | ||
| S-GAP | 6.02 | 3.15 | 7.07 | ||
| PubMed | w/o score | 2.09 | 0.80 | 0.22 | |
| w/o GAP | 2.17 | 1.02 | 0.28 | ||
| w/o feedback | 2.68 | 1.05 | 0.33 | ||
| S-GAP | 2.79 | 1.47 | 0.58 | ||
| GMA | Cora | w/o score | 30.32 | 25.00 | 33.66 |
| w/o GAP | 23.23 | 22.06 | 26.59 | ||
| w/o feedback | 27.31 | 28.15 | 31.71 | ||
| S-GAP | 44.95 | 49.16 | 50.73 | ||
| PubMed | w/o score | 25.96 | 17.92 | 25.71 | |
| w/o GAP | 22.44 | 19.89 | 27.65 | ||
| w/o feedback | 22.52 | 18.53 | 25.96 | ||
| S-GAP | 49.01 | 47.76 | 56.89 |
Table 2: Ablation of surrogate scoring, GAP, and textual feedback. Results are reported as ASR (%).
Quantitative Confidence-Drop Analysis
To examine whether the confidence-drop score identifies perturbations likely to succeed on target GraphLLMs, we group attacks by their final scores and measure the victim-averaged proportion of successful attacks in each bin. Figure 4 shows that higher scores generally correspond to larger success proportions. The relatively low proportions reflect the prediction gap between the surrogate model and target GraphLLMs, while the overall trend confirms that the score remains informative of attack success.
Ablation Studies
Effects of confidence-drop scoring, GAP, and feedback. We compare S-GAP with three variants: w/o score removes confidence-drop scoring from the Attack Agent, w/o GAP removes the GAP entirely and directly generates candidate attack entities from the target context, and w/o feedback removes textual feedback, with no refinement of GAPs. Table 2 shows that removing any component consistently reduces ASR. Under GMA, the victim-averaged ASR decreases by 18.62–28.88 percentage points. Under GIA, S-GAP also
| Dataset | Variant | LLaGA | RGLM | TEA-GLM |
|---|---|---|---|---|
| Cora | Text | 15.48 | 16.81 | 41.71 |
| Structure | 27.10 | 15.34 | 8.29 | |
| S-GAP | 44.95 | 49.16 | 50.73 | |
| PubMed | Text | 16.54 | 21.44 | 38.62 |
| Structure | 13.59 | 4.96 | 0.67 | |
| S-GAP | 49.01 | 47.76 | 56.89 |
Table 3: Comparison of S-GAP with variants using only textual or structural perturbations under GMA.
remains the best-performing configuration, although with smaller margins, demonstrating the benefit of the complete design under matched execution budgets.
Text–structure complementarity. Table 3 compares S-GAP with variants using only textual or structural perturbations under GMA. S-GAP achieves a victim-averaged ASR of 49.75%, compared with 25.10% and 11.66% for the two variants, respectively. These results demonstrate that the two perturbation modalities provide complementary attack signals and are more effective when used jointly.
Conclusion
We investigate vulnerabilities in GraphLLMs' joint reasoning over textual attributes and graph structure in TAGs. Existing attacks may underexpose these vulnerabilities because attack-intent fragmentation misaligns textual and structural perturbations, weakening stealth and effectiveness. We therefore propose GAP to unify attack intent and develop S-GAP to iteratively refine and realize GAPs through multi-agent planning, surrogate evaluation, and textual feedback. Across all 24 combinations of four datasets, three GraphLLMs, and two attack settings, S-GAP performs best in every case, outperforming the strongest baselines by on average while producing more relationally plausible perturbations.
Social Impact. This work reveals underexplored security risks in GraphLLMs arising from their joint reliance on text and graph structure. Our findings can support practical security evaluation and defense development for safer deployment in high-impact applications.
References
Chen, R.; Zhao, T.; Jaiswal, A.; Shah, N.; and Wang, Z. 2024. Llama: Large language and graph assistant. arXiv preprint arXiv:2402.08170.
Chen, Y.; Yang, H.; Zhang, Y.; Ma, K.; Liu, T.; Han, B.; and Cheng, J. 2022. Understanding and improving graph injection attack by promoting unnoticeability. arXiv preprint arXiv:2202.08057.
Chen, Z.; Wang, Y.; Jiao, P.; Wu, K.; Wang, X.; Ao, X.; and Zhang, D. 2026. Can LLMs Fool Graph Learning? Exploring Universal Adversarial Attacks on Text-Attributed Graphs. In Proceedings of the ACM Web Conference 2026.
Dai, E.; Zhao, T.; Zhu, H.; Xu, J.; Guo, Z.; Liu, H.; Tang, J.; and Wang, S. 2024. A comprehensive survey on trustworthy graph neural networks: Privacy, robustness, fairness, and explainability. Machine Intelligence Research, 21(6): 1011–1061.
Fan, B.; Guo, Z.; Li, X.; Zhou, Y.; Zhou, B.; Li, Z.; Li, R.-H.; and Wang, G. 2026. Unveiling the Vulnerability of Graph-LLMs: An Interpretable Multi-Dimensional Adversarial Attack on TAGs. In Proceedings of the ACM Web Conference 2026.
Fan, L.; Li, Q.; Liu, B.; Wu, X.-M.; Zhang, X.; Lv, F.; Lin, G.; Li, S.; Jin, T.; and Yang, K. 2022. Modeling user behavior with graph convolution for personalized product search. In Proceedings of the ACM Web Conference 2022.
Gao, Y.; Li, R.; Croxford, E.; Caskey, J.; Patterson, B. W.; Churpek, M.; Miller, T.; Dligach, D.; and Afshar, M. 2025. Leveraging medical knowledge graphs into large language models for diagnosis prediction: Design and application study. Jmir Ai, 4: e58670.
Geisler, S.; Schmidt, T.; Şirin, H.; Zügner, D.; Bojchevski, A.; and Günnemann, S. 2021. Robustness of graph neural networks at scale. Advances in Neural Information Processing Systems, 34: 7637–7649.
Hu, W.; Fey, M.; Zitnik, M.; Dong, Y.; Ren, H.; Liu, B.; Catasta, M.; and Leskovec, J. 2020. Open graph benchmark: Datasets for machine learning on graphs. Advances in neural information processing systems, 33: 22118–22133.
Ju, M.; Fan, Y.; Zhang, C.; and Ye, Y. 2023. Let graph be the go board: gradient-free node injection attack for graph neural networks via reinforcement learning. In Proceedings of the AAAI conference on artificial intelligence.
Lei, R.; Hu, Y.; Ren, Y.; and Wei, Z. 2024. Intruding with words: Towards understanding graph injection attacks at the text level. Advances in Neural Information Processing Systems, 37: 49214–49251.
Li, J.; Xie, T.; Chen, L.; Xie, F.; He, X.; and Zheng, Z. 2021. Adversarial attack on large scale graph. IEEE Transactions on Knowledge and Data Engineering, 35(1): 82–95.
Lyu, Y.; Li, C.; Zhang, X.; and Zhang, T. 2025. Navigating the Black Box: Leveraging LLMs for Effective Text-Level Graph Injection Attacks. arXiv preprint arXiv:2506.13276.
Ma, J.; Trivedi, P.; and Koutra, D. 2026. GRAPHTEX-TACK: A Realistic Black-Box Node Injection Attack on LLM-Enhanced GNNs. In Proceedings of the AAAI Conference on Artificial Intelligence.
McCallum, A. K.; Nigam, K.; Rennie, J.; and Seymore, K. 2000. Automating the construction of internet portals with machine learning. Information Retrieval, 3(2): 127–163.
Sen, P.; Namata, G.; Bilgic, M.; Getoor, L.; Gallagher, B.; and Eliassi-Rad, T. 2008. Collective classification in network data. AI magazine, 29(3): 93–106.
Sun, Y.; Wang, S.; Tang, X.; Hsieh, T.-Y.; and Honavar, V. 2020. Adversarial attacks on graph neural networks via node injections: A hierarchical reinforcement learning approach. In Proceedings of the web conference 2020.
Tang, J.; Yang, Y.; Wei, W.; Shi, L.; Su, L.; Cheng, S.; Yin, D.; and Huang, C. 2024. Graphgpt: Graph instruction tuning for large language models. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval.
Wang, D.; Zuo, Y.; Li, F.; and Wu, J. 2024. Llms as zero-shot graph learners: Alignment of gnn representations with llm token embeddings. Advances in neural information processing systems, 37: 5950–5973.
Xu, J.; Sun, Y.; Jiang, X.; Wang, Y.; Wang, C.; Lu, J.; and Yang, Y. 2022. Blindfolded attackers still threatening: Strict black-box adversarial attacks on graphs. In Proceedings of the AAAI Conference on Artificial Intelligence.
Ying, Y.; Jiang, W.; Zheng, T.; Wang, Y.; Liu, S.; Chen, K.; and Song, M. 2026. GraphScout: Empowering Large Language Models with Intrinsic Exploration Ability for Agentic Graph Reasoning. arXiv preprint arXiv:2603.01410.
Zhang, Q.; Sheng, X.; Sun, Y.; and Tan, Q. 2025. Trust-glm: Evaluating the robustness of graphllms against prompt, text, and structure attacks. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V. 2.
Zhang, Z.; Wang, X.; Zhang, M.; Tan, J.; and Shi, C. 2026. Toward graph-tokenizing large language models with reconstructive graph instruction tuning. In Proceedings of the ACM Web Conference 2026.
Zhao, M.; and Zhang, J. 2025. Highly imperceptible black-box graph injection attacks with reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence.
Zhong, L.; Wu, J.; Li, Q.; Peng, H.; and Wu, X. 2023. A comprehensive survey on automatic knowledge graph construction. ACM Computing Surveys, 56(4): 1–62.
Zou, X.; Zheng, Q.; Dong, Y.; Guan, X.; Kharlamov, E.; Lu, J.; and Tang, J. 2021. Tdgia: Effective injection attacks on graph neural networks. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining.
Zügner, D.; Akbarnejad, A.; and Günnemann, S. 2018. Adversarial attacks on neural networks for graph data. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining.
Zügner, D.; and Günnemann, S. 2019. Adversarial Attacks on Graph Neural Networks via Meta Learning. In International Conference on Learning Representations (ICLR).