Abstract
Graph neural networks (GNNs) are a class of effective deep learning models for node classification tasks; yet their predictive capability may be severely compromised under adversarially designed unnoticeable perturbations to the graph structure and/or node data. Most of the current work on graph adversarial attacks aims at lowering the overall prediction accuracy, but we argue that the resulting abnormal model performance may catch attention easily and invite quick counterattack. Moreover, attacks through modification of existing graph data may be hard to conduct if good security protocols are implemented. In this work, we consider an easier attack harder to be noticed, through adversarially patching the graph with new nodes and edges. The attack is universal: it targets a single node each time and flips its connection to the same set of patch nodes. The attack is unnoticeable: it does not modify the predictions of nodes other than the target. We develop an algorithm, named GUAP, that achieves high attack success rate but meanwhile preserves the prediction accuracy. GUAP is fast to train by employing a sampling strategy. We demonstrate that a 5% sampling in each epoch yields 20x speedup in training, with only a slight degradation in attack performance. Additionally, we show that the adversarial patch trained with the graph convolutional network transfers well to other GNNs, such as the graph attention network.
Introduction
Graph Neural Networks (GNNs) have become essential tools in high-stakes domains such as financial fraud detection and social network analysis. Despite their success, GNNs are vulnerable to adversarial attacks. Traditional research in this field typically focuses on two strategies: modification attacks, which involve altering existing graph data (e.g., deleting edges between real users), and global accuracy reduction, which aims to degrade the model's overall performance.
However, these approaches have significant drawbacks. Modification attacks are often impractical in systems with robust security protocols, and global performance drops are easily detected by standard monitoring tools. To address these limitations, we propose GUAP (Graph Universal Attack through adversarial Patching). GUAP is designed to be a universal, unnoticeable, and realistic attack that injects a small set of "patch nodes" to flip the prediction of a specific target node while leaving the rest of the graph's predictions unaffected.
Methodology
The GUAP framework operates through a two-phase process: node generation and edge training.
Node Generation
The process begins by creating patch nodes with features that mimic the statistical distribution of the original graph. For instance, if the graph utilizes binary features, patch nodes are generated using a Bernoulli distribution based on the mean of the original data.
Edge Training
The core of GUAP is the Iterative Graph Perturbation (IGP) algorithm. IGP optimizes the connections between patch nodes and the rest of the graph by simultaneously pursuing two objectives:
- Target Attack: It pushes the target node toward the decision boundary of a different class, utilizing techniques inspired by the DeepFool algorithm.
- Preservation: It applies a loss function to ensure that the predictions for all non-target nodes remain unchanged, maintaining the model's perceived accuracy.
To enhance scalability, we introduce a sampling strategy. By sampling a small subset of nodes (e.g., 5%) during each training epoch, we significantly reduce computation time without substantial loss in attack efficacy.
Experimental Setup
We evaluated GUAP on three benchmark datasets for node classification:
- Cora: A citation network of scientific papers.
- Citeseer: A citation network larger than Cora.
- Pol.Blogs: A network of hyperlinks between political blogs.
These datasets provide a diverse range of graph structures and feature types (binary vs. numeric) to test the versatility of the attack.
Results and Discussion
GUAP demonstrates high effectiveness across all tested datasets. On the Cora dataset, it achieved an Attack Success Rate (ASR) of 91.37%, while on Citeseer, the ASR reached 85.05%. Crucially, these results were achieved while maintaining or slightly improving the original model's accuracy on non-target nodes.
Key Insights
- Stealth and Specificity: By protecting the accuracy of non-target nodes, GUAP remains invisible to anomaly detectors that monitor general performance metrics.
- Universal Connectivity: The patch is static; attacking a specific node only requires "flipping" the connections between that target and the pre-trained patch.
- Structural Dominance: Findings indicate that the learned edge structure is more critical than the specific features of the patch nodes.
- Efficiency: The 5% sampling strategy yielded a 20x speedup in training time with only a minor impact on success rates, suggesting that adversarial patterns in graphs are highly redundant.
- Transferability: Patches trained on Graph Convolutional Networks (GCNs) transferred effectively to Graph Attention Networks (GATs), indicating that the attack exploits fundamental graph geometry.
Conclusion
GUAP presents a significant advancement in stealthy adversarial attacks on GNNs. While currently a white-box attack requiring gradient access, it highlights critical vulnerabilities in graph-based models. Future work will explore black-box scenarios and the extension of these techniques to directed graphs and non-neural embedding methods.
Summary updated