<!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>
      <journal-title-group>
        <journal-title>Ilyas, A., Santurkar, S., Tsipras, D., Engstrom, L., Tran, B., and Madry,
A., Adversarial Examples Are Not Bugs, They Are Features. arXiv:</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.1109/CVPR.2019.01168</article-id>
      <title-group>
        <article-title>Adversarial Example Free Zones for Specific Inputs and Neural Networks</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Tibor Csendes</string-name>
          <email>csendes@inf.szte.hu</email>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nándor Balogh</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Balázs Bánhelyi</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dániel Zombori</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Richárd Tóth</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>István Megyeri</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Redink Ltd.</institution>
          ,
          <addr-line>Szeged</addr-line>
          ,
          <country country="HU">Hungary</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>University of Szeged</institution>
          ,
          <country country="HU">Hungary</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>[9] Lecun</institution>
          ,
          <addr-line>Y., Bottou, L., Bengio, Y., and Haffner, P.</addr-line>
          ,
          <institution>Gradient-Based Learning Applied to Document Recognition, Proc. of the IEEE</institution>
          ,
          <addr-line>86 (1998) 2278-2324</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>1905</year>
      </pub-date>
      <volume>02175</volume>
      <fpage>29</fpage>
      <lpage>31</lpage>
      <abstract>
        <p>Recent machine learning models are highly sensitive to adversarial input perturbation. That is, an attacker may easily mislead a well-performing image classification system by altering some pixels. However, proving that a network will have correct output when changing some regions of the images, is quite challenging. Because of this, only a few works targeted this problem. Although there are an increasing number of studies on this field, reliable robustness evaluation is still an open issue. In this work, we will attempt to contribute in this direction. We will present new interval arithmetic based algorithms to provide adversarial example free image patches for trained artificial neural networks.</p>
      </abstract>
      <kwd-group>
        <kwd>artificial neural networks</kwd>
        <kwd>adversarial example</kwd>
        <kwd>interval arithmetic</kwd>
        <kwd>inscribed interval</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        One of the hottest topics in present artificial intelligence research is to understand
the phenomenon of adversarial examples for machine learning techniques applying
artificial neural networks [
        <xref ref-type="bibr" rid="ref2">7, 15</xref>
        ]. The typical such image classification problem
is the following. After the proper training of the network, there exist pictures
surprisingly similar to the positive sample images that result in a wrong denial
Copyright © 2020 for this paper by its authors. Use permitted under Creative Commons License
Attribution 4.0 International (CC BY 4.0).
decision. As an illustration of the problem, see some real life images of car licence
plates on Figure 1, that could not be detected correctly.
      </p>
      <p>Using adversarial examples generated by existing attack algorithms like those
in [11, 4, 13], an ofending driver can easily prevent the system to identify him.
Even in black box cases, i.e. when the attacker has no access to model parameters,
the attack can be successful [12]. This makes it dificult to apply these
state-ofthe-art techniques in any safety critical settings. One might naively use attack
algorithms for evaluating robustness. However, as show in [4], robustness against
some attacks does not mean that the network is robust. Later, stronger attacks
may be developed, which will be able to fool the network. A certified evaluation
may end this arms race. Further, it motivates to develop reliable methods for
evaluating neural networks.</p>
      <p>In this paper we present our first results on implementing an interval arithmetic
based reliable algorithm to describe adversarial example free zones on an image for
trained artificial neural networks.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Verified computation</title>
      <p>
        There are already many available shocking results regarding adversarial examples
for artificial neural networks (see e.g. those in [
        <xref ref-type="bibr" rid="ref5">8, 13, 18</xref>
        ]). Also, many approximate
procedures are suggested for e.g. locating the nearest adversarial example to a
given correctly accepted image. On the other hand, we do not know about existing
verified implemented techniques being capable of providing adversarial example free
zones. Obviously there are approaches in this direction [
        <xref ref-type="bibr" rid="ref3 ref4">6, 10, 16, 17</xref>
        ]. This latter
feature is important for mathematically correct statements, especially on a field,
where the expected behavior of a computational method difers sometimes from the
anticipated one. Interval arithmetic based verified numerical calculations are the
proper tool for handling both rounding errors and their consequences, and also for
proving statements on positive measure sets of high dimension. We applied interval
methods to prove that the damped forced pendulum is chaotic [2], we proved most
of the Wright conjecture on a delayed diferential equation [3], and verified new
optimal circle packing instances [
        <xref ref-type="bibr" rid="ref1">14</xref>
        ].
      </p>
      <sec id="sec-2-1">
        <title>The set theoretical definition of interval arithmetic is:</title>
        <p>∘  = { ∘  |  ∈  and  ∈  }, , 
∈ I,
where I is the set of compact intervals [,  ], where , 
∈ R and  ≤  .
The arithmetic definition is:
[,  ] + [,  ] = [ + ,  +  ],
[,  ] − [,  ] = [ − ,</p>
        <p>−  ],
[,  ] · [,  ] = [min(, , , 
), max(, , , 
)],
[,  ]/[,  ] = [,  ] · [1/, 1/ ] if 0 ∈/ [,  ].</p>
        <p>These definitions are equivalent. Although the obtained result intervals seem
to be sharp, it is not the case. The inclusion of the function</p>
        <p>( ) =  2 − 
obtained for the interval [0, 1] is [−1, 1], while the range of the function  ( ) (the
set of possible values) is here just [−0.25, 0.0]. Using more sophisticated techniques
the problem of the too loose enclosure can be overcome – at the cost of higher
computing times.</p>
        <p>In a floating point environment (most cases) the outward rounding is important
to have a conservative inclusion that is a must in computer supported mathematical
proofs. Outward rounding means that the bounds of the calculated result
intervals are rounded in such a way that all result points are within the given bounds.
In other words, the lower bound is always rounded toward −∞, and the upper
bound toward ∞. This can easily be realized applying the four rounding modes
of the IEEE 754 standard (available on most programming languages and
computers). Several programming languages and packages support interval arithmetic
based inclusion function generation: C-XSC, FORTRAN-XSC, PASCAL-XSC, and
PROFIL/BIAS. Interval packages are available in several symbolic and numerical
systems such as Maple, Mathematica, Matlab. The package for the latter one,
Intlab is especially easy to use.</p>
        <p>It is important to note that interval calculations do not require the knowledge
of the symbolic expression of the underlying functions, it is enough if a computer
subroutine is available. In our case a Python code was applied. Linear sums
and sigmoid or other monotonous functions used in artificial neural networks are
explicitly advantageous for interval inclusion functions: sharp bounding is expected
in general. On the other hand, non-monotonic activations can also be handled by
the presented method.</p>
        <p>For our problem, we need a proper method to describe the large dimensional sets
that cannot contain adversarial examples. For this purpose, an interval arithmetic
based algorithm describing the level sets of nonlinear optimization problems [5]
seems to be appropriate. Unfortunately, this algorithm scales up very badly with
increasing dimension. This is why first we developed interval arithmetic based
algorithms that are capable of describing the level sets of an artificial neural network
around a feasible positive sample. In this way, we could ensure with mathematical
rigor that adversarial samples cannot exist within the found bounds. According
to our experiences, benevolent problems show much better complexity numbers
compared to theoretically possible pessimistic convergence rates.</p>
      </sec>
      <sec id="sec-2-2">
        <title>We used the negative log likelihood loss function</title>
        <p>The simple, logistic regression model were trained on the subset of the MNIST
dataset [9] that includes two classes: 3 and 7. We used 10 images from this database
which contain 28 × 28 pixel grayscale images of handwritten digits. Assuming 
examples (  ,   ),   ∈ R ,   ∈ {0, 1},  = 1, . . . ,  , the goal is to approximate the
data using the logistic function</p>
        <p>≈  (   +  ) = 1/(1 +  −   + ).
︁∑

3.1. Changes on the whole picture
First we checked how much we can change the actual grayscale values of a picture
without having an adversarial example case. It means, that for each pixel we
allowed a given amount of relative change in the grayscale values. E.g. 1% means
an alteration of 3 for a pixel that has the white of the value 255. We understand
the relative change in the neighborhood of zero still in an absolute way, i.e. if the
given pixel was black with the grayscale value of zero, then in our calculation the
interval [0, 1] was actually checked. Note that this way of adding noise to a picture
is realistic in the sense, that many practical situations can fall into this category,
including for example trafic sign pictures in a slightly foggy weather. Also, many
documented adversarial examples were obtained by added random noise, where the
relative change in the grayscale values were limited.</p>
        <p>We composed a simple greedy algorithm to find the largest possible relative
diference value eficiently. Here</p>
        <p>is the number of pixels;  is the picture pixels
in a vector;</p>
        <p>is the number of percent of changes to be checked, first it is set to one;  0
is the starting picture;</p>
        <p>is a boolean variable meaning whether the network
gives a value above 0.5: then it is true, otherwise false. The simplified pseudo code
of the algorithm is:</p>
        <p>is the proven number of percents, initially set to zero;
0. If  ( 0) &gt; 0.5 then 
2. Let  be an  dimensional interval
3. For  = 1 to  do
(a) If   = 0, then   = [0, 2 * /</p>
        <p>100]
(b) Otherwise, if   = 1, then   = [1 − 2 * /
(c) Otherwise   = [  − / 100,   + / 100], and check the end
points: if the lower one is negative, then set it to zero, if the upper one
is larger than 1, then set it to 1.</p>
      </sec>
      <sec id="sec-2-3">
        <title>6. End of the cycle started in the first step</title>
        <p>= 
− 0.1
= 0 and STOP</p>
        <p>From computational point of view, the above described checking means a single
interval evaluation of a trained network, when instead of the usual real number
grayscale values, real compact intervals should be evaluated. Since interval
calculation is according to the rule of thumb 4-35 times slower than the respective
real number calculations, this type of adversary example free set checking does
not require long computation. This is why we have composed a simple algorithm
that will increase the size of the checked interval until the respective conditions are
hurt. Our measured computation times for 10 images was 5.05 seconds. Note that
if two possible values form the interval box in each dimension, then one interval
evaluation will prove that all the 2784 points satisfy the condition set by the trained
artificial neural network. This is obviously not to be completed with one-by-one
real evaluations.</p>
        <p>The proven amount of changes on the gray scale values everywhere on Figure 2
without having an adversarial example were in the order of appearance: 1%, 1%,
1%, and 2%, respectively. These proven values are useful in real life situations.
3.2. Arbitrary large changes in neighboring points
As a second try, we aimed to find those maximal rectangles in an image for which
all pixels may change their grayscale value arbitrarily between 0 and 255 without
being classified incorrectly. Basically, we grow squares around given pixels, check
their recognizability, and if it was positive, then enlarge them. Again, we built a
simple, eficient greedy algorithm for this purpose. Also, we take care of the sides
of the original image, that is why our result may be a rectangle. We repeat our
growing procedure for all the pixels of our image, and return that rectangle that
had the most pixels.</p>
        <p>The obtained results are illustrated on Figure 3 for some of the studied images.
The calculated number of pixels to be changed arbitrarily were between 88 and 190
(compare it with the 28 × 28 = 784 pixels in the images). The combined running
time for the second round of 10 test images was 1971.87 second, i.e. closely half an
hour.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>4. Conclusion</title>
      <p>We are still in the phase when we explore the capabilities of interval arithmetic
based algorithms for describing the sensitivity of trained natural neural networks
to changes in object to be classified, but we find our present results encouraging
enough to continue our research project. The next issue can be the frightening case
of small patches changing the recognized meaning of trafic signs. On the other
hand, we could also be capable of proving where the next adversarial example is
relative to a given image.
Acknowledgements. This research was supported by the project E“xtending
the activities of the HU-MATHS-IN Hungarian Industrial and Innovation
Mathematical Service Network” EFOP3.6.2-16-2017-00015, 2018-1.3.1-VKE-2018-00033.
The authors are grateful for the anonymous referees for their useful suggestions to
improve the paper.
[1] Ba, J. and Kingma, D., Adam: A Method for Stochastic Optimization. 3rd Intl.</p>
      <p>Conf. on Learning Representations (ICLR), 2015, http://arxiv.org/abs/1412.6980
[2] Bánhelyi, B., Csendes, T., Garay, B.M., and Hatvani, L., A
computerassisted proof for Sigma_3-chaos in the forced damped pendulum equation. SIAM
J. on Applied Dynamical Systems Vol. 7. (2008), 843–867.
[3] Bánhelyi, B., Csendes, T., Krisztin, T., and Neumaier, A., Global
attractivity of the zero solution for Wright’s equation. SIAM J. on Applied Dynamical
Systems Vol. 13 (2014), 537–563.
[4] Carlini, N. and Wagner, D.A.,, Towards Evaluating the Robustness of Neural</p>
      <p>Networks. IEEE Symposium on Security and Privacy, SP 2017, San Jose
[5] Csendes, T., An interval method for bounding level sets of parameter estimation
problems, Computing Vol. 41 (1989), 75–86.
[6] Fazlyab, M., Morari, M., and Pappas, G.J., Safety Verification and Robustness
Analysis of Neural Networks via Quadratic Constraints and Semidefinite
Programming. arXiv:1903.01287v1.
[7] Goodfellow, I., Shlens, J., and Christian Szegedy, Explaining and
Harnessing Adversarial Examples. International Conference on Learning Representations,
2015
[12] N. Narodytska and S. Kasiviswanathan, Simple Black-Box Adversarial Attacks
on Deep Neural Networks. IEEE Conference on Computer Vision and Pattern
Recognition Workshops (CVPRW), 2017
[13] Su, J., Vargas, D.V., and Kouichi, S., One pixel attack for fooling deep neural
networks. arXiv:1710.08864.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Szabó</surname>
            ,
            <given-names>P.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Markót</surname>
            ,
            <given-names>M.Cs.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Csendes</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Specht</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Casado</surname>
            ,
            <given-names>L.G.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>García</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          , New Approaches to Circle Packing in a Square - With
          <source>Program Codes</source>
          , Springer, Berlin,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Szegedy</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zaremba</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sutskever</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bruna</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Erhan</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Goodfellow</surname>
            ,
            <given-names>I.J.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Fergus</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <source>Intriguing properties of neural networks. International Conference on Learning Representations</source>
          ,
          <year>2014</year>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>Vincent</given-names>
            <surname>Tjeng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            ,
            <surname>Xiao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            , and
            <surname>Tedrake</surname>
          </string-name>
          ,
          <string-name>
            <surname>R.</surname>
          </string-name>
          ,
          <source>Evaluating Robustness of Neural Networks with Mixed Integer Programming. arXiv:1711.07356v3.</source>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [17]
          <string-name>
            <surname>Xiang</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          , and Johnson, T.T.,
          <article-title>Reachability Analysis and Safety Verification for Neural Network Control Systems</article-title>
          . arXiv:
          <year>1805</year>
          .09944v1.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [18]
          <string-name>
            <surname>Zaj</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zolna</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rostamzadeh</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          , and
          <string-name>
            <surname>Pinheiro</surname>
            ,
            <given-names>P.O.</given-names>
          </string-name>
          ,
          <article-title>Adversarial Framing for Image and Video Classification</article-title>
          .
          <source>The Thirty-Third AAAI Conference on Artificial Intelligence (AAAI-19) .</source>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>