<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Second-Order Provable Defenses against Adversarial Attacks</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2020</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10207639</idno>
					<idno type="doi"></idno>
					<title level='j'>International Conference on Machine Learning (ICML)</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Sahil Singla</author><author>Soheil Feizi</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[A robustness certificate is the minimum distance of a given input to the decision boundary of the classifier (or its lower bound). For {\it any} input perturbations with a magnitude smaller than the certificate value, the classification output will provably remain unchanged. Exactly computing the robustness certificates for neural networks is difficult since it requires solving a non-convex optimization. In this paper, we provide computationally-efficient robustness certificates for neural networks with differentiable activation functions in two steps. First, we show that if the eigenvalues of the Hessian of the network are bounded, we can compute a robustness certificate in the l2 norm efficiently using convex optimization. Second, we derive a computationally-efficient differentiable upper bound on the curvature of a deep network. We also use the curvature bound as a regularization term during the training of the network to boost its certified robustness. Putting these results together leads to our proposed {\bf C}urvature-based {\bf R}obustness {\bf C}ertificate (CRC) and {\bf C}urvature-based {\bf R}obust {\bf T}raining (CRT). Our numerical results show that CRT leads to significantly higher certified robust accuracy compared to interval-bound propagation (IBP) based training. We achieve certified robust accuracy 69.79\%, 57.78\% and 53.19\% while IBP-based methods achieve 44.96\%, 44.74\% and 44.66\% on 2,3 and 4 layer networks respectively on the MNIST-dataset.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Modern neural networks achieve high accuracy on tasks such as image classification and speech recognition, but are known to be brittle to small, adversarially chosen perturbations of their inputs <ref type="bibr">(Szegedy et al., 2014)</ref>. A classifier which correctly classifies an image x, can be fooled by an adversary to misclassify an adversarial example x + &#948;, such that x + &#948; is indistinguishable from x to a human. Adversarial examples can also fool systems when they are printed out on a paper and photographed with a smart phone <ref type="bibr">(Kurakin et al., 2016a)</ref>. Even in a black box threat model, where the adversary has no access to the model parameters, attackers could target autonomous vehicles by using stickers or paint to create an adversarial stop sign that the vehicle would interpret as a 'yield' or another sign <ref type="bibr">(Papernot et al., 2016)</ref>. This trend is worrisome and suggests that adversarial vulnerabilities need to be appropriately addressed before neural networks can be deployed in security critical applications.</p><p>In this work, we propose a new approach for developing provable defenses against 2 -bounded adversarial attacks as well as computing robustness certifications of pre-trained deep networks with differentiable activations. In contrast to the existing certificates <ref type="bibr">(Weng et al., 2018;</ref><ref type="bibr">Zhang et al., 2018b)</ref> that use the first-order information (upper and lower bounds on the slope), our approach is based on the secondorder information (upper and lower bounds on curvature values i.e. eigenvalues of the Hessian). Our approach is based on two key theoretically-justified steps: First, in Theorems 1 and 2, we show that if the eigenvalues of the Hessian of the network (curvatures of the network) are bounded (globally or locally), we can efficiently compute a robustness certificate and develop a defense method against 2 -bounded adversarial attacks using convex optimization. Second, in Theorem 4, we derive a computationally-efficient differentiable bound on the curvature (eigenvalues of the Hessian) of a deep network. We derive this bound by explicitly characterizing the Hessian of a deep network in Lemma 1.</p><p>Although the problem of finding the closest adversarial example to a given point for deep nets leads to a non-convex optimization problem, our proposed Curvature-based Robustness Certificate (CRC), under some verifiable conditions, is able to compute points on the decision boundary that are provably closest to the input. That is, it provides the tightest certificate in those cases. For example, for a 2,3,4 layer networks trained on MNIST, we can find provably closest adversarial points for 44.17%, 22.59%, 19.53% cases, respectively (Table <ref type="table">2</ref>). To the best of our knowledge, our method is the first approach that can efficiently compute provably closest adversarial examples for a significant fraction of examples in non-trivial neural networks.</p><p>We note that un-regularized networks, specially deep ones, can obtain large curvature bounds which can lead to small robustness certificates. However, by using the derived curvature bound as a regularizer during training, we significantly decrease curvature values of the network, with little or no decrease in its performance (Table <ref type="table">5</ref>, Figure <ref type="figure">1</ref>). Using this technique, our method significantly outperforms intervalbound propagation (IBP) <ref type="bibr">(Wong et al., 2018;</ref><ref type="bibr">Zhang et al., 2019a)</ref> and achieves state of the art certified accuracy (Tables 3 and 4). In particular, our method achieves certified robust accuracy 69.79%, 57.78% and 53.19% while IBPbased methods achieve 44.96%, 44.74% and 44.66% on 2,3 and 4 layer networks, respectively, on the MNIST-dataset (similar results for Fashion-MNIST).</p><p>Other recent works (e.g. Moosavi Dezfooli et al. ( <ref type="formula">2019</ref>); <ref type="bibr">Qin et al. (2019)</ref>) empirically show that using an estimate of curvature at inputs as a regularizer leads to empirical robustness on par with the adversarial training. In this work, however, we use a bound on the absolute value of curvature (and not an estimate) as a regularizer and show that it results in high certified robustness. Moreover, previous works have tried to certify robustness by bounding the Lipschitz constant of the neural network <ref type="bibr">(Anil et al., 2018;</ref><ref type="bibr">Hein &amp; Andriushchenko, 2017;</ref><ref type="bibr">Peck et al., 2017;</ref><ref type="bibr">Szegedy et al., 2014;</ref><ref type="bibr">Zhang et al., 2018c)</ref>. Our approach, however, is based on bounding the Lipschitz constant of the gradient which in turn leads to bound on the eigenvalues of the Hessian of deep neural networks.</p><p>In summary, we make the following contributions:</p><p>&#8226; We derive a closed-form expression for the Hessian of a deep network with differentiable activation functions (Lemma 1) and derive bounds on the curvature using this closed-form formula (Theorems 3 and 4).</p><p>&#8226; We develop computationally efficient methods for both the robustness certification as well as the adversarial attack problems (Theorems 1 and 2).</p><p>&#8226; We provide verifiable conditions under which our method is able to compute points on the decision boundary that are provably closest to the input. Empirically, we show that this condition holds for a significant fraction of examples (Table <ref type="table">2</ref>).</p><p>&#8226; We show that using our proposed curvature bounds as a regularizer during training leads to improved cer-tified accuracy on 2,3 and 4 layer networks (on the MNIST and Fashion-MNIST datasets) compared to IBP-based adversarial training <ref type="bibr">(Wong &amp; Kolter, 2017;</ref><ref type="bibr">Zhang et al., 2019a)</ref> (Tables <ref type="table">3</ref> and<ref type="table">4</ref>). Our robustness certificate (CRC) outperforms CROWN's certificate <ref type="bibr">(Zhang et al., 2018b)</ref> significantly when trained with our regularizer (Table <ref type="table">5</ref>).</p><p>To the best of our knowledge, this is the first work that (a) demonstrates the utility of second-order information for provable robustness, (b) derives a framework to find the exact robustness certificates in the l 2 norm and the exact worst case adversarial perturbation in an l 2 ball of given a radius under some conditions, and (c) derives an exact closed form expression for the Hessian and bounds on the curvature values using the same.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Related work</head><p>In the last couple of years, several empirical defenses have been proposed for training classifiers to be robust against adversarial perturbations <ref type="bibr">(Kurakin et al., 2016b;</ref><ref type="bibr">Madry et al., 2018;</ref><ref type="bibr">Miyato et al., 2017;</ref><ref type="bibr">Papernot et al., 2016;</ref><ref type="bibr">Samangouei et al., 2018;</ref><ref type="bibr">Zhang et al., 2019b;</ref><ref type="bibr">Zheng et al., 2016)</ref> Although these defenses robustify classifiers to particular types of attacks, they can be still vulnerable against stronger attacks <ref type="bibr">(Athalye &amp; Carlini, 2018;</ref><ref type="bibr">Athalye et al., 2018;</ref><ref type="bibr">Carlini &amp; Wagner, 2017;</ref><ref type="bibr">Laidlaw &amp; Feizi, 2019;</ref><ref type="bibr">Uesato et al., 2018)</ref>. For example, <ref type="bibr">(Athalye et al., 2018)</ref> showed most of the empirical defenses proposed in ICLR 2018 can be broken by developing tailored attacks for each of them.</p><p>To end the cycle between defenses and attacks, a line of work on certified defenses has gained attention where the goal is to train classifiers whose predictions are provably robust within some given region <ref type="bibr">(Bunel et al., 2017;</ref><ref type="bibr">Carlini et al., 2017;</ref><ref type="bibr">Cheng et al., 2017;</ref><ref type="bibr">Croce et al., 2018;</ref><ref type="bibr">Dutta et al., 2018;</ref><ref type="bibr">Dvijotham et al., 2018a;</ref><ref type="bibr">b;</ref><ref type="bibr">Ehlers, 2017;</ref><ref type="bibr">Fischetti &amp; Jo, 2018;</ref><ref type="bibr">Gehr et al., 2018;</ref><ref type="bibr">Gowal et al., 2018;</ref><ref type="bibr">Huang et al., 2016;</ref><ref type="bibr">Katz et al., 2017;</ref><ref type="bibr">Levine &amp; Feizi, 2020a;</ref><ref type="bibr">b;</ref><ref type="bibr">c;</ref><ref type="bibr">Lomuscio &amp; Maganti, 2017;</ref><ref type="bibr">Mirman et al., 2018;</ref><ref type="bibr">Raghunathan et al., 2018a;</ref><ref type="bibr">b;</ref><ref type="bibr">Singh et al., 2018;</ref><ref type="bibr">Wang et al., 2018a;</ref><ref type="bibr">b;</ref><ref type="bibr">Weng et al., 2018;</ref><ref type="bibr">Wong &amp; Kolter, 2017;</ref><ref type="bibr">Wong et al., 2018;</ref><ref type="bibr">Zhang et al., 2018b;</ref><ref type="bibr">2019a)</ref>. These methods, however, do not scale to large and practical networks used in solving modern machine learning problems. Another line of defense work focuses on randomized smoothing where the prediction is robust within some region around the input with a user-chosen probability <ref type="bibr">(Cao &amp; Gong, 2017;</ref><ref type="bibr">Cohen et al., 2019;</ref><ref type="bibr">L&#233;cuyer et al., 2018;</ref><ref type="bibr">Li et al., 2018;</ref><ref type="bibr">Liu et al., 2017;</ref><ref type="bibr">Salman et al., 2019)</ref>. Although these methods can scale to large networks, certifying robustness with probability close to 1 often requires generating a large number of noisy samples around the input which leads to high inference-time computational complexity. We discuss existing works in </p><p>When is dual solvable?</p><p>more details in Appendix A.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Notation</head><p>Consider a fully connected neural network with L layers and N I neurons in the</p><p>where D is the dimension of the input. For an input x, we use z (I) (x) &#8712; R N I and a (I) (x) &#8712; R N I to denote the input (before applying the activation function) and output (after applying the activation function) of neurons in the I th hidden layer of the network, respectively. To simplify notation and when no confusion arises, we make the dependency of z (I) and a (I) to x implicit. We define a (0) (x) = x and N 0 = D.</p><p>With a fully connected architecture, each z (I) and a (I) is computed using a transformation matrix W (I) &#8712; R N I &#215;N I-1 , the bias vector b (I) &#8712; R N I and an activation function &#963;(.) as follows:</p><p>We use (z</p><p>We use [p] to denote the set {1, . . . , p} and [p, q], p &#8804; q to denote the set {p, p + 1, . . . , q}. We use small letters i, j, k etc to denote the index over a vector or rows of a matrix and capital letters I, J to denote the index over layers of network. The element in the i th position of a vector v is given by v i , the vector in the i th row of a matrix A is A i while the element in the i th row and j th column of A is A i,j . We use v and A to denote the 2-norm and the operator 2-norm of the vector v and the matrix A, respectively. We use v and A to denote the vector and matrix constructed by taking the elementwise absolute values. We use &#955; max (A) and &#955; min (A) to denote the largest and smallest eigenvalues of a symmetric matrix A. We use diag(v) to denote the diagonal matrix constructed by placing each element of v along the diagonal. We use &#8857; to denote the Hadamard Product, I to denote the identity matrix. We use &#8828; and &#8829; to denote Linear Matrix Inequalities (LMIs) such that given two symmetric matrices A and B where A &#8829; B means A -B Positive Semi-Definite (PSD).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Using duality to solve the attack and certificate problems</head><p>Consider an input x (0) with true label y and attack target t.</p><p>In the certificate problem, our goal is to find a lower bound of minimum l 2 distance between x (0) and decision boundary</p><p>The problem for solving the exact distance (primal) can be written as:</p><p>However, solving the above problem can be hard in general.</p><p>Using the minimax theorem (primal &#8805; dual), we can write the dual of the above problem as follows:</p><p>From the theory of duality, we know that d cert (&#951;) for each value of &#951; gives a lower bound on the exact certification value (the primal solution) p * cert . However, since f is nonconvex, solving d cert (&#951;) for every &#951; can be difficult. In the next section, we will prove that the curvature of the function f is bounded globally:</p><p>In this case, we have the following theorem (d * cert is defined in Table <ref type="table">1</ref>):</p><p>Below, we briefly outline the proof while the full proof is presented in Appendix E.1. The Hessian of the objective function of the dual d cert (&#951;), i.e the function inside the min x is given by:</p><p>From equation (3), we know that the eigenvalues of I+&#951;&#8711; 2 x f are bounded between (1 + &#951;m, 1 + &#951;M ) if &#951; &#8805; 0, and in (1 + &#951;M, 1 + &#951;m) if &#951; &#8804; 0. In both cases, we can see that for -1 M &#8804; &#951; &#8804; -1 m, all eigenvalues will be non-negative, making the objective function convex. When </p><p>The proof is presented in Appendix E.2. We note that both Theorems 1 and 2 hold for any non-convex function with continuous gradients. Thus they can also be of interest in problems such as optimization of neural nets.</p><p>Using Theorems 1 and 2, we have the following definitions for certification and attack optimizations:</p><p>Definition 1. (Curvature-based Certificate Optimization) Given an input x (0) with true label y, false target t, we define (&#951; (cert) , x (cert) ) as the solution of the following maxmin optimization:</p><p>We refer to x (cert)x (0) as the Curvature-based Robustness Certificate (CRC).</p><p>Definition 2. (Curvature-based Attack Optimization) Given input x (0) with label y, false target t, and the l 2 ball radius &#961;, we define (&#951; (attack) , x (attack) ) as the solution of the following optimization:</p><p>When x (attack) is used for training in an adversarial training framework, we call the method the Curvature-based Robust Training (CRT).</p><p>A direct implication of Theorems 1 and 2 is that the tightness of our robustness certificate crucially depends on the tightness of our curvature bounds, m and M . If m and M are very large compared to the true eigenvalue bounds of the Hessian of the network, the resulting robustness certificate will be vacuous. In Table <ref type="table">5</ref> (and Figure <ref type="figure">1</ref>), we show that by adding the derived bound as a regularization term during the training, we can significantly decrease curvature bounds of the network, with little or no decrease in its performance. This leads to high robustness certifications against adversarial attacks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Curvature Bounds for deep networks</head><p>In this section, we provide a computationally efficient approach to compute the curvature bounds for neural networks with differentiable activation functions. To the best of our knowledge, there is no prior work on finding provable bounds on the curvature values of deep neural networks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">Closed form expression for the Hessian</head><p>Using the chain rule of second derivatives, we can derive</p><p>as a sum of matrix products:</p><p>Lemma 1. Given an L layer neural network, the Hessian of the i th hidden unit with respect to the input x, i.e &#8711; 2 x z (L) i is given by the following formula:</p><p>where B (I) is the Jacobian of z (I) with respect to x (dimensions N I &#215; D), and F (L,I) is the Jacobian of z (L) with respect to a (I) (dimensions</p><p>The proof is presented in Appendix E.3. Using the chain rule, we can compute B (I) , F (L,I) matrices in Lemma 1 recursively as follows:</p><p>This leads to a fast back-propagation like method that can be used to compute the Hessian. Note that Lemma 1 only assumes a matrix multiplication operation from a (I-1) to z (I) . Since a convolution operation can also be expressed as a matrix multiplication, we can directly extend this lemma to deep convolutional networks. Furthermore, Lemma 1 can also be of independent interest in other related problems such as second-order interpretation methods for deep learning (e.g. <ref type="bibr">(Singla et al., 2019)</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Curvature bounds for Two Layer networks</head><p>For a two-layer network and using Lemma 1, &#8711; 2 x z</p><p>(2) yz</p><p>(2) t is given by:</p><p>In the above equation, note that only the term &#963; &#8242;&#8242; (z (1) ) depends on x. We can maximize and minimize each element in the diag term, (W</p><p>i ) independently subject to the constraint that &#963; &#8242;&#8242; (.) is bounded. Using this procedure, we construct matrices P and N that satisfy properties given in the following theorem:</p><p>Theorem 3. Given a two layer network whose activation function has bounded second derivative:</p><p>We have the following linear matrix inequalities (LMIs):</p><p>(c) This gives the following global bounds on the eigenvalues of the Hessian:</p><p>where M = &#955; max (P), m = &#955; min (N)</p><p>P and N are independent of x and defined in equations ( <ref type="formula">51</ref>) and (52) in Appendix E.4.</p><p>The proof is presented in Appendix E.4. Because power iteration finds the eigenvalue with largest magnitude, we can use it to find m and M only when P is PSD and N is NSD. We solve for h U and h L for sigmoid, tanh, softplus activation functions in Appendix F and show that this is in fact the case for them.</p><p>We note that this result does not hold for ReLU networks since the ReLU function is not differentiable everywhere. However, in Appendix G, we devise a method to compute the certificate for a two layer ReLU network by finding a quadratic function that is a provable lower bound for z</p><p>(2)</p><p>t . We show that the resulting method significantly outperforms CROWN-Ada (see Appendix Table <ref type="table">9</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.3.">Curvature bounds for Deep networks</head><p>Using Lemma 1, we know that &#8711; 2 x z (L) i is a sum product of matrices B (I) and F (L,I) i</p><p>. Thus, if we can find upper bounds for B (I) and F (L,I) i &#8734; , we can get upper bounds for &#8711; 2 x z (L) i</p><p>. Using this intuition (proof is presented in Appendix E.5), we have the following result: Theorem 4. Given an L layer neural network whose activation function satifies:</p><p>is globally bounded by the following quantity:</p><p>where r (I) and S (L,I) are independent of x and defined recursively as:</p><p>The above expressions allows for an extremely efficient computation of the curvature bounds for deep networks.</p><p>We consider simplification of this result for sigmoid, tanh, softplus activations in Appendix F. The curvature bounds for z</p><p>in Theorem 4. The resulting bound is independent of x, and only depends on network weights W (I) , the true label y, and the target t. We denote it with K(W, y, t). To simplify notation, when no confusion arises we denote it with K. In our experiments, for two layer networks, we use M , m from Theorem 3 since it provides tighter curvature bounds. For deeper networks (L &#8805; 3), we use M = K, m = -K.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Adversarial training with curvature regularization</head><p>Since the term B (I) in Lemma 1 is the Jacobian of z (I) with respect to x, B (I) , it is equal to the lipschitz constant of the neural network constructed from the first I layers of the original network. Finding tight bounds on the lipschitz constant is an active area of research <ref type="bibr">(Fazlyab et al., 2019;</ref><ref type="bibr">Scaman &amp; Virmaux, 2018;</ref><ref type="bibr">Weng et al., 2018)</ref> and the product of the operator norm of weight matrices is known to be a loose bound on the lipschitz constant for deep networks. Since we use the same product to compute the bound for B (I) in Theorem 4, the resulting curvature bound is likely to be loose for very deep networks.</p><p>In Figure <ref type="figure">1</ref>, we observe the same trend: as the depth of the network increases, the upper bound K ub computed using Theorem 4 becomes significantly larger than the lower Similarly with &#947; = 0, networks adversarially trained with PGD have high curvature as well (note the log scale of the y-axis). However, using our curvature bound as a regularizer, the bound becomes tight and CRC gives high certificate values (Table <ref type="table">5</ref>). We report the curvature bounds (K lb and K ub ) for networks with different depths in Appendix Table <ref type="table">10</ref>.</p><p>bound K lb (computed by taking the maximum of the largest eigenvalue of the Hessian across all test images with label y and the second largest logit t, then averaging across different (y, t)). However, by regularizing the network to have small curvature during training, the bound becomes significantly tighter. Interestingly, using curvature regularization, even with this loose curvature bound for deep nets, we achieve significantly higher robust accuracy than the current state of the art methods while enjoying significantly higher standard accuracy as well (see Tables <ref type="table">3</ref> and<ref type="table">4</ref>).</p><p>To regularize the network to have small curvature values, we penalize the curvature bound K during training. To compute the gradient of K with respect to the network weights, note that using Theorem 4, we can compute K using absolute value, matrix multiplications, and operator norm. Since the gradient of operator norm does not exist in standard libraries, we created a new layer where the gradient of W (I) i.e &#8711; W (I) W (I) is given by:</p><p>where</p><p>Note that W (I) , u (I) and v (I) can be computed using power iteration. Since the network weights do not change significantly during a single training step, we can use the singular vectors u (I) and v (I) computed in the previous training step to update W (I) using one iteration of power method. This approach to compute the gradient of the largest singular value of a matrix has also been used in previous published work <ref type="bibr">(Miyato et al., 2018)</ref>. Thus, the per-sample loss for training with curvature regularization is given by:</p><p>where denotes the cross entropy loss, y is the true label of the input x (0) , t is the attack target and &#947; is the regularization coefficient for penalizing large curvature values. Similar to the adversarial training, in CRT, we use x (attack) instead of x (0) in equation ( <ref type="formula">7</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">Experiments</head><p>The certified robust accuracy means the fraction of correctly classified test samples whose robustness certificates (computed using CRC) are greater than a pre-specified radius &#961;. Unless otherwise specified, we use the class with the second largest logit as the attack target (i.e. the class t). The notation (L &#215; [1024], activation) denotes a neural network with L layers with the specified activation, (&#947; = c) denotes standard training with &#947; set to c, while (CRT, c) denotes CRT training with &#947; = c. Certificates are computed over 150 randomly chosen correctly classified images. We use a single NVIDIA GeForce RTX 2080 Ti GPU.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.1.">Fraction of inputs with tightest robustness certificate</head><p>Using the verifiable condition of Theorems 1 and 2, our approach is able to (1) find points that are provably the worst case adversarial perturbations (in the l 2 norm) in the attack problem and (2) find points on the decision boundary that are provably closest to the input in the l 2 norm in the certification problem. In particular, in Table <ref type="table">2</ref>, we observe that for curvature regularized networks, our approach finds provably worst-case adversarial perturbations for all of the inputs with a small drop in the accuracy. Moreover, for 2,3,and 4 layer networks, our method finds provably closest adversarial examples for 44.17%, 22.59% and 19.53% of inputs in the MNIST test set, respectively.</p><p>Table <ref type="table">2</ref>. Certificate success rate denotes the fraction of points satisfying zyzt = 0, Attack success rate denotes the fraction of points (x (0) ) satisfying x (attack)x (0) 2 = &#961; = 0.5 implying primal=dual in Theorems 1 and 2 respectively. We use the MNIST dataset. We note that the technique presented in this work is not applicable to ReLU networks due to the absence of the curvature information. Verifying the robustness property in an l 2 ball around the input is known to be an NP-complete problem for ReLU networks <ref type="bibr">(Katz et al., 2017)</ref> -for an arbitrary ReLU network, it is computationally challenging to even verify (let alone find) that a given adversarial perturbation is the worst case perturbation in polynomial time unless P=NP. Using curvature-regularized neural networks with smooth activation functions, we show that it is possible to find (and not just verify) the exact worst case perturbation (and robustness certificate) for a significant fraction of test inputs. We note that in the worst case even for smooth classifiers, the problem of finding the worst adversarial perturbations remain computationally challenging. However, our theoretical and empirical results provide strong evidence that bounding the curvature of the network and using smooth activation functions can be critical to achieve high robustness guarantees for a significant fraction of samples.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Network</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.2.">Comparison with existing provable defenses</head><p>We compare against certified defense techniques proposed in <ref type="bibr">Wong et al. (2018)</ref> and <ref type="bibr">Zhang et al. (2019a)</ref> in Table <ref type="table">3</ref> for the MNIST dataset <ref type="bibr">(LeCun &amp; Cortes, 2010)</ref> and Table <ref type="table">4</ref> for the Fashion-MNIST dataset <ref type="bibr">(Xiao et al., 2017)</ref>   In Appendix Table <ref type="table">5</ref>, we compare CRT with Randomized Smoothing <ref type="bibr">(Cohen et al., 2019)</ref>. For 2 &amp; 3 layer networks, we achieve higher robust accuracy. However, we note that since our certificate is deterministic while the smoothingbased certificate is probabilistic (although with high probability), the results are not directly comparable. As a separate result, we also prove that randomized smoothing bounds the curvature of the network (Theorem 1 in Appendix E.6). We also include comparison with empirical defense methods namely PGD and TRADES in Appendix Table <ref type="table">8</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.3.">Comparison with existing certificates</head><p>In Table <ref type="table">5</ref>, we compare CRC with CROWN-general <ref type="bibr">(Zhang et al., 2018a)</ref>. For 2-layer networks, CRC outperforms CROWN significantly. For deeper networks, CRC works better than CROWN when the network is trained with curvature regularization. However, with small &#947; = 0.01, we We show some results on CIFAR-10 dataset in Appendix Table <ref type="table">7</ref>. We again observe improvements in the robustness certificate and certified robust accuracy using CRC and CRT.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.4.">Results using local curvature bounds</head><p>From Theorems 1 and 2, we can observe that if the curvature is locally bounded within a convex region around the input (we call it the "safe" region), then the corresponding dual problems (d * cert , d * attack ) are again convex optimization problems provided the optimization trajectory does not escape the safe region.</p><p>Theorem 3 can be directly extended to compute the local curvature bound using bounds on the second derivatives, i.e. &#963; &#8242;&#8242; (z (1) ) in the local region. In Table <ref type="table">6</ref>, we show significant improvements for the CRC certificate for two-layer sigmoid networks on the MNIST dataset for &#947; = 0. However, with the curvature regularization, the difference is insignificant. We also observe that the certified accuracy for (CRT, 0.0) improves from 95.04% to 95.31% and for standard improves from 54.17% to 58.06%. The certified accuracy remains the same for other cases. Implementation details are in the Appendix Section C.6. Computing local curvature bounds for deeper networks, however, is more challenging due to the presence of terms involving multiplication of first and second derivatives. A straightforward extension of Theorem 4 4, wherein we compute the upper bound on &#963; &#8242; and &#963; &#8242;&#8242; in a local region around the input across all neurons in all layers does not yield significant improvements over the global method, therefore we do not include those results in our comparison. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="8.">Extension to convolutional neural networks</head><p>The formula derived in Lemma 1 is valid even for convolutional neural networks. However, to derive the curvature bound (using Theorem 4), we need to compute a bound on the singular values of the Jacobian of the convolution layer (i.e. W (I) ). In order to do this, one can use spectral bounds for convolution layers derived in <ref type="bibr">(Sedghi et al., 2018)</ref>. We present some preliminary results using this technique in <ref type="bibr">(Singla &amp; Feizi, 2019)</ref> for a single layer convolutional neural network with softplus activations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="9.">Conclusion</head><p>In this paper, we develop computationally-efficient convex relaxations for robustness certification and adversarial attack problems given the classifier has a bounded curvature.</p><p>We also show that this convex relaxation is tight under some general verifiable conditions. To be able to use proposed certification and attack convex optimizations, we derive global curvature bounds for deep networks with differentiable activation functions. This result is a consequence of a closed-form expression that we derive for the Hessian of a deep network. Adversarial training using our attack method coupled with curvature regularization results in a significantly higher certified robust accuracy than the existing provable defense methods. Our proposed curvature-based robustness certificate significantly outperforms the CROWN certificate when trained with our regularizer. Scaling up our proposed curvature-based robustness certification and training methods as well as further tightening the derived curvature bounds are among interesting directions for the future work.</p></div></body>
		</text>
</TEI>
