|
Input: The input image , where D means the image dimension, the label of the image x with groundtruth, the pre-trained simulator model , the forward function of the black-box target model interface f, and the finetuning loss function .
Parameters: Warm-up iteration steps t, the adaptive predict-interval of LSSIM , Bandits Attack parameter , noise exploration parameter , Bandits prior learning rate , image updating rate , the momentum factor of FABM, group numbers of unsupervised clustering results, the center beginning perturbations , of input images, attack type , project function , and image update function .
Output: Adversarial image that meets the requirements of norm-set attack, as .
-
1:
Initialize the adversarial example and the estimated gradient . Initialize the simulator model for each image. Initialize finetune dequeue with maximum length of t for coming finetuning query pairs. Initialize clustering centers randomly. Initialize empty perturbation , the size of which is the same as the batch. Initialize empty perturbation , which has the same size as the clustering centers.
-
2:
ifthen
-
3:
The central prior knowledge of other images in the same group is found using UCM.
-
4:
fordo
-
5:
-
6:
-
7:
-
8:
if then
-
9:
-
10:
-
11:
Append above query pairs into dequeue .
-
12:
if then
-
13:
Finetune the simulator model with using the query pairs in dequeue .
-
14:
Extract feature attentional region .
-
15:
else
-
16:
-
17:
-
18:
-
19:
Use to enhance the of .
-
20:
-
21:
-
22:
-
23:
return
|