ORIGINAL RESEARCH article

Front. Artif. Intell., 04 January 2022

Sec. Machine Learning and Artificial Intelligence

Volume 4 - 2021 | https://doi.org/10.3389/frai.2021.780843

Adversarially Robust Learning via Entropic Regularization

  • Electrical and Computer Engineering, New York University, New York, NY, United States

Abstract

In this paper we propose a new family of algorithms, ATENT, for training adversarially robust deep neural networks. We formulate a new loss function that is equipped with an additional entropic regularization. Our loss function considers the contribution of adversarial samples that are drawn from a specially designed distribution in the data space that assigns high probability to points with high loss and in the immediate neighborhood of training samples. Our proposed algorithms optimize this loss to seek adversarially robust valleys of the loss landscape. Our approach achieves competitive (or better) performance in terms of robust classification accuracy as compared to several state-of-the-art robust learning approaches on benchmark datasets such as MNIST and CIFAR-10.

1 Introduction

Deep neural networks have led to significant breakthroughs in the fields of computer vision (), natural language processing (Zhang et al., 2020), speech processing (), recommendation systems (Tang et al., 2019) and forensic imaging (). However, deep networks have also been shown to be very susceptible to carefully designed “attacks” (; ; ). In particular, the outputs of networks trained via traditional approaches are rather brittle to maliciously crafted perturbations in both input data as well as network weights ().

Formally put, suppose the forward map between the inputs x and outputs y is modeled via a neural network as y = f(w; x) where w represents the set of trainable weight parameters. For a classification task, given a labeled dataset {xi, yi}, i = 1, … , n where X and Y represents all training data pairs, the standard procedure for training neural networks is to seek the weight parameters w that minimize the empirical risk:

However, the prediction can be very sensitive to changes in both and x. For example, if a bounded perturbation to a test image input (or to the neural network weights) is permitted, i.e., where δi represents the perturbation, then the predicted label can be made arbitrarily different from the true label yi.

Several techniques for finding such adversarial perturbations have been put forth. Typically, this can be achieved by maximizing the loss function within a neighborhood around the test point x (Tramèr et al., 2017; ):where are the final weights of a pre-trained network. The perturbation set Δp is typically chosen to be an p-ball for some p ∈ {0, 1, 2, }.

The existence of adversarial attacks motivates the need for a “defense” mechanism that makes the network under consideration more robust. Despite a wealth of proposed defense techniques, the jury is still out on how optimal defenses should be constructed ().

We discuss several families of effective defenses. The first involves adversarial training (). Here, a set of adversarial perturbations of the training data is constructed by solving a min-max objective of the form:

Wong and Kolter (2018) use a convex outer adversarial polytope as an upper bound for worst-case loss in robust training; here the network is trained by generating adversarial as well as few non-adversarial examples in the convex polytope of the attack via a linear program. Along the same vein include a mixed-integer programming based certified training for piece-wise linear neural networks (Tjeng et al., 2018) and integer bound propagation ().

The last family of approaches involves randomized smoothing. Here, both training the network as well as the inference made by the network are smoothed out over several stochastic perturbations of the target example (; ; ). This has the effect of optimizing a smoothed-adversarial version of the empirical risk. Randomized smoothing has also been used in combination with adversarial training (Salman et al., 2019b) for improved adversarial robustness under 2 attacks1.

In this paper, we propose a new approach for training adversarially robust neural networks. The key conceptual ingredient underlying our approach is entropic regularization. Borrowing intuition from , instead of the empirical risk (or its adversarial counterpart), our algorithm instead optimizes over a local entropy-regularized version of the empirical risk:

Intuitively, this new loss function can be viewed as the convolution of the empirical risk with a Gibbs-like distribution to sample points from the neighborhoods, X′, of the training data points X that have high loss. Therefore, compared to adversarial training, we have replaced the inner maximization with an expected value with respect to a modified Gibbs measure which is matched to the geometry of the perturbation set.

Since the above loss function is difficult to optimize (or even evaluate exactly), we instead approximate it via Monte Carlo techniques. In particular, we use Stochastic Gradient Langevin Dynamics (Welling and Teh, 2011); in this manner, our approach blends in elements from adversarial training, randomized smoothing, and entropic regularization. We posit that the combination of these techniques will encourage a classifier to learn a better robust decision boundary as compared to prior art (see visualization in Figure 1).

FIGURE 1

To summarize, our specific contributions are as follows:

  • 1. We propose a new entropy-regularized loss function for training deep neural networks (Eq. 2) that is a robust version of the empirical risk.

  • 2. We propose a new Monte Carlo algorithm to optimize this new loss function that is based on Stochastic Gradient Langevin Dynamics. We call this approach Adversarial Training with ENTropy (ATENT).

  • 3. We show that ATENT-trained networks provide improved (robust) test accuracy when compared to existing defense approaches.

  • 4. We combine randomized smoothing with ATENT to show competitive performance with the smoothed version of TRADES.

In particular, we are able to train an -robust CIFAR-10 model to 57.23% accuracy at PGD attack level ϵ = 8/255, which is higher than the latest benchmark defenses based on both adversarial training using early stopping (Salman et al., 2019b) (56.8%) as well as TRADES (56.6%) (Zhang et al., 2019b).

2 Prior Work

Evidence for the existence of adversarial inputs for deep neural networks is by now well established (; ; ; ; Szegedy et al., 2013; ). In image classification, the majority of attacks have focused on the setting where the adversary confounds the classifier by adding an imperceptible perturbation to a given input image. The range of the perturbation is pre-specified in terms of bounded pixel-space p-norm balls. Specifically, an p- attack model allows the adversary to search over the set of input perturbations Δp,ϵ = {δ: ‖δpϵ} for p = {0, 1, 2, }.

Initial attack methods, including the Fast Gradient Sign Method (FGSM) and its variants (; ), proposed techniques for generating adversarial examples by ascending along the sign of the loss gradient:where (xadvx) ∈ Δ,ϵ. proposed a stronger adversarial attack via projected gradient descent (PGD) by iterating FGSM several times, such thatwhere p = {2, }. These attacks are (arguably) the most successful available attack techniques reported to date, and serve as the starting point for our comparisons. Both Deep Fool ) and Carlini-Wagner () construct an attack by finding smallest possible perturbation that can flip the label of the network output.

Several strategies for defending against attacks have been developed. In , adversarial training is performed via the min-max formulation Eq. 1. The inner maximization is solved using PGD, while the outer objective is minimized using stochastic gradient descent (SGD) with respect to w. This can be slow to implement, and speed-ups have been proposed in Shafahi et al. (2019) and Wong et al. (2020). In ; ; ; , Salman et al. (2019b), the authors developed certified defense strategies via randomized smoothing. This approach consists of two stages: the first stage consists of training with noisy samples, and the second stage produces an ensemble-based inference. See for a more thorough review of the literature on various attack and defense models.

Apart from minimizing the worst case loss, approaches which minimize the upper bound on worst case loss inclu Wong et al., 2018; Tjeng et al. (2018); . Another breed of approaches use a modified loss function which considers surrogate adversarial loss as an added regularization, where the surrogate is cross entropy (Zhang et al., 2019b) (TRADES), maximum margin cross entropy () (MMA) and KL divergence (Wang et al., 2019) (MART) between adversarial sample predictions and natural sample predictions.

In a different line of work, there have been efforts towards building neural network networks with improved generalization properties. In particular, heuristic experiments by ; ; suggest that the loss surface at the final learned weights for well-generalizing models is relatively “flat”2. Building on this intuition, showed that by explicitly introducing a smoothing term (via entropic regularization) to the training objective, the learning procedure weights towards regions with flatter minima by design. Their approach, Entropy-SGD (or ESGD), is shown to induce better generalization properties in deep networks. We leverage this intuition, but develop a new algorithm for training deep networks with better adversarial robustness properties. We also highlight some papers written concurrently in Supplementary Material.

3 Problem Formulation

The task of classification, given a training labelled dataset , i ∈ {1, … , n}, consists of solving the standard objective by optimizing weight parameters w, where yi is a one-hot class encoding vector of length m and m is the total number of classes. The training data matrix itself is represented using shorthand and labels in where we have access to n training samples which are d-dimensional each. Given this formulation, the primary task is to minimize the cross-entropy Loss function . In this paper, we design an augmented version of the loss function which models a class of adversarial perturbations and also introduce a new procedure to minimize it.

We first recap the Entropy SGD () (see also Supplementary Material). Entropy-SGD considers an augmented loss function of the form

By design, minimization of this augmented loss function promotes minima with wide valleys. Such a minimum would be robust to perturbations in w, but is not necessarily advantageous against adversarial data samples xadv. In our experiments (Section 4) we show that networks trained with Entropy-SGD perform only marginally better against adversarial attacks as compared to those trained with standard SGD.

For the task of adversarial robustness, we instead develop a data-space version of Entropy-SGD. To model for perturbations in the samples, we design an augmented loss that regularizes the data space. Note that we only seek specific perturbations of data x that increase the overall loss value of prediction. In order to formally motivate our approach, we first make some assumptions.

Assumption 1The distribution of possible adversarial data inputs of the neural network obeys a positive exponential distribution of the form below, where the domain of is bounded:and Zw,β is the partition function that normalizes the probability distribution.Note here that cross entropy loss is always lower bounded as . flushleftIntuitively, the neural network is more likely to “see” perturbed examples from the adversary corresponding to higher loss values as compared to lower loss values. The parameter R is chosen to ensure that the integral of the probability curve is bounded. When the temperature parameter β → ∞, the above Gibbs distribution concentrates at the maximizer(s) of , where is the “worst possible” set of adversarial inputs to the domain of the loss function for fixed weights w. For a given attack ball Δp,ϵ with radius ϵ and norm p, and fixed weights w, this value equates to:where .

Assumption 2A modified distribution, (without loss of generality, setting β = 1) with an additional smoothing parameter, assumes the form:where ZX,w,γ is the partition function that normalizes the probability distribution.Here γ controls the penalty of the distance of the adversary from true data X; if γ, the sampling is sharp, i.e. p(X′ = X; X, Y, w, γ) = 1 and p(X′ ≠ X; X, Y, w, γ) = 0, which is the same as sampling only the standard loss , meanwhile γ → 0 corresponds to a uniform contribution from all possible data points in the loss manifold.Now, we develop an augmented loss function which incorporates the probabilistic formulation in Assumption 2. The standard objective can be re-written as the functional convolution:which can be seen as a sharp sampling of the loss function at training points X. Now, define the Data-Entropy Loss:our new objective is to minimize this augmented objective function , which resembles expected value of the standard loss function sampled according to a distribution that (i) penalizes points further away from the true training data 2) boosts data points which correspond to high loss values. Specifically, the adversarial samples generated by the distribution in Assumption 2 will correspond to those with high loss values in the immediate neighborhood of the true data samples. This sampling process is also described in Figure 2. We also highlight theoretical properties of our augmented loss function via Lemma 3.1, proof of which can be found in of supplement B.

FIGURE 2

Lemma 3.1

The effective loss

which guides the Langevin sampling process in

Eq. 8

is

  •  1. β + γ smooth if is β-smooth in X.

  • 2. dissipative if is L-Lipschitz in X.

If gradient descent is used to minimize the loss in Eq. 4, the gradient update corresponding to the augmented loss function can be computed as followsCorrespondingly, the weights of the network, when trained using gradient descent, using Eq. 5, can be updated aswhere η is the step size. The expectation in Eq. 5 is carried out over the probability distribution of data samples X′ as defined in Assumption 2. This can be seen as the adversarial version of the formulation developed in Entropy SGD (), where the authors use a Gibbs distribution to model an augmented loss function that explores the loss surface at points that are perturbed from the current weights w, denoted by w′ (see Supplementary Material). In contrast, in our approach, we consider loss contributions from perturbations X′ of data points X. This analogue is driven by the fact that the core objective in is to design a network which is robust to perturbations in weights (generalization), where as the core objective of this paper is to design a network that is robust to perturbations in the inputs (adversarial robustness).The expectation in Eq. 5 is computationally intractable to optimize (or evaluate). However, using the Euler discretization of the Langevin Stochastic Differential Equation (Welling and Teh, 2011), it can be approximated well. Samples can be generated from p(X′) as:where η′ is the step size for Langevin sampling, ɛ is a scaling factor that controls additive noise. In Langevin dynamics, when one considers a starting point of X0 then the procedure above yields samples X1Xt that follow the distribution p(X′). Intuitively, the stochastic process Xt is more likely to visit points in the immediate neighborhoods of the entire training dataset X corresponding to high loss values.Observe that X′ and X have the same dimensions and the gradient term in the above equation needs to be computed over n, d-dimensional data points. In practice this can be computationally expensive. Therefore, we discuss a stochastic variant of this update rule, which considers mini-batches of training data instead. Plugging in the distribution in Eq.3, and using the Euler discretization for Langevin Stochastic Differential Equations, the update rule for sampling X′ iswhere we have incorporated ZX, in the step size η′. Note that as the number of updates k, the estimates from the procedure in Eq. 8 converge to samples from the true distribution. p(X; X, Y, w, γ). We then want to estimate using the samples obtained from the above iterative procedure. , use an exponentially decaying averaging process to estimate the expected value.Batch-wise updates for stochastic gradient estimates: As is typical with large datasets, instead of using the entire training data for computing gradients in Eq. 5 and Eq. 7, one can use batch-wise data where the training data is segmented into J batches . This is essentially a combination of Stochastic Gradient Descent and Langevin Dynamics and is known as Stochastic Gradient Langevin Dynamics in recent literature Welling and Teh, 2011).This discussion effectively leads to the algorithm shown in Algorithm 1, which we refer to as Adversarial Training using Entropy (or ATENT), designed for 2 attacks. Note that we have considered exponentially decaying averaging over sample loss μk in Line 10 of Algorithm 1.

Algorithm 1

, describe a defense to adversarial perturbations, in the form of smoothing. A smoothed classifier , under isotropic Gaussian noise , produces an output:where denotes probability distribution (see for detailed discussion). SmoothAdv ) is an adversarial attack as well as defense for smoothed classifiers, which replaces standard loss with cross entropy loss of a smoothed classier. In comparison, we compute a smoothed version of the cross entropy loss of a standard classifier. This is similar to the setup of (TRADES with smoothing). The procedure in is therefore amenable to randomized smoothing in its evaluation. We discuss a smoothed evaluation of ATENT in the next section.

Algorithm 2

It is evident that due to the isotropic structure of the Gibbs measure around each data point, , -ATENT is best suited for attacks. However this may not necessarily translate to robustness against attacks. For this case, one can use an alternate assumption on the distribution of potential adversarial examples. flushleft

Assumption 3We consider a modification of the distribution in Assumption 2 to account for robustness against ℓ type attacks:where ‖⋅‖is the ℓnorm on the vectorization of its argument and ZX,w,γnormalizes the probability.The corresponding Data Entropy Loss for defenses is: flushleftThis resembles a smoothed version of the loss function with a exponential kernel along the data dimension to model points in the neighborhood of X which have high loss. The SGD update to minimize this loss becomes:where the expectation over p(X′) is computed by using samples generated via Langevin Dynamics:Plugging in the distribution in Assumption 3 the update rule for sampling X′:where and j scans all elements of the tensors X, Xk and 1j = δi,j. The second term in the update rule navigates the updates Xk+1 to lie in the immediate neighborhood of X. Note that this training process requires taking gradients of distance. In the update rule in Eq. 11, the gradient update only happens along one coordinate. In practice when we test this update rule, the algorithm fails to converge. This is due to the fact that typically a sizeable number of elements of X′ − X have a large magnitude.The expression in the penultimate step of Eq. 11, is the gradient of a regularized maximization problem,where γ is inversely proportional to ϵ (constraint is satisfied if ‖X′ − X is minimized, or − ‖X′ − X is maximized). This expression can be maximized only if X′ ∈ Δ,ϵ of X; however when we take gradients along only one coordinate, this may not be sufficient to drive all coordinates of X′ towards Δ,ϵ of X.Similar to the Carlini Wagner attack (), we replace the gradient update of the term, with a clipping based projection oracle. We design an accelerated version of the update rule in Eq. 11, in which we perform a clipping operation, i.e., an ball projection of the form:where element-wise projection Pγ(z) = z if |z| < 1/γ and Pγ(z) = 1/γ if |z| > 1/γ. Empirically, we also explored an alternate implementation where the projection takes place in each inner iteration k, however, we find the version in Algorithm 2 to give better results.In both Algorithms 1 and 2, we initialize the Langevin update step with a random normal perturbation δi of benign samples, which is constructed to lie inside within approximately 1/γ radius of the natural samples.

4 Experiments

In this section we perform experiments on a five-layer convolutional model with 3 CNN and 2 fully connected layers, used in Zhang et al. (2019b); , trained on MNIST. We also train a WideResNet-34-10 on CIFAR10 [as used in Zhang et al. (2019b)] as well as ResNet20. Due to space constraints, we present supplemental results in Supplementary Material. We conduct our experiments separately on networks specifically trained for 2 attacks and those trained for attacks. We also test randomized smoothing for our 2-ATENT model. Source code is provided in the supplementary material.

Attacks: For 2 attacks, we test PGD-40 with 10 random restarts, and CW2 attacks at radius ϵ2 = 2 for MNIST and PGD-40 and CW2 attacks at ϵ2 = 0.43 () and ϵ2 = 0.5 = 128/255 for CIFAR10. For attacks, we test PGD-20, CW, DeepFool attacks at radiii ϵ = 0.3 for MNIST and ϵ = 0.031 = 8/255 for CIFAR10. We test ATENT at other attack radii in Supplementary Material. For implementing the attacks, we use the Foolbox library () and the Adversarial Robustness Toolbox ().

Defenses: We compare models trained using: SGD (vanilla), Entropy SGD (), PGD-AT () with random starts [or PGD-AT(E) with random start, early stopping ()], TRADES (Zhang et al., 2019b), MMA () and MART (Wang et al., 2019). Wherever available, we use pretrained models to tabulate robust accuracy results for PGD-AT, TRADES, MMA and MART as presented in their published versions. Classifiers giving the best and second best accuracies are highlighted in each category. We note here that a good defense mechanism should give better robust accuracies across different attack strategies. Since no single defense strategy outperforms every other defenses across all attacks, we highlight the best two robust accuracies. We find that ATENT obtains either the best or second best robust accuracy against all methods tested. This suggests that ATENT generalizes better than other defense strategies against various attacks.

Smoothing: We also test randomized smoothing () in addition to our adversarial training to evaluate certified robust accuracies.

The results were generated using an Intel(R) Xeon(R) W-2195 CPU 2.30 GHz Lambda cluster with 18 cores and a NVIDIA TITAN GPU running PyTorch version 1.4.0.

4.1 MNIST

In Tables 1 and 2, we tabulate the robust accuracy for 5-layer convolutional network trained using the various approaches discussed above for both 2 and attacks respectively.

TABLE 1

Attack →Benign Acc2PGD-402CW
Defense
SGD99.3819.4013.20
Entropy SGD99.2419.1214.52
2 PGD-AT98.7672.94-
TRADES97.5476.08-
MMA99.2773.0272.72
2 ATENT98.6677.2176.72

Robust percentage accuracies of 5-layer convolutional net for MNIST against 2, ϵ = 2 attack.

The highest two accuracy values in each column are highlighted in bold.

TABLE 2

Attack →Benign PGD-20CW
DefenseAccϵ = 0.3ϵ= 0.3
SGD99.390.9732.37
Entropy SGD99.241.1734.34
PGD-AT99.3696.0194.25
TRADES99.4896.0794.03
MMA98.9295.2594.77
MART98.7496.4896.10
ATENT99.4596.4497.40

Robust accuracies (in percentages) of 5-layer convolutional net for MNIST against , ϵ = 0.3 attack.

The highest two accuracy values in each column are highlighted in bold.

Training setup: Complete details are provided in Supplementary Material. Our experiments for 2 attack are presented in Table 1. We perform these experiments on a LeNet5 model imported from the Advertorch toolbox (architecture details are provided in the supplement). For 2-ATENT we use a batch-size of 50 and SGD with learning rate of η = 0.001 for updating weights. We set γ = 0.05 and noise . We perform K = 40 Langevin epochs and set the Langevin parameter α = 0.9, and step η′ = 0.25. For attack, we do a 40-step PGD attack with 2-ball radius of ϵ = 2. The step size for the PGD attack is 0.25, consistent with the configuration in . We perform early stopping by tracking robust accuracies of validation set and report the best accuracy found.

In Table 2, we use a SmallCNN configuration as described in Zhang et al. (2019b) (architecture in supplement). We use a batch-size of 128, SGD optimizer with learning rate of η = 0.01 for updating weights. We set γ = 3.33 and noise . We perform L = 40 Langevin epochs and we set the Langevin parameter α = 0.9, and step η′ = 0.01, consistent with the configuration in Zhang et al. (2019b). For the PGD attack, we use a 20-step PGD attack with step-size 0.01, for -ball radius of ϵ = 0.3. We perform an early stopping by tracking robust accuracies on the validation set and report the best accuracy found. Other attack configurations can be found in the supplement.

Our experiments on the Entropy-SGD (row 2 in Tables 1 and 2) trained network suggests that networks trained to find flat minima (with respect to weights) are not more robust to adversarial samples as compared to vanilla SGD.

4.2 CIFAR10

Next, we extend our experiments to CIFAR-10 using a WideResNet 34-10 as described in Zhang et al. (2019b); Wang et al. (2019) as well as ResNet-20. For PGD-AT (and PGD-AT (E)), TRADES, and MART, we use the default values stated in their corresponding papers.

Training setup: Complete details in Supplementary Material. Robust accuracies of WRN-34-10 classifer trained using state of art defense models are evaluated at the attack benchmark requirement of radius ϵ = 8/255, on CIFAR10 dataset and tabulated in Table 3. For -ATENT, we use a batch-size of 128, SGD optimizer for weights, with learning rate η = 0.1 (decayed to 0.01 at epoch 76), 76 total epochs, weight decay of 5 × 10–4 and momentum 0.9. We set γ = 1/(0.0031), K = 10 Langevin iterations, , at step size η′ = 0.007. We test against 20-step PGD attack, with step size 0.003, as well as -CW and Deep Fool attacks using FoolBox. -ATENT is consistently among the top two performers at benchmark configurations.

TABLE 3

Defense →PGDTRADESMARTATENT
AttackAT
Benign87.3084.9284.1785.67
PGD-2047.0456.6157.3957.23
(E)56.80
CW49.2762.6754.5362.34
DeepFool-58.1555.8957.21

Robust accuracies of WRN34-10 net for CIFAR10 against attack of ϵ = 8/255.

The highest two accuracy values in each row are highlighted.

Importance of early stopping: Because WRN34-10 is highly overparameterized with approximately 48 million trainable parameters, it tends to overfit adversarially-perturbed CIFAR10 examples. The success of TRADES (and also PGD) in relies on an early stopping condition and corresponding learning rate scheduler. We strategically search different early stopping points and report the best possible robust accuracy from different stopping points.

We test efficiency of our 2-based defense on both 2 attacks, as well as compute 2 certified robustness for the smoothed version of ATENT against smoothed TRADES () in Supplementary Table S2 in Supplementary Material. We find that our formulation of 2 ATENT is both robust against 2 attacks, as well as gives a competitive certificate against adversarial perturbations for ResNet20 on CIFAR10.

In Supplementary Material we also demonstrate a fine-tuning approach for ATENT, where we consider a pre-trained WRN34-10 and fine tune it using ATENT, similar to the approach in . We find that ATENT can be used to fine tune a naturally pretrained model at lower computational complexity to give competitive robust accuracies while almost retaining the performance on benign data.

4.3 Discussion

We propose a new algorithm for defending neural networks against adversarial attacks. We demonstrate competitive (and often improved) performance of our family of algorithms (ATENT) against the state of the art. We analyze the connections of ATENT with both PGD-adversarial training as well as randomized smoothing. Future work includes extending to larger datasets such as ImageNet, as well as theoretical analysis for algorithm convergence.

Statements

Data availability statement

The original contributions presented in the study are included in the article/Supplementary Material, further inquiries can be directed to the corresponding authors.

Author contributions

GJ contributed to probablistic modeling, design of the algorithm and conducted some of the experiments. AJ added to the experimental analysis by designing and performing suitable baseline comparisons. AC performed the initial experimental analysis and researched the code for baseline models. GJ contributed to writing all sections in the first draft of the manuscript. AJ added experimental sections of the manuscript and AC added literature review. SG and CH gave feedback on the problem formulation and suggested papers to be added to literature survey as well as helped design experimental comparisons. All authors contributed to manuscript revision, read, and approved the submitted version.

Funding

This work was supported in part by NSF grant awards CCF-2005804 and CCF-1815101, and NSF/USDA-NIFA award 2021-67021-35329.

Acknowledgments

The authors would like to thank Anna Choromanska for useful initial feedback and Praneeth Narayanamurthy for insightful conceptual discussions.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations or those of the publisher, the editors, and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/frai.2021.780843/full#supplementary-material

Footnotes

1.^This family of methods has the additional benefit of being certifiably robust: all points within a ball of a given radius around the test point are provably classified with the correct label.

2.^This is not strictly necessary, as demonstrated by good generalization at certain sharp minima ().

References

  • 1

    AthalyeA.CarliniN.WagnerD. (2018). Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examples.

  • 2

    BiggioB.CoronaI.MaiorcaD.NelsonB.ŠrndićN.LaskovP. (2013). “Evasion Attacks against Machine Learning at Test Time,” in Joint European conference on machine learning and knowledge discovery in databases (Springer), 387402. 10.1007/978-3-642-40994-3_25

  • 3

    BiggioB.RoliF. (2018). Wild Patterns: Ten Years after the Rise of Adversarial Machine Learning. Pattern Recognition84, 317331. 10.1016/j.patcog.2018.07.023

  • 4

    BlumA.DickT.ManojN.ZhangH. (2020). Random Smoothing Might Be Unable to Certify L Robustness for High-Dimensional Images. J. Machine Learn. Res.21, 121.

  • 5

    CarliniN.MishraP.VaidyaT.ZhangY.SherrM.ShieldsC.et al (2016). “Hidden Voice Commands,” in 25th {USENIX} Security Symposium ({USENIX} Security 16, 513530.

  • 6

    CarliniN.WagnerD. A. (2017b). “Towards Evaluating the Robustness of Neural Networks,” in 2017 IEEE Symposium on Security and Privacy (SP). 10.1109/sp.2017.49

  • 7

    CarliniN.WagnerD. (2017a). “Towards Evaluating the Robustness of Neural Networks,” in 2017 IEEE Symposium on Security and Privacy (IEEE), 3957. 10.1109/sp.2017.49

  • 8

    ChaudhariP.ChoromanskaA.SoattoS.LeCunY.BaldassiC.BorgsC.et al (2019). Entropy-sgd: Biasing Gradient Descent into Wide Valleys. J. Stat. Mech. Theor. Exp.2019, 124018. 10.1088/1742-5468/ab39d9

  • 9

    CohenJ.RosenfeldE.KolterZ. (2019). “Certified Adversarial Robustness via Randomized Smoothing,” in Proceedings of the 36th International Conference on Machine Learning. Editors ChaudhuriK.SalakhutdinovR., and California Long Beach (Long Beach, CA: Proceedings of Machine Learning Research), USA: PMLR, 97, 13101320.

  • 10

    CroceF.HeinM. (2020). “Reliable Evaluation of Adversarial Robustness with an Ensemble of Diverse Parameter-free Attacks,” in International conference on machine learning (PMLR), 22062216.

  • 11

    DathathriS.ZhengS.GaoS.MurrayR. (2017). “Measuring the Robustness of Neural Networks via Minimal Adversarial Examples,” in Deep Learning: Bridging Theory and Practice, NIPS 2017 workshop, Long Beach, CA35 (NeurIPS-W).

  • 12

    DingG.SharmaY.LuiK.HuangR. (2019). “Mma Training: Direct Input Space Margin Maximization through Adversarial Training,” in International Conference on Learning Representations.

  • 13

    DinhL.PascanuR.BengioS.BengioY. (2017). “Sharp Minima Can Generalize for Deep Nets,” in nternational Conference on Machine Learning, 10191028.I.

  • 14

    FanY.WuB.LiT.ZhangY.LiM.LiZ.et al (2020). “Sparse Adversarial Attack via Perturbation Factorization,” in Computer Vision–ECCV 2020: 16th European ConferenceProceedings, Part, Glasgow, UK, August 23–28, 2020 (Springer), 3550. 10.1007/978-3-030-58542-6_3XXII 16

  • 15

    GoodfellowI. J. (2018). Defense against the Dark Arts: An Overview of Adversarial Example Security Research and Future Research Directions. arxiv preprint abs/1806.04169.

  • 16

    GoodfellowI. J.ShlensJ.SzegedyC. (2014). Explaining and Harnessing Adversarial Examples. arXiv preprint arXiv:1412.6572.

  • 17

    GoodfellowI.ShlensJ.SzegedyC. (2015). “Explaining and Harnessing Adversarial Examples,” in ICLR.

  • 18

    GowalS.DvijothamK.StanforthR.BunelR.QinC.UesatoJ.et al (2019). “Scalable Verified Training for Provably Robust Image Classification,” in 2019 IEEE/CVF International Conference on Computer Vision (ICCV) (IEEE), 48414850. 10.1109/iccv.2019.00494

  • 19

    HochreiterS.SchmidhuberJ. (1997). Flat Minima. Neural Comput.9, 142. 10.1162/neco.1997.9.1.1

  • 20

    JeddiA.ShafieeM.WongA. (2020). A Simple fine-tuning Is All You Need: Towards Robust Deep Learning via Adversarial fine-tuning. arXiv preprint arXiv:2012.13628.

  • 21

    JiangZ.ChenT.ChenT.WangZ. (2020). “Robust Pre-training by Adversarial Contrastive Learning,” in NeurIPS.

  • 22

    JoshiA.JagatapG.HegdeC. (2021). Adversarial Token Attacks on Vision Transformers. arXiv preprint arXiv:2110.04337.

  • 23

    KeskarN. S.MudigereD.NocedalJ.SmelyanskiyM.TangP. T. P. (2016). On Large-Batch Training for Deep Learning: Generalization gap and Sharp Minima. arXiv preprint arXiv:1609.04836.

  • 24

    KrizhevskyA.SutskeverI.HintonG. (2012). “Imagenet Classification with Deep Convolutional Neural Networks,” in Advances in Neural Information Processing Systems, 10971105.

  • 25

    KurakinA.GoodfellowI.BengioS. (2016). Adversarial Examples in the Physical World. arXiv preprint arXiv:1607.02533.

  • 26

    LecuyerM.AtlidakisV.GeambasuR.HsuD.JanaS. (2019). “Certified Robustness to Adversarial Examples with Differential Privacy,” in 2019 IEEE Symposium on Security and Privacy (SP) (IEEE), 656672. 10.1109/sp.2019.00044

  • 27

    LiB.ChenC.WangW.CarinL. (2018a). Certified Adversarial Robustness with Additive Gaussian Noise. arXiv preprint arXiv:1809.03113.

  • 28

    LiH.XuZ.TaylorG.StuderC.GoldsteinT. (2018b). “Visualizing the Loss Landscape of Neural Nets,” in Advances in Neural Information Processing Systems, 63896399.

  • 29

    LiY.MinM. R.LeeT.YuW.KruusE.WangW.et al (2021). “Towards Robustness of Deep Neural Networks via Regularization,” in Proceedings of the IEEE/CVF International Conference on Computer Vision(ICCV), 74967505.

  • 30

    MadryA.MakelovA.SchmidtL.TsiprasD.VladuA. (2018). “Towards Deep Learning Models Resistant to Adversarial Attacks,” in International Conference on Learning Representations.

  • 31

    Moosavi-DezfooliS.-M.FawziA.FawziO.FrossardP. (2017). “Universal Adversarial Perturbations,” in IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI (CVPR), 17651773.

  • 32

    Moosavi-DezfooliS.-M.FawziA.FrossardP. (2016). “Deepfool: A Simple and Accurate Method to Fool Deep Neural Networks,” in 2016 IEEE Conference on Computer Vision and Pattern Recognition (Las Vegas, NV: CVPR). 10.1109/cvpr.2016.282

  • 33

    NicolaeM.-I.SinnM.TranM. N.BuesserB.RawatA.WistubaM.et al (2018). Adversarial Robustness Toolbox v1.2.0. arXiv preprint arXiv:1807.01069.

  • 34

    PapernotN.McDanielP.GoodfellowI. (2016). Transferability in Machine Learning: From Phenomena to Black-Box Attacks Using Adversarial Samples. arXiv preprint arXiv:1605.07277.

  • 35

    PaulS.ChenP.-Y. (2021). Vision Transformers Are Robust Learners. arXiv preprint arXiv:2105.07581.

  • 36

    RauberJ.BrendelW.BethgeM. (2017). Foolbox: A python Toolbox to Benchmark the Robustness of Machine Learning Models. arXiv preprint arXiv:1707.04131.

  • 37

    RenK.ZhengT.QinZ.LiuX. (2020). Adversarial Attacks and Defenses in Deep Learning. Engineering6 (3), 346360. 10.1016/j.eng.2019.12.012

  • 38

    RiceL.WongE.KolterZ. (2020). “Overfitting in Adversarially Robust Deep Learning,” in International Conference on Machine Learning (PMLR), 80938104.

  • 39

    RonyJ.GrangerE.PedersoliM.Ben AyedI. (2021). “Augmented Lagrangian Adversarial Attacks,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 77387747.

  • 40

    RotaP.SanginetoE.ConotterV.PramerdorferC. (2016). “Bad Teacher or Unruly Student: Can Deep Learning Say Something in Image Forensics Analysis,” in 2016 23rd International Conference on Pattern Recognition (ICPR) (IEEE), 25032508.

  • 41

    SalmanH.LiJ.RazenshteynI.ZhangP.ZhangH.BubeckS.et al (2019a). “Provably Robust Deep Learning via Adversarially Trained Smoothed Classifiers,” in Advances in Neural Information Processing Systems, 1128911300.

  • 42

    SalmanH.LiJ.RazenshteynI.ZhangP.ZhangH.BubeckS.et al (2019b). Provably Robust Deep Learning via Adversarially Trained Smoothed Classifiers. Adv. Neural Inf. Process. Syst.32, 1129211303.

  • 43

    ShafahiA.NajibiM.GhiasiM. A.XuZ.DickersonJ.StuderC.et al (2019). “Adversarial Training for Free,” in Advances in Neural Information Processing Systems, 33533364.

  • 44

    ShaoR.ShiZ.YiJ.ChenP.-Y.HsiehC.-J. (2021). On the Adversarial Robustness of Visual Transformers. arXiv preprint arXiv:2103.15670.

  • 45

    SzegedyC.ZarembaW.SutskeverI.BrunaJ.ErhanD.GoodfellowI.et al (2013). Intriguing Properties of Neural Networks. arXiv preprint arXiv:1312.6199.

  • 46

    TangJ.DuX.HeX.YuanF.TianQ.ChuaT. (2019). “Adversarial Training towards Robust Multimedia Recommender System,” in IEEE Transactions on Knowledge and Data Engineering.

  • 47

    TjengV.XiaoK.TedrakeR. (2018). “Evaluating Robustness of Neural Networks with Mixed Integer Programming,” in International Conference on Learning Representations.

  • 48

    TramèrF.KurakinA.PapernotN.GoodfellowI.BonehD.McDanielP. (2017). Ensemble Adversarial Training: Attacks and Defenses. arXiv preprint arXiv:1705.07204.

  • 49

    WangY.ZouD.YiJ.BaileyJ.MaX.GuQ. (2019). “Improving Adversarial Robustness Requires Revisiting Misclassified Examples,” in International Conference on Learning Representations.

  • 50

    WellingM.TehY. (2011). “Bayesian Learning via Stochastic Gradient Langevin Dynamics,” in Proceedings of the 28th International Conference on Machine Learning (Bellevue, Washington D.C: ICML), 681688.

  • 51

    WongE.KolterZ. (2018). “Provable Defenses against Adversarial Examples via the Convex Outer Adversarial Polytope,” in International Conference on Machine Learning (Stockholm, Sweden: PMLR), 52865295.

  • 52

    WongE.RiceL.KolterJ. Z. (2020). Fast Is Better than Free: Revisiting Adversarial Training.

  • 53

    WongE.SchmidtF.MetzenJ.KolterJ. (2018). “Scaling Provable Adversarial Defenses,” in NeurIPS.

  • 54

    XuP.ChenJ.ZouD.GuQ. (2017). Global Convergence of Langevin Dynamics Based Algorithms for Nonconvex Optimization. arXiv preprint arXiv:1707.06618.

  • 55

    ZhangH.ChenH.XiaoC.GowalS.StanforthR.LiB.et al (2019a). “Towards Stable and Efficient Training of Verifiably Robust Neural Networks,” in International Conference on Learning Representations.

  • 56

    ZhangH.YuY.JiaoJ.XingE.El GhaouiL.JordanM. (2019b). “Theoretically Principled Trade-Off between Robustness and Accuracy,” in International Conference on Machine Learning, 74727482.

  • 57

    ZhangW.ShengQ.AlhazmiA.LiC. (2020). “Adversarial Attacks on Deep-Learning Models in Natural Language Processing: A Survey,” in ACM Transactions on Intelligent Systems and Technology (New York, NY: Association for Computing Machinery), 11, 141. 10.1145/3374217

Summary

Keywords

adversarial learning, robustness, adversarial attack, regularization, neural network training

Citation

Jagatap G, Joshi A, Chowdhury AB, Garg S and Hegde C (2022) Adversarially Robust Learning via Entropic Regularization. Front. Artif. Intell. 4:780843. doi: 10.3389/frai.2021.780843

Received

21 September 2021

Accepted

28 October 2021

Published

04 January 2022

Volume

4 - 2021

Edited by

Yang Zhou, Auburn University, United States

Reviewed by

Ji Liu, Baidu, China

Xingjian Li, Baidu, China

Updates

Copyright

*Correspondence: Gauri Jagatap,

This article was submitted to Machine Learning and Artificial Intelligence, a section of the journal Frontiers in Artificial Intelligence

Disclaimer

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.

Outline

Figures

Cite article

Copy to clipboard


Export citation file


Share article

Article metrics