Skip to content

Query-based and imperceptible graph injection attacks from a neighborhood perspectiveQuery-Based and Unnoticeable Graph Injection Attack from Neighborhood Perspective

arXiv· arXiv:2502.01936· Chang Liu, Hai Huang, Yujie Xing, Xingquan ZuoBeijing University of Posts and TelecommunicationsIndexed by this site · 3 days ago· Originally publishedAttacks

Quick read

Attacks

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

The authors propose QUGIA, a surrogate-free graph injection attack, and state that on six datasets it outperforms existing attacks against both undefended and defended GNNs.

Threat modelBlack-box, non-targeted, evasion graph injection attack: the attacker does not know the target model architecture or parameters and cannot modify model parameters, and lowers the overall classification accuracy on the test set by injecting malicious nodes; inductive setting, where test nodes are unseen during training.

Questions
Graph injection attacks (GIA) are more practical than graph modification attacks, but existing methods rely on surrogate models, leading to poor generalization, and often sacrifice attack effectiveness on undefended models in order to bypass homophily-based defenses.
Methods
QUGIA does not use a surrogate model: edge generation connects injected nodes from the perspective of the victim node's first-order neighbors, and feature generation uses a Bayesian framework (Dirichlet prior + categorical distribution sampling) to optimize the injected node features within a fixed perturbation budget K.
Experiments and results
On six datasets, three undefended GNNs (GCN/GAT/APPNP) and three defense models (Guard/EGuard/RGAT), the authors state that after the QUGIA attack the accuracy is lower than baselines such as TDGIA, AGIA and G2A2C, on average nearly 5% lower than AGIA.
Limitations and future work
The authors state that improving attack effectiveness against undefended models while maintaining homophily remains a challenge; the ablation and detailed configuration are in the supplementary material and are not given in the main text; the authors plan to release the code upon acceptance.
Experimental setupGCN、GAT et al. · Cora、Citeseer et al. · 攻击后测试集分类准确率(越低攻击越强)、节点相似度(同配性分布)
Evaluated models
GCNGATAPPNPGuardEGuardRGAT
Benchmarks
CoraCiteseerPubmedGRB-CoraGRB-CiteseerArxiv (OGB)
Metrics
攻击后测试集分类准确率(越低攻击越强)节点相似度(同配性分布)
AI summaryThe researchers propose QUGIA, a query-based and imperceptible graph injection attack method against graph neural networks (GNNs). QUGIA selects edges based on the connections of victim nodes and uses a Bayesian framework to generate node features, making injected nodes similar to the original graph and preserving homophily; it does not rely on a surrogate model, avoiding performance degradation and generalizing better. Experiments on six real-world datasets show that QUGIA achieves imperceptible attacks and outperforms state-of-the-art attack methods.

The researchers propose QUGIA, a query-based and imperceptible graph injection attack method against graph neural networks (GNNs). QUGIA selects edges based on the connections of victim nodes and uses a Bayesian framework to generate node features, making injected nodes similar to the original graph and preserving homophily; it does not rely on a surrogate model, avoiding performance degradation and generalizing better. Experiments on six real-world datasets show that QUGIA achieves imperceptible attacks and outperforms state-of-the-art attack methods.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    How to design a graph injection attack that does not rely on a surrogate model, is effective against undefended models, and can evade homophily defenses.

    Core question: how to design a surrogate-free graph injection attack that maintains attack effectiveness against undefended GNNs while evading detection by homophily-based defenses.

    • Setting and importance: the expansion of GNN applications has drawn attention to their robustness; graph modification attacks (GMA) require permission to modify existing data, which is difficult to carry out in practice, whereas graph injection attacks (GIA) are more practical by injecting malicious nodes (the authors' claim).
    • Shortcoming of existing methods one: the authors state that existing GIAs mostly rely on surrogate models to generate perturbed graphs, and structural differences and prior bias between the surrogate and target models weaken the attack's generalization ability.
    • Shortcoming of existing methods two: the authors observe that HAO sacrifices attack performance against undefended models to maintain homophily (no-free-lunch); query-based methods such as G2A2C reduce reliance on surrogates but remain susceptible to homophily-based defenses.
    • Paper's approach: proposes QUGIA (Query-based and Unnoticeable Graph Injection Attack), with edge generation based on the victim node's neighbor perspective and feature generation using a Bayesian framework, without using a surrogate model; the authors say code will be released upon acceptance.
    • Threat model:
      • Goal: untargeted attack, misclassifying as many nodes as possible in the test set within a given budget, reducing overall accuracy.
      • Knowledge: black-box, the attacker does not know the model architecture or parameters.
      • Capability: inject nodes (maximum number ∆, 1%/3%/5% of the original graph's nodes in experiments), with injected node degree constrained by the dataset's average degree; cannot modify model parameters (evasion attack).
      • Victim system and setting: semi-supervised node classification GNN, inductive setting, test nodes completely unseen during training.
  2. What related research exists?

    Related work is divided into three categories: the evolution of graph attacks, injection attack methods, and defenses; this paper positions itself as a query-based GIA that is surrogate-free and also accounts for stealth.

    Evolution of graph adversarial attacks

    • GMA (graph modification attack): Zügner et al. (2018), Zügner and Günnemann (2019), etc. degrade GNN performance by modifying node features and edges; the paper notes that GMA requires permission to modify existing data, which is difficult to implement in practice.
    • GIA (graph injection attack): Sun et al. (2020), Wang et al. (2020), Tao et al. (2021), Zou et al. (2021), Chen et al. (2022), etc. attack by injecting malicious nodes, which is more practical and flexible.

    Injection attack methods (detailed in Related Work)

    • NIPA (Sun et al., 2020) generates and injects a batch of random nodes; AFGSM (Wang et al., 2020) injects nodes using the fast gradient sign method to attack large-scale graphs; G-NIA (Tao et al., 2021) uses a neural network to generate new nodes and edges.
    • TDGIA (Zou et al., 2021) detects vulnerable nodes in the graph topology as attack targets and proposes smooth feature generation; AGIA (Chen et al., 2022) uses surrogate model gradients to optimize edge weights and injected node features.
    • HAO (Chen et al., 2022) is a plug-in method that uses node homophily ratio as a stealthiness constraint; the paper notes that all the above methods rely on surrogate models, and the discrepancy between surrogate and target may degrade attack performance.
    • G2A2C (Ju et al., 2023) models the attack as a Markov decision process and uses reinforcement learning to optimize the injection model; the paper notes that it does not consider attack stealthiness and still relies on a surrogate model.

    Defenses

    • Guard (Zhang and Zitnik, 2020) defends via edge pruning; the paper states that GIA disrupts the homophily of the original graph and can therefore be effectively resisted by homophily-based defenses.

    Baselines and benchmarks

    • Baseline methods: TDGIA, ATDGIA (a TDGIA variant), AGIA, and versions of the three combined with HAO, plus the query-based attack G2A2C (configured with the same maximum number of queries per node as the method in this paper).
    • Datasets: Cora, Citeseer (discrete features), Pubmed, GRB-Cora, GRB-Citeseer, Arxiv (continuous features).

    The authors position this paper as: a query-based attack framework that does not rely on specific model assumptions, balancing effectiveness on undefended models with stealthiness against homophily-based defenses, a problem they say has rarely been discussed in prior research.

  3. How does the paper address this problem?

    QUGIA edge generation and node generation: connecting edges from the neighbor perspective, with a Bayesian framework optimizing injected features within budget K.

    QUGIA uses no surrogate model at all and has two components, edge generation and node generation: each injection step first connects edges, then updates the injected node features via Bayesian optimization (Figure 1). The overall objective is min Latk(fθ(G′)), s.t. |G′−G| ≤ Δ, i.e., minimizing the attack loss within perturbation budget ∆.

    Edge generation

    • Neighbor perspective: unlike prior work that selects edges from a node-degree perspective (low-degree nodes are less robust), QUGIA generates edges from the perspective of the victim node's first-order neighbors, expanding the attack scope to u ∪ N(u); only first-order neighbors are considered because the authors believe influence between nodes decays with distance.
    • Edge connection method: let pu = N1(u) ∩ Vtest, and attack in descending order of |pu|; when attacking node u, connect the new node Xu′ to k nodes randomly selected from pu, ensuring Xu′ is always connected to Xu.
    • Remaining budget allocation: record triples (src, dst, score), where score is computed from the CW loss and represents the distance from dst to the decision boundary; after the attack, if edge budget remains, connect in ascending order of score with priority.

    Loss function

    • Uses the Carlini-Wagner (CW) loss with confidence parameter γ set to 0.05, keeping the attack as close to the decision boundary as possible; the full attack loss sums over all nodes in pu (Eq. 5).

    Node generation (Bayesian framework)

    • Search space compression: the feature update magnitude is defined as the distance from the feature value to the boundary value, and continuous features are replaced by discrete finite values: Xu′ = sX̃u + (1 − s)Xu, where s ∈ {0,1}^(1×d) indicates which dimensions are flipped, and X̃u takes min(X) or max(X) according to whether Xu is greater or less than the mean (Eq. 6).
    • Fixed perturbation budget K: each injected node modifies only K feature dimensions; initialize Xu′ = Xu and randomly set K positions to 1.
    • Exploration-exploitation trade-off: a power decay strategy λt = A · Bt controls the exploration rate at round t, where A controls the initial exploration degree and B controls the decay speed.
    • Bayesian update: a categorical distribution models the influence of each feature dimension, with a Dirichlet distribution as prior (uniform prior with αi = 1); Eq. (8) explores unknown perturbation combinations and Eq. (9) exploits known combinations, the posterior concentration parameters are updated from observations (Eq. 11–14), and θ is approximated by the Dirichlet posterior expectation.
    • Sample retention: at round t a candidate s(t) is generated, and the new sample is kept only if the new loss is smaller; otherwise the previous round's sample is kept (Eq. 15).

    Execution flow

    • Algorithm 1: each injection step first sorts and selects victim nodes by |p| and connects edges (lines 2–3), then iteratively optimizes features (lines 4–17), updates structural information after injection (line 18), and allocates the remaining edge budget after the node budget is exhausted (line 20).
    • Inputs include the graph G, the target node set, node budget ∆n, edge budget ∆e, maximum iterations T, Dirichlet parameters, etc.; the main text does not give specific values for T, A, B.
  4. What experiments did the paper conduct?

    Six datasets, six GNNs, comparison against seven baselines; after the QUGIA attack, the accuracy is the lowest in the table under every setting.

    Experimental setup

    • Models evaluated: undefended models GCN, GAT, APPNP; defense models Guard, EGuard, RGAT (following the choices of Chen et al., 2022).
    • Datasets: discrete-feature Cora, Citeseer; continuous-feature Pubmed, GRB-Cora, GRB-Citeseer, Arxiv (OGB); data splits follow prior work, with scale details in the supplementary material.
    • Baselines: TDGIA, TDGIA+HAO, ATDGIA, ATDGIA+HAO, AGIA, AGIA+HAO, G2A2C; for gradient-based methods the surrogate model has the same architecture as the victim model, with fixed random seed 666; G2A2C is configured with the same maximum number of queries per node as this paper's method.
    • Attack budget: number of injected nodes |VI| = a|V|, with a taking 1%, 3%, 5%; the maximum degree of injected nodes does not exceed the average degree of the corresponding dataset.
    • Metric and protocol: classification accuracy on the test set after the attack, where lower means a stronger attack; each method is run with 5 random seeds, reporting mean and variance; undefended results are averaged over GCN/GAT/APPNP, and defended results are averaged over Guard/EGuard/RGAT.

    Main results

    According to Table 1 (undefended) and Table 2 (defended), the post-attack accuracy of QUGIA and the main baselines on each dataset at a=0.05 (lower is better):

    Swipe horizontally to read the table

    DatasetSettingTDGIATDGIA+HAOAGIAAGIA+HAOG2A2CQUGIA
    CoraUndefended0.8990.9290.9200.9230.9530.815
    CoraDefended0.9840.9090.9810.9100.9820.818
    CiteseerUndefended0.9470.9850.9380.9500.9650.835
    CiteseerDefended0.9940.9750.9920.9420.9970.839
    GRB-CoraUndefended0.8740.9290.8600.8770.8970.765
    GRB-CoraDefended0.9890.9020.9870.8280.9040.742
    PubmedUndefended0.9500.9650.9240.9510.9740.820
    ArxivDefended0.9890.9090.9900.8560.8730.765

    (The ATDGIA and ATDGIA+HAO columns and the a=0.01, 0.03 rows are omitted; QUGIA is the lowest value in all dataset × a combinations in Table 1 and Table 2.)

    • The authors state that QUGIA is on average nearly 5% lower than AGIA on undefended models and 10% lower in the best case; on defended models it is at most 10% lower than AGIA+HAO.
    • The authors state that methods with HAO are generally worse on undefended models and better on defended models, indicating that HAO sacrifices attack effectiveness for homophily; QUGIA implicitly maintains homophily and remains effective under both settings.
    • The authors observe that APPNP shows unexpected robustness to GIA attacks (consistent with Zhang et al., 2023), and suggest this may stem from its residual connections preserving original feature information.

    Homophily analysis (Figure 2)

    • What was measured: on Cora and GRB-Citeseer, with a=0.03 and seed 0, the node similarity distributions (cosine similarity between node features and neighbor-aggregated features) of QUGIA and TDGIA+HAO were compared.
    • Results: the authors state that without HAO, TDGIA's perturbed-graph similarity distribution deviates from the clean graph, and adding HAO reduces the deviation; QUGIA likewise makes the distribution closer to the original graph, moving a small number of nodes with similarity around 0.9 to around 0.7 on GRB-Citeseer.
    • Authors' interpretation: this shift is less likely to be detected by homophily defenses; HAO performs worse on discrete-feature datasets, which the authors suggest may be because it relies on surrogate model gradients.

    Other ablations and analyses

    • Gradient-based methods show decreased performance on defended models after removing the HAO module (reported by the authors, without separate table numbers).
    • The authors state that gradient methods perform poorly on discrete data because gradients are better suited to optimizing continuous features.
    • The authors state that G2A2C focuses on single-node attacks and struggles to allocate the attack budget effectively across multiple nodes, resulting in weaker performance.
    • The ablation experiments, per-model detailed results for Tables 1 and 2, and sensitivity analysis are all in the supplementary material and are not given in the main text.
  5. What are some points that can be further explored?

    The authors state that balancing homophily protection and attack effectiveness remains a challenge, and state that they will explore effective GIA attack and defense mechanisms.

    Limitations and future directions noted by the authors

    • The authors state that "improving the performance of attack methods on undefended models while maintaining homophily remains a challenge" (end of Section 4.5 Homophily Analysis).
    • The authors state that "different models have different robustness to GIA attacks, and exploring effective GIA attacks and defense mechanisms remains an important research direction" (Section 4.4).
    • The authors plan to "release the code upon paper acceptance" (abstract), i.e., the code was not yet public at the time of publication.

    Experimental coverage

    • 6 models tested: undefended GCN, GAT, APPNP, and defended Guard, EGuard, RGAT; the main table results are the averages of each of the three model groups, with per-model results in the supplementary material (Sections 4.3, 4.6).
    • 6 datasets: Cora, Citeseer (discrete features), Pubmed, GRB-Cora, GRB-Citeseer, Arxiv (continuous features); node classification task, inductive setting (Sections 4.1, 2.2).
    • Attack budget a takes three levels: 1%, 3%, 5%; the maximum degree of injected nodes is constrained by the dataset's average degree; each method is run with 5 random seeds (Section 4.3).
    • The homophily analysis is conducted only on Cora and GRB-Citeseer, a=0.03, fixed seed 0, with TDGIA+HAO as the comparison (Section 4.5).
    • The paper does not report in the main text the number of queries, iteration budget T, values of hyperparameters A/B/K, or runtime of QUGIA; ablation and sensitivity analyses are in the supplementary material (Section 4.6).
  6. Summarize the main content of the paper

    QUGIA: a surrogate-free query-based graph injection attack, with neighbor-perspective edge connection and Bayesian feature optimization, outperforming baselines on six datasets.

    A graph injection attack (GIA) paper that proposes QUGIA to address two problems: existing methods rely on surrogate models, and bypassing homophily defenses sacrifices attack effectiveness against undefended models.

    • Method: edge generation connects injected nodes into the graph from the perspective of the victim node's first-order neighbors, with the attack scope covering u ∪ N(u); feature generation uses a Bayesian framework (Dirichlet prior + categorical distribution sampling, power-decay exploration rate), each injected node modifies only K feature dimensions, and the CW loss has γ=0.05; no surrogate model or gradients are used throughout.
    • Threat model: black-box, non-targeted, evasion, inductive node classification; the number of injected nodes is 1%/3%/5% of the original graph.
    • Main results: on six datasets, against GCN/GAT/APPNP (undefended) and Guard/EGuard/RGAT (defended), the accuracy after the QUGIA attack is the lowest across all combinations in Table 1 and Table 2; e.g., on GRB-Cora with a=0.05, undefended is 0.765 and defended is 0.742, while the lowest baselines are 0.849 (ATDGIA) and 0.819 (ATDGIA+HAO), respectively.
    • The authors state: QUGIA is on average nearly 5% lower than AGIA and at most 10% lower than AGIA+HAO; HAO-type methods perform worse on undefended models and better on defended models, whereas QUGIA balances both settings.
    • Homophily analysis: the authors state that QUGIA makes the node similarity distribution of the perturbed graph closer to that of the original graph, making it harder to detect by homophily defenses.
    • Conclusion and implications: the authors believe that the neighbor perspective plus Bayesian feature generation can achieve both attack effectiveness and stealth without a surrogate; they also acknowledge that balancing homophily protection and attack effectiveness remains a challenge, and plan to release the code upon acceptance.

Related papers

Show 3 more papers
Read originalarxiv.org