[Paper Review] Uncertainty-aware Attention Graph Neural Network for Defending Adversarial Attacks
This paper proposes UAG, a novel uncertainty-aware graph neural network defense that explicitly models both model and data uncertainty using Bayesian inference and attention mechanisms. By dynamically reducing the influence of high-uncertainty nodes during message passing, UAG significantly outperforms state-of-the-art defenses like RGCN under various adversarial attack settings, especially in high-attack-ratio scenarios.
With the increasing popularity of graph-based learning, graph neural networks (GNNs) emerge as the essential tool for gaining insights from graphs. However, unlike the conventional CNNs that have been extensively explored and exhaustively tested, people are still worrying about the GNNs' robustness under the critical settings, such as financial services. The main reason is that existing GNNs usually serve as a black-box in predicting and do not provide the uncertainty on the predictions. On the other side, the recent advancement of Bayesian deep learning on CNNs has demonstrated its success of quantifying and explaining such uncertainties to fortify CNN models. Motivated by these observations, we propose UAG, the first systematic solution to defend adversarial attacks on GNNs through identifying and exploiting hierarchical uncertainties in GNNs. UAG develops a Bayesian Uncertainty Technique (BUT) to explicitly capture uncertainties in GNNs and further employs an Uncertainty-aware Attention Technique (UAT) to defend adversarial attacks on GNNs. Intensive experiments show that our proposed defense approach outperforms the state-of-the-art solutions by a significant margin.
Motivation & Objective
- Address the lack of uncertainty quantification in GNNs, which limits their robustness in safety-critical applications like finance and medicine.
- Identify and quantify two key uncertainty sources in GNNs: model uncertainty (due to parameter distribution) and data uncertainty (due to noisy or adversarial features).
- Develop a defense mechanism that leverages uncertainty estimates to reduce the propagation of adversarial influences in graph message passing.
- Improve GNN robustness against topology and feature perturbation attacks by integrating uncertainty-aware attention into the GNN architecture.
- Demonstrate superior performance over existing defenses like RGCN, particularly under high attack ratios and complex attacks such as DICE and Mettack.
Proposed method
- Propose a Bayesian Uncertainty Technique (BUT) that models both model and data uncertainty using variational inference, estimating uncertainty per node via posterior distributions over GNN parameters and features.
- Introduce an Uncertainty-aware Attention Technique (UAT) that modulates attention weights based on node-level uncertainty, reducing influence of high-uncertainty nodes during aggregation.
- Design a dual-loss mechanism: L1 loss encourages data uncertainty to capture node diversity in labeled nodes, while L2 loss captures it in unlabeled nodes via self-supervised learning.
- Formulate uncertainty-aware message passing where attention weights are scaled by inverse uncertainty, minimizing propagation of adversarial signals.
- Use a reparameterization trick to enable end-to-end training of the uncertainty-aware GNN with differentiable uncertainty estimation.
- Integrate uncertainty estimation into standard GNNs (e.g., GAT, GCN) without architectural overhaul, enabling plug-and-play robustness enhancement.
Experimental results
Research questions
- RQ1Can explicit modeling of model and data uncertainty improve GNN robustness against adversarial attacks?
- RQ2How does uncertainty-aware attention affect the propagation of adversarial perturbations in graph neural networks?
- RQ3Does combining labeled and unlabeled node diversity in uncertainty estimation enhance defense performance?
- RQ4How do hyperparameters controlling uncertainty sensitivity affect model accuracy under attack?
- RQ5Can UAG generalize across different attack types (e.g., random, DICE, Mettack) and datasets (e.g., Cora, Citeseer, PubMed) with consistent superiority over SOTA?
Key findings
- UAG-Both, which combines both model and data uncertainty, consistently outperforms UAG-Model and UAG-Data across all datasets and attack ratios, demonstrating the benefit of hierarchical uncertainty modeling.
- On the Cora and Citeseer datasets, UAG achieves significantly higher accuracy than RGCN under all attack ratios, with a margin of over 15% at 30% attack ratio.
- Under the DICE attack, which increases inter-community connections to confuse models, UAG maintains high accuracy while GAT and RGCN suffer sharp performance drops, showing robustness to structural perturbations.
- The ablation study confirms that the dual-loss design (L1 + L2) improves uncertainty estimation by leveraging both labeled and unlabeled data, leading to better defense performance than single-loss variants.
- Hyperparameter analysis shows that setting αₜ = 15 and βₜ = 2.5 (for τ ∈ {M, D}) yields optimal trade-off between robustness and information flow, with higher αₜ or lower βₜ improving defense at the cost of over-constraint.
- Visualization of attention weights shows that under high random attack ratios, UAG adaptively reduces attention weights toward zero for high-uncertainty nodes, effectively suppressing adversarial signal propagation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.