Abstract
Graph Neural Networks (GNNs) have demonstrated remarkable success in processing non-Euclidean data, yet they remain highly susceptible to adversarial attacks—small, intentional perturbations to graph topology or node features. This paper introduces the Uncertainty-aware Attention Graph Neural Network (UAG), a novel defense framework that leverages Bayesian techniques to quantify model and data uncertainty. By identifying nodes likely compromised by attacks, UAG employs an attention mechanism to diminish their influence during message passing. Experimental results across standard benchmarks demonstrate that UAG significantly outperforms existing state-of-the-art defenses in maintaining predictive accuracy under various adversarial scenarios.
Introduction
Despite their transformative impact on fields ranging from social network analysis to drug discovery, GNNs often operate as "black boxes," providing predictions without associated confidence measures. This lack of transparency makes them easy targets for adversarial attacks, such as the insertion of fake edges to trick the model into misclassification. Existing defense strategies typically focus on data smoothing but often overlook two critical dimensions: Model Uncertainty (whether the network weights are appropriate for the specific data) and Data Uncertainty (whether the input data itself is noisy or compromised).
The UAG Framework
The proposed UAG framework addresses these vulnerabilities through a dual-branch architecture consisting of a Probabilistic Branch for uncertainty estimation and a Deterministic Branch for final prediction.
1. Bayesian Uncertainty Technique (BUT)
UAG quantifies two distinct types of uncertainty:
- Model Uncertainty: Utilizing Monte Carlo (MC) Dropout, the model performs multiple forward passes with random neuron deactivation. The variance in these results indicates the model's confidence in its own parameters for a given input.
- Data Uncertainty: The authors introduce Node Diversity, which measures the variety of labels within a node’s neighborhood. Adversarial attacks typically increase this diversity (e.g., connecting a "Research" node to a "Marketing" node). UAG treats predictions as Gaussian distributions where the variance is tied to this diversity metric.
2. Uncertainty-aware Attention Technique (UAT)
Once uncertainties are calculated, they are integrated into the Deterministic Branch. An attention mechanism evaluates the uncertainty scores; nodes with high uncertainty are assigned lower weights. This effectively "mutes" potentially corrupted signals, preventing them from propagating misinformation to neighboring nodes during the graph convolution process.
Experimental Evaluation
The researchers evaluated UAG on three standard citation network benchmarks: Cora, Citeseer, and Pubmed. The model was tested against three attack vectors: Random Attacks (adding fake edges), DICE Attacks (deleting internal edges and adding external ones), and Mettack (a sophisticated meta-learning-based attack).
Key Results
UAG consistently demonstrated superior robustness compared to the previous state-of-the-art defense, RGCN, and standard models like GCN and GAT. As the "attack ratio" (the proportion of adversarial noise) increased, the performance gap between UAG and other models widened significantly.
Ablation studies revealed that the "UAG-Both" approach—combining both model and data uncertainty—provided the most stable defense. This confirms that the two types of uncertainty capture complementary aspects of adversarial noise: data uncertainty identifies topological tampering, while model uncertainty helps detect feature-based perturbations.
Conclusion
UAG represents a significant advancement in GNN security by transforming uncertainty from a diagnostic metric into a proactive defensive signal. While the Bayesian approach introduces some computational overhead due to multiple inference passes, its ability to maintain high accuracy under heavy attack makes it a robust solution for sensitive applications. Future research will explore extending this uncertainty-aware attention to dynamic, evolving graphs and investigating potential countermeasures against attacks specifically designed to bypass uncertainty filters.
Summary updated