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 (DeepRobust). The repository enables us to conduct empirical studies to deepen our understandings on attacks and defenses on graphs.
Introduction
Just as traditional deep learning models can be fooled by altering a few pixels in an image, Graph Neural Networks (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, DeepRobust, and conducting empirical studies to uncover the underlying behaviors of these attacks.
Taxonomy of Attacks and Defenses
The paper provides a comprehensive categorization of the field based on several key dimensions, including the attacker's knowledge and the timing of the perturbation.
Attack Taxonomy
- 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).
Defense Taxonomy
- 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.
Empirical Study and Insights
The authors developed DeepRobust, a PyTorch-based repository containing implementations of 8 attack algorithms and 5 defense algorithms. Using standard datasets like Cora, Citeseer, and Polblogs, the study revealed several key behaviors:
- Attackers prefer building bridges: Empirical analysis shows that attackers overwhelmingly prefer adding fake edges rather than deleting existing ones.
- Connecting the dissimilar: To maximize damage, attackers tend to connect nodes with very different features and ground-truth labels, violating the homophily assumption GNNs rely on.
- Structural degradation: Attacks generally increase the rank of the adjacency matrix and decrease the graph's overall clustering coefficient.
- Defenses have a breaking point: While current defenses mitigate minor tampering, they fail significantly when the graph is heavily poisoned. For instance, on the Cora dataset, a standard GCN's accuracy fell from 83.10% to 38.44% under a 25% Metattack. Even with the GCN-Jaccard defense, accuracy only reached 64.56%.
Conclusion and Future Directions
The current research landscape faces several hurdles. Defining "imperceptibility" in graphs is more complex than in images, as simple edge counts do not capture structural nuances. Furthermore, most research focuses on static, attributed graphs, leaving dynamic and heterogeneous networks largely unexplored. Finally, the scalability of gradient-based attacks to massive real-world networks remains a significant challenge for the community.
Summary updated