Sparse Vicious Attacks on Graph Neural Networks

Giovanni Trappolini, Valentino Maiorca, Silvio Severino, Emanuele Rodolà, Fabrizio Silvestri, Gabriele Tolomei · DOI

Introduction

Link prediction is a fundamental task in graph-based machine learning, powering recommendation engines in social networks and e-commerce. However, these systems are vulnerable to adversarial manipulation. While previous research focused on perturbing existing nodes—an expensive and often impractical strategy—recent work explores the injection of "vicious" (fake) nodes. This paper introduces SAVAGE (SpArse Vicious Attacks on Graph nEtworks), a framework that optimizes for both attack success and resource efficiency by minimizing the number of injected nodes required to deceive Graph Neural Networks (GNNs).

Problem Formulation

The primary goal of a malicious actor in a link prediction context is often to force a recommendation between themselves (the attacker) and a high-profile target (the victim). Traditional attack models often exhaust a fixed budget of malicious nodes, which is inefficient and increases the likelihood of detection. SAVAGE addresses this by treating resource frugality—or sparsity—as a core optimization objective.

The SAVAGE Framework

SAVAGE is a white-box attack framework that assumes full knowledge of the target GNN's architecture and parameters. It formulates the attack as an optimization problem with a multi-objective loss function:

  1. Adversarial Loss: Ensures the model predicts a high probability for the target malicious link.
  2. Distance Loss: Constrains the structural changes to the graph to maintain a degree of "naturalness."
  3. Sparsity Loss: Penalizes the total number of active vicious nodes, forcing the optimizer to find the minimal set of resources needed for a successful attack.

To handle the discrete nature of graph edges, SAVAGE employs a continuous relaxation using a tanh transformation, enabling gradient-based optimization.

Comparison of attack strategies: (a) the original graph; (b) a generic attack that exhausts a node budget; (c) the SAVAGE attack, which achieves the same goal with significantly fewer malicious nodes.

Experimental Evaluation

The effectiveness of SAVAGE was tested across seven diverse datasets, including citation networks (Cora, Arxiv, Citation2) and social networks (Twitter, Wikipedia-Vote, GPlus). These datasets provide a range of scales and densities to validate the attack's robustness.

Key Findings

  • Efficiency: SAVAGE consistently achieves high attack success rates while utilizing 20% to 80% fewer vicious nodes compared to baseline iterative gradient attacks.
  • Confidence: Malicious links are predicted with high probability, indicating that the model is decisively fooled rather than marginally perturbed.
  • Transferability: Despite being a white-box GNN attack, the poisoned graphs successfully deceive traditional non-neural heuristics like Jaccard similarity and PageRank. For instance, SAVAGE can increase the Jaccard similarity score between an attacker and victim by up to 93x.

Discussion and Future Work

While highly effective, SAVAGE can cause detectable shifts in the graph's degree distribution, potentially serving as a signal for defensive systems. Furthermore, the current reliance on dense adjacency matrices poses scalability challenges for massive graphs. Future research will focus on incorporating node feature manipulation and developing robust defense mechanisms against such sparse, targeted attacks.

Conclusion

SAVAGE demonstrates that GNN-based recommendation systems can be compromised with far fewer resources than previously assumed. By explicitly optimizing for sparsity, attackers can create more efficient and stealthy malicious campaigns, highlighting a critical security gap in modern graph learning applications.

Summary updated

BibTeX
@article{trappolini2022sparse,
  author = {Giovanni Trappolini and Valentino Maiorca and Silvio Severino and Emanuele Rodolà and Fabrizio Silvestri and Gabriele Tolomei},
  title = {{Sparse Vicious Attacks on Graph Neural Networks}},
  journal = {IEEE Trans. Artif. Intell.},
  year = {2022},
  doi = {10.1109/tai.2023.3319306},
}
Figure