Adversarial Edges as Targeted Over-Smoothing

Graph neural networks classify a node by repeatedly averaging it with its neighbors. That design fails in two ways that are usually studied apart. First, stacking many averaging layers makes all node representations look alike, which is called over-smoothing. Second, an attacker who inserts a few well-chosen edges can pull a node's representation toward the wrong class. This proposal tests whether these are the same failure. The hypothesis is that structural attacks work largely by making the representations of attacked nodes collapse early into a small shared subspace. If that holds, the question of which edges to distrust has a new answer. Distrust the edges that cause the most representation collapse. This replaces the usual answer, which is to distrust edges between nodes that look dissimilar.

The distinction matters because the usual answer is wrong on a whole class of graphs. Defenses such as GNNGuard and STABLE cut edges between dissimilar nodes. On heterophilous graphs, where linked nodes usually belong to different classes, such rules delete real structure. The OpenGSL benchmark found that none of 13 graph structure learning methods beat a plain GCN on Roman-Empire or Wiki-cooc. We propose to score each edge by its first-order contribution to the collapse of deep-layer representations, and to use these scores as per-layer neighbor weights. The scores are computed on representations that have first been denoised by plain convolution. The main empirical bet is simple. Collapse attribution should find adversarially inserted edges more reliably than similarity-based rules, and it should protect legitimate dissimilar edges that similarity-based rules destroy.

Core Claim

We measure collapse with effective rank. For a matrix of node representations $H \in \mathbb{R}^{N\times d}$ with singular values $\sigma_1,\dots,\sigma_d$, let $p_k=\sigma_k/\sum_m \sigma_m$. Effective rank is then

$$\mathrm{Erank}(H)=\exp\Big(-\sum_k p_k \log p_k\Big).$$

This measure comes from Are we measuring oversmoothing in graph neural networks correctly?. That paper shows Erank tracks accuracy in trained networks, with an average Pearson correlation of 0.91. It also shows that Dirichlet energy, the standard over-smoothing measure, stays flat while accuracy on Cora collapses by layer 10. The same paper warns that the measure only works in one direction: high rank does not mean good representations, since pure noise has maximal rank. Our design has to respect that warning.

Give every edge $(i,j)$ a weight $w_{ij}$, initialized to 1, inside an $L$-layer propagation that produces $H_L$. The collapse attribution of an edge is

$$s_{ij} = -\frac{\partial\, \mathrm{Erank}(H_L)}{\partial w_{ij}}\Big|_{w=1},$$

normalized within each node's neighborhood. A large $s_{ij}$ means the edge pushes the deep representations toward a lower-dimensional subspace. The idea follows the first-order perturbation trick that Spectral Graph Pruning Against Over-Squashing and Over-Smoothing (PROXYDELETE) uses to rank edges by their effect on the Laplacian spectral gap. We change the target from a property of the input graph to a property of the learned representations, which is the quantity that actually predicts accuracy. Computing all $s_{ij}$ takes one backward pass through sparse propagation plus a thin singular value decomposition of an $N\times d$ matrix. That costs about $O(|E|d + Nd^2)$, which fits ogbn-arxiv, and it avoids the $O(N^2)$ dense structure learning that OpenGSL found makes ProGNN up to 190 times slower than GCN.

Two design choices follow from prior work. The first comes from Graph Attention is Not Always Beneficial. That paper proves attention computed on noisy features acts as a "broken filter" and does worse than uniform averaging. Its GAT* schedule uses uniform convolution in early layers and attention only later. We therefore compute $H_L$, and so $s_{ij}$, on representations that have first passed through a few uniform convolution layers. This matters under combined feature and structure attacks. The second choice addresses the heterophily problem. We compute the attribution through a backbone that has a learnable high-pass channel, following the two-channel filters of Complete the Missing Half. A real heterophilous edge can then be used through the high-pass channel without reducing rank. An adversarial edge carries a signal that does not fit the node's other neighbors, so we predict it will reduce rank through either channel. This prediction is the part of the proposal most likely to fail, and the first experiment tests it directly.

Research Program

The work has three stages. Each stage can stop the project on its own.

The first stage is a measurement study with no new method. We will poison Cora, Citeseer, Pubmed, Chameleon, Squirrel and Roman-Empire with global poisoning and targeted edge attacks at several budgets. We will then track layer-wise Erank separately for attacked nodes and clean nodes. The hypothesis "attacks are targeted over-smoothing" predicts that Erank falls earlier and more steeply around attacked nodes, at depths where clean nodes still hold their rank. No prior defense in the file measures this. GNNGuard, STABLE, SG-GSR and BeltramiGuard report accuracy, similarity thresholds or stability bounds, never rank.

The second stage is an edge-detection test. On the same poisoned graphs, where the true perturbed edges are known, we will rank all edges by four scores. The scores are collapse attribution $s_{ij}$, cosine dissimilarity (the GNNGuard rule), spectral-gap proxy (PROXYDELETE), and prototype Jensen-Shannon divergence (ClusterDrop). We will report precision at the attack budget, and separately the fraction of legitimate heterophilous edges each score would cut.

The third stage turns the scores into a model, Collapse-Gated GNN. Neighbor weights at each layer are a sigmoid of the negated, normalized attribution. Attribution is recomputed every few epochs, and a GNNGuard-style memory term damps changes between layers. A floor on weight mass keeps low-degree nodes from being cut off, since attacks concentrate on them. We use soft weights, not hard deletion, so the gate can recover from its own mistakes. Softmax attention cannot fully silence a neighbor; our sigmoid gate can drive a weight toward zero without taking mass from the node's other edges.

Baselines

The naive reference points are a two-layer GCN and a GAT trained on the poisoned graph, plus a deep GCN at the depth our method uses. Together they show how much damage the attack does and how much depth alone costs. All methods get the same splits, the same perturbed graphs from a shared attack run, the same hyperparameter search budget (a fixed number of trials on validation accuracy), and the same GPU time limit.

The strongest existing defense on homophilous graphs is SG-GSR. It extracts a confidently clean subgraph, trains a link predictor on it, and reweights edges. It reports 83.1% accuracy on Cora under a 25% global poisoning attack, against 70.7% for ProGNN. We also include STABLE, which reports 77.80% on Cora at a 20% perturbation rate. On PolBlogs, where there are no node features, we include ELR-GNN, which reports 76.7% at a 25% attack rate. For injection attacks we include BeltramiGuard from On the Robustness of Graph Neural Diffusion to Topology Perturbations, which reports about 62% on Cora under the TDGIA injection attack, against roughly 35% for GAT. We will rerun all of these under our protocol, not copy their numbers.

On heterophilous graphs under attack we found no reported result on Lacuna for any defense. The relevant clean-graph references are ClusterDrop at 65.9% on Chameleon with a GCN backbone, and PROXYDELETE lifting a GCN on Roman-Empire from about 70% to about 78%. We will attack these methods ourselves.

We do not expect to beat SG-GSR on Cora, and the proposal makes no claim to. On homophilous graphs, matching SG-GSR within about one standard deviation counts as success. The claim is decided on heterophilous graphs. There, beating the best rerun baseline under attack, while staying at or above plain GCN on the clean graph, counts as beating the field. The OpenGSL result shows that staying above plain GCN on clean heterophilous graphs is itself a bar that structure learning methods usually fail.

Three ablations isolate the key ingredient. The first replaces the collapse attribution with cosine dissimilarity inside an otherwise identical model. The second computes the attribution on raw features instead of convolution-denoised ones. The third removes the high-pass channel.

Why not just…?

Why not just run GNNGuard's similarity rule on convolution-denoised features? This is the most serious threat. On homophilous graphs, adversarial edges usually connect dissimilar nodes, so cosine dissimilarity computed after denoising may flag the same edges that collapse attribution flags. The first ablation is exactly this model, and we expect parity on Cora, Citeseer and Pubmed. The idea survives only if the detection-precision gap opens on Chameleon, Squirrel and Roman-Empire. There, dissimilarity by construction also flags the many legitimate cross-class edges. If no such gap appears, the honest conclusion is that denoising, not collapse attribution, carries the gain, and we would report that.

Why not just add an Erank bonus to the training loss and skip edge weighting? A rank bonus can be satisfied by spreading representations into directions that carry no class information, the noise case that Zhang et al. warn about. It also leaves the poisoned edges in the computation. We will train this variant with the same backbone. If it matches our model under attack, the edge gate adds nothing.

Why not just apply PROXYDELETE or ClusterDrop to the attacked graph? Both are cheap, and both reduce over-smoothing by cutting inter-cluster edges. However, neither was ever tested under attack. PROXYDELETE scores edges by an input-graph spectral quantity that an attacker can shape directly. The detection test in stage two compares these scores against ours head-to-head.

Why not just use a shallow GCN or GAT? A shallow model avoids over-smoothing, but it is fully exposed to a contaminated one-hop neighborhood. The BeltramiGuard paper reports GAT falling to about 35% under TDGIA on Cora. Both are included as naive baselines. If a tuned two-layer model with Jaccard pruning matches our model, depth-aware gating is not needed.

Proposed Experiments

The decisive checks run in order. First, stage one must show that attacked nodes lose Erank earlier than clean nodes. If they do not, the premise fails and we stop. Second, collapse attribution must beat cosine dissimilarity at detecting perturbed edges on at least two of the three heterophilous datasets, and it must cut fewer legitimate heterophilous edges. This check is cheap and determines whether stage three is worth building. Third, the full model is evaluated on the benchmarks above, plus the Garden and Pet co-review graphs used by SG-GSR for real malicious links, and ogbn-arxiv for scale. Attacks are global poisoning at 5–25% budgets, targeted attacks on low-degree nodes, injection attacks, and combined 50% Gaussian feature noise with structural attack; SG-GSR reports 67.6% on Cora under that feature noise. We report accuracy, layer-wise Erank, and wall-clock time against ELR-GNN's reported 118 seconds on Cora. We also report accuracy as depth grows from 2 to 16 layers, attacked and clean.

Finally, we run an adaptive attack. The attacker optimizes perturbations to lower accuracy while keeping collapse attribution low on the edges it adds. A defense that fails under this attack would only be robust against attackers who do not know it exists, and we would report the result either way.