Manuscript Offprint
arXiv:2610.38127A Separation Principle for Adversarial Attacks and Defense of Graph Neural Networks
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 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 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 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).
3 Problem Formulation
3.1 Preliminaries
Let be a graph with node features (an attributed graph), where is the set of nodes, is the set of edges, and is a weight function. The (possibly weighted) adjacency matrix is defined as
The framework allows arbitrary non-negative edge weights; the citation networks used throughout our experiments (Cora, CiteSeer, PubMed) have binary entries, but no step in the derivation exploits binarity of . We define the node feature matrix as a stack of node-feature row vectors:
where the row is the -dimensional feature vector associated with node . Let denote the adjacency with added self-loops and the corresponding degree matrix; the (symmetric) normalized adjacency, denoted as , is defined as .
The Graph Convolutional Network (GCN), introduced in Kipf [2016], is one of the most popular and widely used GNN architectures. The layer-wise propagation rule of an -layer GCN is, for ,
where collects the node representations at layer , is the trainable weight matrix at layer , and is a component-wise non-linear activation. We adopt the standard GCN convention of omitting an additive bias term in (1); including a bias does not alter any of the spectral derivations that follow, since the bias cancels in the linearized residual of Section 4. The final node-classification output of an -layer GCN is
\mathbf{Z} = f_\theta(\mathbf{A},\mathbf{X}) = \mathrm{softmax}\!\left(\hat{\mathbf{A}}\,\sigma\!\left(\hat{\mathbf{A}}\,\sigma\!\left(\cdots\hat{\mathbf{A}}\,\mathbf{X}\,\mathbf{W}^{(0)}\right)\right)\mathbf{W}^{(1)}\right)\cdots\mathbf{W}^{(L-1)}\right). \tag{2}For the sake of generality we present all of the analysis below for an arbitrary number of layers . In practice, two-layer GCNs () are the most commonly used variant, as deeper GCNs tend to suffer from over-smoothing Li et al. [2018], Oono and Suzuki [2019] (see Appendix B for a detailed justification); this is also the architecture we use for the experiments of Section 6.
3.2 Threat Model and Residual Analysis
In this work, we focus on feature perturbations and develop a closed-form spectral characterization of the worst-case feature attack in Section 4.
We model a feature attack as an additive perturbation with . Its effect on the model is captured by the feature residual at the output layer, defined as the difference between the -th layer representation of the perturbed input and that of the clean input:
Intuitively, measures how much the attack shifts the pre-classification embedding, and therefore directly drives the change in the downstream classification loss. The worst-case feature attack on a binary-feature graph maximizes this residual under a feature-flip budget, which gives:
The residual is taken before the softmax of (2), i.e., on the pre-classification logits rather than on the post-softmax probabilities . Since the softmax is monotone in the logit gap, working with logit residuals is equivalent for our purposes (it preserves the argmax decision and the ranking of perturbations) and matches the canonical choice of prior work Zügner et al. [2018], Wu et al. [2019].
Problem 1 (Worst-case feature attack on a nonlinear GCN). Given an -layer GCN with nonlinear forward map defined by (2), a clean binary feature matrix , and a total flip budget , find
The combined constraint together with implies : at each entry, only feasible flips or are allowed. While we defined Problem 1 for binary-feature graphs, for continuous-feature graphs (e.g., Cora-ML and PubMed), this formulation can be adapted by replacing the -norm with the Frobenius norm to measure the budget. Problem 1 is the worst-case feature attack as the adversary actually faces it: the residual depends nonlinearly on through the ReLU activations of , and the feasible set is combinatorial. Solving it exactly is therefore intractable; existing attacks Zügner et al. [2018], Wu et al. [2019], Xu et al. [2019] accordingly approach it via gradient-based heuristics or greedy procedures. We take a different route in Section 4, where we define a tractable surrogate by linearizing the ReLU and (on binary-feature graphs) replacing the discrete feature-flip constraint by an equivalent Frobenius budget, then solve the resulting continuous problem in closed form.
4 Spectral Approach to Feature Attacks
From Problem 1 to a tractable surrogate. We define a tractable surrogate by linearizing the ReLU activations of (1), following the standard surrogate construction of Zügner et al. [2018], Wu et al. [2019]; the feature residual (3) then admits the closed form
where is the composed weight matrix and encodes the -hop neighborhood structure through which perturbations propagate (full derivation in Appendix B.1). For continuous-feature graphs (Cora-ML, PubMed), a Frobenius-norm budget on is already the natural formulation. For binary-feature graphs (Cora, CiteSeer), every feasible lies in , so and replacing the discrete feature-flip constraint by a Frobenius bound is a genuine relaxation (Appendix B.2). Setting and using the equivalence on a compact set, we obtain the linear cost, continuous feature attack problem:
By feasible-set inclusion and the 1-Lipschitz property of ReLU, the optimal value of (6) upper-bounds that of Problem 1. The remainder of this section solves (6) in closed form via spectral decomposition; Appendix F validates empirically that the resulting closed-form attack remains the strongest rank-one attack we tested once the full ReLU non-linearity is reinstated.
Spectral decomposition. We expand the perturbation in the eigenbasis of . Because is symmetric, the eigenvectors of any (positive) power of coincide with those of itself, so working with (which appears naturally after squaring the residual (5)) does not change the eigenbasis. Let and be the eigenvalue-eigenvector pairs of and of the weight Gram matrix , respectively, ordered so that and . Since is an orthonormal basis of , every perturbation can be written uniquely as
The two qualifiers refer to the simplifications relative to Problem 1: linear cost (the residual is now linear in , since the ReLU non-linearities have been replaced by the identity), and continuous feature (the discrete feature-flip set has been replaced by the continuous Frobenius ball).
Reading (7) column-wise, the -th feature column of is , where collects, in its -th entry, the coefficient of feature along eigenmode . Substituting (7) into (6) reformulates the relaxed problem as an optimization over the new variables (full derivation in Appendix C):
The coefficients are the new optimization variables. The graph and the weights now enter the objective in decoupled positions: the graph contributes only the scalar weights in front of each rank-one summand, while the weight matrix multiplies all summands uniformly from outside. This reformulation is the starting point for the main result in Section 4.1.
4.1 Separation Principle for Optimal Perturbation Structure
We can now state the central theoretical result of the paper, a closed-form characterization of the optimal feature perturbation; the full proof is given in Appendix C.
Theorem 1 (Separation Principle for Optimal Perturbation Structure). Consider an -layer GCN defined by (1) with the associated linear cost, continuous feature attack problem (6). Suppose that the composed weight matrix is and that is the dominant eigenpair of . Then an optimal solution of (6) is given by
achieving the optimal value . The optimal perturbation is a rank-one matrix and admits a separation into a graph-dependent factor , depending only on node degrees with per-node magnitude , and a weight-dependent factor , depending only on the composed weights. The graph-dependent factor is independent of depth ; only the weight-dependent factor adapts with depth, through the change in .
Proof sketch. The eigenbasis expansion in the basis of reduces (8) to maximizing subject to . A Weyl + Rayleigh sandwich (Appendix C) shows the optimum is attained at for , with optimal value . The dominant eigenpair of is identified in closed form via the spectral theory of the normalized Laplacian, giving (so ) and , independent of since powers of a symmetric matrix share its eigenvectors. Substituting these expressions back yields (9).
Discussion. The factorization has three constructive consequences. First, the optimum admits a closed-form expression from a single eigendecomposition, so problem (6) need not be solved by a gradient-based procedure as in PGD Xu et al. [2019], IG-Attack Wu et al. [2019], or Nettack Zügner et al. [2018]. Second, the optimal value depends on the weight spectrum only through , since is fixed by the normalization of . Third, the graph factor depends only on degrees and is therefore architecture-invariant, so the perturbation transfers across architectures to the extent that the top weight singular vector is shared. The closed-form construction is also markedly cheaper than gradient-based baselines (Section 6.1). The principle also offers a theoretical perspective on the empirical degree bias reported by GraD Liu et al. [2023]: degree-proportional allocation arises naturally from the optimum, not from gradient-estimation artifacts. Full discussion in Appendix C.5.
When the attacker controls only a subset , the full-access optimum is infeasible. We restrict the degree-proportional allocation to :
Proposition 1 (Restricted-Access Heuristic). Let and let for and otherwise. Then is feasible, supported on , and preserves the graph-weight separation.
The continuous direction also yields a feasible integer-flip attack for Problem 1 via greedy top- discretization on the outer-product score (full construction in Appendix B.2). Although we do not claim optimality of the attack proposed in Proposition 1, Appendix F (Figure 2b) shows it consistently dominates uniform and random-support baselines.
We refer to the family of rank-one attacks derived from the separation principle — the full-access optimum (9) of Theorem 1 and the restricted-access version of Proposition 1 — as SepAttack. In both variants the spatial factor depends only on the graph (through node degrees), so the attack does not require gradient computation through the model.
5 Adversarial Training
Adversarial training Madry et al. [2018] modifies the training procedure so that the trained network is robust to adversarial perturbations of the input, by replacing the standard empirical risk by its worst-case counterpart over an adversarial set. For feature attacks on a GCN of parameters with the Frobenius budget of Section 3.2, this gives the standard min-max formulation
Solving the inner maximization exactly at every training step is intractable: it is itself an adversarial-attack problem against the network being trained, and the standard remedy — approximating it with iterative gradient ascent (e.g., PGD-) for steps inside every parameter update — multiplies the per-step training cost by and is the dominant cost of adversarial training.
We propose a different route. Theorem 1 gives a closed-form expression for the worst-case attack on the linearized model under the Frobenius budget, and we use this expression to approximate the inner maximization in (10) with no inner optimization at all. The closed-form worst case is the rank-one direction , where is the top singular vector of at the current . Since ReLU makes the model's response to asymmetric, we regularize bilaterally along this direction:
A natural alternative would be to penalize the spectral norm directly, but this fails: shrinking scales the adversarial residual and the clean classification margins by the same factor, so the attack-versus-margin ratio is unchanged (Appendix E.1). Robustness must therefore be enforced at the model's output level, which is what (11) does. We refer to the resulting training procedure as SepAT (separation-principle adversarial training). SepAT recomputes each step via SVD of the composed weights ; one power-iteration step costs and is negligible relative to a forward/backward pass, even on our largest dataset (PubMed). Hyperparameters, the curriculum schedule, and the bilateral-regularization derivation are in Appendix E; empirical robustness results are reported in Section 6.4.
6 Numerical Experiments
We evaluate on four citation networks: Cora (, binary BoW), Cora-ML (, continuous), CiteSeer (, binary BoW), and PubMed (, TF-IDF), with three heterophilous WebKB benchmarks (Texas, Wisconsin, Cornell) used in Section 6.2. The target model is a 2-layer GCN Kipf [2016] (16 hidden units, ReLU, dropout 0.5) trained on a 10/10/80 split following the Nettack protocol Zügner et al. [2018]; results are averaged over 5 seeds (mean std). Targeted baselines are Nettack Zügner et al. [2018] (direct/influence modes) and IG-Attack Wu et al. [2019] (3 integration steps); continuous-budget baselines are PGD-40 Xu et al. [2019] and FGM (the analog of FGSM Goodfellow et al.
Table 1: Targeted feature attack comparison: overall success rate (%) on the preselected target set (40 correctly-classified test nodes per dataset), averaged over 5 seeds. : features perturbed per target. Bold: best per column within each dataset.
| Method / Mode | Time | Success Rate (%) | ||||
|---|---|---|---|---|---|---|
| Cora | ||||||
| SepAttack (our attack) / Direct | 5 ms | 13.0 | 17.5 | 20.0 | 22.0 | 23.0 |
| SepAttack / Influence | 6 ms | 9.5 | 13.0 | 16.0 | 18.5 | 19.0 |
| Nettack / Direct | 352 ms | 8.0 | 15.0 | 17.5 | 18.5 | 19.5 |
| Nettack / Influence | 407 ms | 6.0 | 10.0 | 12.0 | 16.0 | 16.5 |
| IG-Attack / Direct | 154 s | 3.5 | 6.0 | 10.0 | 12.5 | 13.0 |
| CiteSeer | ||||||
| SepAttack / Direct | 12 ms | 8.5 | 11.0 | 14.0 | 17.5 | 19.5 |
| SepAttack / Influence | 13 ms | 7.5 | 9.0 | 11.5 | 13.0 | 15.5 |
| Nettack / Direct | 417 ms | 5.5 | 8.0 | 8.5 | 9.5 | 10.5 |
| Nettack / Influence | 489 ms | 5.0 | 7.5 | 8.5 | 9.5 | 10.0 |
| IG-Attack / Direct | 524 s | 2.0 | 3.0 | 4.5 | 5.0 | 6.0 |
Times are wall-clock per target node. SepAttack achieves the highest success rate in all 20 comparison cells (2 datasets 2 modes 5 budgets).
[2014]). Transfer targets are GAT Veličković et al. [2017], GraphSAGE Hamilton et al. [2017], APPNP Gasteiger et al. [2018], and JKNet Xu et al. [2018]. SepAttack uses paired with as in Theorem 1; both signs are tested and the more effective one retained (best-sign selection: two forward passes, still gradient-free), since ReLU breaks the sign symmetry of the linearized optimum. Targeted experiments deploy the rank-one optimum of Proposition 2.
Sections 6.1–6.4 compare SepAttack against state-of-the-art baselines on targeted attack effectiveness, heterophilous benchmarks, cross-architecture transfer, and adversarial training; further validation, including the symmetric factor-knockout ablation, is in Appendix F.
6.1 Targeted Attack Effectiveness
Table 1 compares SepAttack against Nettack Zügner et al. [2018] and IG-Attack Wu et al. [2019] in the targeted setting: the attacker selects a single target node and aims to flip its prediction by maximizing the per-target logit gap between the runner-up class and the true class , the objective of Nettack and IG-Attack. We derive the rank-one optimum for this targeted objective in Appendix D (Proposition 2): the separation structure persists but specializes — the graph factor becomes the -hop influence column , encoding how strongly each node in the attacker set propagates to , and the weight factor becomes the logit-gap direction . The integer-flip attack deployed in Table 1 is its greedy discretization. Following Nettack's protocol, both direct () and influence (, target itself untouched) modes are reported. SepAttack achieves the highest success rate in all 20 cells (2 datasets 2 modes 5 budgets): on Cora at in direct mode, it reaches 23.0% versus 19.5% for Nettack and 13.0% for IG-Attack. SepAttack requires approximately 5 ms per target versus ms for Nettack, a speedup with zero gradient computation.
6.2 Attack Effectiveness on Heterophilous Benchmarks
We stress-test the framework on three heterophilous graphs from the WebKB collection: Texas, Wisconsin, and Cornell [Pei et al., 2020]. These graphs lie outside the regime in which Theorem 1's rank-one approximation is tightest: their edge homophily is below 0.3 and their normalized adjacency has spectral radius , well above the regime of Cora, CiteSeer, and PubMed. We train a 2-layer GCN on the standard WebKB 60/20/20 split (index 0) [Zhu et al., 2020, Chien et al., 2021] and report misclassification at in Table 2, averaged over 5 seeds.
Table 2: Heterophilous benchmarks. Misclassification rate (%) at full attack budget on three WebKB heterophilous graphs [Pei et al., 2020]. Mean std over 5 seeds; standard 60/20/20 split (index 0) [Zhu et al., 2020, Chien et al., 2021] (different from the 10/10/80 Nettack protocol of Section 6). PGD-40 follows the Madry [Madry et al., 2018] L2 convention (5 random restarts, , normalized step); FGM is the L2 variant. The normalized-adjacency spectral radius is on Wisconsin and on Texas/Cornell, vs. on the citation networks.
| Dataset | Clean mis. | FGM | PGD-40 | SepAttack |
|---|---|---|---|---|
| Texas | 38.4 | 81.6 ± 22.3 | 82.7 ± 22.3 | 89.2 ± 2.7 |
| Wisconsin | 47.1 | 64.7 ± 12.8 | 65.9 ± 10.2 | 73.7 ± 2.6 |
| Cornell | 59.5 | 67.6 ± 2.7 | 65.4 ± 3.5 | 79.5 ± 6.5 |

Figure 1: Cross-architecture transfer on continuous-feature graphs at , 5 seeds. Bars: transfer ratio (%) = accuracy drop on target / drop on source GCN; dashed line = perfect transfer. GCN source omitted (trivially 100%). Source drops (pp) used as denominators: Cora-ML: SepAttack=57.4, PGD=76.2, FGM=50.0; PubMed: SepAttack=43.7, PGD=64.1, FGM=47.8. All three attacks transfer within 6 pp of perfect efficiency, confirming the principle's architecture-invariance prediction when is broadly shared. Binary-feature case (where is not shared): Table 6.
SepAttack achieves the highest mean misclassification on all three datasets, with margins of +6.5, +7.8, and +11.9 pp over the best gradient baseline. A distinctive property of the closed-form construction is its low variance: SepAttack's standard deviation is 2.6–6.5 pp, compared with 10.2–22.3 pp for PGD-40 on Texas and Wisconsin and up to 22.3 pp for FGM on Texas. This is structural: the rank-one perturbation is determined by graph structure and learned weights, not by gradient-based search, so it does not depend on initialization, step schedule, or restart luck. Per-seed, SepAttack beats both gradient baselines on 5/5 seeds on Cornell; on Texas and Wisconsin it wins in mean while gradient methods exhibit large per-seed variability. We interpret this through Theorem 1: on citation networks the spectrum concentrates near and the graph factor aligns the rank-one perturbation with the dominant propagation direction; on WebKB, is more than double, so the rank-one geometry is a less complete summary of the attack surface — yet the closed-form construction remains effective and is markedly more reliable than gradient baselines. Throughout these results the target model remains a 2-layer GCN; testing against heterophily-aware architectures (H2GCN [Zhu et al., 2020], GPR-GNN [Chien et al., 2021], LINKX [Lim et al., 2021]) is left to future work.
6.3 Architecture-Independent Transfer
The separation principle decomposes into a graph factor (architecture-independent by construction, since it depends only on node degrees) and a weight factor (from the source GCN's weights). On continuous-feature graphs, where is broadly shared across architectures trained on
Table 3: SepAT (separation-principle adversarial training): worst-case accuracy (%) under best-sign SepAttack at . Clean (no def.): test accuracy of the standard GCN without attack; Clean (SepAT): test accuracy of the SepAT-regularized GCN without attack; Worst-case: at . Avg. gain: mean reduction in worst-case error across , in percentage points. SepAT uses the bilateral output-stability regularizer of Section 5 (, , , ); Planetoid split Kipf [2016], 2-layer GCN with 16 hidden units; see Appendix E.2.
| Dataset | Clean (no def.) | Clean (SepAT) | Worst-case (no def.) | Worst-case (SepAT) | Avg. gain |
|---|---|---|---|---|---|
| Cora | 82.7 | 82.2 | 16.0 | 41.3 | +23.4 pp |
| CiteSeer | 69.9 | 68.2 | 15.4 | 33.2 | +15.1 pp |
| PubMed | 78.1 | 75.9 | 40.6 | 42.6 | +1.6 pp |
the same data, the separation principle therefore predicts near-perfect transfer. Figure 1 tests this by crafting perturbations against a source GCN and evaluating on GAT, GraphSAGE, APPNP, and JKNet without adaptation.
On Cora-ML (Figure 1a), SepAttack transfer ratios are 97.5–101.6% (accuracy drops on non-source architectures 55.99–58.34 pp versus 57.41 pp on the source GCN). PubMed shows the same pattern (99.5–103.8%). PGD-40 and FGM transfer similarly on both datasets (Figure 1), confirming that the separation principle’s architecture-invariance prediction holds for all rank-one and gradient-based attacks when is shared across architectures.
On binary-feature graphs, is not shared across architectures and SepAttack transfer drops to 21–69% (Appendix G, Table 6); gradient-based attacks (PGD-40, FGM), which re-optimize per step, partially escape this limitation. Our separation principle offers an analytical analogue of the shared-subspace picture for GNNs documented in image classification Goodfellow et al. [2014], Tramèr et al. [2017]: the graph-dependent factor is architecture-invariant by construction, and transfer succeeds precisely to the extent that the weight-dependent factor remains shared.
6.4 SepAT: Adversarial Training Results
Table 3 reports worst-case accuracy under best-sign SepAttack at for GCNs trained with and without SepAT, alongside each model’s clean-accuracy baseline. SepAT recovers a substantial fraction of the accuracy lost to SepAttack on binary-feature graphs: worst-case accuracy improves from 16.0% to 41.3% on Cora (+25.3 pp at , average +23.4 pp across ) and from 15.4% to 33.2% on CiteSeer (+17.8 pp at , average +15.1 pp). Clean accuracy is preserved within 0.5 and 1.7 pp respectively.
On PubMed the gain is small (+1.6 pp average), in line with the ablation of Appendix F: on continuous-feature graphs, the weight factor alone accounts for only of the total damage from SepAttack, with the remaining contributed by the multiplicative spatial amplification. SepAT regularizes the model output along the single direction, addressing the component but not the multiplicative spatial part; extending the defense to regularize along a broader range of spectral directions is a natural next step.
7 Conclusion
We presented a graph-theoretic framework that derives adversarial feature attacks on GNNs from the spectral properties of . Theorem 1 establishes a separation principle: the optimal feature perturbation under full access is rank-one and factorizes into a degree-proportional graph-spectral direction and an independent weight-spectral direction, yielding a gradient-free attack with analytical guarantees. Empirically, SepAttack matches or beats Nettack and IG-Attack with up to speedup, transfers near-perfectly across architectures on continuous-feature graphs, and SepAT improves worst-case accuracy at by +25.3 pp on Cora and +17.8 pp on CiteSeer (Section 6.4); the smaller PubMed gain (+1.6 pp average) is consistent with the ablation finding (Appendix F).
Limitations. The separation principle is derived under linearized ReLU; restricted-access (Proposition 1) is heuristic, not provably optimal; transfer degrades to 21–69% on binary-feature graphs (Appendix G); the framework is restricted to feature perturbations, with edge perturbations and graph-transformer extensions left open; SepAT regularizes along only and is not evaluated against adaptive attacks targeting other spectral directions. Future directions include a nonlinear analysis, spectral robustness certificates, and edge-perturbation analogues.
Broader Impact. This work reveals that GNNs in security-sensitive domains are vulnerable to gradient-free attacks that existing defenses fail to address. We characterize these attacks to enable principled defense design; SepAT and the open-problem framing of multi-subspace robustness (Section 6.4) are direct consequences. We acknowledge that the closed-form attack lowers the computational barrier for adversarial perturbation, and mitigate this by releasing the defense alongside the attack code.
References
Zulfikar Alom, Tran Gia Bao Ngo, Murat Kantarcioglu, and Cuneyt Gurcan Akcora. Gottack: Universal adversarial attacks on graph neural networks via graph orbits learning. In The Thirteenth International Conference on Learning Representations, 2025.
Aleksandar Bojchevski and Stephan Günnemann. Adversarial attacks on node embeddings via graph poisoning. In International conference on machine learning, pages 695–704. PMLR, 2019a.
Aleksandar Bojchevski and Stephan Günnemann. Certifiable robustness to graph perturbations. Advances in Neural Information Processing Systems, 32, 2019b.
Heng Chang, Yu Rong, Tingyang Xu, Wenbing Huang, Honglei Zhang, Peng Cui, Wenwu Zhu, and Junzhou Huang. A restricted black-box adversarial framework towards attacking graph embedding models. In Proceedings of the AAAI conference on artificial intelligence, volume 34, pages 3389–3396, 2020.
Heng Chang, Yu Rong, Tingyang Xu, Yatao Bian, Shiji Zhou, Xin Wang, Junzhou Huang, and Wenwu Zhu. Not all low-pass filters are robust in graph convolutional networks. Advances in Neural Information Processing Systems, 34:25058–25071, 2021.
Jinyin Chen, Yangyang Wu, Xuanheng Xu, Yixian Chen, Haibin Zheng, and Qi Xuan. Fast gradient attack on network embedding. arXiv preprint arXiv:1809.02797, 2018.
Yongqiang Chen, Han Yang, Yonggang Zhang, Kaili Ma, Tongliang Liu, Bo Han, and James Cheng. Understanding and improving graph injection attack by promoting unnoticeability. arXiv preprint arXiv:2202.08057, 2022.
Eli Chien, Jianhao Peng, Pan Li, and Olgica Milenkovic. Adaptive universal generalized PageRank graph neural network. In International Conference on Learning Representations (ICLR), 2021.
Hanjun Dai, Hui Li, Tian Tian, Xin Huang, Lin Wang, Jun Zhu, and Le Song. Adversarial attack on graph structured data. In International conference on machine learning, pages 1115–1124. PMLR, 2018.
Negin Entezari, Saba A. Al-Sayouri, Amirali Darvishzadeh, and Evangelos E. Papalexakis. All you need is low (rank): Defending against adversarial attacks on graphs. In Proceedings of the 13th International Conference on Web Search and Data Mining (WSDM), pages 169–177, 2020.
Johannes Gasteiger, Aleksandar Bojchevski, and Stephan Günnemann. Predict then propagate: Graph neural networks meet personalized pagerank. arXiv preprint arXiv:1810.05997, 2018.
Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples. arXiv preprint arXiv:1412.6572, 2014.
Lukas Gosch, Simon Geisler, Daniel Sturm, Bertrand Charpentier, Daniel Zügner, and Stephan Günnemann. Adversarial training for graph neural networks: Pitfalls, solutions, and new directions. Advances in neural information processing systems, 36:58088–58112, 2023.
Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in neural information processing systems, 30, 2017.
Wei Jin, Yao Ma, Xiaorui Liu, Xianfeng Tang, Suhang Wang, and Jiliang Tang. Graph structure learning for robust graph neural networks. In Proceedings of the 26th ACM SIGKDD international conference on knowledge discovery & data mining, pages 66–74, 2020.
Mingxuan Ju, Yujie Fan, Chuxu Zhang, and Yanfang Ye. 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, pages 4383–4390, 2023.
TN Kipf. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
Runlin Lei, Yuwei Hu, Yuchen Ren, and Zhewei Wei. Intruding with words: Towards understanding graph injection attacks at the text level. In Advances in Neural Information Processing Systems, 2024.
Jintang Li, Jiaying Peng, Liang Chen, Zibin Zheng, Tingting Liang, and Qing Ling. Spectral adversarial training for robust graph neural network. IEEE Transactions on Knowledge and Data Engineering, 35(9):9240–9253, 2022.
Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into graph convolutional networks for semi-supervised learning. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.
Derek Lim, Felix Hohne, Xiuyu Li, Sijia Linda Huang, Vaishnavi Gupta, Omkar Bhalerao, and Ser-Nam Lim. Large scale learning on non-homophilous graphs: New benchmarks and strong simple methods. In Advances in Neural Information Processing Systems (NeurIPS), 2021.
Lu Lin, Ethan Blaser, and Hongning Wang. Graph structural attack by perturbing spectral distance. In Proceedings of the 28th ACM SIGKDD conference on knowledge discovery and data mining, pages 989–998, 2022.
Zihan Liu, Yun Luo, Lirong Wu, Zicheng Liu, and Stan Z Li. Towards reasonable budget allocation in untargeted graph structure attacks via gradient debias. arXiv preprint arXiv:2304.00010, 2023.
Yao Ma, Suhang Wang, Tyler Derr, Lingfei Wu, and Jiliang Tang. Attacking graph convolutional networks via rewiring. arXiv preprint arXiv:1906.03750, 2019.
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations (ICLR), 2018.
Felix Mujkanovic, Simon Geisler, Stephan Günnemann, and Aleksandar Bojchevski. Are defenses for graph neural networks robust? Advances in Neural Information Processing Systems, 35:8954–8968, 2022.
Kenta Oono and Taiji Suzuki. Graph neural networks exponentially lose expressive power for node classification. arXiv preprint arXiv:1905.10947, 2019.
Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. Geom-GCN: Geometric graph convolutional networks. In International Conference on Learning Representations (ICLR), 2020.
Yiwei Sun, Suhang Wang, Xianfeng Tang, Tsung-Yu Hsieh, and Vasant Honavar. Adversarial attacks on graph neural networks via node injections: A hierarchical reinforcement learning approach. In Proceedings of the web conference 2020, pages 673–683, 2020.
Florian Tramèr, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick McDaniel. The space of transferable adversarial examples. arXiv preprint arXiv:1704.03453, 2017.
Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
Binghui Wang, Minhua Lin, Tianxiang Zhou, Pan Zhou, Ang Li, Meng Pang, Hai Li, and Yiran Chen. Efficient, direct, and restricted black-box graph evasion attacks to any-layer graph neural networks via influence function. In Proceedings of the 17th ACM International Conference on Web Search and Data Mining, pages 693–701, 2024.
Liangliang Wen, Jiye Liang, Kaixuan Yao, and Zhiqiang Wang. Black-box adversarial attack on graph neural networks with node voting mechanism. IEEE Transactions on Knowledge and Data Engineering, 36(10):5025–5038, 2024.
Huijun Wu, Chen Wang, Yuriy Tyshetskiy, Andrew Docherty, Kai Lu, and Liming Zhu. Adversarial examples on graph data: Deep insights into attack and defense. arXiv preprint arXiv:1903.01610, 2019.
Kaidi Xu, Hongge Chen, Sijia Liu, Pin-Yu Chen, Tsui-Wei Weng, Mingyi Hong, and Xue Lin. Topology attack and defense for graph neural networks: An optimization perspective. arXiv preprint arXiv:1906.04214, 2019.
Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation learning on graphs with jumping knowledge networks. In International conference on machine learning, pages 5453–5462. pmlr, 2018.
Kanghoon Yoon, Yeonjun In, Namkyeong Lee, Kibum Kim, and Chanyoung Park. Debiased graph poisoning attack via contrastive surrogate objective. In Proceedings of the 33rd ACM International Conference on Information and Knowledge Management, pages 3012–3021, 2024.
Jiong Zhu, Yujun Yan, Lingxiao Zhao, Mark Heimann, Leman Akoglu, and Danai Koutra. Beyond homophily in graph neural networks: Current limitations and effective designs. In Advances in Neural Information Processing Systems (NeurIPS), 2020.
Xu Zou, Qinkai Zheng, Yuxiao Dong, Xinyu Guan, Evgeny Kharlamov, Jialiang Lu, and Jie Tang. Tdgia: Effective injection attacks on graph neural networks. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pages 2461–2471, 2021.
Daniel Zügner and Stephan Günnemann. Adversarial attacks on graph neural networks via meta learning. In Proceedings of the International Conference on Learning Representations, 2019.
Daniel Zügner, Amir Akbarnejad, and Stephan Günnemann. Adversarial attacks on neural networks for graph data. In Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining, pages 2847–2856, 2018.
A Extended Related Work and Comparison Table
This appendix expands the brief Related Work of Section 2 into a full categorization by attack strategy.
The two attack surfaces on a GNN. Adversarial robustness studies how a learned model behaves when its input is corrupted by a small, adversarially chosen perturbation. For graph neural networks, the input has two components — the graph A and the node features X — and the literature has accordingly developed two complementary families of attacks: feature attacks, which perturb X Zügner et al. [2018], Wu et al. [2019], Xu et al. [2019], and structure attacks, which add, remove, or reweight edges in A Zügner et al. [2018], Xu et al. [2019], Zügner and Günnemann [2019], Dai et al. [2018]. Each family further branches into evasion (test-time) and poisoning (training-time) variants.
Gradient-based attacks. The dominant paradigm exploits gradient information to identify influential perturbations. Nettack Zügner et al. [2018] pioneered targeted attacks using greedy perturbation selection guided by surrogate model scores while preserving degree distributions. FGA Chen et al. [2018] adapted FGSM to graphs by selecting edge flips with maximum gradient magnitude. Xu et al. [2019] introduced PGD attacks that relax binary adjacency constraints to continuous optimization. IG-Attack Wu et al. [2019] applies integrated gradients to score feature/edge perturbations. FGSM Goodfellow et al. [2014] remains a single-step gradient baseline widely used in feature-attack settings. More recently, GraD Liu et al. [2023] addressed gradient bias in untargeted attacks, and InfAttack Wang et al. [2024] leveraged influence functions for efficient black-box approximations. These methods fundamentally depend on model-specific gradient signals rather than intrinsic graph properties.
Meta-learning attacks. For poisoning scenarios, Metattack Zügner and Günnemann [2019] introduced meta-gradients to optimize perturbations as hyperparameters, achieving effective global degradation. Metacon Yoon et al. [2024] addressed the bias toward training nodes through contrastive surrogate losses. While powerful, these methods remain computationally intensive and gradient-dependent.
Reinforcement learning attacks. RL methods address black-box scenarios where gradient access is unavailable. RL-S2V Dai et al. [2018] modeled attacks as Markov Decision Processes with Structure2Vec embeddings, learning policies from prediction feedback alone. Ma et al. [2019] extended this to edge rewiring that preserves edge counts. G2A2C Ju et al. [2023] introduced gradient-free node injection via actor-critic methods. These approaches learn attack strategies empirically but lack theoretical guarantees on perturbation effectiveness.
Node injection attacks. Recognizing that modifying existing edges is often impractical, recent work has shifted toward node injection. NIPA Sun et al. [2020] formulated hierarchical RL for injection, while TDGIA Zou et al. [2021] introduced topologically-aware injection with smooth feature optimization. HAO Chen et al. [2022] improved unnoticeability through homophily preservation. WTGIA Lei et al. [2024] extended attacks to text-attributed graphs through word frequency analysis. These methods optimize injection heuristically without exploiting structural graph invariants.
Topological-heuristic attacks. A limited body of work incorporates graph topological heuristics into attack design. GF-Attack Chang et al. [2020] used graph signal processing for restricted black-box scenarios. VoteAttack Wen et al. [2024] derived a node voting matrix from graph topology for gradient-free attacks. GOptack Alom et al. [2025] identified critical graph orbits (equivalence classes within graphlets) as attack targets. These approaches employ spectral information as auxiliary heuristics rather than as the foundational framework for attack construction.
Spectral perspectives on GNN robustness. A spectral view of adversarial robustness on graphs is well-developed on the defense side. GCN-SVD Entezari et al. [2020] demonstrated empirically that a rank-10 truncated SVD of the adjacency matrix removes most of the damage caused by Nettack-style perturbations, indicating that adversarial perturbations concentrate in the high-rank components and therefore that clean graphs are spectrally low-rank. ProGNN Jin et al. [2020] made this explicit by jointly learning a cleaned adjacency via nuclear-norm, sparsity, and feature-smoothness regularization. Chang et al. [2021] strengthened the picture theoretically: using matrix perturbation theory, they prove that only spectral components of the normalized Laplacian whose eigenvalues fall within a specific robust interval are stable under structural perturbation, and derive the GCN-LFR defense that filters out the unstable modes. On the attack side, the spectral line is sparser. Bojchevski and Günnemann [2019a] pioneered the use of eigenvalue perturbation theory for adversarial attacks, but their analysis targets DeepWalk node embeddings rather than GCN classification and their attack is greedy rather than closed-form. SPAC Lin et al. [2022] introduced a structural attack that maximizes the distance between the eigenvalues of the clean and perturbed normalized Laplacians via iterative projected gradient descent. SAT Li et al. [2022] decomposes the normalized adjacency spectrally and performs adversarial training by perturbing eigenvalues and eigenvectors via gradient ascent. In every case, the optimization remains iterative and the attack is constructed implicitly through a gradient procedure.
Table 4: Comparison of adversarial attack methods on GNNs for node classification (Time Ascending). Full references in Section 2.
| Method | Year | Strategy | Knowledge | Perturbation | Stage | Theoretical Basis |
|---|---|---|---|---|---|---|
| Netattack | 2018 | Gradient | Grey-box | Struct+Feat | Both | Surrogate scoring |
| FGA | 2018 | Gradient | White-box | Structure | Evasion | FGSM adaptation |
| RL-S2V | 2018 | RL | Black-box | Structure | Both | Learned policy |
| PGD Attack | 2019 | Gradient | White-box | Structure | Both | Continuous relaxation |
| Metattack | 2019 | Meta-learning | Grey-box | Structure | Poisoning | Meta-gradients |
| TDGIA | 2021 | Optimization | Grey-box | Injection | Evasion | Smooth optimization |
| HAO | 2022 | Optimization | Grey-box | Injection | Both | Homophily heuristic |
| GraD | 2022 | Gradient | White-box | Structure | Poisoning | Gradient debiasing |
| G2A2C | 2023 | RL | Black-box | Injection | Evasion | Actor-critic |
| VoteAttack | 2024 | Heuristic | Black-box | Struct+Feat | Evasion | Voting matrix |
| GAttack | 2025 | Topological | Grey-box | Structure | Evasion | Graph orbits |
| Ours | Graph-theoretic | White-box | Feature | Both | Spectral decomposition |
Certified robustness and adversarial training for GNNs. A complementary line of work develops certified robustness guarantees for GNNs via randomized smoothing Bojchevski and Günnemann [2019b]. Mujkanovic et al. [2022] showed that many widely cited GNN defenses lose most of their apparent robustness under adaptive attacks. Gosch et al. [2023] diagnose two fundamental pitfalls of adversarial training on GNNs—transductive evaluation bias and the limited capacity of standard GCN architectures for robust representations—and show that learnable spectral graph diffusion models are needed to improve upon the PGD-based adversarial training baseline. SepAT derives its training objective directly from the closed-form worst-case attack of Theorem 1, complementing the PGD-based baseline of Gosch et al.
Table 4 extends the categorization to a broader set of attack methods, classifying each by strategy, knowledge assumption, perturbation type, attack stage, and theoretical basis.
B Two-Layer GCN Specialization
Justification for the two-layer choice. The choice of a two-layer GCN is not arbitrary but reflects a fundamental limitation of deep graph neural networks. Li et al. [2018] demonstrated that the GCN propagation rule is mathematically equivalent to Laplacian smoothing: each layer computes a weighted average of neighboring features, causing node representations within connected components to converge toward a common value proportional to . While moderate smoothing (1–2 layers) is beneficial for leveraging graph structure, excessive smoothing leads to over-smoothing, where node features become indistinguishable, directly contradicting the discrimination required for node classification. Oono and Suzuki [2019] formalized this observation by proving that GNN outputs converge exponentially fast to an eigenspace of the graph Laplacian, with the convergence rate governed by the spectral properties of the normalized adjacency matrix and the singular values of the weight matrices. In this limiting eigenspace, node representations encode only connected component membership and degree information, which is insufficient for classification. Empirical studies consistently confirm that two-layer GCNs achieve optimal performance on standard benchmarks, with accuracy degrading significantly beyond three layers Kipf [2016], Li et al. [2018].
B.1 Residual Analysis Framework
This subsection derives the closed form of the feature residual after linearizing the ReLU activations of (1), the surrogate construction adopted in Section 4. We replace each ReLU activation by the identity and trace the perturbation through the resulting linear L-layer GCN.
Consider an input feature matrix and an adversarial perturbation that produces the modified feature matrix . For the first layer of the linearized GCN:
By induction over layers, the perturbation propagates through the linearized -layer GCN as for , which after telescoping yields the -th layer feature residual:
where is the composed weight matrix. The perturbation effect is propagated through the -hop neighborhood structure encoded in . For the two-layer GCN ( ) used in our experiments, this specializes to , with encoding two-hop propagation.
B.2 Complete Optimization Formulation
This appendix details the chain of reformulations that connects Problem 1 (worst-case feature attack on a nonlinear GCN) to the surrogate problem (6) solved in Section 4: a ReLU linearization that simplifies the objective, and the equivalence that justifies replacing the discrete feature-flip constraint by a Frobenius-norm budget on binary-feature graphs.
Detailed combinatorial form of Problem 1. The adversarial feature attack involves two coupled decisions: (1) how to allocate the perturbation budget across nodes, and (2) which features to perturb at each node. Making the per-node budget structure explicit, Problem 1 is equivalent to
where is the per-node perturbation budget (number of features that may be flipped at node ) and is the total perturbation budget. The objective is the nonlinear residual norm; the feasible set is combinatorial, so (14) is intractable in this raw form.
Remark 1 (Implicit Domain of ). The constraint combined with implies . Specifically, if , then ; if , then .
Linearization of the ReLU. Replacing each ReLU in the GCN forward map (1) by the identity, the residual (3) reduces to the closed form (Appendix B.1), with . Substituting this expression into Problem 1 yields the linearized mixed-integer feature-attack problem:
The objective is now closed-form in , but the feasible set remains combinatorial (a mixed-integer program).
From integer feature-flips to a Frobenius-norm budget. We replace the integer constraints of (15) by a Frobenius-norm bound. By Remark 1, every entry of any feasible lies in , so each nonzero entry contributes exactly 1 to the squared Frobenius norm; summing,
Maximizing over a compact set is equivalent to maximizing , and we obtain the relaxed problem (6) stated in the main text. This is a genuine relaxation along two axes: (i) the ReLU is replaced by the identity, but the 1-Lipschitz property of ReLU ensures the linearized residual norm upper-bounds the nonlinear one; (ii) every feasible point of (15) is feasible for (6), so the integer-flip feasible set is contained in the Frobenius ball. Together these imply that the optimal value of (6) provides an upper bound on those of (15) and Problem 1. The relaxation trades discrete feature-flip constraints for a continuous budget, enabling the closed-form spectral analysis of Appendix C.
Greedy discretization of the rank-one optimum (restricted access). The continuous direction from Proposition 1 also yields a feasible attack for the integer feature-flip Problem 1: the rank-one outer product produces a per-coordinate score
and applying greedy top- selection of feasible flips (i.e., where and where ) according to produces a discrete supported on that satisfies all constraints of Problem 1.
C Proof of Theorem 1 (Separation Principle)
This appendix gives the complete proof of Theorem 1. Starting from the linear cost, continuous feature attack problem (6), we (i) rewrite the problem in the eigenbasis of , reducing it to an optimization over coefficient vectors ; (ii) solve that reformulated problem by a Weyl/Rayleigh sandwich argument, identifying the optimal coefficients as () and the optimal value as ; (iii) identify the dominant eigenpair of in closed form via the normalized Laplacian, yielding and ; and (iv) translate the optimal coefficients back to the original perturbation space, yielding the rank-one separation (9).
The integer-to-Frobenius relaxation that produces (6) from Problem 1 is given in Appendix B.2.
C.1 Reformulation in the Spectral Basis
Properties of . The matrix that drives the analysis is symmetric and positive semi-definite. Symmetry follows from ; positive semi-definiteness follows from . Consequently all eigenvalues of satisfy , and the eigenvectors form an orthonormal basis of .
Eigendecompositions. Let be the eigenvalue–eigenvector pairs of , with and orthonormal. Likewise let be the pairs of , with and orthonormal.
Perturbation expansion. Since is an orthonormal basis of , every admits a unique expansion
where collects the contribution of the -th eigenmode to the perturbation.
Cost-function transformation. The spectral norm satisfies , so maximizing is equivalent to maximizing for . Using , problem (6) becomes
The objective matrix is symmetric and positive semi-definite for every , since it equals with ; this form will be preserved throughout, so that Weyl's inequality and PSD monotonicity apply.
Substituting the expansion (17) into (18) and using the eigenvalue identity together with orthonormality :
Each summand is symmetric and positive semi-definite (since and ).
Constraint simplification. By orthonormality of ,
(20)
so the budget constraint (6) reads .
Reformulated problem. Combining (19) and (20), problem (6) is equivalent to
which is the same as (8) in the main text. Optimizing over has been replaced by optimizing over the coefficient vectors .
C.2 Optimal Spectral Coefficients
We solve the reformulated problem (21) via a sandwich argument that combines Weyl's inequality from above with a single-summand restriction from below.
Lemma 1 (Optimal Spectral Coefficients). Let be the dominant eigenpair of and the dominant eigenpair of , with . An optimal solution to (21) is
achieving the optimal value .
Proof. We establish as both an upper bound and an attained value.
Step 1: Sandwich chain inequality. Let be any feasible point, i.e., satisfying the budget (constraint C1).
Lower bound. Each summand is symmetric and positive semi-definite, so dropping all summands except can only decrease :
Upper bound (Weyl's inequality). For symmetric PSD matrices, Weyl's inequality gives
For each , is symmetric of rank at most one, so its unique nonzero eigenvalue equals its trace:
Combining,
Step 2: Maximize the lower bound over C1. The Rayleigh quotient is maximized at with value . Hence, putting the entire budget on the first coefficient ( , for ),
Step 3: Bound the upper bound over C1. For each , the Rayleigh bound gives . Combined with and the budget,
Step 4: Sandwich. Substituting (27) into the maximum of the chain (26) from below and (28) from above:
Therefore the optimal value of (21) is exactly .
Step 5: Achievability. The candidate (22) is feasible: . And it attains the bound:
(30)
□
Geometric remark. The optimum collapses onto a single eigenmode rather than spreading across several. By the Weyl PSD inequality , distributing budget across multiple can only weaken the objective relative to concentrating the budget into the top spectral mode. Equality in this inequality requires the to share a common top eigenvector, which (combined with ) forces concentration on .
C.3 Closed Form of the Dominant Eigenpair via the Normalized Laplacian
It remains to identify the dominant eigenpair of in closed form.
Spectrum of . Since is the symmetric normalized adjacency of the graph with self-loops, we may write where is the symmetric normalized Laplacian, whose eigenvalues lie in and whose smallest eigenvalue is 0. We assume the graph is connected; for the citation networks we use, we follow the standard convention of restricting to the largest connected component when relevant. Under this assumption the zero eigenvalue of is simple. Adding self-loops makes aperiodic, so the eigenvalue of (which would otherwise appear for bipartite graphs) is excluded; consequently the largest eigenvalue 1 of is the unique eigenvalue of maximum modulus.
Dominant eigenpair of . The smallest eigenvalue of is 0, with eigenvector :
where we used (each row of sums to the corresponding entry of ). Consequently the largest eigenvalue of is 1, attained at the same eigenvector .
Dominant eigenpair of . Powers of a symmetric matrix share its eigenvectors: if , then . Since with maximum absolute value 1 attained at , and since is even, we have with maximum 1. Therefore
In particular, the -th entry of is proportional to , and is independent of the depth — the dominant eigenpair is the same for , , and any other power. The optimal value from Lemma 1 therefore reduces to .
C.4 Translation Back: Closed-Form Optimal Perturbation
We can now complete the proof of Theorem 1. Using the optimal coefficients () of Lemma 1 and the eigenbasis expansion (17),
Substituting the closed form from (32),
which is exactly (9) in the body. The per-node perturbation magnitude is , so the optimal attack places budget on each node in proportion to the square root of its (self-loop-augmented) degree. This proves Theorem 1.
Rank-one structure and role of the two factors. The expression has rank exactly one. The graph-dependent factor determines which nodes to perturb: the -th entry, proportional to , controls how much of the budget is placed on node , and depends only on the graph degrees. The weight-dependent factor determines which feature direction to perturb along: the -th entry controls how much of the per-node perturbation lies along feature , and depends only on the learned weights through the top right singular vector of . The two factors are computed independently: from alone (graph), from alone (weights).
C.5 Extended Discussion of Theorem 1
This subsection collects the extended discussion of Theorem 1 that was abridged in the body for space. It comprises two parts: the three constructive consequences of the separation principle (Appendix C.5.1), and the computational comparison between SepAttack and gradient-based baselines (Appendix C.5.2).
C.5.1 Separation principle: the three consequences
The rank-one structure of (9) exposes the separation principle: determines node importance (per-node magnitude ), while determines feature importance, and the two factors are computed independently. This factorization has three consequences. (i) The optimum admits a closed-form expression computed from a single eigendecomposition; in particular, problem (6) need not be solved by a gradient-based procedure as in PGD Xu et al. [2019], IG-Attack Wu et al. [2019], or Nettack Zügner et al. [2018]. (ii) The optimal value depends on the weight spectrum only through , since is fixed by the normalization of . (iii) The graph-dependent factor depends only on , which is shared across architectures trained on the same graph; consequently the perturbation transfers to a different architecture to the extent that its top weight singular vector is aligned with the source GCN's. A further immediate consequence is a theoretical perspective on the empirical degree bias reported by GraD Liu et al. [2023], since the principle shows the degree-proportional allocation arises naturally from the optimum rather than from gradient-estimation artifacts.
C.5.2 Computational aspects
A direct consequence of the closed-form characterization is that crafting the optimal perturbation is dramatically cheaper than for gradient-based attacks. Computing amounts to a single eigendecomposition of (or, equivalently, the top-singular-vector computation on ), which is per power-iteration step and converges in a handful of steps in practice; the graph-dependent factor is a constant of the graph and is computed once. By contrast, gradient-based baselines repeatedly call the GCN's forward and backward passes: PGD-40 requires 40 forward/backward passes per attack; IG-Attack additionally averages gradients over integration steps, costing extra forward/backward passes; Nettack performs greedy combinatorial search over candidate edges or features. Empirically (Section 6.1, Table 1), this translates to ms per target for SepAttack versus ms for Nettack and s for IG-Attack on Cora — a speedup over Nettack and a four-orders-of-magnitude reduction relative to IG-Attack.
D Targeted Rank-One Optimum
This appendix states and proves the targeted specialization of the separation principle. Unlike Theorem 1, which maximizes the global residual norm , here the attacker focuses on a single target node and maximizes a per-target logit-gap objective. This is the objective adopted by Nettack Zügner et al. [2018] (their Eq. 14) and IG-Attack Wu et al. [2019], and we develop the closed-form rank-one optimum for it so that Section 6.1 can compare against those baselines on their own objective.
Connection to Nettack's surrogate loss. After linearization, Nettack's surrogate loss for target with true class and runner-up class reduces (their Eq. 14, ) to
For an additive feature perturbation , the change in this loss is precisely , which is the linearized targeted objective of Proposition 2 below for . Nettack maximizes this objective by greedy combinatorial search; Proposition 2 solves the same objective in closed form under a rank-one Frobenius-norm constraint, and the integer-flip attack we deploy in Table 1 is the greedy discretization of that closed-form rank-one optimum.
Proposition 2 (Targeted Rank-One Optimum). Fix a target node with true class and runner-up class , and an attacker set . Consider the linearized targeted objective
(35) under a rank-one perturbation with , support constraint , and Frobenius budget . The unique (up to sign) optimum factorizes as
where is the composed weight matrix of the linearized L-layer GCN, and denotes the column of indexed by , restricted to rows in and zero-padded elsewhere.
Proof. Substituting into (35) and using (since is supported on , only entries of in rows contribute), the objective separates as
Each inner product is independently maximized by aligning the unit vector with its argument: (with the support restriction automatically satisfied) and . The Frobenius budget binds at . Uniqueness up to sign follows from the Cauchy–Schwarz equality conditions.
Discussion. Proposition 2 preserves the graph–weight separation of Theorem 1 but with both factors specialized to the targeted regime. The graph factor becomes the -hop influence column instead of the global degree-proportional allocation , because in the targeted setting only nodes in that propagate to within hops can affect 's prediction — a node outside 's -hop neighborhood has zero entry in this column. Likewise, the weight factor becomes the per-target logit-gap direction instead of the global Frobenius-optimal singular vector , because the targeted objective only cares about the difference between two specific output coordinates. For the two-layer GCN () used in our experiments, is the standard two-hop influence column and .
Greedy discretization for integer feature flips. The continuous rank-one optimum is converted to an integer-flip attack by the same greedy top- procedure described in Appendix B.2, with and playing the roles of and respectively, and per-target budget replacing the global budget . This is the integer-flip attack deployed in Table 1.
E SepAT Derivation
This appendix derives the SepAT objective of Section 5. Appendix E.1 shows why a naïve spectral-norm penalty on fails. Appendix E.2 derives the bilateral output-stability regularizer. Appendix E.3 specifies the curriculum schedule.
E.1 Why the Naïve Penalty Fails
A natural first attempt at hardening the GCN against SepAttack would be to penalize the spectral norm of the composed weight matrix, since Theorem 1 shows the attack magnitude depends on . This approach is ineffective.
Scale invariance of the classification task. Under the rescaling with :
• The adversarial residual scales as .
- The clean classification margin between class and class at node , defined as , scales as .
Consequently, both adversarial residual and clean margins scale identically in , and the relative vulnerability measured by the ratio residual/margin is invariant. Minimizing merely rescales the entire logit geometry without improving robustness: the optimizer drives to minimize the penalty, degrading both adversarial and clean performance proportionally.
Consequence. Robustness cannot be obtained by shrinking W. It must be obtained by ensuring that the model's output is stable under the worst-case perturbation, independently of the overall scale of the weights. This motivates the bilateral output-stability regularizer of Appendix E.2.
E.2 Bilateral Output-Stability Regularization
Given the current weights , let denote the full-access SepAttack perturbation of Theorem 1, with and the top left-singular vector of at the current . We require the model output to remain close to its clean value under both signs of the perturbation:
Why bilateral? ReLU is asymmetric: ReLU() and ReLU() are not mirror images of ReLU() at a general pre-activation . In particular, at a pre-activation in the active regime (), a positive perturbation propagates linearly while a negative perturbation may shut off the unit entirely. Thus the attack and its sign-flipped counterpart elicit qualitatively different responses from the nonlinear GCN, and training against only one sign hardens the model in only one direction. Regularizing against both signs closes this asymmetry.
Full objective. The SepAT loss is
with the standard weight-decay coefficient and the spectral regularizer weight.
Recomputing at each step. Since depends on the current weights, the SepAttack perturbation must be recomputed at each training step. The graph-dependent factor is a constant of the graph and is computed once at the start of training. The feature-space direction is the top singular vector of the matrix , computed by power iteration; in the training loop, warm-starting from the previous step's makes a single power-iteration update per step sufficient, with per-step cost .
E.3 Curriculum Schedule
Introducing the spectral regularizer at full strength from the start of training destabilizes optimization: at initialization the model has no meaningful structure, and penalizes changes to an uninformative reference. To avoid this, we ramp the perturbation budget linearly from 0 to over warmup epochs:
We use , , , and throughout. With this schedule, the first epochs function as standard training with a small spectral regularization, and spectral hardening engages gradually as the classifier acquires meaningful structure. In practice we found this curriculum essential for stable optimization, removing it produced erratic training dynamics and degraded both clean and robust accuracy.
F Empirical Validation of the Closed-Form Rank-One Optimum
Theorem 1 derives the closed-form rank-one perturbation under the linearized GCN. This appendix verifies that the optimum retains its predicted dominance once the full ReLU non-linearity is reinstated, along two complementary lines: a head-to-head comparison against alternative rank-one attacks (Figure 2), and a symmetric factor-knockout ablation that probes the multiplicative structure of the optimum (Table 5).



a) Full access: Theorem 1 validation



b) Restricted access ( ): Proposition 1 heuristic validation
SepAttack —▲— Uniform, …◇… Random —▲— Unif-Unif (1, 1)
Figure 2: SepAttack on the nonlinear ReLU-GCN, 5 seeds. (a) Full access: SepAttack (black) achieves the highest misclassification rate on Cora, CiteSeer, and Cora-ML at every budget; on PubMed, Unif-Unif overtakes at the largest budget. (b) Restricted access ( , attacker set drawn uniformly at random once per seed and matched across methods): the Proposition 1 heuristic SepAttack dominates feasible-set peers. Dashed grey: clean misclassification.
Comparison among rank-one attacks. Figure 2 compares four rank-one strategies sharing the same Frobenius budget on the nonlinear ReLU-GCN: SepAttack (deployed: aligned with ), Uniform- (uniform spatial allocation, retains ), Random (both factors random unit vectors), and Unif-Unif (both factors uniform; sanity floor). In the full-access setting (panel a), SepAttack reaches the highest misclassification rate on Cora, CiteSeer, and Cora-ML at every budget; on PubMed, SepAttack leads at small-to-moderate budgets, while Unif-Unif catches up and slightly overtakes at the largest budget — so SepAttack is the strongest among the rank-one separable attacks tested in most, but not all, scenarios. The gap to Uniform- quantifies the graph-factor contribution at 3–10 pp at . In the restricted-access setting (panel b, ), the heuristic of Proposition 1 again dominates its feasible-set peers. Per-seed variance is small at every budget; the closed-form construction does not depend on initialization or stochastic search.
Symmetric factor-knockout ablation. Theorem 1 predicts a multiplicative rank-one structure: the optimal perturbation is a product of a graph factor and a weight factor , and neither factor alone is predicted to be optimal — the multiplicative form means that any attack lacking either the optimal graph factor or the optimal weight factor strictly underperforms the combined optimum.
Figure 2 above tests one slice of this prediction (the optimal allocation against uniform spatial allocation, both retaining ); Table 5 below tests it symmetrically, by independently randomizing each factor at the full-access budget .
On binary-feature graphs (Cora, CiteSeer), randomizing either factor collapses the attack to the random-baseline floor: Graph-only and Weight-only both land within 2.5 pp of clean accuracy, while Combined drives accuracy down by 17.2 pp (Cora) and 12.5 pp (CiteSeer). This is the multiplicative
Table 5: Separation-principle ablation at (full access): accuracy (%) under each attack component, averaged over 5 seeds. Random: , both unit vectors drawn iid from and renormalized (floor baseline). Graph-only: (optimal spatial allocation, random weight direction). Weight-only: (random spatial allocation, optimal weight direction). Combined: (Theorem 1 optimum with best-sign selection of ). All variants share the same Frobenius budget . Random vectors are seeded per-seed (seed+1000 for , seed+2000 for ).
| Dataset | Features | Clean | Random | Graph-only | Weight-only | Combined |
|---|---|---|---|---|---|---|
| Cora | binary | 82.6 | 82.6 | 82.6 | 81.1 | 65.4 |
| CiteSeer | binary | 74.6 | 74.6 | 74.6 | 72.2 | 62.1 |
| Cora-ML | continuous | 85.5 | 85.4 | 85.4 | 74.3 | 28.1 |
| PubMed | continuous | 86.1 | 86.1 | 86.0 | 75.0 | 42.4 |
Table 6: Cross-architecture transfer on binary-feature citation networks at , averaged over 5 seeds. Cells report transfer ratio std (accuracy drop on target / drop on source GCN, %). Last column: accuracy drop on the source GCN itself (pp), the denominator used for the ratios.
| Dataset | Attack | Transfer ratio (%) to target architecture | Source drop (pp) | |||
|---|---|---|---|---|---|---|
| GAT | SAGE | APPNP | JKNet | |||
| Cora | SepAttack (our attack) | 50% 9 | 27% 13 | 52% 15 | 73% 38 | 17.2 2.8 |
| PGD-40 | 79% 5 | 75% 9 | 76% 7 | 92% 4 | 23.0 2.0 | |
| FGM | 77% 6 | 70% 9 | 70% 6 | 91% 2 | 16.0 1.4 | |
| CiteSeer | SepAttack | 22% 12 | 31% 12 | 20% 10 | 43% 20 | 12.5 2.5 |
| PGD-40 | 66% 6 | 77% 6 | 64% 3 | 88% 10 | 24.1 1.7 | |
| FGM | 63% 6 | 75% 7 | 57% 1 | 86% 10 | 18.1 1.9 | |
signature predicted by the rank-one decomposition : the attack's strength is the product of two spectral contributions, and disabling either factor sacrifices almost all of the damage.
On continuous-feature graphs (Cora-ML, PubMed), the two factors are not symmetric. Graph-only stays at the random floor ( pp from clean), but Weight-only already produces a meaningful attack (11.2 pp drop on Cora-ML and 11.1 pp on PubMed), showing that the weight direction carries substantial adversarial signal even when paired with a spatially incoherent allocation. Adding the optimal degree-weighted allocation amplifies this further, to 57.4 pp (Cora-ML) and 43.7 pp (PubMed): roughly and multiplicative gains from aligning the spatial factor with . This asymmetry between graph and weight factors refines the interpretation of the transfer results in Section 6.3: near-identical transfer on Cora-ML and PubMed is driven primarily by the portability of across architectures (which accounts for the first 11 pp of damage by itself), with the architecture-invariant spatial factor providing the additional multiplicative amplification when an architecture shares geometry.
G Binary-Feature Cross-Architecture Transfer
Table 6 reports cross-architecture transfer on the binary-feature citation networks (Cora, CiteSeer), the negative complement to the continuous-feature transfer of Figure 1. All three attacks lose substantial efficiency relative to the source GCN. SepAttack degrades the most, consistent with the separation-principle prediction: on binary features the weight factor does not share across architectures, so the rank-one attack is tied to the source GCN's weights in a way that gradient-based attacks (PGD-40, FGM)—which re-optimize at the single-step level—partially escape.