Adversarial Examples for Graph Data: Deep Insights into Attack and Defense

Huijun Wu, Chen Wang, Yuriy Tyshetskiy, Andrew Docherty, Kai Lu, Liming Zhu

Abstract

Graph Convolutional Networks (GCNs) are increasingly used for node classification tasks but remain vulnerable to adversarial attacks. This paper addresses the challenge of discreteness in graph data by introducing Integrated Gradients (IG) to craft more effective attacks. Furthermore, it proposes a simple yet robust defense mechanism based on Jaccard similarity pruning, which removes edges between dissimilar nodes to mitigate adversarial noise. Experimental results on benchmark datasets demonstrate that while IG-based attacks significantly degrade model performance, the Jaccard defense effectively restores accuracy with minimal impact on clean data performance.

Introduction

Graph Convolutional Networks (GCNs) have become a standard for analyzing graph-structured data, such as citation networks and social media graphs. However, similar to deep learning models in computer vision, GCNs are susceptible to adversarial perturbations—small, intentional modifications to graph structure or node features designed to mislead the model.

A primary obstacle in attacking graphs is their discrete nature. Unlike continuous image pixels, graph connections and features are often binary. Standard gradient-based methods, which rely on local snapshots of the loss surface, often fail to capture the global impact of flipping a binary bit. This paper explores more sophisticated attack strategies and a statistical defense to address these vulnerabilities.

Methods

The authors propose two primary contributions: a novel attack method and a lightweight defense strategy.

1. The Attack: Integrated Gradients (IG)

Standard attacks like the Fast Gradient Sign Method (FGSM) use local gradients at the current input. Given the non-linearity of GCNs, these local gradients can be misleading for discrete data. To overcome this, the authors employ Integrated Gradients (IG). IG integrates gradients along a path from a baseline (e.g., an empty graph) to the actual input, providing a more accurate measure of an edge or feature's contribution to the final prediction. This approach leads to more potent variants: IG-FGSM and IG-JSMA.

2. The Defense: Jaccard Similarity Pruning

The authors observed that effective attackers typically connect a target node to "dissimilar" nodes (those with different labels and features) to inject noise into the GCN's neighborhood aggregation. By measuring Jaccard similarity—the ratio of shared features between two nodes—they found that adversarial edges often connect nodes with near-zero similarity.

Distribution of Jaccard similarity between nodes in clean vs. attacked graphs.

The proposed defense is a simple pre-processing step: prune edges between nodes whose Jaccard similarity falls below a certain threshold. This effectively "cleans" the graph before training or inference.

Key Results

The methods were evaluated on CORA-ML, CITESEER, and Polblogs datasets.

Attack Potency

The IG-JSMA attack proved significantly more effective than vanilla JSMA, often reducing classification accuracy to near zero. Figure 6 illustrates the classification margin across different attack types, highlighting the potency of gradient-based attacks compared to random perturbations.

Classification margin across different attack methods on CORA, Citeseer, and polblogs datasets.

Defense Effectiveness

The Jaccard-based defense demonstrated remarkable robustness. On the CORA dataset, an FGSM attack dropped accuracy to 2.5%, but applying the defense restored it to 62.5%. Importantly, the defense had negligible impact on clean data performance, maintaining accuracy at approximately 80.7%.

Conclusion

This research highlights that while discrete graph data poses challenges for traditional gradient-based attacks, Integrated Gradients can bridge the gap. Conversely, the "statistical footprint" left by such attacks—connecting highly dissimilar nodes—allows for a simple, efficient defense. Future work includes extending these similarity measures to continuous features and exploring adaptive attackers who might attempt to bypass such statistical filters.

Summary updated

BibTeX
@inproceedings{wu2019adversarial,
  author = {Huijun Wu and Chen Wang and Yuriy Tyshetskiy and Andrew Docherty and Kai Lu and Liming Zhu},
  title = {{Adversarial Examples for Graph Data: Deep Insights into Attack and Defense}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/669},
}
Figure