Manuscript Offprint

arXiv:2610.38127

A Separation Principle for Adversarial Attacks and Defense of Graph Neural Networks

Farid Mafi, Saber Jafarpour, Mohammad Pirani

Abstract

Adversarial attacks on graph neural networks (GNNs) have been studied as a model-centric optimization problem driven by gradients, learned policies, or meta-learning, with the graph treated as a passive substrate. This view overlooks a defining feature of GNNs: their predictions are produced by structured message passing along the graph, so their adversarial vulnerabilities are encoded as much in the geometry of the graph as in the learned weights. We develop a structure-driven framework for feature attacks in which the attack is derived from the spectral properties of the normalized adjacency operator. Its central result is a separation principle: under a natural relaxation of the attack objective, the optimal feature perturbation is rank one and factorizes into a graph-dependent component (degree-proportional spatial allocation, depending only on the graph) and a weight-dependent component (top singular vector of the composed weights, depending only on the weights). Node degree thus emerges as the fundamental graph quantity governing adversarial vulnerability to feature perturbations. The resulting attack, which we call SepAttack, requires no gradient computation, carries analytical guarantees, achieves competitive or superior performance against established baselines such as Nettack and IG-Attack with up to ~70× speedup in the targeted setting, and transfers near-perfectly across architectures on continuous-feature graphs because its graph-dependent component is architecture-invariant by construction. We further derive a separation-principle adversarial training procedure (SepAT) directly from the closed-form worst-case attack and report robustness gains on binary-feature benchmarks.

1 Introduction

Adversarial attacks on graph neural networks (GNNs) have been studied as a model-centric optimization problem: gradient procedures Zügner et al. [2018], Xu et al. [2019], Wu et al. [2019], reinforcement-learning policies Dai et al. [2018], Ju et al. [2023], meta-learning objectives Zügner and Günnemann [2019], and learned heuristics Zou et al. [2021], Chen et al. [2022] all attack the model, with the graph treated as fixed background. But a GNN's prediction is shaped by message passing along the graph as much as by the learned weights, so adversarial vulnerability cannot be a property of the model alone. How do the graph and the model combine at the adversarial optimum? Existing work analyzes one side at a time (spectral structure on the defense side, gradients on the attack side) or treats the interaction empirically. No closed-form principle has been articulated for how the two combine. This paper identifies one.

We call it the separation principle. Under the canonical feature-attack objective on an L-layer linearized GCN, the graph and the model contribute to the optimal perturbation independently and combine multiplicatively. The graph contributes a spatial allocation that depends only on its degree distribution, so higher-degree nodes receive proportionally larger perturbations regardless of model. The model contributes a single feature direction that depends only on its weights: the top singular vector of the composed weight matrix, regardless of graph. Neither contribution alone produces an effective attack; their product is the optimum (Theorem 1). The principle has three constructive implications: the optimal attack admits a closed-form algorithm from a single eigendecomposition; attacks transfer across architectures to the extent that w1w_1 is shared; and adversarial training reduces to enforcing output stability along a single analytically known direction.

We confirm this on standard citation networks. SepAttack dominates Nettack Zügner et al. [2018] and IG-Attack Wu et al. [2019] across all 20 targeted-evaluation cells on Cora and CiteSeer at up to ∼70×\sim70\times the speed of Nettack with zero gradient computation; on continuous-feature graphs it transfers at 97–104% efficiency to GAT, GraphSAGE, APPNP, and JKNet without adaptation; and the principle-derived adversarial training procedure SepAT (Section 5) recovers a substantial fraction of the accuracy lost to SepAttack on Cora and CiteSeer (Section 6.4). An ablation (Appendix F) tests the principle's distinctive claim: randomizing either factor reduces attack damage by 4−5×4-5\times on continuous-feature graphs and to the random baseline on binary-feature graphs, confirming both factors are jointly necessary.

Contributions. (1) The separation principle (Theorem 1); (2) the closed-form gradient-free attack SepAttack and its cross-architecture transfer (Sections 4–6.3); and (3) principle-derived bilateral adversarial training SepAT (Section 5).

References (56)