BASES
Code repository for Blackbox Attacks via Surrogate Ensemble Search (BASES), NeurIPS 2022
Install / Use
/learn @CSIPlab/BASESREADME
BASES: Blackbox Attacks via Surrogate Ensemble Search
Paper | Code | Poster | Slides
Pytorch implementation of Blackbox Attacks via Surrogate Ensemble Search in NeurIPS 2022.
Blackbox Attacks via Surrogate Ensemble Search
Zikui Cai, Chengyu Song, Srikanth V. Krishnamurthy, Amit K. Roy-Chowdhury,
M. Salman Asif<br>
UC Riverside
In this paper, we propose a novel method for blackbox attacks via surrogate ensemble search (BASES) that can generate highly successful blackbox attacks using an extremely small number of queries. We first define a perturbation machine that generates a perturbed image by minimizing a weighted loss function over a fixed set of surrogate models. To generate an attack for a given victim model, we search over the weights in the loss function using queries generated by the perturbation machine. Since the dimension of the search space is small (same as the number of surrogate models), the search requires a small number of queries.
<center> <img src='doc/framework.png' width='800px'> </center>Environment
See requirements.txt, some key dependencies are:
- python==3.8
- torch==1.11.0
Perform attacks
Classifiers
# Query in a blackbox setting
python query_w_bb.py --n_wb 20 --victim densenet121
# Learn weights in a whitebox setting
python learn_w_wb.py
Google cloud vision API
gcv_images.zip contains randomly selected images and responses from GCV
python gcv_attack.py
Comparison with other methods
Go to comparison folder for more details
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
