Efficient Black-box Adversarial Attacks via Bayesian Optimization Guided by a Function Prior

Shuyu Cheng, Yibo Miao, Yinpeng Dong, Xiao Yang, Xiao-Shan Gao +1 more
5/29/2024
cs.LGcs.AIcs.CR

Official code: yibo-miao/PBO-Attack (7 stars, last commit 2024-05-27). 1 more implementation below.

Abstract

This paper studies the challenging black-box adversarial attack that aims to generate adversarial examples against a black-box model by only using output feedback of the model to input queries. Some previous methods improve the query efficiency by incorporating the gradient of a surrogate white-box model into query-based attacks due to the adversarial transferability. However, the localized gradient is not informative enough, making these methods still query-intensive. In this paper, we propose a Prior-guided Bayesian Optimization (P-BO) algorithm that leverages the surrogate model as a global function prior in black-box adversarial attacks. As the surrogate model contains rich prior information of the black-box one, P-BO models the attack objective with a Gaussian process whose mean function is initialized as the surrogate model's loss. Our theoretical analysis on the regret bound indicates that the performance of P-BO may be affected by a bad prior. Therefore, we further propose an adaptive integration strategy to automatically adjust a coefficient on the function prior by minimizing the regret bound. Extensive experiments on image classifiers and large vision-language models demonstrate the superiority of the proposed algorithm in reducing queries and improving attack success rates compared with the state-of-the-art black-box attacks. Code is available at https://github.com/yibo-miao/PBO-Attack.

View on arXivView PDF

Code Implementations(2)

Prior-guided Bayesian Optimization (P-BO) Black-box Adversarial Attack

70May 27, 20242 years ago
machanic/P-BOCommunity68%

Efficient Black-box Adversarial Attacks via Bayesian Optimization Guided by a Function Prior source code

00PythonNov 3, 20241 years ago

Similar Papers

Cite this paper

@article{cheng2024efficient,
  title  = {Efficient Black-box Adversarial Attacks via Bayesian Optimization Guided by a Function Prior},
  author = {Shuyu Cheng and Yibo Miao and Yinpeng Dong and Xiao Yang and Xiao-Shan Gao and Jun Zhu},
  year   = {2024},
  eprint = {2405.19098},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.19098v1},
  journal = {ICML 2024 2024}
}

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/2405.19098.svg)](https://codeofpaper.com/paper/2405.19098)

Discussion