Title: UNRESTRICTED ADVERSARIAL EXAMPLES VIA SEMANTIC MANIPULATION

Abstract: Machine learning models, especially deep neural networks (DNNs), have been shown to be vulnerable against adversarial examples which are carefully crafted samples with a small magnitude of the perturbation. Such adversarial perturbations are usually restricted by bounding their L p norm such that they are imperceptible, and thus many current defenses can exploit this property to reduce their adversarial impact. In this paper, we instead introduce "unrestricted" perturbations that manipulate semantically meaningful image-based visual descriptors -color and texture -in order to generate effective and photorealistic adversarial examples. We show that these semantically aware perturbations are effective against JPEG compression, feature squeezing and adversarially trained model. We also show that the proposed methods can effectively be applied to both image classification and image captioning tasks on complex datasets such as ImageNet and MSCOCO. In addition, we conduct comprehensive user studies to show that our generated semantic adversarial examples are photorealistic to humans despite large magnitude perturbations when compared to other attacks. * indicates equal contributions.

1. INTRODUCTION:

Machine learning (ML), especially deep neural networks (DNNs) have achieved great success in various tasks, including image recognition (Krizhevsky et al., 2012; He et al., 2016) , speech processing (Hinton et al., 2012) and robotics training (Levine et al., 2016) . However, recent literature has shown that these widely deployed ML models are vulnerable to adversarial examples -carefully crafted perturbations aiming to mislead learning models (Carlini & Wagner, 2017; Kurakin et al., 2016; Xiao et al., 2018b) . The fast growth of DNNs based solutions demands in-depth studies on adversarial examples to help better understand potential vulnerabilities of ML models and therefore improve their robustness.

To date, a variety of different approaches has been proposed to generate adversarial examples (Goodfellow et al., 2014b; Carlini & Wagner, 2017; Kurakin et al., 2016; Xiao et al., 2018a) ; and many of these attacks search for perturbation within a bounded L p norm in order to preserve their photorealism. However, it is known that the L p norm distance as a perceptual similarity metric is not ideal (Johnson et al., 2016; Isola et al., 2017) . In addition, recent work show that defenses trained on L p bounded perturbation are not robust at all against new types of unseen attacks (Kang et al., 2019) . Therefore, exploring diverse adversarial examples, especially those with "unrestricted" magnitude of perturbation has acquired a lot of attention in both academia and industries (Brown et al., 2018) .

Recent work based on generative adversarial networks (GANs) (Goodfellow et al., 2014a) have introduced unrestricted attacks (Song et al, 2018) . However, these attacks are limited to datasets like MNIST, CIFAR and CelebA, and are usually unable to scale up to bigger and more complex datasets such as ImageNet. Xiao et al. (2018b) directly manipulated spatial pixel flow of an image to produce adversarial examples without L p bounded constraints on the perturbation. However, the attack does not explicitly control visual semantic representation. More recently, Hosseini & Poovendran (2018) manipulated hue and saturation of an image to create adversarial perturbations. However, these examples are easily distinguishable by human and are also not scalable to complex datasets. In this work, we propose unrestricted attack strategies that explicitly manipulate semantic visual representations to generate natural-looking adversarial examples that are "far" from the original image in tems of the L p norm distance. In particular, we manipulate color (cAdv) and texture (tAdv) to create realistic adversarial examples (see Fig 1 ). cAdv adaptively chooses locations in an image to change their colors, producing adversarial perturbation that is usually fairly substantial, while tAdv utilizes the texture from other images and adjusts the instance's texture field using style transfer.

These semantic transformation-based adversarial perturbations shed light upon the understanding of what information is important for DNNs to make predictions. For instance, in one of our case studies, when the road is recolored from gray to blue, the image gets misclassified to tench (a fish) although a car remains evidently visible (Fig. 2b ). This indicates that deep learning models can easily be fooled by certain large scale patterns. In addition to image classifiers, the proposed attack methods can be generalized to different machine learning tasks such as image captioning ( Karpathy & Fei-Fei (2015) ). Our attacks can either change the entire caption to the target (Chen et al., 2017; Xu et al., 2019) or take on more challenging tasks like changing one or two specific target words from the caption to a target. For example, in Fig. 1 , "stop sign" of the original image caption is changed to "cat sitting" and "umbrella is" for cAdv and tAdv respectively.

To ensure our "unrestricted" semantically manipulated images are natural, we conducted extensive user studies with Amazon Mechanical Turk. We also tested our proposed attacks on several state of the art defenses. Rather than just showing the attacks break these defenses (better defenses will come up), we aim to show that cAdv and tAdv are able to produce new types of adversarial examples.

Experiments also show that our proposed attacks are more transferable given their large and structured perturbations (Papernot et al., 2016) . Our semantic adversarial attacks provide further insights about the vulnerabilities of ML models and therefore encourage new solutions to improve their robustness.

In summary, our contributions are: 1) We propose two novel approaches to generate "unrestricted" adversarial examples via semantic transformation; 2) We conduct extensive experiments to attack both image classification and image captioning models on large scale datasets (ImageNet and MSCOCO); 3) We show that our attacks are equipped with unique properties such as smooth cAdv perturbations and structured tAdv perturbations. 4) We perform comprehensive user studies to show that when compared to other attacks, our generated adversarial examples appear more natural to humans despite their large perturbations; 5) We test different adversarial examples against several state of the art defenses and show that the proposed attacks are more transferable and harder to defend.

2. COLORIZATION ATTACK (cADV):

Background. Image Colorization is the task of giving natural colorization to a grayscale image. This is an ill-posed problem as there are multiple viable natural colorizations given a single grayscale 2017) demonstrated an improved and diverse image colorization by using input hints from users guided colorization process.

Our goal is to adversarially color an image by leveraging a pretrained colorization model. We hypothesize that it is possible to find a natural colorization that is adversarial for a target model (e.g., classifier or captioner) by searching in the color space. Since a colorization network learns to color natural colors that conform to boundaries and respect short-range color consistency, we can use it to introduce smooth and consistent adversarial noise with a large magnitude that looks natural to humans. This attack differs from common adversarial attacks which tend to introduce short-scale high-frequency artifacts that are minimized to be invisible for human observers.

We leverage Zhang et al. (2016; 2017) colorization model for our attack. In their work, they produce natural colorizations on ImageNet with input hints from the user. The inputs to their network consist of the L channel of the image in CIELAB color space X L ∈ R H×W ×1 , the sparse colored input hints X ab ∈ R H×W ×2 , and the binary mask M ∈ B H×W ×1 , indicating the location of the hints.

cAdv Objectives. There are a few ways to leverage the colorization model to achieve adversarial objectives. We experimented with two main methods and achieved varied results.

Network weights. The straightforward approach of producing adversarial colors is to modify Zhang et al. (2017) colorization network, C directly. To do so, we simply update C by minimizing the adversarial loss objective J adv , which in our case, is the cross entropy loss. t represents target class and F represents the victim network.

EQUATION

Hints and mask. We can also vary input hints X ab and mask M to produce adversarial colorizations. Hints provides the network with ground truth color patches that guides the colorization, while the mask provides its spatial location. By jointly varying both hints and mask, we are able to manipulate the output colorization. We can update the hints and mask as follows:

EQUATION

cAdvAttack Methods. Attacking network weights allows the network to search the color space with no constraints for adversarial colors. This attack is the easiest to optimize, but the output colors are not realistic as shown in Fig. 2 . Our various strategies outlined below are ineffective as the model learns to generate the adversarial colors without taking into account color realism. However, colorizations produced often correlate with colors often observed in the target class. This suggests that classifiers associate certain colors with certain classes which we will discuss more in our case study.

Attacking input hints and mask jointly gives us natural results as the pretrained network will not be affected by our optimization. Attacking hints and mask separately also works but takes a long optimization time and give slightly worse results. For our experiments, we use Adam Optimizer (Kingma & Ba ( 2014)) with a learning rate of 10 -4 in cAdv. We iteratively update hints and mask until our adversarial image reaches the target class and the confidence change of consecutive iterations does not exceed a threshold of 0.05. Control over colorization. Current attack methods lack control over where the attack occurs, opting to attack all pixels indiscriminately. This lack of control is not important for most attacks where the is small but is concerning in cAdv where making unstructured large changes can be jarring. To produce realistic colorization, we need to avoid making large color changes at locations where colors are unambiguous (e.g. roads in general are gray) and focus on those where colors are ambiguous (e.g. an umbrella can have different colors). To do so, we need to segment an image and determine which segments should be attacked or preserved.

To segment the image into meaningful areas, we cluster the image's ground truth AB space using K-Means. We first use a Gaussian filter of σ = 3 to smooth the AB channels and then cluster them into 8 clusters. Then, we have to determine which cluster's colors should be preserved. Fortunately, Zhang et al. (2017) network output a per-pixel color distribution for a given image which we used to calculate the entropy of each pixel. The entropy represents how confident the network is at assigning a color at that location. The average entropy of each cluster represents how ambiguous their color is. We want to avoid making large changes to clusters with low-entropy while allowing our attack to change clusters with high entropy. One way to enforce this behavior is through hints, which are sampled from the ground truth at locations belonging to clusters of low-entropy. We sample hints from the k clusters with the lowest entropy which we refer as cAdv k (e.g. cAdv 2 samples hints from the 2 lowest entropy clusters).

Number of input hints. Network hints constrain our output to have similar colors as the ground truth, avoiding the possibility of unnatural colorization at the cost of color diversity. This trade-off is controlled by the number of hints given to the network as initialization (Fig. 4 ). Generally, providing more hints gives us similar colors that are observed in original image. However, having too many hints is also problematic. Too many hints makes the optimization between drawing adversarial colors and matching local color hints difficult. Since the search space for adversarial colors is constrained because of more hints, we may instead generate unrealistic examples.

Number of Clusters.:

The trade-off between the color diversity and the color realism is also controlled by the number of clusters we sample hints from as shown in Fig. 3 . Sampling from multiple clusters gives us realistic colors closer to the ground truth image at the expense of color diversity. When the number of hints increases (from left to right), the output colors are more similar to groundtruth. However, when the number of hints is too high (500), cAdv often generates unrealistic perturbations. This is due to a harder optimization for cAdv to both add adversarial colors and match GT color hints. cAdv is effective and realistic with a balanced number of hints.

Empirically, from our experiments we find that in terms of color diversity, realism, and robustness of attacks, using k = 4 and 50 hints gives us better adversarial examples. For the rest of this paper, we fix 50 hints for all cAdv k methods.

3 TEXTURE ATTACK (tADV) 2019)). Our overall objective function for the texture attack contains a texture transfer loss (L A t ) and an cross-entropy loss (J adv ).

EQUATION

Unlike style transfer methods, we do not want the adversarial examples to be artistically pleasing.

Our goal is to infuse a reasonable texture from a target class image to the victim image and fool a classifier or captioning network. To ensure a reasonable texture is added without overly perturbing the victim image too much, we introduce an additional constraint on the variation in the gram matrices of the victim image. This constraint helps us to control the image transformation procedure and prevents it from producing artistic images. Let m and n denote two layers of a pretrained VGG-19 with a decreasing spatial resolution and C for number of filter maps in layer n, our texture transfer loss is then given by Texture Transfer. To create tAdv adversarial examples, we need to find images to extract the texture from, which we call "texture source" (T s ). A naive strategy is to randomly select an image from the data bank as T s . Though this strategy is successful, their perturbations are clearly perceptible. Alternatively, we can randomly select T s from the adversarial target class. This strategy produces less perceptible perturbations compared to the random T s method as we are extracting a texture from the known target class. A better strategy to select T s is to find a target class image that lies closest to the victim image in the feature space using nearest neighbors. This strategy is sensible as we assure our victim image has similar feature statistics as our target image. Consequently, minimizing gram matrices is easier and our attack generates more natural looking images (see Fig. 5 ).

EQUATION

For texture transfer, we extract cross-layer statistics in Eq. 4 from the R11, R21, R31, R41, and R51 of a pretrained VGG19. We optimize our objective (Eq. 3) using an L-BFGS (Liu & Nocedal (1989)) optimizer. tAdv attacks are sensitive and if not controlled well, images get transformed into artistic images. Since we do not have any constraints over the perturbation norm, it is necessary to decide when to stop the texture transfer procedure. For a successful attack (images look realistic), we limit our L-BFGS to fixed number of small steps and perform two set of experiments: one with only one iteration or round of L-BFGS for 14 steps and another with three iterations of 14 steps. For the three iterations setup, after every iteration, we look at the confidence of our target class and stop if the confidence is greater than 0.9.

Texture and Cross-Entropy Weights. Empirically, we found setting α to be in the range [150, 1000] and β in the range 10 -4 , 10 -3 to be successful and also produce less perceptible tAdv examples.

The additional cross-entropy based adversarial objective J adv helps our optimization. We ensure large flow of gradients is from the texture loss and they are sufficiently larger than the adversarial crossentropy objective. The adversarial objective also helps in transforming victim image to adversarial without stylizing the image. All our tabulated results are shown for one iteration, α = 250 and β = 10 -3 , unless otherwise stated. We use the annotation tAdv iter α for the rest of the paper to denote the texture method that we are using. In (a), for cAdv, we show results for k = {1, 4} when attacked with 50 hints. For tAdv we show results for α = {250, 500} and β = 0.001. In (b) We show the transferability of our attacks. We attack models from the column and test them on models from the rows.

Control over Texture. The amount of texture that gets added to our victim image is controlled by the texture weight coefficient (α). Increasing texture weights improves attack success rate at the cost of noticeable perturbation. When compared to within-layer statistics, the cross-layer statistics that we use are not only better at extracting texture, it is also easier to control the texture weight.

4. EXPERIMENTAL RESULTS:

In this section, we evaluate the two proposed attack methods both quantitatively, via attack success rate under different settings, and qualitatively, based on interesting case studies. We conduct our experiments on ImageNet Deng et al. (2009) by randomly selecting images from 10 sufficiently different classes predicted correctly for the classification attack.

We use a pretrained ResNet 50 classifier (He et al. ( 2016)) for all our methods. DenseNet 121 and VGG 19 (Huang et al.; Simonyan & Zisserman (2014) ) are used for our transferability analysis.

4.1. cADV ATTACK:

cAdv achieves high targeted attack success rate by adding realistic color perturbation. Our numbers in Table 1 and Table 2 also reveal that cAdv examples with larger color changes (consequently more color diversity) are more robust against transferability and adversarial defenses. However, these big changes are found to be slightly less realistic from our user study (Table 2 , Table 4 ).

Smooth cAdv perturbations. Fig. 8 in our Appendix shows interesting properties of the adversarial colors. We observe that cAdv perturbations are locally smooth and are relatively low-frequency. This is different from most adversarial attacks that generate high-frequency noise-like perturbations. This phenomenon can be explained by the observation that colors are usually smooth within object boundaries. The pretrained colorization model will thus produce smooth, low-frequency adversarial colors that conform to object boundaries.

Importance of color in classification. From Fig. 2 , we can compare how different target class affects our colorization results if we relax our constraints on colors (cAdv on Network Weights, 0 hints). In many cases, the images contain strong colors that are related to the target class. In the case of golf-cart, we get a green tint over the entire image. This can push the target classifier to misclassify the image as green grass is usually overabundant in benign golf-cart images. Fig. 2b shows our attack on an image of a car to tench (a type of fish). We observe that the gray road turned blue and that the colors are tinted. We can hypothesize that the blue colors and the tint fooled the classifier into thinking the image is a tench in the sea.

The colorization model is originally trained to produce natural colorization that conforms to object boundaries. By adjusting its parameters, we are able to produce such large and abnormal color change that is impossible with our attack on hints and mask. These colors, however, show us some evidence that colors play a stronger role in classification than we thought. We reserve the exploration of this observation for future works.

While this effect (strong color correlation to target class) is less pronounced for our attack on hints and mask, for all cAdv methods, we observe isoluminant color blobs. Isoluminant colors are characterized by a change in color without a corresponding change in luminance. As most color changes occur along edges in natural images, it is likely that classifiers trained on ImageNet have never seen isoluminant colors. This suggests that cAdv might be exploiting isoluminant colors to fool classifiers.

4.2. tADV ATTACK:

tAdv successfully fools the classifiers with a very small weighted adversarial cross-entropy objective (β) when combined with texture loss, while remaining realistic to humans. As shown in Table 1 , our attacks are highly successful on white-box attacks tested on three different models with the nearest neighbor texture transfer approach. We also show our attacks are more transferable to other models.

In our Appendix, we show ablation results for tAdv attacks along with other strategies that we used for generating tAdv adversarial examples.

Structured tAdv Perturbations. Since we extract features across different layers of VGG, the tAdv perturbations follow a textural pattern. They are more structured and organized when compared to others. Our tAdv perturbations are big when compared with existing attack methods in L p norm. They are of high-frequency and yet imperceptible (see Fig. 1 and Fig. 8 ).

Importance of Texture in Classification. Textures are crucial descriptors for image classification and Imagenet trained models can be exploited by altering the texture. Their importance is also shown in the recent work from Geirhos et al. (2018) . Our results also shows that even with a small or invisible change in the texture field can break the current state of the art classifiers.

4.3. DEFENSE AND TRANSFERABILITY ANALYSIS:

We test all our attacks and other existing methods with images attacked from Resnet50. We evaluate them on three defenses -JPEG defense (Das et al., 2017) , feature squeezing (Xu et al., 2017) and adversarial training. By leveraging JPEG compression and decompression, adversarial noise may be removed. We tested our methods against JPEG compression of 75. Feature squeezing is a family of simple but surprisingly effective strategies, including reducing color bit depth and spatial smoothing.

Adversarial training has been shown as an effective but costly method to defend against adversarial attacks. Mixing adversarial samples into training data of a classifier improves its robustness without affecting the overall accuracy. We were able to obtain an adversarially pretrained Resnet152 model on ImageNet dataset and hence we tested our Resnet50 attacked images with this model.

Robustness.:

In general, our attacks are more robust to the considered defenses and transferable for targeted attacks. For cAdv, there is a trade-off between more realistic colors (using more hints and sampling from more clusters) and attack robustness. From Table 1 and 2, we show that as we progressively use more clusters, our transferability and defense numbers drop. A similar trend is observed with the change in the number of hints. cAdv is robust to JPEG defense and adversarial training because of their large and spatially smooth perturbations. For tAdv, increasing texture weight (α) does not necessarily perform well with the defense even though it increases attack success rate, but increasing texture flow with more iterations improves attack's robustness against defenses.

5. HUMAN PERCEPTUAL STUDIES:

To quantify how realistic tAdv and cAdv examples are, we conducted a user study on Amazon Mechanical Turk (AMT). We follow the same procedure as described in (Zhang et al., 2016; Xiao et al., 2018b) . For each attack, we choose the same 200 adversarial images and their corresponding benign ones. During each trial, one random adversarial-benign pair appears for three seconds and workers are given five minutes to identify the realistic one. Each attack has 600 unique pairs of images and each pair is evaluated by at least 10 unique workers. We restrict biases in this process by allowing each unique user up to 5 rounds of trials and also ignore users who complete the study in less than 30 seconds. In total, 598 unique workers completed at least one round of our user study.

For each image, we can then calculate the user preference score as the number of times it is chosen divided by the number of times it is displayed. 0.5 represents that users are unable to distinguish if the image is fake. For cAdv and tAdv, user preferences averages at 0.476 and 0.433 respectively, indicating that workers have a hard time distinguishing them. The user preferences for all attacks are summarized in Table 2 and their comparison with L p norm is in Table 4 and Table 5 .

6. ATTACKING CAPTIONING MODEL:

Our methods are general and can be easily adapted for other learning tasks. As proof of concept, we test our attacks against image captioning task. Image captioning is the task of generating a sequence of word description for an image. The popular architecture for captioning is a Long-Short-Term-Memory (LSTM) (Hochreiter & Schmidhuber, 1997) based models (Karpathy & Fei-Fei, 2015; Wang et al., 2017) . Recently, (Aneja et al., 2018) proposed a convolutional based captioning model for a fast and accurate caption generation. This convolutional based approach does not suffer from the commonly known problems of vanishing gradients and overly confident predictions of LSTM network. Therefore, we choose to attack the current state of the art convolutional captioning model. We randomly selected images from MSCOCO (Lin et al., 2014) for image captioning attack.

Attacking captioning models is harder than attacking classifiers when the goal is to change exactly one word in the benign image's caption unlike pixel based attacks (Chen et al., 2017; Xu et al., 2019) . We show that our attacks are successful and have no visible artifacts even for this challenging task. In Fig. 6 , we change the second word of the caption to dog while keeping the rest of the caption the same. This is a challenging targeted attack because, in many untargeted attacks, the resulted captions do not make sense. More examples are in our Appendix. Adversarial Cross-Entropy Objective for Captioning. Let t be the target caption, w denote the word position of the caption, F for the captioning model, I v for the victim image and J adv for the cross-entropy loss

EQUATION

For cAdv, we give all color hints and optimize to get an adversarial colored image to produce target caption. For tAdv, we add Eqn 6 to Eqn 4 to optimize the image. We select T S as the nearest neighbor of the victim image from the ones in the adversarial target class using ImageNet dataset. We stop our attack once we reach the target caption and the caption does not change in consecutive iterations. Note we do not change the network weights, we only optimize hints and mask (for cAdv) or the victim image (for tAdv) to achieve our target caption.

7. RELATED WORK:

Here we briefly summarize existing unrestricted and semantic adversarial attacks. 

:

std G m,n ij (Iv)(4)

Figures and Tables:

Photocopier

Figure 2: Class color affinity. Samples from unconstrained cAdv attacking network weights with zero hints provided. For (a) the ground truth (GT) class is pretzel; and for (b) the GT is car. These new colors added are commonly found in images from target class. For instance, green in Golfcart and blue sea in Tench images.

Figure 3: Controlling cAdv. We show a comparison of sampling 50 color hints from k clusters with low-entropy. All images are attacked to misclassify as golf-cart. Second and fourth row visualize our cluster segments, with darker colors representing higher mean entropy and red dots representing the sampled hints location. Sampling hints across more clusters gives less color variety.

Figure 4: Number of color hints required for cAdv. All images are attacked to Merganser with k = 4.When the number of hints increases (from left to right), the output colors are more similar to groundtruth. However, when the number of hints is too high (500), cAdv often generates unrealistic perturbations. This is due to a harder optimization for cAdv to both add adversarial colors and match GT color hints. cAdv is effective and realistic with a balanced number of hints.

Background. Texture transfer extracts texture from one image and adds it to another. Transferring texture from one source image to another target image has been widely studied in computer vision ( Efros & Freeman (2001); Gatys et al. (2015)). The Convolutional Neural Network (CNN) based texture transfer from Gatys et al. (2015) led to a series of new ideas in the domain of artistic style transfer ( Gatys et al. (2016); Huang & Belongie (2017); Li et al. (2017); Yeh et al. (2019)). More recently, Geirhos et al. (2018) showed that DNNs trained on ImageNet are biased towards texture for making predictions.

Figure 5: tAdv strategies. Texture transferred from random "texture source" (T s ) in row 1, random target class T s (row 2) and from the nearest target class T s (row 3). All examples are misclassified from Beacon to Nautilus. Images in the last row look photo realistic, while those in the first two rows contain more artifacts as the texture weight α increases (left to right). Let f be feature maps, Uf n be an upsampled f n that matches the spatial resolution of layer m. The cross layer gram matrices G between the victim image (I v ) and a target image (I t ) is given as G m,n ij (I) =

Figure 6: Captioning attack. Top: cAdv; Bottom: tAdv. We attack the second word to dog and show the corresponding change in attention mask of that word. More examples in Appendix.

Figure 8: Perturbation comparisons. Images are attacked from tarantula to beacon, golf cart, nautilus, photocopier, pretzel from left to right. Our perturbations (cAdv and tAdv) are large, structured and have spatial patterns when compared with other attacks. Perturbations from cAdv are low-frequency and locally smooth while perturbations from tAdv are primarily high-frequency and structured. Note gray color indicates no perturbations.

Figure 9: Additional qualitative examples for controlling cAdv. We show a comparison of sampling 50 color hints from k clusters with low-entropy. All images are attacked to golf-cart.Even numbered rows visualize our cluster segments, with darker colors representing higher mean entropy and red dots representing the location we sample hints from. Sampling hints across more clusters gives less color variety.

Figure 10: Images attacked with the method of (Hosseini & Poovendran, 2018) are not realistic, as these examples show. Compare Fig 12, showing results of our color attack. Similar qualitative results for CIFAR-10 are visible in Hosseini & Poovendran (2018).

Figure 11: Additional qualitative examples for tAdv. Texture transferred from random images (row 1), random images from adversarial target class (row 2) and from the nearest neighbor of the victim image from the adversarial target class (row 3). All examples are misclassified from Merganser to Umbrella. Images in the last row look photo realistic, while those in the first two rows contain more artifacts as the texture weight α increases (left to right).

Figure12: Captioning attack. We attack the second word of each caption to {dog, bird} and show the corresponding change in attention mask of that word. For tAdv we use the nearest neighbor selection method and for cAdv we initialize with all groundtruth color hints.

Figure 13: Randomly sampled, semantically manipulated, unrestricted adversarial examples and their perturbations. (a) Adversarial examples generated by cAdv attacking Hints and mask with 50 hints. (c) Adversarial examples generated by tAdv with α = 250, β = 10 -3 and iter= 1 using nearest target T s . (b) and (d) are their respective perturbations. Note that diagonal images are groundtruth images and gray pixels indicate no perturbation.

Comparison against defense models. Misclassification rate after passing different adversarial examples through the defense models (higher means the attack is stronger). All attacks are performed on ResNet50 with whitebox attack. The highest attack success rate is in bold. We also report the user preference scores from AMT for each attack (last column).

Table content: <table><tr><td>Method</td><td colspan="2">Res50 JPEG75</td><td>4-bit</td><td colspan="3">Feature Squeezing 5-bit 2x2 3x3</td><td>11-3-4</td><td>Res152</td><td>Adv Res152</td><td>User Pref.</td></tr><tr><td>Kurakin et al. (2016)</td><td>100</td><td>12.73</td><td>28.62</td><td>86.66</td><td>34.28</td><td>21.56</td><td>29.28</td><td>1.08</td><td>1.38</td><td>0.506</td></tr><tr><td>Carlini &amp; Wagner (2017)</td><td>99.85</td><td>11.50</td><td>12.00</td><td>30.50</td><td>22.00</td><td>14.50</td><td>18.50</td><td>1.08</td><td>1.38</td><td>0.497</td></tr><tr><td>Hosseini &amp; Poovendran (2018)</td><td>1.20</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Xiao et al. (2018b)</td><td>100</td><td>17.61</td><td>22.51</td><td>29.26</td><td>28.71</td><td>23.51</td><td>26.67</td><td>4.13</td><td>1.39</td><td>0.470</td></tr><tr><td>cAdv1</td><td>100</td><td>52.33</td><td colspan="5">47.78 76.17 36.28 50.50 61.95</td><td>12.06</td><td>11.62</td><td>0.427</td></tr><tr><td>cAdv2</td><td>99.89</td><td>46.61</td><td>42.78</td><td>72.56</td><td>34.28</td><td>46.45</td><td>59.00</td><td>17.39</td><td>19.4</td><td>0.437</td></tr><tr><td>cAdv4</td><td>99.83</td><td>42.61</td><td>38.39</td><td>69.67</td><td>34.34</td><td>40.78</td><td>54.62</td><td>14.13</td><td>12.5</td><td>0.473</td></tr><tr><td>cAdv8</td><td>99.81</td><td>38.22</td><td>36.62</td><td>67.06</td><td>31.67</td><td>37.67</td><td>49.17</td><td>6.52</td><td>10.04</td><td>0.476</td></tr><tr><td>tAdv 1 250</td><td>99.00</td><td>32.89</td><td>62.79</td><td>89.74</td><td>54.94</td><td>38.92</td><td>40.57</td><td>10.9</td><td>2.10</td><td>0.433</td></tr><tr><td>tAdv 3 250</td><td>100</td><td>36.33</td><td colspan="5">67.68 94.11 58.92 42.82 44.56</td><td>15.21</td><td>4.6</td><td>0.425</td></tr><tr><td>tAdv 1 1000</td><td>99.88</td><td>31.49</td><td>52.69</td><td>90.52</td><td>51.24</td><td>34.85</td><td>39.68</td><td>19.12</td><td>5.59</td><td>0.412</td></tr><tr><td>tAdv 3 1000</td><td>100</td><td>35.23</td><td>61.40</td><td>93.18</td><td>56.31</td><td colspan="2">39.66 45.59</td><td>22.28</td><td>6.94</td><td>0.406</td></tr></table>

Xiao et al. (2018b)   proposed geometric or spatial distortion of pixels in image to create adversarial examples. They distort the input image by optimizing pixel flow instead of pixel values to generate adversarial examples. While this attack leads to "natural" looking adversarial examples with large L ∞ norm, it does not take image semantics into account.Song et al (2018) andDunn et al. (2019) considered GANs for adversarial attacks. This attack is unrestricted in L p norm but they are restricted to simple datasets as it involves training GANs, which have been known to be unstable and computationally intensive for complex datasets like ImageNet(Karras et al., 2017;Brock et al., 2018).Hosseini & Poovendran (2018), changes the hue & saturation of an image randomly to create adversarial examples. It is similar to cAdv as they both involve changing colors, however, their search space is limited to two dimensions and their images are unrealistic, Appendix (Fig.10). Also, while this method has a non-trivial untargeted attack success rate, it performs extremely poorly for targeted attacks (1.20% success rate in our own experiments on ImageNet). Our work is also related toJoshi et al. (2019) andQiu et al. (2019), who manipulate images conditioned on face dataset attributes like glasses, beard for their attacks. These work focuses on changing single image visual attribute and are conditionally dependent. Our work focuses on changing visual semantic descriptors to misclassify images and are not conditioned to any semantic attributes.

Table content: <table><tr><td>Method</td><td>Semantic Based</td><td>Unrestricted Photorealistic</td><td>Explainable (eg color affinity)</td><td>Complex Dataset</td><td>Caption Attack</td></tr><tr><td>Kurakin et al. (2016)</td><td/><td/><td/><td/><td/></tr><tr><td>Carlini &amp; Wagner (2017)</td><td/><td/><td/><td/><td/></tr><tr><td>Hosseini &amp; Poovendran (2018)</td><td/><td/><td/><td/><td/></tr><tr><td>Song et al (2018)</td><td/><td/><td/><td/><td/></tr><tr><td>Xiao et al. (2018b)</td><td/><td/><td/><td/><td/></tr><tr><td>cAdv (ours)</td><td/><td/><td/><td/><td/></tr><tr><td>tAdv (ours)</td><td/><td/><td/><td/><td/></tr></table>

Summary of the difference in our work compared to previous work. Unlike previous attack methods, our attacks are unbounded, semantically motivated, realistic, highly successful, and scales to more complex datasets and other ML tasks. They are also robust against tested defenses.

Table content: <table><tr><td>8 CONCLUSION</td></tr><tr><td>Our proposed two novel unrestricted semantic attacks shed light on the role of texture and color fields</td></tr><tr><td>in influencing DNN's predictions. They not only consistently fool human subjects but in general</td></tr><tr><td>are harder to defend against. We hope by presenting our methods, we encourage future studies on</td></tr><tr><td>unbounded adversarial attacks, better metrics for measuring perturbations, and more sophisticated</td></tr><tr><td>defenses.</td></tr></table>



Table content: <table/>

Whitebox target attack success rate. Our attacks are highly successful on different models across all strategies. tAdv results are for α = 250, β = 10 -3 and iter= 1. 96.26 95.42 96.32 96.59 tAdv ablation study. Whitebox target success rate with nearest target T s (texture source). In columns, we have increasing texture weight (α) and in rows, we have increasing adversarial cross-entropy weight (β). All attacks are done on Resnet50. Ablation Studies.

Table content: <table><tr><td colspan="4">A.2 ADDITIONAL RESULTS</td><td/><td/><td/></tr><tr><td/><td/><td>Model</td><td colspan="3">Resnet50 Dense121 VGG 19</td><td>β</td><td>α 250</td><td>500</td><td>750</td><td>1000</td></tr><tr><td/><td/><td>Accuracy</td><td>76.15</td><td>74.65</td><td>74.24</td><td>0</td><td>25.00 99.61 98.55 95.92</td></tr><tr><td>Attack</td><td>Success</td><td colspan="6">Random T s Random Target T s Nearest Target T s cAdv 4 25 hints cAdv 4 50 hints cAdv 4 100 hints 10 -2 GT 99.67 99.72 96.16 99.72 99.89 10 -4 99.88 99.61 98.55 95.92 99.94 97.99 99.72 10 -3 97.99 99.27 99.66 99.50 99.50 99.78 99.83 99.93 99.78 99.83 100.00 99.44 99.50 99.93 k=1 k=2 k=4 k=8 k=6</td></tr></table>

Peer review (iclr2020):
This paper proposed to generate semantically meaningful adversarial examples in terms of color of texture. In order to make manipulated images photo-realistic, colors to be replaced are chosen by energy values, while textures are replaced with style-transfer technique. The paper is written clearly and organized well to understand. The graphs and equations are properly shown. The idea of using color replacement and texture transfer is interesting and novel. A somewhat weakness is that the discriminator - a pretrained ResNet 50 - is too weak for this scenario. What about a ResNet 50 trained on augmented datasets with color jittering? What about finetuned ResNet 50 with taking color channel as explicit input, since the attack uses this additional info. As tAdv attack seems to manipulate high frequency texture of images, how about applying a Gaussian filter on the images and feed into the discrimimator again? Is that attack still effective or not?