Reliable Representations Make A Stronger Defender: Unsupervised Structure Refinement for Robust GNN

Kuan Li, Yang Liu, Xiang Ao, Jianfeng Chi, Jinghua Feng, Hao Yang, Qing He · DOI

TL;DR

STABLE is a novel defense framework that protects Graph Neural Networks (GNNs) from adversarial structural attacks by using unsupervised contrastive learning to generate robust node representations. By refining the graph structure and employing a modified GCN normalization trick, it achieves state-of-the-art robustness against sophisticated attacks like MetaAttack without increasing computational complexity.

What Problem Does This Paper Address?

Graph Neural Networks are notoriously fragile. Because they rely on a message-passing mechanism, an attacker can catastrophically degrade a model's performance by simply adding or deleting a few strategic edges. These "adversarial edges" typically connect nodes with different labels, causing misleading information to propagate through the network.

Existing defenses often try to "clean" the graph by reweighting edges based on node similarity. However, they usually rely on raw features (which lack structural context) or supervised representations (which are easily corrupted by the attack itself). The authors identify a critical need for node representations that are both structurally aware and insensitive to malicious perturbations.

Methods

The authors propose STABLE (STructure leArning GNN via more reliaBLe rEpresentations), which consists of three main stages:

  1. Robust Representation Learning: Instead of supervised learning, STABLE uses an unsupervised contrastive pipeline. It first "roughly preprocesses" the graph by pruning edges with low feature similarity. It then generates augmented views by randomly recovering a small portion of these pruned edges. By training an encoder to maximize mutual information between these views, the model learns representations that are invariant to structural noise.
  2. Graph Structure Refinement: Using the high-quality representations from Step 1, the model calculates a refined similarity matrix. It prunes edges that fall below a similarity threshold and adds the "top-$k$" most similar neighbors for each node to reinforce helpful, homophilic connections.
  3. Advanced GCN Classifier: The authors discovered that the standard GCN renormalization trick actually amplifies adversarial noise because it assigns higher weights to low-degree neighbors—the very nodes attackers target. They introduce a modified message-passing scheme: $$h_i^t = \text{ReLU}\left( \sum_{j \in \mathcal{N}_i^*} \frac{(d_i d_j)^\alpha}{Z} h_j^{t-1} + \beta h_i^{t-1} \right) W_\theta^t$$ Here, $\alpha$ allows the model to trust high-degree (more stable) nodes more, and $\beta$ increases the weight of a node's own features when its neighborhood is unreliable.
Figure 1: Overall framework. Dash lines mean recovered edges.

Datasets

The model was evaluated on four widely used real-world graph benchmarks:

  • Cora, Citeseer, and PubMed: Standard citation networks where nodes are papers and edges are citations.
  • Polblogs: A network of political blogs, notable for having no node features (the authors used an identity matrix), testing the model's reliance on structure alone.

Key Insights and Ideas

  • The Vulnerability of Low-Degree Nodes: Attackers predominantly target low-degree nodes because they are easier to influence. As shown in the paper's analysis, adversarial edges tend to link two low-degree nodes.
  • GCN's "Self-Sabotage": The standard GCN normalization trick is designed to balance influence, but in an adversarial setting, it inadvertently gives the loudest voice to the most suspicious (low-degree) neighbors.
  • Unsupervised Pre-training as Defense: Because the unsupervised objective is task-irrelevant, it is not directly targeted by the attacker's optimization (which usually aims to fool the final classifier). This makes the resulting representations a more "stable" foundation for structure refinement.
  • Recovery as Augmentation: By intentionally re-introducing potentially "bad" edges during contrastive training, the model learns to ignore them, effectively becoming "vaccinated" against structural attacks.
Analysis showing that adversarial perturbations (yellow) are concentrated among low-degree nodes compared to normal edges (green).

Key Results

STABLE consistently outperformed state-of-the-art defenders (like ProGNN and SimpGCN) across multiple attack types:

  • Against MetaAttack: On the Cora dataset with a 20% perturbation rate, STABLE maintained 77.80% accuracy, while a vanilla GCN plummeted to 60.31%.
  • Generalization: STABLE showed superior performance not just on citation graphs, but also on the featureless Polblogs dataset, demonstrating that its structural refinement is highly effective even without rich node attributes.
  • Ablation Success: The "Advanced GCN" module proved its worth independently; when integrated into other defense methods like Jaccard or SimpGCN, it consistently boosted their robustness.
Figure 3: Cora and Citeseer under DICE and Random

Limitations and Future Work

  • Directed Graphs: The top-$k$ neighbor selection in the refinement phase results in a directed graph. While handled by the advanced GCN, this might require specific considerations if using other downstream architectures.
  • Hyperparameter Tuning: The model introduces several hyperparameters ($\alpha, \beta, t_1, t_2, k$) that require tuning to achieve peak performance, though the authors provide sensitivity analyses to guide this.
  • Future Directions: The authors suggest exploring more complex representation learning techniques and investigating how these robust representations might translate to other graph-based tasks beyond node classification.

Summary updated

BibTeX
@misc{li2022reliable,
  author = {Kuan Li and Yang Liu and Xiang Ao and Jianfeng Chi and Jinghua Feng and Hao Yang and Qing He},
  title = {{Reliable Representations Make A Stronger Defender: Unsupervised Structure Refinement for Robust GNN}},
  year = {2022},
  eprint = {2207.00012},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.00012},
}
Figure