Source-linked AI summary

Efficient, Direct, and Restricted Black-Box Graph Evasion Attacks to Any-Layer Graph Neural Networks via Influence Function

Binghui Wang, Tianxiang Zhou, Minhua Lin, Pan Zhou, Ang Li, Meng Pang, Hai Li, Yiran Chen

arXiv:2009.00203v3cs.CRcs.LG

TL;DR

Graph evasion attacks can exploit small graph-structure changes to fool trained GNNs, while existing methods may be inefficient, limited to two-layer models, or require model parameters. This paper uses influence functions connected to label propagation to attack any-layer GNNs without internal model information, and reports comparable white-box performance with a 5–50x speedup on two-layer GCNs.

  • Problem

    Existing GNN evasion attacks may be inefficient, limited to two-layer models, or require access to model parameters.

    Source: §1 · pp. 1–2
  • Method

    The attack connects GNN feature-label influence with label influence on label propagation and computes the latter with an efficient algorithm.

    Source: §1 · p. 2
  • Results

    The attack achieves comparable performance to state-of-the-art white-box attacks and a 5–50x speedup on two-layer GCNs, and is effective on multi-layer GNNs.

    Source: §7 · p. 8
  • Takeaways & Limitations

    The influence-based formulation applies to any-layer GNNs without internal model information beyond the target node’s neighboring information.

    Source: §1 · p. 2

    Exact label-influence calculation can be computationally costly when the candidate set or number of recalculated edge weights is large, motivating an approximate algorithm.

    Source: §4.3 · p. 5

Abstract

from arXiv · show

Graph neural network (GNN), the mainstream method to learn on graph data, is vulnerable to graph evasion attacks, where an attacker slightly perturbing the graph structure can fool trained GNN models. Existing work has at least one of the following drawbacks: 1) limited to directly attack two-layer GNNs; 2) inefficient; and 3) impractical, as they need to know full or part of GNN model parameters. We address the above drawbacks and propose an influence-based \emph{efficient, direct, and restricted black-box} evasion attack to \emph{any-layer} GNNs. Specifically, we first introduce two influence functions, i.e., feature-label influence and label influence, that are defined on GNNs and label propagation (LP), respectively. Then we observe that GNNs and LP are strongly connected in terms of our defined influences. Based on this, we can then reformulate the evasion attack to GNNs as calculating label influence on LP, which is \emph{inherently} applicable to any-layer GNNs, while no need to know information about the internal GNN model. Finally, we propose an efficient algorithm to calculate label influence. Experimental results on various graph datasets show that, compared to state-of-the-art white-box attacks, our attack can achieve comparable attack performance, but has a 5-50x speedup when attacking two-layer GNNs. Moreover, our attack is effective to attack multi-layer GNNs\footnote{Source code and full version is in the link: \url{https://github.com/ventr1c/InfAttack}}.

1 INTRODUCTION

The paper targets limitations in graph evasion attacks: many rely on model parameters, focus on two-layer GNNs, or are computationally intensive. It uses influence functions and their connection to label propagation to develop an efficient attack applicable to any-layer GNNs.

1 INTRODUCTION

  • Existing optimization-based attacks can require GNN parameters, target only two-layer models, and incur intensive computation.For multi-layer targets, they often attack a surrogate two-layer model and transfer the attack; the authors describe this strategy as insufficiently effective.Source: §1 · p. 2
  • The influence-based attack is designed for any-layer GNNs without internal model information beyond the target node’s neighbors.The authors report comparable performance to state-of-the-art white-box attacks, with a 5–50x speedup on two-layer GCN/SGC and effective attacks on multi-layer models.Source: §1 · p. 2
  • On Cora, four-edge perturbations achieved 93% attack success versus 80% for the surrogate-model attack.The paper also reports comparable performance to state-of-the-art white-box attacks and a 5–50x speedup against two-layer GCN/SGC.Source: §1 · p. 2

2 RELATED WORK

  • Related work distinguishes targeted evasion, which aims for a specified target label, from untargeted evasion, which aims for any different label.Nettack is described as a targeted attack against two-layer GCNs; existing black-box attacks are also noted, while this paper’s attack requires only the target node’s neighbors.Source: §2 · p. 2

3 BACKGROUND AND PROBLEM DEFINITION

The paper considers node classification with GCN and SGC and contrasts their feature-propagation process with label propagation. It defines a direct targeted evasion setting in which an attacker changes only edges incident to the target node.

3 BACKGROUND AND PROBLEM DEFINITION

  • GCN and SGC are considered for node classification, with SGC described as a linearized version of GCN.The GNN takes the graph and labeled nodes as input and predicts labels for unlabeled nodes.Source: §3 · p. 3
  • Label propagation iteratively spreads labels to unlabeled nodes based on node-pair similarity, such as graph connectivity.The passage describes LP as a semi-supervised node-classification method without training.Source: §3 · p. 3
  • A direct targeted attack changes at most Δ edges incident to the target node to make a trained GNN predict a specified target label.The attacker may add or delete edges between the target node and other nodes, but cannot change edges among other nodes.Source: §3 · p. 3
  • Both LP and GNNs use iterative propagation, but LP propagates labels without model parameters while GNNs propagate features using layer-specific parameter matrices.The text contrasts LP with GNN feature propagation and notes that Nettack is inefficient, requires model parameters, and is limited to two-layer GNNs.Source: §3 · p. 3

4 INFLUENCE-BASED EVASION ATTACK

The attack uses an influence equivalence between GNNs and label propagation (LP) to recast targeted evasion as computing label influence on LP. This makes the approach applicable to any-layer GNNs without requiring model parameters, with an efficient approximation for costly influence calculations.

4.1.1 Motivation.

  • LP’s iterative process motivates the approach because it resembles GNN propagation while avoiding model parameters; the paper considers targeted attacks for simplicity.The authors define label influence on LP and feature-label influence on GNNs to connect the two processes.Source: §4.1.1 · pp. 3–4

4.1.2 Influence function.

  • For GCNs and SGCs, feature-label influence equals LP label influence up to a constant multiplier, linking node-label changes to GNN outputs.The two influences describe how perturbing a node’s input changes another node’s output.Source: §4.1.2 · p. 4

4.2 Reformulate Evasion Attacks to Any-Layer GNNs as Calculating Label Influence on LP

  • Theorem 4.2 reformulates the attack objective as label influence on LP, under an assumption that non-target-label nodes within K hops have negligible feature-label influence.The reformulation applies to any-layer GNNs and needs only the target’s K-hop neighbors and their labels, which may be estimated by querying the model.Source: §4.2 · pp. 4–5

4.3 Efficient Calculation of Label Influence

  • The attack selects candidate edges by iteratively choosing the change that yields the largest positive gap between label-influence terms, up to the perturbation budget.It considers adding edges to target-label nodes and removing edges to nodes with the target node’s label.Source: §4.3 · p. 5
  • Exact label-influence calculation can be costly because changing an edge requires recalculating normalized weights along affected paths, so the authors propose an approximation.The cost concern arises with large candidate sets or many edge weights to recalculate.Source: §4.3 · p. 5

5 EVALUATION

The evaluation compares the influence-based attack with Nettack on benchmark graphs, then tests its effectiveness and efficiency against multi-layer GNNs and its transferability to other architectures.

5.2 Results on Attacking Two-layer GNNs

  • 5-50x speedup over Nettack across three graphs accompanies comparable attack performance, with slightly lower success at budgets below 4 and nearly the same performance above 4.Figure 1 compares attack success rates and Figure 2 compares running times across attack budgets on three graphs.Source: §5.2 · p. 6, Figure 1 · p. 6, Figure 2 · p. 6
  • 1-2 orders of magnitude greater efficiency accompanies an attack-success-rate difference below 2% between approximate and exact label influence.The authors report similar performance for approximate- and exact-influence attacks across all cases.Source: §5.2 · pp. 5–6
  • Less than 2% separates Ours-KL and Ours-UL in attack success rate, and their running times are almost the same.The authors attribute the similar estimated and true labels to accurate GNN predictions on unlabeled nodes.Source: §5.2 · p. 6
  • More than 0.5 of generated attack edges are added edges in all cases; the authors suggest adding target-label connections may be more effective than removing same-label connections.Figure 3 tracks the added-edge fraction against attack budget.Source: §5.2 · p. 6, Figure 3 · p. 6
  • Lower-degree and higher-centrality target nodes are easier to attack, while attack success shows no obvious relationship with graph size.At budget 4, all target nodes of degree ≤ 4 succeed; success rates for the largest- and smallest-centrality groups also differ across the reported GNNs.Source: §5.2 · p. 7

5.3 Results on Attacking Multi-layer GNNs

  • At attack budget 6, our attacks achieve ≥90% success in all four-layer GCN/SGC cases and exceed surrogate attacks by more than 10% in almost all cases.Figure 4 reports attack success rate and running time for four-layer GCN across the three graphs.Source: §5.3 · p. 7, Figure 4 · p. 7
  • Less than 25 s per target node on Pubmed contrasts with about 85 s for the surrogate model in the four-layer experiments.These are average running times across the reported cases.Source: §5.3 · p. 7
  • At attack budget 6, attacks transfer to GAT and JK-Net, increasing classification errors by at least 60% on all three graphs.Transfer is strongest between GCN and SGC, which the authors describe as sharing similar architectures.Source: §5.3 · p. 7, Table 1 · p. 7

6 DISCUSSIONS

The discussion compares the attack with large-graph, white-box, and black-box baselines, and examines a randomized-smoothing defense. Results include high attack success on OGB-arxiv and advantages over alternative attacks, while the tested defense cannot cover larger budgets.

Comparing with more attack baselines

  • At budget 2, IG-FGSM's success rates are 0.29 against GCN and 0.32 against SGC, versus Nettack's 0.85 and 0.65; our method runs in 0.1s.The reported IG-FGSM runtimes are 62s against GCN and 55s against SGC; Nettack takes 1.5s and 2.5s, respectively.Source: Table 3 · p. 8, §6 · p. 8

Comparing with black-box attacks

  • Against black-box attack [39], our method is more effective on Cora and Citeseer, especially at small budgets; [39] could not run on Pubmed due to limited GPU memory.The comparison allows [39] an unrestricted number of queries to estimate its best success rate for each budget.Source: Table 4 · p. 8, §6 · p. 8

Attack performance on a large-scale dataset

  • On OGB-arxiv, Ours-KL achieves 73% attack success against GCN and 95% against SGC at budget 6, while Nettack runs out of memory.The study uses 100 correctly classified test nodes; Nettack's OOM is attributed to dense model weights and intensive matrix-matrix multiplication.Source: §6 · pp. 7–8

Defending against our attack

  • At four modified edges, defense [38] achieves certified accuracy of about 0.50, 0.55, and 0.70 on the three datasets, but cannot certify robustness above 13 edges.Certified accuracy measures the fraction of target nodes predicted accurately under any modification of the specified number of edges.Source: Figure 5 · p. 8, §6 · p. 8

7 CONCLUSION

The conclusion presents an influence-based attack that translates GNN evasion into label-influence calculation on label propagation. It reports comparable performance to white-box attacks, a 5–50x speedup on two-layer GCNs, and effectiveness on multi-layer GNNs.

7 CONCLUSION

  • The attack connects GNN feature-label influence to label influence on label propagation, then uses an efficient algorithm to calculate label influence.It applies to any-layer GNNs without requiring knowledge of internal model parameters.Source: §7 · p. 8
  • The attack achieves comparable performance to state-of-the-art white-box attacks and a 5–50x speedup against two-layer GCNs.Source: §7 · p. 8
  • The authors report that the attack is effective on multi-layer GNNs and transferable to other GNNs.Source: §7 · p. 8

Ethical considerations

  • The authors describe potential misuse for evading malicious-user detection, while noting the work may inspire more robust GNNs.They state that datasets and code are publicly available and that the work is mainly for research purposes.Source: §7 · p. 9

Algorithm 2 (Label) influence-based targeted evasion attack

Algorithm 2 takes an adjacency matrix, target node and label, layer count, and attack budget, and returns whether the target is successfully attacked. It selects candidate nodes and iteratively uses label influence to guide edge changes.

Algorithm 2 (Label) influence-based targeted evasion attack

Proof of Theorem 4.1

The proof uses the similarity between GCN and label-propagation iterations to relate their influence quantities. It focuses on GCN, noting that the proof also applies to SGC.

Proof of Theorem 4.1

  • The proof focuses on GCN because SGC is a special case, and it derives feature-label influence from Lemma 1's Equation (8).Source: Proof of Theorem 4.1 · p. 10
  • GCN and LP have similar iteration processes, except that LP has no model parameters, which are constant for a trained GCN.Source: Proof of Theorem 4.1 · p. 10
  • The proof establishes a relationship between feature-label influence in GNNs and label influence in LP.Source: Proof of Theorem 4.1 · p. 10

Proof of Theorem 4.2

The proof rewrites the attack objective in terms of label influence, using the relationship between label influence and feature-label influence.

Efficient Label Influence Calculation

The calculation isolates paths affected by each candidate edge, separating clean-graph influence from edge-specific influence in local neighborhoods.

EXAMPLE OF CALCULATING INFLUENCE

A K=2 example traces how adding or deleting a candidate edge changes the paths used to calculate label influence and compares approximate values with exact ones.

EXAMPLE OF CALCULATING INFLUENCE

  • In the example, target v has label y_v, with three candidate additions and two candidate deletions on the illustrated graph.The example uses K=2 and two node classes.Source: EXAMPLE OF CALCULATING INFLUENCE · p. 12

Adding an edge.

  • The exact total influence for adding edge (v,u7) is −0.2766; the approximate constant and edge-specific terms are close to their exact values.The approximate values are −0.3032 versus exact −0.3102, and 0.0299 versus exact 0.0336.Source: Adding an edge · p. 13
  • The addition calculation ignores the degree change at u7 but accounts for the target’s degree increasing by one.Source: Adding an edge · p. 13

Deleting an edge.

  • The deletion approximation ignores the degree change at u3 while accounting for the target’s degree decreasing by one.Source: Deleting an edge · p. 13
  • For deleting edge (v,u3), the approximate constant and edge-specific influences are close to the exact values.The respective pairs are −0.5304 versus −0.5423 and −0.2656 versus −0.2860.Source: Deleting an edge · p. 13

More Experimental Results

Additional experiments validate the same-label influence assumption and describe attack success, runtime, edge composition, transferability, and cross-attack comparisons.

  • More than 80% of total influence comes from nodes sharing the target’s label across three datasets, validating Assumption 1 in the tested settings.The analysis covers 100 targets per dataset and K=2, 3, and 4; Table 6 reports the fractions.Source: More Experimental Results · p. 13, Table 6 · p. 14
  • Figures 7 and 8 compare attack success rate and running time against attack budget per target for two-layer SGC on three graphs.Source: Figure 7 · p. 14, Figure 8 · p. 14
  • Figure 9 reports the fraction of added edges for attacks against two-layer GCN and SGC as the per-target budget varies.Source: Figure 9 · p. 14
  • Figure 10 reports attack success rate and running time for attacks against four-layer SGC on three graphs.Source: Figure 10 · p. 15
  • Tables 7–9 cover transferability to other GNNs and comparisons with IG-FGSM [42] and a black-box attack [39].Table 7 specifies a budget of 6 for transferability experiments.Source: Table 7 · p. 15, Table 8 · p. 15, Table 9 · p. 15
Loading 2009.00203v3…