<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Feasibility of Inconspicuous GAN-generated Adversarial Patches against Object Detection</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Svetlana Pavlitskaya</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Bianca-Marina Codău</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>J. Marius Zöllner</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>FZI Research Center for Information Technology</institution>
          ,
          <addr-line>76131 Karlsruhe</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Karlsruhe Institute of Technology (KIT)</institution>
          ,
          <addr-line>76131 Karlsruhe</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Standard approaches for adversarial patch generation lead to noisy conspicuous patterns, which are easily recognizable by humans. Recent research has proposed several approaches to generate naturalistic patches using generative adversarial networks (GANs), yet only a few of them were evaluated on the object detection use case. Moreover, the state of the art mostly focuses on suppressing a single large bounding box in input by overlapping it with the patch directly. Suppressing objects near the patch is a diferent, more complex task. In this work, we have evaluated the existing approaches to generate inconspicuous patches. We have adapted methods, originally developed for diferent computer vision tasks, to the object detection use case with YOLOv3 and the COCO dataset. We have evaluated two approaches to generate naturalistic patches: by incorporating patch generation into the GAN training process and by using the pretrained GAN. For both cases, we have assessed a trade-of between performance and naturalistic patch appearance. Our experiments have shown, that using a pre-trained GAN helps to gain realistic-looking patches while preserving the performance similar to conventional adversarial patches.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;adversarial attacks</kwd>
        <kwd>object detection</kwd>
        <kwd>GANs</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Deep neural networks (DNNs) are vulnerable to adver</title>
      <p>
        sarial attacks in which input data is deliberately
modiifed [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. In case of image data, adversarial noise is added
to an input sample, afecting the entire image. Another
type of attack is an adversarial patch, which can be
positioned arbitrarily in a restricted region of an image.
Patches can be applied to the input images digitally as
well as in a real-world setting. But state-of-the-art
research focuses on creating adversarial patches which
are easily recognizable by the human eye. These are
characterized by chaotic patterns, bright colors and do
not resemble real-life objects but rather random noise
[
        <xref ref-type="bibr" rid="ref2 ref3 ref4">2, 3, 4</xref>
        ]. A much harder problem is posed by creating
inconspicuous patches as their purpose is to elude human
detection while still being a threat to DNNs.
      </p>
      <p>
        Recently, methods to enforce realistic appearance of
adversarial patches have been proposed [
        <xref ref-type="bibr" rid="ref5">5, 6, 7</xref>
        ]. Existing
approaches aim at deterring image classifiers or steering
models as well as object detectors. In the latter case,
however, an adversarial patch manages to attack only
one large object in an input image.
      </p>
      <p>In this work, we perform extensive literature research
and identify promising approaches to generate
inconspicuous adversarial patches. We further apply these
(a) No attack
(b) Pretrained DCGAN with
patch transformations
applied
(c) Pretrained BigGAN with la-(d) Pretrained BigGAN with
tent shift applied patch transformations
applied
(a) [9]</p>
    </sec>
    <sec id="sec-2">
      <title>Recently, approaches of the second group, which rely</title>
      <p>proach is the most suitable for the selected setting and on GANs, have gained popularity. We group GAN-based
discuss the trade-of between attack success and realistic approaches into two categories: (1) methods which
inappearance. clude patch generation directly into the GAN training
process and (2) methods which generate an adversarial
1. Related Work patch using a pretrained GAN.</p>
      <p>
        A first attempt to use GANs to generate natural
adver1.1. Conspicuous Adversarial Patches saapriraeltreaxianmedplWesawssaesrspteerinfoGrmAeNd [b1y8]Zihsacooemtbailn.e[d17w].itHhearen,
The idea of an adversarial perturbation restricted to a inverter, which maps data to the latent representation.
specific image area was first proposed by Brown et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The experiments, however, were restricted to the image
The first approaches focused on the image classification classification on MNIST and LSUN datasets as well as on
use case [8]. Later, patch-based attacks for object detec- a text generation task.
tion were also proposed [
        <xref ref-type="bibr" rid="ref3">9, 3, 10</xref>
        ]. A general approach
consists in either maximizing the detector loss or, in case 1.2.1. Combined Patch-GAN Training
of an object vanishing attack, minimizing the detector
loss for the empty label [11].
      </p>
      <p>To enable attacks in the real-world setting, the
nonprintability loss component is usually added, which
restricts pixel values to the set of printable colours.
Furthermore, the total variation loss is usually applied in
order to make colourful patterns of the generated
adversarial patches appear smoother [12]. The patches then be
printed, e.g. on a t-shirt to fool object detectors Examples
of adversarial patch attacks against object detection in
the real world are [13, 14]. Recently, a dataset of printable
adversarial patches against object detection was
introduced in [15]. However, adversarial patches generated in
the conventional way still have a conspicuous character
(see Figure 2).</p>
      <p>PhysGAN attack [6] is one representative of the first
group of approaches. It is designed to generate patch
attacks and place them in road side video footage to deter
steering prediction models. For a given input video
sequence, the algorithm learns a patch to be included into
every frame. The PhysGAN model includes, next to a
generator-discriminator pair, an encoder for extracting
the features out of input video frames. The encoder
output is then fed directly to the generator. The adversarial
road sign, computed by the generator, and a real road sign
are then sent to a discriminator. The resulting adversarial
patch is then added to each frame of the original video
sample creating an adversarial input. Finally, to obtain
the perturbation, the generator is updated over the loss
of the targeted model, calculated on the adversarial video
slice, while taking the original frames as the ground truth.
1.2. Inconspicuous Adversarial Patches The resulting adversarial patch is indistinguishable from
An inconspicuous adversarial patch can be enforced ei- the roadside poster and leads to a noticeable prediction
ther by using a specific loss function or a generative ad- error.
versarial network (GAN). The first group of approaches Another approach designed to generate more
realismaximizes the loss function to obtain patches that re- tic adversarial patches is the Perceptual-Sensitive GAN
semble a certain real image. adv-watermark [16], for (PSGAN) [19]. It was evaluated on the trafic sign
recoginstance, generates adversarial patches as image water- nition as well as on general image classification use cases.
marks by performing a heuristic random search for the It adapts existing patches, which are then placed in
reglobal minimum as an adaptation of the Basin Hopping gions of an image in order to have the highest impact on
(BH) optimization algorithm. ifnal predictions. Similar to the Wasserstein GAN
training [18], the PSGAN discriminator is updated several
success rate than the laVAN patch attack [8] while
testing on the same image set. Finally, Doan et al. managed
to create adversarial patches that resemble flowers, thus
being less attention grabbing, but impacting the targeted
classification model.</p>
      <sec id="sec-2-1">
        <title>2. Approach</title>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>We identify two major groups of GAN-based approaches</title>
      <p>to generate inconspicuous patches and describe the
proposed pipelines, adapted for the object detection use case.</p>
      <p>Our pipeline assumes using a white-box gradient-based
approach for adversarial patch generation.
2.1. Combined Patch-GAN Training
times in each epoch, whereas the generator is updated
only once per epoch. Before each update, a minibatch of
images and patches is sampled. The given minibatch of
patches is fed to the generator to create the adversarial
patches. Moreover, an attention model is included to
determine a patch position that has the highest impact
on the class prediction.</p>
      <p>Closely related to PSGAN is the Inconspicuous
Adversarial Patches (IAP) framework [20], which replicates the
process of patch generation in PSGAN and repeats it for a
series of generator-discriminator pairs. The goals is thus
to reduce the conspicuousness of the patch by feeding
it through the chain of GAN models. In the beginning,
the background images are analyzed and an attention
map indicating the best position for patch placement
is calculated. Each GAN pair represents a step in the
coarse-to-fine patch creation as it takes in the patch and
background image at a diferent scale. The GAN training
process remains the same as the generator aims to create
realistic patches while the discriminator tries to
distinguish them from the original images. IAP-generated
patches aim to be indistinguishable from the background
and thus resemble transparent masks.</p>
      <p>
        In the first approach we incorporate adversarial patch
training directly into the GAN training pipeline. This
method attempts to map the processes of PhysGAN [6]
and PSGAN [19] models from steering model prediction
and image classification respectively to the object
detector attack. We thus simultaneously train a GAN model
to create a latent space of realistic-looking patches and
an adversarial patch to deter the object detector.
1.2.2. Using a Pretrained Generator An overview of the training pipeline in the case of
In the second category, no full GAN training is performed. the combined Patch-GAN attacks is presented in Figure 4.
Instead, a pretrained GAN is used to improve patch ap- The patch is initialized randomly in the generator input
pearance. The Naturalistic Physical Adversarial Patch At- format and undergoes two updates in each training epoch:
tack, developed by Hu et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], aims to optimize for an one after the GAN training phase and one after the loss
adversarial patch in the GAN latent space directly. First, computation of the targeted object detector. Updating
the patch is initialized as a noise vector. After the initial- the patch after a GAN training step aims to restrict the
ization, it performs a gradient update for each epoch and patch to the latent space of realistic images developed by
for each image, on which the patch is placed before the the GAN model.
attack. For each iteration, the noise is fed to the generator
to obtain the adversarial patch. The resulting patch is Update input Compute adversarial perturbation
then added to the current image, which is then passed Add patch to image
tbooxthwe iothbjethcet dheigtehcetsotr.oTbojepctenrefosrsmpraonbaabttialictky,aanbdohuingdhiensgt Initniaoliisneput Generator DOebtejecctotr
class probability is selected. The gradient descent is then
used on the resulting loss, which also contains a total Discriminator Predict real or fake
variation loss. Using the approach described above, Hu
et al. performed several digital attacks, where they
experimented with six diferent patch sizes, as well as physical Figure 4: Overview of the combined Patch-GAN training
attacks.
      </p>
      <p>Universal NaTuralistic adversarial paTches (TnT) at- We further consider two extensions to the algorithm.
tack [7] is another approach relying on a pretrained GAN. First, we introduce a second generator update over the
This approach aims at attacking image classifiers with detector loss for the adversarial predictions. It takes into
realistic universal patches. It uses Wasserstein GAN [18] consideration the GAN loss for the generator, which gets
with gradient penalty, which was pretrained on a dataset the current patch as an input, and the loss of the object
of flower images. For the background images, they used detector for the adversarial image. The current patch
images from the ImageNet dataset to test the efective- generation approach difers from PSGAN as the GAN
ness of the attack in white-box and black-box setting. The loss is computed only over the patch and not over the
TnT attack with high confidence scores on the pretrained entire adversarial image, similar to the PhysGAN.
image classifier had an up the three times higher attack</p>
      <p>Second, we use two diferent random noise vectors
during the patch training. One noise vector is
reinitialized with each epoch and background image as it is used
to train the two GAN components, while the other is the
actual patch noise, initialized as before and optimized
with each epoch and background image with the goal of
reducing the loss of the object detector under attack.</p>
      <sec id="sec-3-1">
        <title>2.2. Patch Generation using a Pretrained GAN</title>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>The second approach focuses on restricting the trained patch to the images generated by a previously trained GAN model. Figure 5 shows the simplified pipeline for a</title>
      <p>Pretrained GAN Patch Attack. In this approach, random
noise is fed into the generator to obtain a realistic
image. Similar to the combined Patch-GAN approach, the
patch is applied to a background image and the resulting
adversarial image is passed to the object detector under
attack. The patch is then optimized to change the loss
of the object detector. However, the parameters of the
generator are no longer updated during patch training
as in the previous approach.</p>
      <p>Initial input
noise</p>
      <p>Update input
Generator</p>
      <p>Compute adversarial perturbation
Fake
patch</p>
      <p>Add to image</p>
      <p>Object
Detector</p>
    </sec>
    <sec id="sec-5">
      <title>Our approach difers from the Naturalistic Physical</title>
      <p>
        Patch Attack [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] in the attack procedure. In particular,
we no longer target the single person class and also
focus on considering all objects in the image instead of
a single object having the highest objectness and class
probabilities.
      </p>
      <sec id="sec-5-1">
        <title>3. Experiments and Evaluation</title>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>To evaluate the feasibility of the identified GAN-based approaches for inconspicuous patch generation for the object detection use case, we run experiments using YOLOv3 [21] as a model under attack.</title>
      <sec id="sec-6-1">
        <title>3.1. Dataset and Models</title>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>We have performed experiments with YOLOv3</title>
      <p>model [21], using an open source Python
implementa(a) Input image
(b) YOLOv3 predictions
tion1, detection was performed at the resolution 416x416
pixels.</p>
      <p>The images to be attacked come from the COCO
dataset [22]. For the per-instance attacks, we use an
exemplary COCO image (see Figure 6).</p>
      <p>We use two GAN architectures: DCGAN [23] and
BigGAN [24]. To train DCGAN, we have used the Flower
Recognition dataset [25]. The dataset contains 4,242
lfower images of 320x240 pixels equally split into the
classes daisy, dandelion, rose, sunflower, and tulip . The
dataset was built for image classification, not for
unsupervised training for image generation as needed for the
GAN models. Therefore, we performed dataset cleaning
by manually removing the images containing scenarios
such as a field of flowers or humans holding flowers,
as these represent outliers from the intended GAN
latent space, namely single flower generation. The clean
Flowers Recognition dataset thus contains 1,385 images.</p>
      <p>DCGAN was trained with the batch size of 64 with
the Adam optimizer and learning rate 0.0002. The
generated images have a size of 64x64 pixels and are further
resized to reach the patch size. For BigGAN, we used the
open source PyTorch re-implementation2, pretrained on
Imagenet.</p>
      <p>We use the PGD algorithm [26] for attacks. All
trainings were performed on an NVIDIA RTX 1080 Ti GPU
with 11GB VRAM.</p>
      <sec id="sec-7-1">
        <title>3.2. Conspicuous Baseline Patches</title>
      </sec>
    </sec>
    <sec id="sec-8">
      <title>To enable a fair comparison, we have first generated</title>
      <p>conventional adversarial patches using PGD. We have
focused on the object vanishing attack, i.e. we have
applied loss maximization using empty ground truth labels
to enforce suppression of object detections.</p>
      <p>Figure 7 demonstrates the PGD patches of diferent
sizes, We have experimented with various training times
and learning rates. The 100x100 pixels PGD patch
requires 7K epochs at learning rate 0.01 to suppress all
bounding boxes (see Figure 7a). The 80x80 pixels patch
1https://github.com/eriklindernoren/PyTorch-YOLOv3
2https://github.com/huggingface/pytorch-pretrained-BigGAN
(a) Patch size 100x100 pixels, (b) Patch size 80x80 pixels,
7K epochs, lr=0.01 5K epochs, lr=0.5
(a) Cropping and horizontal (b) Cropping and horizontal
lfipping, 2K epochs lfipping, 4K epochs
(c) Patch size 80x80 pixels, 15K (d) Patch size 80x80 pixels,
epochs, lr=0.01 15K epochs, lr=0.02
(c) 2,5K epochs
(d) 5K epochs</p>
      <sec id="sec-8-1">
        <title>3.3. Combined PGD-GAN Training</title>
      </sec>
    </sec>
    <sec id="sec-9">
      <title>For the combined PGD-GAN approach, we used the</title>
      <p>DCGAN architecture, while the PGD attack was
imple(e) Patch size 60x60 pixels, 10K (f) Patch size 60x60 pixels, 10K mented as done for the conspicuous baseline.</p>
      <p>epochs, lr=0.02 epochs, lr=0.5 Following the baseline, a model with one discriminator
Figure 7: Attacks with conventional PGD patches and generator update per training step was first
evaluated. After generator and discriminator parameters are
updated at step , the generator gets an updated patch at
step  + 1 and outputs a new patch. We then insert the
only achieves the same result in 5K epochs when using new patch in the COCO image and produce predictions
a learning rate of 0.5 as seen in Figure 7b. Training of with the YOLOv3 object detector. After computing the
the 80x80 pixels patch with learning rates of 0.01 and YOLOv3 loss, the patch optimizer was run in order to
up0.02 did not manage to suppress all bounding boxes even date the current patch state. This approach led to highly
after 15K epochs (see Figures 7c and 7d). Because of its distorted patches not resembling the dataset, whereas the
smaller attack surface, we train the 60x60 pixels patch patch itself had no impact on the surrounding bounding
directly with a learning rate of 0.02. Figure 7e shows, boxes.
however, that this patch does not manage to suppress We have achieved better results via introducing a
secfour bounding boxes, which are placed towards the im- ond generator update. We thus updated generator twice
age margins. Using the learning rate of 0.5 for the 60x60 per epoch: first during the GAN training step and then
afpixels patch gives better results. Only one bounding box ter the patched image is evaluated and the loss of YOLOv3
remains in Figure 7f. The performance of the 60x60 pixels is calculated. Figure 8b shows, that, the patch images
patch stagnates and the confidence score of the remain- remain in the dataset distribution after 4K epochs.
Howing bounding box does not decrease after 100K epochs, ever, with each newly generated image, a diferent flower
at which point the training is stopped. type is created (a dandelion at 2K epochs and a daisy</p>
      <p>Overall, the conventional PGD patches are able to com- at 4K epochs). At both stages the covered person is not
pletely supress all detections in an input images using a detected and the confidence score for the car in the back
suficiently large patch (at least 80x80x pixels, i.e. 3% of decreases.
an input). The smaller the patch, the more it profits from Figures 8c and 8d demonstrate how this version of
a higher learning rate and longer training time. the algorithm performs without horizontal flipping. The
patch covers an entire cyclist, which prevents it from
being identified. Moreover the adjacent cars are
identiifed as such only with a 0.57 and 0.68 confidence score
respectively, which are lower than in the corresponding
clean image. However, the confidence score does not
decline linearly over the epochs. For instance, the red
bounding box in Figure 8d displays a higher confidence
score of 0.68 at epoch 5K compared to only 0.52 in epoch
2500 as shown in Figure 8c.</p>
      <p>The last model that we have evaluated included
updating the generator once per epoch, after both the
discriminator and the patch were updated. Figure 9 shows
that the patch developed with this method manages to
suppress more bounding boxes in the neighbouring
region. However, the generator obviously does not learn
the distribution of the GAN training dataset.</p>
      <p>In summary, we could generate realistic looking
adversarial patches with the combined approach. The best
performing version of the algorithm included two
generator updates per epoch. The attack success, however,
is worse than when conspicuous adversarial patches are
used.
(a) Interpolation, augmenta-(b) Interpolation,
augmenta</p>
      <p>tions, 1K epochs tions, 3K epochs
(c) No interpolation,
epochs</p>
    </sec>
    <sec id="sec-10">
      <title>3K (d) No interpolation,</title>
      <p>epochs</p>
      <p>5K
(e) With latent shift applied, (f) With patch
transforma</p>
      <p>1K epochs tions applied, 5K epochs
epoch (see Figure 10b).
3.4. Using a Pretrained Generator Experiments without patch interpolation (i.e. using
patches of size 64x64 pixels as generated by DCGAN)
Next, we evaluate the usage of a pretrained GAN gen- also show the same darkening efect (see Figures 10c and
erator. We have experimented with two GAN models: 10d). As expected, these patches also do not suppress the
DCGAN and BigGAN. DCGAN was trained for 2K epochs surrounding boxes as well as the previous experiment
on the Flowers Recognition dataset, which was prepro- due to their smaller attack surface, but the confidence
cessed as described above. For the BigGAN, we have scores are decreased. This is also consistent with our
used the pretrained model and set the chosen class to conspicuous baseline experiments. The adversarial patch,
daisy (985). The patch optimization is the same as for the generated with the pretrained generator, only covers
conspicuous baseline, the weight for the total variation part of the cyclist but the object detector cannot detect
is set to 0.01. a person. In addition, the bounding boxes surrounding</p>
      <p>Figure 10 demonstrates the results for the experiments the patch have a lower confidence score. Afected are the
with the pretrained DCGAN. We have first experimented detections of the cars to the right of the patch as well as
with patches resized from 64x64 as generated by DC- the bicycle below it.</p>
      <p>GAN to 100x100 pixels using interpolation. As Figure 10a To mitigate the darkening patch efect, we further
evalshows, the patch is placed on a cyclist, which deters the uate two countermeasures. First, we apply latent shift
object detector from recognizing the person, the bicycle interpolation. For that, we initialize a patch mask of
ranand the car behind them after 1K epochs using a learning domly distributed values and then apply it to the patch
rate of 0.01. Moreover, the car to the left of the patch via interpolation. This procedure is repeated during each
has the reduced confidence score of 0.53 compared to training epoch before applying the patch to the COCO
the clean image score of 0.76. However, a major problem image. Figure 10e shows results for this approach after
here is that the patch is getting darker with each training 3K training epochs. In this case, the patch value does not
(b) Attack with a conspicuous</p>
      <p>PGD patch
(c) With patch transforma-(d) With patch
transforma</p>
      <p>tions applied, 7K epochs tions applied, 10K epochs
remain in the DCGAN image distribution, but resembles
noise, which diverges from the flower images, and does
not improve with longer training time. Moreover, the
patch performs worse than the previous experiments
during the evaluation. The person to the left is recognized
by the object detector albeit with a lower score than in
the clean image. The other surrounding bounding boxes
do not have a considerably reduced confidence score.</p>
      <p>
        A further attempt, aiming to improve the appearance
of patches, is the usage of patch transformation, as
suggested in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. This approach aims at making patches
more robust and includes a number of transformations
applied to a patch before it is added to an input image.
      </p>
      <p>In includes adding random noise to the patch as well as
random changes in patch brightness and contrast. In
particular, we first multiply the patch with a contrast mask
and then add brightness and noise masks. In all cases,
masks include randomly sample values, the contrast
interval is restricted to [0.8, 1.2], the brightness interval is
restricted to [-0.1, 0.1], the noise mask contains values
in the interval [-0.1, 0.1]. As can be seen in Figure 10f,
the patch stays in the latent space of the DCGAN model
after 5K epochs. This, however, comes at a cost of small
rise in the confidence of object detections near the patch.</p>
      <p>As the figures demonstrate, in our DCGAN
experiments we have no control over the generated flower class,
so that patches may contain various flowers during the
training.</p>
      <p>We further repeat the experiments with the BigGAN
model. The chosen class is 985 representing daisies. The
experiments are performed with the patches of 128x128
pixels, which is the size of the original BigGAN generator
redP +ACDGN f-trrsaon itsanm
n
itra o
e
4.4
39.3
0.2
0.4
output. Figure 11a displays the patch attack result after dataset, containing objects of classes person, car, bicycle.
7K epochs. It turns completely black, however it still The resulting subset contains 1,146 images, which are
manages to suppress the identification of the person to further split according to the COCO protocol to 1,101
the left of the patch. train and 45 test images. All universal patch training
ex</p>
      <p>Next, we assess the efect of adding the interpolation periments are run for 1K epochs over the entire training
with the latent value. Figure 11b shows the patch result- dataset. The patch learning rate is set to 0.01 and the
ing from 7K epochs. In this case, only the background of GAN learning rate for the combined PGD-GAN patch
the flower images turns black while the flowers remain attack is set to 0.0002. The patch size during training is
clearly visible. Moreover, the patch manages to suppress set to the original size of the GAN architecture output
the bounding boxes of the cars above and to the right of (i.e., 64x64 for DCGAN and 128x128 for BigGAN) to avoid
its position as well as the identification of the first cyclist information loss through resizing. The patch placement
and the first bicycle on the left. is fixed similar in the per-instance experiments.</p>
      <p>Finally, we apply patch transformations. This helps Using the conventional PGD patches, we could
supto fully overcome the problem of the dark patch back- press all bounding boxes in the test images. The
univerground, as the patch background is not longer black, but sal patch generated using the pretrained BigGAN with
resembles a field. As Figure 11c shows, the patch achieves patch transformations for brightness and contrast was
similar results to the previous BigGAN experiment from also successful (see Figure 12). In comparison, the
preFigure 11b. It suppresses the same bounding boxes and trained DCGAN patch attack has a reduced efect on the
shows a confidence score of 0.75 for the car bounding box object detection (see Figure 12j). However, it reduces the
in the upper left corner of the patch. This score is higher confidence scores of the surrounding bounding boxes
sigthan in the previous BigGAN experiment but lower than nificantly. One major diference to the previous example
in the clean image. Moreover, by training the pretrained is the quality of the image and of the generated object
BigGAN patch with transformation for 10K epochs on respectively. The daisy image in this case is distorted and
one COCO image, the bounding box in the upper left no longer recognizable as a flower.
corner is suppressed as well (see Figure 11d). We have trained and evaluated several patches using</p>
      <p>
        In summary, the approach involving a pretrained gen- the same settings (see Table 1). We have also evaluated
erator leads to a significantly higher image fidelity. In a a patch, generated using the approach by Hu et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]
standard setting, the patch tends to get completely black, using the open-source code3. Following the procedure
but the proposed latent shift and patch transformations in the paper, the training was performed on the INRIA
help to overcome the problem. As expected, BigGAN led dataset [28] for 1K epochs. We also set the class to daisy.
to significantly better patches due to larger capacity. Note, that direct comparison with the method by Hu et
al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] is not possible due a diferent method to add patch
3.5. Universal Inconspicuous Patches to an image (see Figure 13). Instead of attacking object
of a certain class by direct overlapping with a patch, we
focus on a single patch at a fixed position in an image,
which can attacks all objects.
      </p>
      <p>Every approach managed to reduce the average mAP</p>
    </sec>
    <sec id="sec-11">
      <title>Finally, we evaluate whether the studied approaches to</title>
      <p>generate inconspicuous patches can also be applied in
a universal manner. The goal of a universal attack is to
fool all images with a single perturbation [27].</p>
      <p>For the experiments, we create a subset of the COCO</p>
    </sec>
    <sec id="sec-12">
      <title>3https://github.com/aiiu-lab/Naturalistic-Adversarial-Patch</title>
      <p>
        drastically, whereas the best result was obtained with
the conventional PGD attack, as expected. The patch
generated according to [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] achieves the same mAP, as
the pretrained BigGAN without transformations and the
pretrained DCGAN with transformations. This patch
also has the best results for the class person, but worst
for the class car. Finally, the pretrained BigGAN patch
with transformation scores the highest mAP for both
images, being least efective overall. In the case of one
of the pretrained BigGAN patches with patch
transformations, the mAP score of 4.4% is even higher than the
black square mAP value. The patches generated with the
pretrained BigGAN demonstrate, however, the most
naturalistic appearance out of all universal experiments, also
compared to the results obtained with the framework by
Hu et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <sec id="sec-12-1">
        <title>4. Conclusion</title>
      </sec>
    </sec>
    <sec id="sec-13">
      <title>In this work, we have evaluated the existing GAN-based</title>
      <p>methods for inconspicuous patch generation on the
object detection use case. Following the analysis of the state
of the art, we have identified two groups of promising
approaches: the first method focuses on combining the
GAN training process with the training of the adversarial
patch, while the second one relies on a pretrained GAN
model during the patch training process. For each group,
we have adapted the procedure to attack the object
detector and ran the experiments on YOLOv3 as a model under
attack both in per-instance and universal settings using
the COCO dataset. All attacks were performed using the
PGD algorithm. Diferently from the state of the art, we
focused on suppressing objects in the direct proximity of
a patch, which is also a realistic attacks scenario.</p>
      <p>Our experiments have demonstrated, that using the
pretrained GAN generator leads to adversarial patches
of higher visual fidelity. Better performing BigGAN led
to more realistic looking patches compared to DCGAN.
However, since BigGAN training on ImageNet is resource
consuming, we have performed the experiments on
combined PGD-GAN training only with a DCGAN model.
Evaluating the combined training approach with a GAN
of larger capacity might lead to even better results.</p>
      <p>
        During evaluation of the universal attacks, we could
observe an evident trade-of between the patch
appearance and the attack performance. Our pretrained DCGAN
and combined PGD-GAN have demonstrated attack
performance comparable to the state-of-the-art approach by
Hu et al [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], although no direct comparison is possible
because of diferent patch placement approaches. The
pretrained DCGAN approach as well as the PGD GAN
approach led to a better attack success than the pretrained
BigGAN method during evaluation. Overall, the
performance on the test set under attack was significantly lower
than on the clean images. Although the attack strength of
the conspicuous patches could not be reached, the
studied approaches present a promising trade-of between
the attack success and naturalistic appearance.
      </p>
      <sec id="sec-13-1">
        <title>Acknowledgments</title>
      </sec>
    </sec>
    <sec id="sec-14">
      <title>The research leading to these results is funded by the</title>
      <p>German Federal Ministry for Economic Afairs and
Climate Action within the project “KI Absicherung“ (grant
19A19005W) and by KASTEL Security Research Labs.</p>
      <p>The authors would like to thank the consortium for the
successful cooperation.
[6] Z. Kong, J. Guo, A. Li, C. Liu, PhysGAN: Generating Perceptual-Sensitive GAN for Generating
AdverPhysical-World-Resilient Adversarial Examples for sarial Patches, in: AAAI Conference on Artificial
Autonomous Driving, in: Conference on Computer Intelligence, 2019.</p>
      <p>Vision and Pattern Recognition (CVPR), Computer [20] T. Bai, J. Luo, J. Zhao, Inconspicuous adversarial
Vision Foundation / IEEE, 2020. patches for fooling image-recognition systems on
[7] B. G. Doan, M. Xue, S. Ma, E. Abbasnejad, D. C. mobile devices, IEEE Internet of Things Journal
Ranasinghe, Tnt attacks! universal naturalistic (2021).
adversarial patches against deep neural network [21] J. Redmon, A. Farhadi, Yolov3: An incremental
systems, CoRR abs/2111.09999 (2021). improvement, CoRR abs/1804.02767 (2018).
[8] D. Karmon, D. Zoran, Y. Goldberg, Lavan: Local- [22] T. Lin, M. Maire, S. J. Belongie, J. Hays, P. Perona,
ized and visible adversarial noise, in: International D. Ramanan, P. Dollár, C. L. Zitnick, Microsoft
Conference on Machine Learning (ICML), PMLR, COCO: common objects in context, in: European
2018. Conference on Computer Vision (ECCV), Springer,
[9] X. Liu, H. Yang, Z. Liu, L. Song, Y. Chen, H. Li, 2014.</p>
      <p>DPATCH: an adversarial patch attack on object de- [23] A. Radford, L. Metz, S. Chintala, Unsupervised
tectors, in: AAAI Workshop on Artificial Intelli- representation learning with deep convolutional
gence Safety, 2019. generative adversarial networks, in: International
[10] M. Lee, J. Z. Kolter, On physical adversarial patches Conference on Learning Representations (ICLR),
for object detection, CoRR abs/1906.11897 (2019). 2016.
[11] K. H. Chow, L. Liu, M. Loper, J. Bae, M. E. Gursoy, [24] A. Brock, J. Donahue, K. Simonyan, Large scale
S. Truex, W. Wei, Y. Wu, Adversarial objectness gra- GAN training for high fidelity natural image
syndient attacks in real-time object detection systems, thesis, in: International Conference on Learning
in: International Conference on Trust, Privacy and Representations (ICLR), 2019.</p>
      <p>Security in Intelligent Systems and Applications [25] A. Mamaev, Flowers Recognition,
(TPS-ISA), IEEE, 2020.
https://www.kaggle.com/datasets/alxmamaev/flowers[12] M. Sharif, S. Bhagavatula, L. Bauer, M. K. Reiter, recognition, 2018. Accessed: 2022-01-12.</p>
      <p>Accessorize to a crime: Real and stealthy attacks [26] A. Madry, A. Makelov, L. Schmidt, D. Tsipras,
on state-of-the-art face recognition, in: Conference A. Vladu, Towards Deep Learning Models Resistant
on Computer and Communications Security (CCS), to Adversarial Attacks, International Conference
ACM, 2016. on Learning Representations (ICLR) (2018).
[13] K. Xu, G. Zhang, S. Liu, Q. Fan, M. Sun, H. Chen, [27] S. Moosavi-Dezfooli, A. Fawzi, O. Fawzi, P. Frossard,
P. Chen, Y. Wang, X. Lin, Adversarial t-shirt! evad- Universal adversarial perturbations, in:
Confering person detectors in a physical world, in: Eu- ence on Computer Vision and Pattern Recognition
ropean Conference on Computer Vision (ECCV), (CVPR), Computer Vision Foundation / IEEE, 2017.</p>
      <p>Springer, 2020. [28] N. Dalal, B. Triggs, Histograms of oriented
gra[14] Z. Wu, S. Lim, L. S. Davis, T. Goldstein, Making dients for human detection, in: Conference on
an invisibility cloak: Real world adversarial attacks Computer Vision and Pattern Recognition (CVPR),
on object detectors, in: European Conference on Computer Vision Foundation / IEEE, 2005.</p>
      <p>Computer Vision (ECCV), Springer, 2020.
[15] A. Braunegg, A. Chakraborty, M. Krumdick,</p>
      <p>N. Lape, S. Leary, K. Manville, E. M. Merkhofer,
L. Strickhart, M. Walmer, APRICOT: A dataset of
physical adversarial attacks on object detection, in:
European Conference on Computer Vision (ECCV),</p>
      <p>Springer, 2020.
[16] X. Jia, X. Wei, X. Cao, X. Han, Adv-watermark: A
novel watermark perturbation for adversarial
examples, in: International Conference on Multimedia,</p>
      <p>ACM, 2020.
[17] Z. Zhao, D. Dua, S. Singh, Generating natural
adversarial examples, in: International Conference
on Learning Representations (ICLR), 2018.
[18] M. Arjovsky, S. Chintala, L. Bottou, Wasserstein</p>
      <p>GAN, CoRR abs/1701.07875 (2017).
[19] A. Liu, X. Liu, J. Fan, Y. Ma, A. Zhang, H. Xie, D. Tao,</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>C.</given-names>
            <surname>Szegedy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Zaremba</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Sutskever</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Bruna</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Erhan</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Goodfellow</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Fergus</surname>
          </string-name>
          ,
          <source>Intriguing Properties of Neural Networks, International Conference on Learning Representations (ICLR)</source>
          (
          <year>2014</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>T. B. Brown</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          <string-name>
            <surname>Mané</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Roy</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Abadi</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Gilmer</surname>
          </string-name>
          , Adversarial Patch,
          <source>in: Advances in Neural Information Processing Systems (NIPS) - Workshops</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S.</given-names>
            <surname>Thys</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W. V.</given-names>
            <surname>Ranst</surname>
          </string-name>
          , T. Goedemé,
          <article-title>Fooling automated surveillance cameras: Adversarial patches to attack person detection</article-title>
          ,
          <source>in: Conference on Computer Vision</source>
          and Pattern
          <string-name>
            <surname>Recognition (CVPR) - Workshops</surname>
          </string-name>
          , Computer Vision Foundation / IEEE,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Pavlitskaya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ünver</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. M.</given-names>
            <surname>Zöllner</surname>
          </string-name>
          ,
          <article-title>Feasibility and suppression of adversarial patch attacks on endto-end vehicle control</article-title>
          ,
          <source>in: International Conference on Intelligent Transportation Systems (ITSC)</source>
          , IEEE,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>Y</given-names>
            <surname>.-C.-T. Hu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-C.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.-H.</given-names>
            <surname>Kung</surname>
          </string-name>
          ,
          <string-name>
            <surname>K.-L. Hua</surname>
            ,
            <given-names>D. S.</given-names>
          </string-name>
          <string-name>
            <surname>Tan</surname>
          </string-name>
          ,
          <article-title>Naturalistic Physical Adversarial Patch for Object Detectors</article-title>
          , in: International Conference on Computer Vision (ICCV), Springer,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>