Bandits for Structure Perturbation-based Black-box Attacks to Graph Neural Networks with Theoretical Guarantees

Binghui Wang, Youqi Li, Pan Zhou
5/7/2022
cs.LGcs.CRcs.CV
gnn

Official code: Metaoblivion/Bandit_GNN_Attack (2 stars, Python, MIT, last commit 2022-05-07).

Abstract

Graph neural networks (GNNs) have achieved state-of-the-art performance in many graph-based tasks such as node classification and graph classification. However, many recent works have demonstrated that an attacker can mislead GNN models by slightly perturbing the graph structure.

Show full abstract

Existing attacks to GNNs are either under the less practical threat model where the attacker is assumed to access the GNN model parameters, or under the practical black-box threat model but consider perturbing node features that are shown to be not enough effective. In this paper, we aim to bridge this gap and consider black-box attacks to GNNs with structure perturbation as well as with theoretical guarantees. We propose to address this challenge through bandit techniques. Specifically, we formulate our attack as an online optimization with bandit feedback. This original problem is essentially NP-hard due to the fact that perturbing the graph structure is a binary optimization problem. We then propose an online attack based on bandit optimization which is proven to be {sublinear} to the query number $T$, i.e., $\mathcal{O}(\sqrt{N}T^{3/4})$ where $N$ is the number of nodes in the graph. Finally, we evaluate our proposed attack by conducting experiments over multiple datasets and GNN models. The experimental results on various citation graphs and image graphs show that our attack is both effective and efficient. Source code is available at~\url{https://github.com/Metaoblivion/Bandit_GNN_Attack}

View on arXivView PDF

Code Implementations(1)

MIT
20PythonMar 25, 20224 years agoMIT

Similar Papers

Cite this paper

@article{wang2022bandits,
  title  = {Bandits for Structure Perturbation-based Black-box Attacks to Graph Neural Networks with Theoretical Guarantees},
  author = {Binghui Wang and Youqi Li and Pan Zhou},
  year   = {2022},
  eprint = {2205.03546},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.03546}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.03546.svg)](https://codeofpaper.com/paper/2205.03546)

Discussion