Stronger and Transferable Node Injection Attacks

Samyak Jain, Tanima DuttaAAAI 2024

Abstract

Graph Neural Networks (GNNs) are increasingly deployed in security-sensitive domains, yet they remain vulnerable to adversarial manipulations. This paper introduces Resilient Node Injection Attacks (R-NIA), a novel framework designed to overcome the limitations of standard Projected Gradient Descent (PGD) methods. By employing margin-aware objectives, $L_2$ gradient updates, and direction-aware strategies, R-NIA generates malicious nodes that are both more effective at inducing misclassification and highly transferable across different GNN architectures. Experimental results across six diverse datasets demonstrate that R-NIA consistently outperforms state-of-the-art baselines, achieving up to a 14% improvement in attack success rates while maintaining stealthiness.

Introduction

Node Injection Attacks (NIAs) represent a significant threat to GNN-based systems, such as fraud detection and recommendation engines. Unlike traditional evasion attacks that modify existing graph structures, NIAs involve inserting a small number of malicious nodes to influence the predictions of target nodes. Current state-of-the-art attacks predominantly rely on Projected Gradient Descent (PGD) to maximize cross-entropy loss. However, these methods suffer from three primary deficiencies: suboptimal optimization due to the nature of cross-entropy, a lack of feature diversity caused by $L_\infty$ norm constraints, and poor transferability to black-box models.

Methodology: The R-NIA Framework

To address these challenges, we propose the Resilient Node Injection Attack (R-NIA), which incorporates several key innovations:

Margin Aware Attack (MAA)

Instead of the standard cross-entropy loss, R-NIA utilizes a max-margin loss function. This objective explicitly maximizes the difference between the target adversarial class and the ground-truth class, pushing the model's decision more decisively across boundaries.

Direction Awareness (MDA)

To avoid local minima in "smooth" regions of the loss landscape, we introduce a direction-aware strategy. By minimizing the cosine similarity between the injected nodes' features and their initial states, the attack is forced to explore a broader range of feature combinations, enhancing the diversity and potency of the adversarial nodes.

$L_2$ Gradient Updates and Weight Perturbation

R-NIA replaces the standard $L_\infty$ "sign" gradient updates with $L_2$ norm updates, allowing for more nuanced feature perturbations. Furthermore, to improve transferability, we implement Model-Distribution-based Transferable Attack (MDTA), which perturbs the weights of the surrogate model during the attack generation process to better align its loss landscape with potential black-box targets.

Key Insights and Visualization

The effectiveness of these strategies can be understood through the geometry of the loss surface. While traditional PGD often follows contour lines where loss changes are minimal, R-NIA's margin-aware and direction-aware components drive the attack more directly toward the target classification regions.

Comparison of attack trajectories on the loss landscape for (a) PGD, (b) MAA, (c) CSM, and (d) MDA.

As shown in the visualization above, the MDA approach (d) explores a much more complex path than the linear or simplistic trajectories of PGD (a) or MAA (b), leading to more robust adversarial features.

Experimental Evaluation

We evaluated R-NIA on six datasets, including citation networks (Cora, Citeseer), social graphs (Flickr), and large-scale graphs (Aminer, Amazon2M, Twitter).

Performance and Scalability

R-NIA consistently dominated baselines, often exceeding PGD's performance by over 14%. On massive graphs like Aminer, the attack maintained high efficacy, showing a 10% improvement over existing methods. This demonstrates the scalability of the R-NIA framework to real-world, large-scale graph applications.

Transferability and Stealth

A critical finding was the high cross-architecture success rate. Attacks optimized on a GCN surrogate were significantly more effective at fooling GAT models than previous methods. Despite this increased power, the attacks remained "imperceptible" according to the Closest Attribute Distance (CAD) metric, ensuring the malicious nodes blend in with the legitimate graph data.

Conclusion

R-NIA exposes a significant vulnerability in current GNN architectures by moving beyond simple gradient-based optimization. By prioritizing diversity and margin-based objectives, attackers can create highly transferable and potent malicious nodes. Future work should focus on developing robust defense mechanisms capable of detecting the diverse feature patterns generated by such direction-aware attacks.

Summary updated

BibTeX
@inproceedings{jain2024stronger,
  author = {Samyak Jain and Tanima Dutta},
  title = {{Stronger and Transferable Node Injection Attacks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i19.30111},
}
Figure