Adversarial Attacks and Defenses on Graphs: A Review and Empirical Study

Wei Jin, Yaxin Li, Han Xu, Yiqi Wang, Jiliang Tang

TL;DR

Graph Neural Networks (GNNs) are highly effective but surprisingly vulnerable to adversarial attacks, where tiny changes to a graph's structure or features can completely break a model's predictions. This paper provides a comprehensive taxonomy of graph adversarial attacks and defenses, introduces an open-source evaluation library called DeepRobust, and conducts empirical studies to reveal exactly how attackers manipulate graphs and where current defenses fall short.

What Problem Does This Paper Address?

Just as traditional deep learning models can be fooled by altering a few pixels in an image, GNNs can be tricked by adding or removing a few edges, or by slightly tweaking node features. In safety-critical applications like financial fraud detection or spam filtering, malicious actors can exploit this vulnerability—for example, a fraudster might create fake connections with high-credit users to evade detection.

Because graph adversarial learning is a rapidly growing field, the literature has become fragmented. This paper addresses the need for a systematic categorization of existing attacks and defenses. Furthermore, it bridges the gap in standardized evaluation by introducing a unified repository and conducting empirical studies to uncover the underlying behaviors of these attacks.

Methods

As a review and empirical study, the paper's primary "methods" are its taxonomies and its standardized evaluation framework:

Taxonomy of Attacks: * Capacity: Evasion (attacking a fixed model at test time) vs. Poisoning (injecting bad data before the model is trained). * Perturbation Type: Modifying node features, adding/deleting edges, or injecting entirely fake nodes. * Knowledge: White-box (full model access), Gray-box (access to training data to build surrogate models), and Black-box (only query access).

Taxonomy of Defenses: * Adversarial Training: Injecting adversarial examples during training to build robustness. * Graph Purification: Pre-processing the graph to remove suspicious edges (e.g., using Jaccard similarity or Truncated SVD) before training. * Attention Mechanisms: Training the GNN to assign lower weights to suspicious or high-variance edges. * Certifiable Robustness: Mathematically proving that a node's prediction won't change under a certain budget of perturbations.

The Tool (DeepRobust): The authors developed a PyTorch-based repository containing implementations of 8 attack algorithms, 5 defense algorithms, and a standardized evaluation pipeline to help researchers benchmark new methods.

Datasets

The paper's repository and empirical studies utilize several standard network datasets:

  • Citation Graphs: Cora, Cora-ML, Citeseer, Pubmed
  • Co-author Graphs: ACM
  • Social/Blog Graphs: Polblogs, BlogCatalog

The empirical study specifically focuses on Cora, Citeseer, and Polblogs to test untargeted poisoning attacks.

Key Insights and Ideas

  • Attackers prefer building bridges over burning them: The empirical analysis reveals that attack algorithms overwhelmingly prefer adding fake edges rather than deleting existing ones.
  • Connecting the dissimilar: To maximize damage to a GNN (which relies on the assumption that connected nodes are similar), attackers tend to connect nodes that have very different features and different ground-truth labels. Conversely, when they do delete edges, they target edges between highly similar nodes.
  • Structural degradation: Adversarial attacks measurably change global graph properties. They generally increase the rank of the adjacency matrix and decrease the graph's overall clustering coefficient, making the network less cohesive.
  • Defenses have a breaking point: While current defenses work well against minor tampering, they fail catastrophically when the graph is heavily poisoned. There is currently no "silver bullet" defense for high-perturbation scenarios.

Key Results

The authors tested standard GCNs and several defense models (GCN-Jaccard, GCN-SVD, RGCN, GAT) against untargeted poisoning attacks (like Metattack) at varying perturbation budgets (0% to 25% of edges changed):

  • Standard GCNs are highly fragile: On the Cora dataset, a standard GCN's accuracy plummeted from 83.10% on a clean graph to 38.44% under a 25% Metattack.
  • Defenses mitigate, but don't solve, the problem: Under the same 25% attack on Cora, the GCN-Jaccard defense maintained a 64.56% accuracy. While much better than the standard GCN, it still represents a massive drop in performance.
  • Featureless graphs are harder to defend: On the Polblogs dataset (which lacks node features), defenses like GCN-Jaccard cannot be used. Here, standard GCN accuracy dropped from 95.80% to 52.97%, and alternative defenses like GCN-SVD only managed 52.82%, offering virtually no improvement over the baseline.

Limitations and Future Work

The authors highlight several critical gaps in the current research landscape:

  • Measuring "Imperceptibility": In images, we can look at a picture and see if it looks manipulated. In graphs, it is incredibly difficult to define what makes a structural change "imperceptible." Simply limiting the number of changed edges ($L_0$ norm) is insufficient.
  • Complex Graph Types: Almost all current research focuses on static graphs with node attributes. Attacks and defenses for dynamic graphs (which change over time) or heterogeneous graphs (with multiple types of nodes/edges) are largely unexplored.
  • Scalability: Many gradient-based attack methods require calculating dense matrices, resulting in high time and memory complexity. Scaling these attacks (and corresponding defenses) to massive, real-world networks remains a major hurdle.

Summary updated

Abstract

Deep neural networks (DNNs) have achieved significant performance in various tasks. However, recent studies have shown that DNNs can be easily fooled by small perturbation on the input, called adversarial attacks. As the extensions of DNNs to graphs, Graph Neural Networks (GNNs) have been demonstrated to inherit this vulnerability. Adversary can mislead GNNs to give wrong predictions by modifying the graph structure such as manipulating a few edges. This vulnerability has arisen tremendous concerns for adapting GNNs in safety-critical applications and has attracted increasing research attention in recent years. Thus, it is necessary and timely to provide a comprehensive overview of existing graph adversarial attacks and the countermeasures. In this survey, we categorize existing attacks and defenses, and review the corresponding state-of-the-art methods. Furthermore, we have developed a repository with representative algorithms (https://github.com/DSE-MSU/DeepRobust/tree/master/deeprobust/graph). The repository enables us to conduct empirical studies to deepen our understandings on attacks and defenses on graphs.
BibTeX
@misc{jin2020adversarial,
  author = {Wei Jin and Yaxin Li and Han Xu and Yiqi Wang and Jiliang Tang},
  title = {{Adversarial Attacks and Defenses on Graphs: A Review and Empirical Study}},
  year = {2020},
  eprint = {2003.00653},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.00653},
}

Loading related content...

Figure