[Paper Review] GNNGuard: Defending Graph Neural Networks against Adversarial Attacks
GNNGuard is a general defense that augments any GNN by estimating neighbor importance and employing a layer-wise memory to prune or weight edges, boosting robustness against poisoning attacks on graphs.
Deep learning methods for graphs achieve remarkable performance across a variety of domains. However, recent findings indicate that small, unnoticeable perturbations of graph structure can catastrophically reduce performance of even the strongest and most popular Graph Neural Networks (GNNs). Here, we develop GNNGuard, a general algorithm to defend against a variety of training-time attacks that perturb the discrete graph structure. GNNGuard can be straight-forwardly incorporated into any GNN. Its core principle is to detect and quantify the relationship between the graph structure and node features, if one exists, and then exploit that relationship to mitigate negative effects of the attack.GNNGuard learns how to best assign higher weights to edges connecting similar nodes while pruning edges between unrelated nodes. The revised edges allow for robust propagation of neural messages in the underlying GNN. GNNGuard introduces two novel components, the neighbor importance estimation, and the layer-wise graph memory, and we show empirically that both components are necessary for a successful defense. Across five GNNs, three defense methods, and five datasets,including a challenging human disease graph, experiments show that GNNGuard outperforms existing defense approaches by 15.3% on average. Remarkably, GNNGuard can effectively restore state-of-the-art performance of GNNs in the face of various adversarial attacks, including targeted and non-targeted attacks, and can defend against attacks on heterophily graphs.
Motivation & Objective
- Address robustness gaps of GNNs to poisoning attacks that perturb graph structure.
- Provide a general defense that can be attached to any GNN without changing its core architecture.
- Leverage node feature–structure correlations to identify and mitigate fake edges while preserving learning capacity.
Proposed method
- Compute edge-level defense coefficients using cosine-based neighbor similarity between node embeddings.
- Prune edges probabilistically via a learned nonlinear transformation of edge feature vectors.
- Introduce layer-wise graph memory to stabilize edge pruning across layers.
- Integrate the defense into any GNN by adjusting the aggregation and update steps with defense coefficients.
- Show that the protection applies across multiple GNN types and attack scenarios.
Experimental results
Research questions
- RQ1Can GNNs be protected from both targeted and non-targeted graph poisoning attacks using a general defense?
- RQ2Does neighbor-based edge weighting and memory-based stabilization improve robustness across heterogeneous GNN architectures?
- RQ3Is the defense effective on heterophily graphs and in diverse datasets?
Key findings
- GNNGuard outperforms three state-of-the-art defenses by up to 15.3% on average across five GNNs, four datasets, and various attacks.
- The defense restores state-of-the-art performance for strong GNNs under direct targeted, influence targeted, and non-targeted attacks.
- Ablation shows both neighbor importance estimation and layer-wise memory contribute to defense effectiveness and training stability.
- On heterophily graphs, GNNGuard remains effective, demonstrating broad applicability beyond homophily-dominant graphs.
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.