<!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>Evaluation of GAN Architectures for Adversarial Robustness of Convolution Classifier</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Weimin Zhao</string-name>
          <email>weimin.zhao@ontariotechu.net</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sanaa Alwidian</string-name>
          <email>sanaa.alwidian@ontariotechu.ca</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Qusay H. Mahmoud</string-name>
          <email>qusay.mahmoud@ontariotechu.ca</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Electrical</institution>
          ,
          <addr-line>Computer</addr-line>
          ,
          <institution>and Software Engineering Ontario Tech University</institution>
          ,
          <addr-line>2000 Simcoe St., ON, Oshawa, L1G 0C5</addr-line>
          ,
          <country country="CA">Canada</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Deep learning models are vulnerable to adversarial attacks, which could generate adversarial perturbation to make deep learning classifiers fail in classification tasks. In this paper, we reviewed a variety of defensive methods against adversarial attacks and proposed our solution. We present a modification of Generative Adversarial Network (GAN) architecture to train a classifier for the purpose of defending against adversarial attacks. We trained multiple deep learning classifiers with different generator formulations to compare and evaluate their robustness against adversarial attacks. We show how the GAN architecture could contribute to the adversarial machine learning problem and how the capacity of the generator affects the training performance. Our results show that GAN architectures can improve the adversarial robustness of a deep learning classifier with more efficiency training time. The CIFAR 10 classifier accuracy remains around 45% under 8/255 L infinity norm adversarial distortion.</p>
      </abstract>
      <kwd-group>
        <kwd>1 Machine learning</kwd>
        <kwd>deep learning</kwd>
        <kwd>adversarial attacks</kwd>
        <kwd>adversarial samples</kwd>
        <kwd>adversarial training</kwd>
        <kwd>generative adversarial networks (GAN)</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        In recent years, there has been an increasing
attention to the security of deep learning networks
regarding the area of adversarial machine
learning. Deep learning models are prone to the
threats caused by well-known attack algorithms
that could generate malicious data samples (e.g.,
fast gradient sign method [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and projected
gradient descent [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]). These attacks are known as
Adversarial Attacks, and the data samples
generated from the attack algorithms are known
as Adversarial Samples. Recent research has
proved that these attack algorithms are highly
effective in generating small perturbations for any
given sample of data that could substantially
affect the output of any deep learning model. The
famous example of the algorithms includes the
Fast Gradient Sign Method (FGSM) [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and the
Projected Gradient Descent (PGD) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], which
exploit the loss gradient of the deep learning
model and use it to generate adversarial samples.
The other algorithms such as Carlini and Wagner
attack [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] and evolutionary based algorithms [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]
generate adversarial samples under different
constraints.
      </p>
      <p>
        There are several proposals for mitigating the
problems of adversarial samples. Adversarial
training is one of the well-established defense
methods that augment the training data with the
attack algorithms to make the classifiers
generalize on adversarial samples [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ].
Adversarial training is effective in defending the
attack algorithm and provide a baseline
robustness to defend other similar or weaker
attack algorithms [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The other algorithms
include defensive distillation [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] and data
augmentation [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. However, adversarial training
remains one of the top effective methods of
defending adversarial attacks.
      </p>
      <p>
        The limitations of adversarial training include
the challenge of generalization, the clean and
robustness trade-offs, and the high training
complexity. Usually, a classifier needs to be
trained against a multi-iteration adversarial attack
to achieve a good robustness against strong
adversarial attacks [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Hence, in each training
loop, some extra iterations of gradient descent
need to be computed to obtain the worst-case
adversarial noise for data augmentation. This
process increases the training time exponentially
with a more complex dataset and larger data
number.
      </p>
      <p>
        Wang et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] proposed a training framework
by replacing the attack algorithm with a
generative network in an extension of adversarial
training. As a result, the framework formulates a
GAN architecture, where the generator acts as an
attacker, and the discriminator acts as a classifier.
This method removed the need for an attack
algorithm during the training and reduced the
multi-step backpropagation complexity compared
to the PGD-adversarial training. In this paper, we
consider extending the GANs defensive training
architecture from Wang et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] to evaluate
multiple generators and classifiers. The
contributions of this paper are:
1. The design and development of a GAN
architecture to improve the adversarial
robustness of a deep learning classifier on the
classification against the gradient-based
whitebox attack algorithms.
2. A dual generator framework architecture
to improve the effectiveness of generating
adversarial samples during the training
process.
3. The implementation of different
formulations of generators and evaluation of
the training performance and the robustness of
the classifiers that train against the different
formulations. Furthermore, we evaluated if the
generative network could capture the strong
adversarial noise perturbation direction and
perform on par with the strong adversarial
attack in adversarial training.
      </p>
      <p>The rest of the paper is organized as follows:
Section 2 discusses the related work regarding
adversarial attacks and defenses and introduces
the defensive methods related to GANs. Section 3
introduces the methodologies and architectures of
our frameworks. Section 4 presents our
experimental setups and results and provides
discussion regarding the results. Finally, Section
5 concludes the paper and provides a discussion
about the future work.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Related Work</title>
      <p>In this section, we discuss recent works related
to adversarial attacks, adversarial training and
GANs’ contributions to the adversarial machine
learning community. The paper focuses on
reviewing the gradient-based adversarial attacks
since they have a closer relationship with GANs
training process.</p>
    </sec>
    <sec id="sec-3">
      <title>2.1. Gradient-Based</title>
    </sec>
    <sec id="sec-4">
      <title>Attacks</title>
    </sec>
    <sec id="sec-5">
      <title>Adversarial</title>
      <p>
        A simpler formulation of gradient-based attack
algorithm is Fast Gradient Sign methods (FGSM)
[
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], which has the following formulation:
 ’ =  + Ɛ ˑ  (   ( ,  )), (1)
where X is the original sample data and ∇x L(X, y)
represents a one-step gradient calculation
regarding the classifier loss L. This loss gradient
is usually computed from a backpropagation of a
deep learning classifier. The algorithm takes the
sign direction of the gradient and adds it to the
original sample with a scaler Ɛ to generate the
adversarial samples. The scaler Ɛ constrains the
maximum L infinity norm of the perturbation
vector, which also is known as the attack strength.
      </p>
      <p>
        Projected Gradient descent (PGD) attack [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
was an improved version of the gradient-based
attack that iteratively computed the gradients of
the classifier. The base formula is written as
follows:
      </p>
      <p>+1 = ∏ + ( ’ + Ɛ  (  ( ,  ))), (2)
where the gradient sign sign(∇x L(x, y)) is
calculated multiple times and iteratively adds on
the original input X. X’ in this formula represents
the perturbed input from the last step of the
calculation, and Xt+1 is the output of the current
iterative. We think these gradient-based
algorithms had a similar property to GANs
formulation, that the generator of GANs could
also be used to capture the loss gradient of a
classifier.</p>
    </sec>
    <sec id="sec-6">
      <title>Adversarial Training</title>
      <p>
        Adversarial training refers to the training
schema that incorporates an adversarial attack
algorithm to augment the training data [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ]. In
general, any attack algorithms could be used for
data augmentation. However, the most common
ones are gradient-based attacks since they are
efficient for implementation, and the classifier's
loss gradient could be directly accessed during the
training process. Gradient-based adversarial
training was introduced by Goodfellow et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]
after the discovery of FGSM. The general
formulation of adversarial training could be
expressed as follows:
      </p>
      <p>
        min ∑ max  ( (  +  ),   ), (3)
where the classifier is optimized to minimizes the
cross-entropy loss L on adversarial sample x+δ,
and the adversarial sample x+δ maximizes the
loss of the classifier. Later, Madry et al. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
suggested using multi-step gradient PGD attacks
to improve the performance of adversarial
training to defend against more precise first-order
attacks. The PGD adversarial training achieved
state-of-the-art accuracy against the strong PGD
attacks and was used as a baseline adversarial
training method. However, limitations were found
with a more complex dataset. Zhang et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]
suggested a trade-off between robustness and
accuracy. The recent developed classifier had a
limited parameter and capacity to generalize on
both clean and adversarial data. Furthermore, the
training time increases significantly with the
implementation of the multi-iteration gradient
attack within every training iteration [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ].
2.3.
      </p>
    </sec>
    <sec id="sec-7">
      <title>GANs</title>
      <p>
        GANs are popular deep learning techniques
for data synthesis. Recently, some high-quality
synthetic images could be generated by using
some state-of-the-art GANs [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. The formulation
of GANs incorporates a generator network and a
discriminator network to form a min-max game.
The discriminator could be optimized to
differentiate the generated data and real data. The
gradient is backpropagated from the discriminator
to improve the generator performance. Normally,
the goal of GANs is to optimize the generator to
improve data synthesis. Xiao et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] used a
generator network to capture the loss gradient
regarding the input images of a classifier network.
The generator can be also used as an effective
adversarial sample generator after training.
      </p>
      <p>
        On the other side, multiple GANs frameworks
were proposed to defend the adversarial attack.
Shen et al. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and Samangouei et al. [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]
proposed a GANs to cleanse the adversarial
perturbation. These GANs optimize a generator to
transfer the adversarial images to harmless
samples and reduce the effect of adversarial
perturbation. The other defensive GANs [
        <xref ref-type="bibr" rid="ref13 ref14 ref15 ref16">13, 14,
15, 16</xref>
        ] also utilized the feature-to-feature transfer
generative model to denoise the adversarial
samples. Liang et al. [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ] implemented a
defensive GANs architecture to learn the
perturbation features and provide a robust
classification result. Liu et al. [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] proposed a
GANs adversarial training schema to improve
adversarial robustness of a classifier. Wang et al.
[
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] also suggested that GANs can improve the
adversarial robustness of the deep learning
classifier model. This framework [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] has an
alternative optimization goal that focuses on the
performance of the classifier instead of the
generator. The formulation of the optimization is
expressed as follows:
      </p>
      <p>∑  ( (  ),   ) + ∑  ( (  +
  (  )),   ), (4)
The key difference between this framework and
adversarial training is that it replaced the attack
algorithm as a generative network to synthesize
the adversarial samples. The generator outputs a
vector of perturbation G(X), and the perturbation
G(X) adds to the original sample X with a scaler ϵ
to construct the final adversarial samples. The
scaler ϵ is a variable to constrain the L infinity
norm of the perturbation vector from the
generator. The optimization goals were to
minimize the classification loss L(D(Xi),yi) of
discriminator D regarding both original sample X
and perturbed sample Xi+ϵG(Xi), and generator G
is optimized to maximize the loss of D. The
results showed that this framework could improve
the robustness of the classifier (i.e., discriminator)
and the classifier could generalize on the
generated samples easier than traditional
adversarial attack samples. Our work makes
inspirations from this work. We propose multiple
modifications to this framework and aim to
improve the stability and overall performance of
the training.</p>
      <p>In this paper, we applied GAN architecture to
adversarial training formulation. Different from
the previous works, we implemented four
frameworks with four different generators’
formulations. The four formulations estimate the
adversarial noises as four function
(5)
(6)
(7)
(8)
(9)
transformations
from
different inputs.</p>
      <p>The
training performance of the GAN frameworks
involved different generator formulations was
compared and analyzed.</p>
    </sec>
    <sec id="sec-8">
      <title>Methodology</title>
      <p>
        The general formulation of our network is a
modification to equation (4) from Wang et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
It can be described as following:
 ∑  ( (
      </p>
      <p>),   ) + ∑  ( (  +
with a slight difference in considering a set of
different inputs for the generator. The different
inputs are represented by I in the formula and it
affects the formulation
of the generator for
adversarial
noise
generation.</p>
      <p>The
following
describes the four different formulations we
considered for the generator:




(∇),  ),
The four types of generator formulation are
represented as:</p>
      <p>G1: formulates adversarial noise N as
function transformation of only target image x,</p>
      <p>G2: formulates adversarial noise N as
function transformation of the target image x
and a latent noise z,</p>
      <p>G3: formulates adversarial noise N as
function transformation of sign of the loss
gradient sign(∇) of the current classifier state
regarding the target input x,</p>
      <p>and G4: formulates adversarial noise N as
function transformation of the target image x
and the sign of the loss gradient sign(∇) of the
current classifier state regarding the target
input x.</p>
      <p>The loss gradient of the classifier is calculated
each time before the input is fed into the generator
for the formulations (8) and (9). For simplicity, we
will refer to the formula (8) and (9) as G(∇) and</p>
      <sec id="sec-8-1">
        <title>G(∇, x) in the subsequent sections.</title>
        <p>The optimization goal is to minimize the
discriminator (classifier) loss on both clean and
synthesized data from the generator and maximize
the
synthesis
image's
loss
discriminator’s
classification
regarding
output.</p>
        <p>the
The
generator in our framework is responsible for
constructing
perturbation
vectors
instead
of
images. The perturbation vectors are added to the
original images to produce adversarial samples
that feed into the classifier for training. The
perturbation from generator output is soft-clipped
by "tanh" activation and constrained by a scaler
value ϵ that is defined manually. This scaler value
is the control variable that defines the maximum
L infinity norm of the perturbation. The details of
the value settings</p>
        <p>will be discussed in the
experiment section. We also refer to this scaler as
the strength of the perturbation or attack strength
in the later section.</p>
        <p>The</p>
        <p>GAN</p>
        <p>
          architecture also involves dual
generators during the training. Both generators
provide perturbation solutions for the classifier to
train. Im et al. [
          <xref ref-type="bibr" rid="ref19">19</xref>
          ] suggested that involving
multiple generator and discriminator pairs could
improve the stability of training, and the generator
could
generate
more
variety
of
distributed
samples. The pairs architecture should act as a
regularization to the
        </p>
      </sec>
      <sec id="sec-8-2">
        <title>GANs that reduces the overfitting effect of the network. The architecture of our framework is illustrated in Figure 1.</title>
        <p>Inputs
Dataset
Image</p>
        <p>Generator</p>
        <p>+
Generator
+</p>
        <p>Classifier</p>
        <p>Output minimize loss
Output maximize loss
Figure 1 Framework architecture. The dotted
lines represent gradient propagation.</p>
        <p>Additionally, we used a standard categorical
cross-entropy loss as the loss function for the
discriminator.</p>
        <p>As
for
the
generator,
the
optimization should maximize the cross-entropy
loss of the discriminator. Hence, the loss function
is defined as a negative cross-entropy loss in
contrast to the discriminator loss.</p>
      </sec>
    </sec>
    <sec id="sec-9">
      <title>4. Experimental Results</title>
      <p>We considered the Canadian Institute For
Advanced Research (CIFAR) 10 dataset for the
experiments. We chose the CIFAR 10 dataset as
it is a more challenging problem to optimize a
robust
classifier
for
colorful
images
and
scalability of CIFAR 10 is within our scope of the
project.</p>
      <p>
        In our experiment, we used a generator similar
to the cycle GAN generator [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. We consider this
type of generator because it is useful for image
and texture transformation. The architecture of the
generator is illustrated in Figure 2. A shallow
VGG-like architecture was implemented as the
discriminator. Each layer used batch
normalization and ReLU activation. The details of
the filter parameters of the models are shown in
Table 1. We implemented multiple generator filter
settings and one discriminator filter setting for our
experiments. The “×1” generator filter setting is
more efficient to train and was used in generator
formulations comparison. However, from some
extensive experiments, we found that the “×2”
filter setting slightly improve the overall
performance, so we implemented this setting for
the further experiments.
      </p>
      <sec id="sec-9-1">
        <title>Down Sampling x2 Up Sampling x2</title>
        <p>C
o
n
Input v
7
x
7
C
o
n
v
3
x
3
C
o
n
v
3
x
3</p>
      </sec>
      <sec id="sec-9-2">
        <title>Residual Blocks x4</title>
        <p>Residual</p>
        <p>Blocks
Residual Block
C C
o o
xv3n xv3n +
3 3</p>
        <p>C
o
n
v
3
x
3</p>
        <p>C
o
n
v
3
x
3</p>
        <p>C
o
n
v
7
x
7
Ɛ
X</p>
        <p>Output
0.9 Beta2 for discriminators. The learning rate for
the generators is higher because, during the
training dynamic, we expect the generator to
capture the loss gradient of the discriminator's
current state. Hence, we reduced the learning
process of the discriminator to make the learning
process easier for generators.</p>
        <p>We used a scaler (ϵ) of 16/255 as perturbation
strength to constrain the generator perturbation
vectors.</p>
        <p>
          All the images’ pixels were normalized within
the range of [
          <xref ref-type="bibr" rid="ref1">0, 1</xref>
          ] before training and testing.
Additional data augmentations were used,
including random horizontal flips and random
shifts within the range of 0.1 fractions of the
original image size.
        </p>
        <p>A baseline models was also trained without
GANs framework. We used a conventional
training schema to train the baseline models. The
structure of baseline model is consistent with the
shallow VGG model.
4.1.</p>
      </sec>
    </sec>
    <sec id="sec-10">
      <title>Generator Formulations</title>
      <p>
        This section lists and compares the training
results from different formulations. In this
section, we used “×1” generator filter number for
experiments, shown in Table 1. The same filter
parameters were used for all formulations from
section 3. The baseline model was also tested for
comparison. To evaluate the robustness of the
models, we implemented FGSM and PGD as two
standard testing attack algorithms. It is suggested
that only the robustness evaluated under the
strong multi-iteration attack is valid [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]; however,
we still include the one-step gradient attack
algorithm FGSM to compare the effectiveness by
using generator to estimate the adversarial noise.
The max-iteration of PGD attack is set to 100. The
results are plotted in Figure 3.
      </p>
      <p>From the plot, all the models trained with
GANs framework significantly improved in terms
of robustness against different levels of
adversarial noise. The discriminators trained
against the generators that included target image
x as an input option (G(x) and G(x, z)) generally
gained similar robustness against FGSM and
PGD. The accuracy against FGSM was slightly
higher compared to against PGD under the highest
noise norm setting (16/255). This result means
that the discriminators (classifiers) trained against
G(x) and G(x, z) formulations had improved
adversarial robustness but also had a more
obvious loss gradient compared to other models.
One step of gradient descent is sufficient to
discover adversarial samples similar to those
computed from multi-step gradient descents. We
also observe that the formulations, including
gradient inputs, generally gain better robustness
than other formulations. Formulations G(∇) and
G(∇,x) generally had a similar performance under
all attack settings. However, the performance
under PGD attacks downgrades when noise norm
increases compared to FGSM attacks, but the
accuracies stay higher than other formulations.
Furthermore, the clean data accuracy of the
baseline model is higher than all the formulations.
The generator that considered both gradient and
image inputs had the lowest clean accuracy.</p>
      <p>Different Generator Input Comparison
G (x) FGSM
G (x) PGD
G (x,z) FGSM
G (x,z) PGD
G (▽) FGSM
G (▽) PGD
G (▽,x) FGSM
G (▽,x) PGD
Baseline FGSM
Baseline PGD
90.00%
80.00%
s70.00%
k
c
ta60.00%
t
A
re50.00%
d
nU40.00%
y
ca30.00%
rcc
A20.00%
10.00%
0.00%
We observed overfitting effects with all GANs
frameworks’ discriminators, with the training set
data accuracy could reach over 90% after GANs
training, but testing set accuracy is only around
70%. With the same discriminator architecture,
the conventional training accuracy is around 81%
for both training and test set data. We tried adding
L2 regularization for each layer or using an Adam
optimizer with weight decay (AdamW). However,
the regularization helped little to the results, and
the performance downgraded when the weight
decay was above 0.0001. Currently, we have no
idea why the overfit is happening. We suspect the
synthetic data from the generator has a different
data distribution that shifts the decision
boundaries of the discriminator.
4.2.</p>
    </sec>
    <sec id="sec-11">
      <title>Training Epochs</title>
      <p>In this section, we evaluate the discriminators’
accuracy performance with different training
epochs. The architecture selected for this
evaluation is the G(∇) formulation generator with
“×2” filter numbers and the same discriminator,
shown in Table 1. The other setting for the
experiment is consistent with the previous section.
Figure 4 shows the results of the experiment.</p>
      <p>Train Epochs Comparison
0/255 4/255 8/255 16/255</p>
      <p>Attack L Infinity Norm Constraint
training iterations, and the discriminator learned
to classify the images with this perturbation
direction; however, the gradient was saturated for
the generator to learn a new adversarial direction.
4.3.</p>
    </sec>
    <sec id="sec-12">
      <title>Results for PGD 1000 Iterations</title>
      <p>In previous sections, we used PGD with 100
iterations to evaluate our models. However, the
results obtained by 100 iterations may not
describe the overall robustness. Therefore, in this
section, the accuracy results from 1000 iterations
are collected and shown in Table 2. All
parameters and settings are the same to the last
section 4.2. The model trained with 100 training
epochs was selected for this experiment. From the
table, we did not observe a significant accuracy
difference when iteration increases. With all norm
constraints, the accuracy of the model stays
relatively identical. This result shows that the
robustness evaluation for this model is sufficient
by using the PGD 100 iterations. Therefore, we
suggest that the evaluations from previous
sections are valid and sufficient to conclude the
overall robustness of the model.</p>
      <p>Table 2
The model accuracies under PGD 100 and 1000
L infinity 4/255 8/255 16/255
norm size
Accuracy 57.41% 45.6% 23.71%
PGD 100
Accuracy 57.33% 45.28% 23.31%
PGD 1000</p>
    </sec>
    <sec id="sec-13">
      <title>4.4. Visualization</title>
    </sec>
    <sec id="sec-14">
      <title>Directions</title>
      <p>of</p>
      <p>In this section, we visualize the perturbation
generated by the generator from our GANs
frameworks. We chose the generator with G(∇)
formulation and “×2” filter numbers (Table 1).
The perturbations were generated with the
framework trained after 300 epochs. We chose the
maximum epochs from our experiments since we
want to investigate the maximum effect of
training with the framework. The FGSM and PGD
noises were generated based on the classifier’s
(discriminator’s) state after the 300 epochs of
training. The visualization is shown in Figure 5.</p>
      <p>The target image (a) is the top left image with
a correct label of “ship”. The noise images under
the target image are the perturbation vectors
generated by FGSM (b), PGD (c), and our
generator (d), respectively. The right-hand side
plots (e, f, g, h) show the classifier’s logits outputs
trending regarding the different norm size by
adding the respective noise vector onto the target
image. The top-right plot (e) shows the logits
output trending when the classifier is perturbed by
a random Gaussian noise vector with zero mean
and one standard deviation. We do not show the
Gaussian noise since the plot indicates the
model’s behavior in standard non-adversarial
condition and there is no significant information
within the Gaussian noise vector. Furthermore,
the negative norm size in the x axis represents the
opposite perturbation direction by the noise
vector, which means subtracting the noise vector
from the target image.</p>
      <p>When the target image is perturbed by random
noise (e), the logit distribution shows a relative
symmetry shape whether the noise norm increases
in either direction. However, with adversarial
noise perturbation (f, g, h), the logit output
regarding the correct class label decreases more
dramatically with increasing norm size in a
positive direction. We labeled the cross points
when another class label output value started
surpassing the correct class label’s output. The
surpassed point for FGSM is labeled with the blue
line, and the surpassed point for PGD is labeled
with the yellow line. The orange line indicates the
position where the noise norm is zero, which
means no perturbation is added to the image. As
expected, the surpassed point of PGD is closer to
the zero-norm point compared to the FGSM’s
surpassed point since PGD could find an
adversarial sample with smaller perturbation with
its iterative gradient descent. The surpass point for
the noise of the generator stays closer to the
zeronorm point compared to the FGSM noise and stay
further compared to the PGD noise. These results
suggest that the adversarial noise from the
generator is stronger than the noise from a
singlestep adversarial attack but weaker than the noise
from an iterative adversarial attack. We also
observed that the noise from the generator is more
uniform compared to the noisier noise from the
gradient descent attacks. This more uniform noise
may relate to the convolution generator’s
properties and capacities.
4.5.</p>
    </sec>
    <sec id="sec-15">
      <title>Discussion</title>
      <p>
        With the experiments illustrated in this paper,
we showed that the framework of GANs could be
used to improve the adversarial robustness of the
deep learning classifier. The discriminator could
be trained with increasing robustness against the
gradient-based adversarial attack algorithms.
However, the trade-off still presents between
clean data accuracy and robustness of the model,
especially with a high dimensional dataset. In the
current state, we need more experiments to
analyze the training dynamics of GANs and make
further improvements. We also found that the
structure of the generator could affect its
performance in perturbation generation. This
finding is different from the previous work [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
Furthermore, using the signed gradient from
onestep backpropagation is the best option using for
the generator input to approximate the strong
adversarial perturbation. This formulation helps
to bridge the gap between the computation
overhead of the one-step gradient attack algorithm
and the multi-step attack algorithm during
adversarial training.
      </p>
    </sec>
    <sec id="sec-16">
      <title>5. Conclusion and Future Work</title>
      <p>This work intends to verify the possibility of
GANs contributing to adversarial attack defenses.
We suggest that the properties of GANs could be
utilized further for defending against adversarial
attacks. We might be able to improve the
formulation of the framework to make it more
applicable to real-life implementation scenarios.
There are a lot of hidden properties to be
discovered from GANs and the phenomenon of
adversarial samples. We believe the synthetic
adversarial sample could explain more about the
properties of deep learning models. In the next
step, we hope to extend this framework to other
types of deep learning models, such as
attentionbased models, and evaluating how they perform
under the GANs training. Beside image models,
GANs can also train deep learning models used in
other application domains, including text
recognition models, malware detection models,
and reinforcement learning models. We are also
interested in exploring the different application
domains with GAN robustness training
architecture to address the problem of adversarial
samples.</p>
    </sec>
    <sec id="sec-17">
      <title>6. References</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>I. J.</given-names>
            <surname>Goodfellow</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Shlens</surname>
          </string-name>
          , and
          <string-name>
            <given-names>C.</given-names>
            <surname>Szegedy</surname>
          </string-name>
          , Explaining and Harnessing Adversarial Examples,
          <source>arXiv:1412.6572</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A.</given-names>
            <surname>Madry</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Makelov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Schmidt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Tsipras</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Vladu</surname>
          </string-name>
          , Towards Deep Learning Models Resistant to Adversarial Attacks,
          <source>arXiv:1706.06083</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>N.</given-names>
            <surname>Carlini</surname>
          </string-name>
          and
          <string-name>
            <given-names>D.</given-names>
            <surname>Wagner</surname>
          </string-name>
          ,
          <article-title>Towards Evaluating the Robustness of Neural Networks</article-title>
          , arXiv,
          <year>2017</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.1608.04644.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Su</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Xiong</surname>
          </string-name>
          , and
          <string-name>
            <given-names>H.</given-names>
            <surname>Zheng</surname>
          </string-name>
          , POBA-GA:
          <article-title>Perturbation optimized black-box adversarial attacks via genetic algorithm</article-title>
          , volume
          <volume>85</volume>
          of Computers &amp; Security,
          <year>2019</year>
          , pp.
          <fpage>89</fpage>
          -
          <lpage>106</lpage>
          . doi:
          <volume>10</volume>
          .1016/j.cose.
          <year>2019</year>
          .
          <volume>04</volume>
          .014.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>N.</given-names>
            <surname>Papernot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>McDaniel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Jha</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Swami</surname>
          </string-name>
          ,
          <article-title>Distillation as a Defense to Adversarial Perturbations Against Deep Neural Networks</article-title>
          ,
          <source>in: IEEE Symposium on Security and Privacy (SP)</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>582</fpage>
          -
          <lpage>597</lpage>
          . doi:
          <volume>10</volume>
          .1109/SP.
          <year>2016</year>
          .
          <volume>41</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>C.</given-names>
            <surname>Xie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Ren</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Yuille</surname>
          </string-name>
          , Mitigating Adversarial Effects Through Randomization, arXiv,
          <year>2018</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.1711.
          <year>01991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>H.</given-names>
            <surname>Wang</surname>
          </string-name>
          and
          <string-name>
            <given-names>C.-N.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <article-title>A Direct Approach to Robust Deep Learning Using Adversarial Networks</article-title>
          , arXiv,
          <year>2019</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1905</year>
          .
          <volume>09591</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>H.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Jiao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Xing</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L. E.</given-names>
            <surname>Ghaoui</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Jordan</surname>
          </string-name>
          ,
          <article-title>Theoretically Principled Trade-off between Robustness and Accuracy</article-title>
          ,
          <source>in: Proceedings of the 36th International Conference on Machine Learning</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>7472</fpage>
          -
          <lpage>7482</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>T.</given-names>
            <surname>Karras</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Aila</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Laine</surname>
          </string-name>
          , and
          <string-name>
            <given-names>J.</given-names>
            <surname>Lehtinen</surname>
          </string-name>
          ,
          <article-title>Progressive Growing of GANs for Improved Quality</article-title>
          , Stability, and Variation, arXiv,
          <year>2018</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.1710.10196.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>C.</given-names>
            <surname>Xiao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Li</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-Y.</given-names>
            <surname>Zhu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Liu</surname>
          </string-name>
          , and
          <string-name>
            <given-names>D.</given-names>
            <surname>Song</surname>
          </string-name>
          ,
          <article-title>Generating Adversarial Examples with Adversarial Networks</article-title>
          , arXiv,
          <year>2019</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1801</year>
          .
          <volume>02610</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>S.</given-names>
            <surname>Shen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Jin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Gao</surname>
          </string-name>
          , and
          <string-name>
            <surname>Y. Zhang,</surname>
          </string-name>
          <article-title>APEGAN: Adversarial Perturbation Elimination with GAN</article-title>
          , arXiv,
          <year>2017</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.1707.05474.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>P.</given-names>
            <surname>Samangouei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kabkab</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Chellappa</surname>
          </string-name>
          , Defense-GAN:
          <article-title>Protecting Classifiers Against Adversarial Attacks Using Generative Models</article-title>
          , arXiv,
          <year>2018</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1805</year>
          .
          <volume>06605</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>F.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Fang</surname>
          </string-name>
          , and
          <string-name>
            <surname>Y. Zhang,</surname>
          </string-name>
          <article-title>The Defense of Adversarial Example with Conditional Generative Adversarial Networks</article-title>
          , volume
          <volume>2020</volume>
          <source>of Security and Communication Networks</source>
          , p.
          <fpage>e3932584</fpage>
          ,
          <year>2020</year>
          , doi: 10.1155/
          <year>2020</year>
          /3932584.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>A. ArjomandBigdeli</surname>
            ,
            <given-names>M.</given-names>
            Amirmazlaghani, and M.
          </string-name>
          <string-name>
            <surname>Khalooei</surname>
          </string-name>
          ,
          <article-title>Defense against adversarial attacks using DRAGAN</article-title>
          ,
          <source>in: 2020 6th Iranian Conference on Signal Processing and Intelligent Systems (ICSPIS)</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>1</fpage>
          -
          <lpage>5</lpage>
          . doi:
          <volume>10</volume>
          .1109/ICSPIS51611.
          <year>2020</year>
          .
          <volume>9349536</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>G. K.</given-names>
            <surname>Santhanam</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.</given-names>
            <surname>Grnarova</surname>
          </string-name>
          ,
          <article-title>Defending Against Adversarial Attacks by Leveraging an Entire GAN</article-title>
          , arXiv,
          <year>2018</year>
          . Doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1805</year>
          .
          <volume>10652</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>R.</given-names>
            <surname>Bao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Liang</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Q.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <surname>Featurized Bidirectional</surname>
            <given-names>GAN</given-names>
          </string-name>
          :
          <article-title>Adversarial Defense via Adversarially Learned Semantic Inference</article-title>
          ,
          <year>arXiv</year>
          ,
          <year>2018</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.
          <year>1805</year>
          .
          <volume>07862</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>Q.</given-names>
            <surname>Liang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q.</given-names>
            <surname>Li</surname>
          </string-name>
          , and
          <string-name>
            <given-names>W.</given-names>
            <surname>Nie</surname>
          </string-name>
          , LD-GAN:
          <article-title>Learning perturbations for adversarial defense based on GAN structure</article-title>
          , volume
          <volume>103</volume>
          of Signal Processing: Image Communication, p.
          <fpage>116659</fpage>
          ,
          <year>2022</year>
          , doi: 10.1016/j.image.
          <year>2022</year>
          .
          <volume>116659</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>G.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <surname>I.</surname>
          </string-name>
          <article-title>Khalil, and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Khreishah</surname>
          </string-name>
          ,
          <article-title>GanDef: A GAN Based Adversarial Training Defense for Neural Network Classifier, in: ICT Systems Security</article-title>
          and Privacy Protection, Cham,
          <year>2019</year>
          , pp.
          <fpage>19</fpage>
          -
          <lpage>32</lpage>
          . doi:
          <volume>10</volume>
          .1007/978-3-
          <fpage>030</fpage>
          -22312-
          <issue>0</issue>
          _
          <fpage>2</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>D. J.</given-names>
            <surname>Im</surname>
          </string-name>
          , H. Ma, C. D.
          <string-name>
            <surname>Kim</surname>
          </string-name>
          , and G. Taylor, Generative Adversarial Parallelization, arXiv,
          <year>2016</year>
          . doi:
          <volume>10</volume>
          .48550/arXiv.1612.04021.
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <surname>J.-Y. Zhu</surname>
            , T. Park,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Isola</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Efros</surname>
          </string-name>
          ,
          <article-title>Unpaired Image-To-Image Translation Using Cycle-Consistent Adversarial Networks</article-title>
          ,
          <year>2017</year>
          , pp.
          <fpage>2223</fpage>
          -
          <lpage>2232</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>