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

TL;DR

This paper introduces STABLE, an unsupervised method to defend Graph Neural Networks (GNNs) against adversarial attacks that manipulate graph structures. STABLE refines the graph by learning robust node representations through a novel contrastive learning approach and then uses these representations to prune and add edges, ultimately improving GNN resilience.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for analyzing graph-structured data, but they are surprisingly vulnerable to adversarial attacks. Attackers can subtly alter the connections (edges) in a graph to trick GNNs into making incorrect predictions. Existing defense mechanisms often rely on either raw node features (which lack structural context) or representations from supervised GNNs (which can be compromised by the attack itself). This leaves a gap for defenses that can learn robust representations that capture both feature and structural information while being insensitive to adversarial perturbations.

Methods

STABLE tackles this problem in two main stages:

  1. Unsupervised Representation Learning:
    • Rough Pre-processing: The initial, potentially poisoned graph is "cleaned" by removing edges that have very low similarity based on node features. This creates a less corrupted graph (GP).
  2. Robust Augmentations: Instead of random graph augmentations, STABLE generates multiple views of the graph by "recovering" a small portion of the edges that were removed during pre-processing. This simulates slight attacks and helps the model learn representations that are resilient to such perturbations.
  3. Contrastive Learning: A contrastive learning framework is employed to maximize the mutual information between the representations of the pre-processed graph (GP) and its augmented views. This encourages the model to learn representations that are invariant to the introduced structural noise. An advanced GCN acts as the encoder.
  4. Graph Refining:
    • Structure Pruning: The learned robust node representations are used to calculate pairwise node similarities. Edges connecting nodes with low similarity are pruned, aiming to remove heterophilic (connecting different classes) or adversarial edges.
  5. Edge Addition: To further enhance robustness, the method adds "helpful" edges by connecting each node to its k most similar neighbors. This aims to reinforce homophilic connections.
  6. Advanced GCN Classifier: Finally, a modified GCN classifier is used. The authors identify a weakness in the standard GCN's renormalization trick when dealing with low-degree nodes (which are often targeted by attacks) and propose an adjusted version that assigns lower weights to low-degree neighbors, improving overall resilience.

Datasets

The paper evaluates STABLE on four real-world graph benchmarks:

  • Cora (citation network)
  • Citeseer (citation network)
  • PubMed (citation network)
  • Polblogs (blog network)

Key Insights and Ideas

  • Robust representations are key to robust GNNs: The core idea is that if you can learn node representations that are inherently resistant to structural changes, you can then use these representations to effectively fix the graph structure itself.
  • Pre-processing and targeted augmentations matter: Simply applying random augmentations to a poisoned graph isn't enough. STABLE's strategy of first cleaning the graph and then using "robustness-oriented" augmentations (edge recovery) is crucial for learning resilient representations.
  • Homophily is a double-edged sword: While GNNs often rely on homophily (similar nodes connecting), adversarial attacks exploit this by creating fake homophilic connections or breaking real ones. STABLE's approach of pruning low-similarity edges and adding high-similarity edges directly addresses this.
  • Low-degree nodes are attack targets: The paper highlights that nodes with few connections are more vulnerable. Their proposed advanced GCN modification specifically addresses this by adjusting how information is aggregated from neighbors.

Key Results

  • STABLE consistently outperforms state-of-the-art defense models (Jaccard, GNNGuard, GRCN, ProGNN, SimPGCN, Elastic) across various datasets and perturbation rates (up to 20% and beyond).
  • For example, on Cora with a 20% perturbation rate, STABLE achieved an accuracy of 77.80%, significantly higher than other methods like SimpGCN (73.29%) and Elastic (69.64%).
  • The ablation studies show that each component of STABLE contributes to its robustness: pre-processing, robust augmentations, and the edge refining process are all vital.
  • The advanced GCN classifier also shows improved robustness compared to vanilla GCN, even when used with other defense methods (e.g., Jaccard and SimpGCN in Table 6).

Limitations and Future Work

  • Computational Cost: While STABLE aims to be efficient, the contrastive learning and graph refining steps add computational overhead compared to a standard GNN.
  • Hyperparameter Sensitivity: The performance of STABLE is sensitive to hyperparameters like the pre-processing threshold (t₁), recovery probability (p), pruning threshold (t₂), and the number of added neighbors (k). The paper provides analysis on this sensitivity.
  • Future Work: The authors suggest exploring representation learning in adversarial attack scenarios further, as robust representation seems to be the key to GNN robustness. They also mention the potential for applying their defense to other GNN architectures and tasks.

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