원시데이터 수집 시스템
선정목록으로

ARGAN: Adversarially Robust Generative Adversarial Networks for Deep Neural Networks Against Adversarial Examples

관련 산업용 섬유 · (10) 아라미드

기본 정보

저자
  1. Seok-Hwan Choi — School of Computer Science and Engineering, Pusan National University, Busan, Republic of Korea
  2. Jinmyeong Shin — School of Computer Science and Engineering, Pusan National University, Busan, Republic of Korea
  3. Peng Liu — College of Information Sciences and Technology, Pennsylvania State University, State College, PA, USA
  4. Yoon-Ho Choi — School of Computer Science and Engineering, Pusan National University, Busan, Republic of Korea
DOI
10.1109/access.2022.3160283
저널
IEEE Access
발행년도
2022
발행기관
Institute of Electrical and Electronics Engineers
피인용수
14
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2022.3160283
토픽
High-Velocity Impact and Material Behavior
OpenAlex ID
W4226407513

평가 내용

관련도
관련
사업분야
산업용 섬유 · (10) 아라미드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 아라미드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

An adversarial example, which is an input instance with small, intentional feature perturbations to machine learning models, represents a concrete problem in Artificial intelligence safety. As an emerging defense method to defend against adversarial examples, generative adversarial networks-based defense methods have recently been studied. However, the performance of the state-of-the-art generative adversarial networks-based defense methods is limited because the target deep neural network models with generative adversarial networks-based defense methods are robust against <i>adversarial examples</i> but make a false decision for <i>legitimate input data</i>. To solve the accuracy degradation of the generative adversarial networks-based defense methods for <i>legitimate input data</i>, we propose a new generative adversarial networks-based defense method, which is called Adversarially Robust Generative Adversarial Networks(ARGAN). While converting input data to machine learning models using the two-step transformation architecture, ARGAN learns the generator model to reflect the vulnerability of the target deep neural network model against adversarial examples and optimizes parameter values of the generator model for a joint loss function. From the experimental results under various datasets collected from diverse applications, we show that the accuracy of ARGAN for <i>legitimate input data</i> is good-enough while keeping the target deep neural network model robust against <i>adversarial examples</i>. We also show that the accuracy of ARGAN outperforms the accuracy of the state-of-the-art generative adversarial networks-based defense methods.

본문 59,161자

본문 펼치기
Received February 27, 2022, accepted March 14, 2022, date of publication March 16, 2022, date of current version March 31, 2022. _Digital Object Identifier 10.1109/ACCESS.2022.3160283_ # ARGAN: Adversarially Robust Generative Adversarial Networks for Deep Neural Networks Against Adversarial Examples SEOK-HWAN CHOI 1, JIN-MYEONG SHIN1, PENG LIU 2, (Member, IEEE), AND YOON-HO CHOI 1, (Member, IEEE) 1School of Computer Science and Engineering, Pusan National University, Busan 46241, Republic of Korea 2College of Information Sciences and Technology, Pennsylvania State University, State College, PA 16801, USA Corresponding author: Yoon-Ho Choi (yhchoi@pusan.ac.kr) This work was supported in part by BK21 FOUR, the Korean Southeast Center for the 4th Industrial Revolution Leader Education, in part by the National Research Foundation of Korea (NRF) Grant by the Korean Government (MSIT) under Grant NRF-2021R1F1A1049655, and in part by the Institute of Information and Communications Technology Planning and Evaluation (IITP) Grant by the Korean Government (MSIT) (Regional strategic industry convergence security core talent training business) under Grant 2019-0-01343. ABSTRACT An adversarial example, which is an input instance with small, intentional feature perturbations to machine learning models, represents a concrete problem in Artificial intelligence safety. As an emerging defense method to defend against adversarial examples, generative adversarial networks-based defense methods have recently been studied. However, the performance of the state-of-the-art generative adversarial networks-based defense methods is limited because the target deep neural network models with generative adversarial networks-based defense methods are robust against _adversarial_ _examples_ but make a false decision for _legitimate input data_ . To solve the accuracy degradation of the generative adversarial networksbased defense methods for _legitimate input data_, we propose a new generative adversarial networks-based defense method, which is called Adversarially Robust Generative Adversarial Networks(ARGAN). While converting input data to machine learning models using the two-step transformation architecture, ARGAN learns the generator model to reflect the vulnerability of the target deep neural network model against adversarial examples and optimizes parameter values of the generator model for a joint loss function. From the experimental results under various datasets collected from diverse applications, we show that the accuracy of ARGAN for _legitimate_ _input_ _data_ is good-enough while keeping the target deep neural network model robust against _adversarial examples_ . We also show that the accuracy of ARGAN outperforms the accuracy of the state-of-the-art generative adversarial networks-based defense methods. INDEX TERMS Adversarial examples, adversarial perturbation, deep neural networks (DNNs), security. I. INTRODUCTION As a severe security problem of deep learning technology, the notion of adversarial example was introduced in 2013 [1]. With the evolution of deep learning technology, adversarial example has recently been highlighted as the most severe problem of deep learning technology [2]. While modifying legitimate input data with slight human-imperceptible pertur The associate editor coordinating the review of this manuscript and approving it for publication was Ilsun You . bations, adversarial example largely changes the output value given by neural networks. As a result, this kind of security problem for the target deep neural network (DNN) model causes severe damage to the artificial intelligent (AI) systems such as self-driving systems [3], bio-medicine systems [4], and user authentication systems [5]–[8] which are sensitive to small variation in accuracy. To defend the target DNN model against adversarial examples, generative adversarial networks (GANs)-based defense methods have actively been studied as an emerging effective defense technology [9], [10]. The existing GANbased defense methods are grouped into one of two types of architectures according to the design purpose of the generator, i.e., noise generation architecture and noise reduction architecture. Note that given a training dataset, GAN learns to generate new data with the same statistics as the training dataset using two deep networks, which are the generator and the discriminator. The generator in the noise generation architecture produces the corrupted input data. While training DNN models by using both the corrupted input data and legitimate input data, the noise generation architecture makes DNN models robust against adversarial examples [11], [12]. On the other hand, the generator in the noise reduction architecture produces the purified input data whose data distribution is close to the legitimate input data distribution [13], [14]. Thus, the noise reduction architecture results in reducing the perturbation of adversarial examples before feeding input data into the target DNN model. However, the accuracy of such GAN-based defense methods can decrease when predicting or classifying legitimate input data. This is because GAN-based defense methods using the noise generation architecture or the noise reduction architecture use the slightly modified input data, i.e., the corrupted input data in the noise generation architecture and the purified input data in the noise reduction architecture. While the target DNN model is robust against adversarial examples due to the modified input data, it can make wrong decision for legitimate input data and thus, generates the false positives for legitimate input data. If such GANbased defense methods which cause the wrong decision are used at self-driving systems, bio-medicine systems, and user authentication systems [6]–[8] which are sensitive to small accuracy variation, significant side effects can be caused. To solve the accuracy degradation of the existing GANbased defense methods for legitimate input data while keeping the target DNN model robust against adversarial examples, we propose a new GAN-based defense method, which is called Adversarially Robust GAN (ARGAN). Similar to EEJE [15], the proposed ARGAN architecture is designed following two-step transformation of input data to the target DNN model. That is, in the first transformation step, the noise data is added into the input data to the target DNN model and in the second transformation step, the inverse noise data is added to eliminate the influence of the noise added from the first transformation step on the output. However, ARGAN is designed using a blackbox transformation method different from a white-box transformation method of EEJE. That is, while EEJE requires knowledge of the network architecture, weight values and other parameters of the target DNN model when generating the noise data in the first transformation step, ARGAN does not require complete knowledge of model because it uses a pre-trained generator as the transformation method. Specifically, in the first transformation step, the generator produces the robust input data against adversarial examples while reflecting the vulnerability of the target DNN model to adversarial examples and presenting a new joint loss function to optimize the parameter values of the generator. In the second transformation step, the robust input data are transformed into feeding input data to the target DNN model using the additive inverse of the generator. Compared to the other state-of-the-art GAN-based defense methods, ARGAN shows the good accuracy for both _legitimate_ _input_ _data_ and _adversarial_ _examples_ . From the experimental results under various datasets collected from diverse applications, we show that the accuracy of ARGAN for legitimate input data is good-enough while keeping the DNN model robust against adversarial examples. We also show that the accuracy of ARGAN outperforms the accuracy of the state-of-the-art GAN-based defense methods using noise generation architecture and noise reduction architecture, e.g., _Gandef_ [12], _Defense-GAN_ [13] and _APE-_ _GAN_ [14]. The rest of the paper is organized as follows. In section II, the authors overview the well-known adversarial attacks and the state-of-the-art GAN-based defense methods. Also the authors describe the motivation of this paper. In section III, the authors describe the threat model, the overall operation and the details of ARGAN. In section IV, the authors verify the effectiveness(accuracy) of ARGAN from various experimental results under different adversarial attacks, different datasets and so on. Finally, the authors conclude this paper in section V. II. PRELIMINARIES AND RELATED WORKS In this section, after introducing well-known adversarial attacks, we overview previous GAN-based defense methods. We also describe the motivation for considering a new GANbased defense method by explaining the limitations of the previous GAN-based defense methods. _A._ _ADVERSARIAL ATTACKS_ In this section, we summarize the characteristics of four adversarial attacks [16]–[19], which are frequently used for performance verification in many defense methods. Based on linearization of cost functions, Fast Gradient Sign Method (FGSM) generates adversarial examples using the sign of the gradient to increase loss of DNN models [16]. FGSM is a simple and fast adversarial attacks, but it often makes sub-optimal perturbations. To resolve the problem of FGSM, Projected Gradient Descent (PGD) generates adversarial examples using several gradient updates for the fine optimization [17]. To perform fine optimization efficiently, PGD performs iterative gradient updates from randomly selected an initial point. To calculate minimal perturbation, DeepFool used the iterative linearization of the target DNN model [18]. In each iteration, the adversarial perturbation is updated to reach the decision boundary closest to the input data _X_ . To increase attack success rate while calculating the minimum perturbation, C&W generates adversarial examples based on various distance metrics such as _L_ 0, _L_ ∞ and _L_ 2 norm [19]. In this paper, only _L_ 2 type of C&W method (CW) is considered as a representative method because it is most frequently mentioned in other works [20], [21]. _B._ _GAN-BASED DEFENSE METHODS_ 1) GAN-BASED DEFENSE METHODS USING NOISE GENERATION ARCHITECTURE To make DNN models more robust against adversarial examples, the noise generation architecture uses the GANs to train the robust DNN model or retrain the current deployed DNN models. Lee _et_ _al._ used a GAN framework to make a DNN model more robust against adversarial examples [22]. They trained the generator to produce data corresponding to the weaknesses of the target DNN model, and retrained the DNN model using the data produced by the generator. Liu and Hsieh proposed a training framework, called RobGAN, based on the insight that adversarial training and GANs complement each other [23]. In Rob-GAN, the generator and the discriminator are jointly optimized in the presence of adversarial attacks. Sun _et_ _al._ used GANbased data augmentation approach to improve the adversarial training [11]. They designed the generator to produce boundary samples for the target DNN model, and used the produced boundary samples for adversarial training. Liu _et al._ proposed GanDef, which is a GAN-based adversarial training method that utilizes a discriminator as the regularization of the feature selection [12]. Even though these defense methods provided good robustness against adversarial examples, they require a lot of costs while training the new robust DNN models or retraining the current deployed DNN models. 2) GAN-BASED DEFENSE METHODS USING NOISE REDUCTION ARCHITECTURE To make adversarial examples less threatened, the noise reduction architecture reduces perturbation of adversarial examples before feeding into DNN model. Samangouei _et_ _al._ proposed a defense method utilizing GANs, called Defense-GAN, to make the generator distribution closer to the data distribution [13]. To find the input data of generator, they performed the gradient descent iteratively. Defense-GAN especially worked well for the black-box attack as well as the white-box attack. Shen _et al._ proposed the APE-GAN, which eliminate the adversarial perturbation of the input data using GANs [14]. They designed the generator loss that combines content loss and adversarial loss to make the adversarial examples highly consistent with legitimate data distribution. APE-GAN worked well without knowledge of architecture and parameters of the target DNN model. Santhanam and Grnarova proposed a GAN-based defense method, called cowboy, for detection and purification of adversarial examples [24]. They used a discriminator to detect the adversarial examples, and used a generator to purify the detected adversarial examples. Also, they showed that adversarial examples lie outside of the data distribution. Su _et_ _al._ proposed a new training framework for GANs to remove the adversarial perturbation in face verification field [25]. To improve the performance of the generator, they used two pre-trained classification networks instead of a discriminator. Hwang _et_ _al._ proposed a Variational Autoencoder(VAE)-based defense method, called PuVAE, to purify adversarial examples [26]. They used a dilated Convolutional Neural Networks(CNNs) as a generator to prevent the information loss from feature selection. Given a reasonable time constraints, PuVAE showed outstanding performance compared to Defense-GAN. 3) LIMITATION OF PREVIOUS GAN-BASED DEFENSE METHODS Some artificial intelligent systems such as a cloud-based user authentication system can be exposed to adversarial examples. In other words, the adversary can perform an adversarial attack to change the output of DNN model _f_ (·). When the adversarial attack _h_ (·) and a legitimate input data _X_ is given, the objective function of the adversary can be expressed into: min _h_ (·) <sup>_Pr_</sup> <sup>(</sup> <sup>_l_</sup> <sup>′</sup> <sup>=</sup> <sup>_l_</sup> <sup>)</sup> _s.t. l_ <sup>′</sup> = _f_ - _h_ ( _X_ ) _,_ _l_ = _f_ ( _X_ ) _._ (1) To defend against adversarial examples _h_ ( _X_ ) in Equation 1, the artificial intelligence system can apply a defense method. For example, let us consider the artificial intelligence system that applies GAN-based defense method using noise reduction architecture as a defense method. To preserve the output of DNN model _f_ (·), the generator _G_ in the noise reduction architecture transforms the adversarial example into the purified input data. When the adversarial attack _h_ (·) and a legitimate input data _X_ is given, the objective function of the defense method can be expressed into: max _G_ (·) <sup>_Pr_</sup> <sup>(</sup> <sup>_l_</sup> <sup>′</sup> <sup>=</sup> <sup>_l_</sup> <sup>)</sup> _s.t. l_ <sup>′</sup> = _f_ - _G_ - _h_ ( _X_ ) _,_ _l_ = _f_ - _G_ ( _X_ ) _._ (2) However, since such defense method transforms even the legitimate input data _X_ while removing perturbations of adversarial examples, it may decrease the accuracy of the artificial intelligence system for the legitimate input data. The decrease in accuracy for the legitimate input data may be more sensitive than the increase in robustness for the adversarial examples in specific applications, such as selfdriving car and user authentication. In other words, the small decrease in accuracy for the legitimate input data can determine whether to apply defense methods for adversarial examples. For a more specific explanation of why the accuracy for legitimate input data is decreased, let us consider the artificial intelligence system that applies APE-GAN, which is a representative method of noise reduction architecture, FIGURE 1. Ten legitimate images randomly selected from CIFAR-10 test dataset, where each image is transformed using APE-GAN. are described. Next, we describe the GAN architecture of ARGAN along with a joint loss consisting of adversarial loss, distance loss and target loss. Finally, each operation of ARGAN is described with specific examples in detail. FIGURE 2. Data distribution of legitimate input data and feeding input data to the target DNN model under no adversarial attacks. Here, 1000 test data randomly selected from CIFAR-10 test dataset were used for input data on ResNet-20 model and the term ‘Euclidean similarity’ represents the average euclidean similarity between legitimate input data and feeding input data. as a defense method. Some examples of APE-GAN from CIFAR-10 test dataset [27] under no adversarial attacks are shown in Fig. 1. Here, the legitimate input data represents the randomly selected samples for each class, the feeding input data represents the transformed input data by APE-GAN and the difference represents difference in the legitimate input data and the feeding input data. From ‘‘difference’’ in Fig. 1, it is observed that most of the pixels of the legitimate input data are transformed by APE-GAN even though adversarial attacks do not occur. Note that the transformed pixels corrupt key features that directly affect classification. In Fig. 2, we show the data distribution of legitimate input data and feeding input data. It is observed that data distribution of the feeding input data, transformed by APE-GAN, is different from that of the legitimate input data. Such difference causes the degradation of classification accuracy. These observations motivate us to seek a new GAN-based defense method which provides the good accuracy not only for the adversarial example but also for the legitimate input data. III. PROPOSED METHOD In this section, we overview the operation of ARGAN in detail. First, after introducing the targeted threat model, the overall operation and the objective function of ARGAN _A._ _THREAT MODEL_ Let us consider a cloud-based user authentication system for Machine Learning as a Service(MLaaS). By using the trained DNN model, the cloud-based user authentication systems such as SMARTLET [6], FACECUBE [7], and MOCHA [8] predict the identity of the transmitted face image. In the legitimate situation without adversarial attacks, a user face image is taken by IP camera or smartphone at the client. The user face image is transmitted to the cloud-based face recognition server through either the unencrypted or encrypted session. As a result, the cloudbased face recognition server returns a normal prediction result. However, under the man-in-the-middle(MITM) threat, an adversary secretly alters the communications between two parties who believe that they are directly communicating with each other [28]. Even though the user face image is transmitted through the encrypted session, an adversary still can easily bypass it using state-of–the-art MITM threats based on Renegotiation, Version Rollback and so on [29], [30]. After the legitimate session between the client and the cloud-based face recognition server is altered through an MITM attack, the adversary modifies the legitimate face image with slight perturbations. Here, it is assumed that the adversary has complete access to target DNN model in cloud server. In other words, the adversary can get the architecture and parameters of target DNN model. As a result, adversary can relay the perturbed face image to the cloud-based face recognition server instead of the legitimate face image. Since the outputs given by neural networks for the legitimate face image and the perturbed face image are largely different, the cloud-based face recognition server returns an abnormal prediction result. In this threat model, the goal of the defender is to provide the robustness against adversarial attacks. It is assumed that the defender can be the administrator of the cloud-based face recognition server. Also it is assumed that the defender has trained the defense model for their system and has predeployed it to the IP camera or smartphone at the client. _B._ _OVERALL OPERATION OF ARGAN_ Different from the previous GAN-based defense methods, ARGAN performs two-step input transformation before feeding the input data into DNN models. The first transformation is performed on the client side and the second transformation is performed on the cloud server side. Overall defense operation procedures are as follows: 1) The client performs the first transformation which transforms the legitimate input data _X_ into the robust input data _Xr_ using the generator _G_ before transmitting the data to the cloud server. 2) The cloud server performs the second transformation, which restores the key features corrupted by the generator _G_ in the first transformation before feeding the data to the DNN model. When the adversarial attack _h_ (·) and a legitimate input data _X_ are given, the objective function of ARGAN is expressed into: _adversarial attacks, say H_ = _{FGSM, PGD, DeepFool, C&W_ _}, it is said to the robust input data Xr_ _if it has the following_ _characteristic:_ arg max _f_ - _p_ <sup>−1</sup> - _h_ ( _Xr_ ) = arg max _f_ ( _X_ ) _for_ ∀ _h_ ∈ _H_ _s.t. Xr_ = _p_ ( _X_ ) _,_ (5) where _p_ (·) is a conversion function which adds the random noise to the input data _X_, and _p_ <sup>−1</sup> (·) is an inverse function of _p_ (·), which restores the input data _X_ transformed by _p_ (·). Note that it is difficult for random noise to satisfy Definition 1 for all _H_ . Therefore, we obtained _Xr_ through several experiments using various sizes and types of noise. On the other hand, a discriminator of ARGAN is trained to distinguish the transformed input data _G_ ( _X_ ) by generator from robust input data _Xr_ . In other words, a discriminator encourages the transformed input data _G_ ( _X_ ) to better reflect the features of the robust input data _Xr_ . Thus, the generator and discriminator of ARGAN is defined to solve the adversarial zero sum problem as follow: min _θG_ <sup>max</sup> _θD_ min _Xf_ min _Xf_ <sup>max</sup> _G_ (·) <sup>max</sup> _G_ (·) <sup>_Pr_</sup> <sup>(</sup> <sup>_l_</sup> <sup>′</sup> <sup>=</sup> <sup>_l_</sup> <sup>) + ∥</sup> <sup>_Xf_</sup> <sup>−</sup> <sup>_X_</sup> <sup>∥2</sup> min _θG_ _θD_ [E _Xr_ ∼ _pdata_ ( _Xr_ ) log _DθD_ ( _Xr_ ) - E _X_ ∼ _pdata_ ( _X_ ) log( _DθD_ ( _GθG_ ( _X_ )))] _,_ (6) _s.t. l_ <sup>′</sup> = _f_ - _G_ <sup>−1</sup> - _h_ - _G_ ( _X_ ) _,_ _l_ = _f_ - _G_ <sup>−1</sup> - _G_ ( _X_ ) = _f_ ( _X_ ) _,_ (3) where _G_ (·) is the first transformation performed by the generator on the client side, _G_ <sup>−1</sup> (·) is the second transformation performed on the server side, and ∥ _Xf_ - _X_ ∥2 is a difference in _Xf_ and the legitimate input data _X_ . Here, _Xf_ represents a feeding input data of DNN model and is defined as follow according to whether adversarial attack _h_ (·) occurs: where _θG_ and _θD_ represent the parameters of generator _G_ and discriminator _D_, respectively. In Equation 6, the parameter _θG_ can be obtained by optimizing the generator loss function. Here, the generator loss function _lG_ is defined as a joint loss consisting of a adversarial loss, a distance loss and a target loss as shown in Fig. 3. The adversarial loss _ladv_ measures the discriminator error for the transformed input data _G_ ( _X_ ) and is calculated as follow: _ladv_ = 1 − log( _D_ ( _G_ ( _X_ )) _,_ (7) which encourages the generator distribution to match the robust input data distribution for _N_ number of training data. The distance loss _ldist_ measures the difference between the transformed input data _G_ ( _X_ ) and the robust input data _Xr_ and is calculated as follow: _ldist_ = _d_ ( _G_ ( _X_ ) _, Xr_ ) _,_ (8) where _d_ (·) is a distance function that measures the similarity between the transformed input data _G_ ( _X_ ) and the robust input data _Xr_ . The _L_ 2 distance is used so that _G_ ( _X_ ) matches _Xr_ even the key features. That is, the distance loss _ldist_ encourages the internal representation of the transformed input data _G_ ( _X_ ) match to that of the robust input data _Xr_ . The target loss _ltarget_ measures the error of the target DNN model and is calculated as follow: _ltarget_ = log( _f_ ( _r_ ( _G_ ( _X_ )) − ( _G_ ( _X_ ) − _X_ ) _, y_ )) _,_ (9) where _f_ (·) is a target DNN model, _y_ is a class of the legitimate input data _X_ and r(·) is a random noise addition function _Xf_ = - _G_ <sup>−1</sup> - _h_ - _G_ ( _X_ ) _,_ if _h_ (·) _is occurred_ ; (4) _G_ <sup>−1</sup> - _G_ ( _X_ ) = _X_ _,_ _otherwise._ Note that, different from the previous GAN-based defense methods, ARGAN shows the good accuracy for legitimate input data. As shown in Equations. 3 and 4, if adversarial attack _h_ (·) do not occur, DNN models in ARGAN return the same result as DNN model with no defense method. This is because the second transformation, _G_ <sup>−1</sup> (·), is the additive inverse of the first transformation _G_ (·) for a legitimate input data _X_ . _C._ _GAN ARCHITECTURE OF ARGAN_ The goal of ARGAN is to provide the accuracy for legitimate input data is good-enough while keeping the DNN model robust against adversarial example. To achieve this, the generator of ARGAN is designed by reflecting the vulnerability of target DNN model. That is, the generator of ARGAN learns the distribution of robust input data _Xr_ and produces the robust input data _Xr_ with a given _X_ as its input data. Here, the robust input data _Xr_ is defined as follow: _Definition_ _1_ _(Robust_ _Input_ _Data):_ _Let_ _X_ _be_ _a_ _given_ _input_ _data_ _and_ _f_ _be_ _a_ _target_ _DNN_ _model._ _Let_ _H_ _be_ _a_ _set_ _of_ FIGURE 3. Overall GAN architecture of ARGAN. <u>Algorithm 1</u> <u>Client Side Operation</u> Input : Input Data _D_ 1 if _isPreprocess_ then 2 _X_ = _preprocess_ ( _D_ ) 3 else 4 _X_ = _D_ 5 _Xr_ = _generate_ ( _X_ ) /* First transformation */ 6 _Pr_ = _Xr_ _.remove_ ( _X_ ) if _isEncryption_ then 7 _Xt_ = _encryption_ ( _Xr_ ) 8 else 9 _Xt_ = _Xr_ 10 _transmit_ ( _Server, Xt_ _, Pr_ ) that reflects the various vulnerabilities of target DNN model. Here, _r_ ( _G_ ( _X_ )) is not equal to _G_ ( _X_ ) + _r_ because all values of _r_ ( _G_ ( _X_ )) lies between 0 and 1 but some values of _G_ ( _X_ ) + _r_ can exceed 1. In other words, the target loss encourages the generator to produce the robust input data which are resistant to the adversarial attacks by reflecting the vulnerability of the target classifier while minimizing the impact on the performance of the target classifier. Consequently, the generator loss function _lG_ is defined as a weighted summation of the three loss functions: _lG_ = _αladv_ + _βldist_ + _γ ltarget_ _,_ (10) where _α_, _β_ and _γ_ are hyperparameters to control the training process. After performing experiments with various values of _α_, _β_ and _γ_, we set the value of _α_, _β_ and _γ_ to 0 _._ 7, 0 _._ 3 and 0 _._ 2, respectively. On the other hand, the parameter _θD_ can be obtained by optimizing the discriminator loss function. The goal of the discriminator is to distinguish between the transformed input data _G_ ( _X_ ) by generator and the robust input data _Xr_ . Thus, the discriminator loss function _lD_ can be defined as follow: <u>Algorithm 2</u> <u>Cloud Server Side Operation</u> Input : _Xt_, _Pr_ 11 if _isEncryption_ then 12 _Xr_ = _decryption_ ( _Xt_ ) 13 else 14 _Xr_ = _Xt_ 15 _Xf_ = _Xr_ _.remove_ ( _Pr_ ) /* Second transformation - <sup>/</sup> 16 _R_ = _evaluate_ ( _model, Xf_ ) 17 if _isEncryption_ then 18 _Rt_ = _encryption_ ( _R_ ) 19 else 20 _Rt_ = _R_ 21 _transmit_ ( _Client, Rt_ ) _D._ _CLIENT SIDE OPERATION_ The client performs the pre-processing and the first transformation which transforms the legitimate input data _X_ into the robust input data _Xr_ using the generator _G_ before transmitting the data to the cloud server. The operational details are shown in Algorithm 1. First, the client performs pre-processing for efficient analysis (Lines 1 to 4). For example, the client can cut out unnecessary portions of the input data and resize it. To make the legitimate input data _X_ resistant to adversarial attacks, the client transforms the legitimate input data _X_ into the robust input _Xr_ using the generator of ARGAN (Line 5). Also, the client calculates the perturbation _Pr_ that is used to restore at the cloud server (Line 6). Before transmitting to the cloud server, the client encrypts _Xr_ to _Xt_ if the client communicates with the cloud server through the encrypted connection (Line 7 to 10). Finally, the client transmits _Xt_ and _Pr_ to the cloud server (Line 11). _E._ _CLOUD SERVER SIDE OPERATION_ The cloud server performs the second transformation, which restores the key features corrupted by the generator _G_ in the first transformation before feeding the data to the DNN _lD_ = − _N_ _n_ =1 [log _DθD_ ( _Xr_ ) + log _DθD_ ( _GθG_ ( _X_ ))] _._ (11) FIGURE 4. Operational example of ARGAN under no adversarial attacks. model. The operational details of the cloud server are shown in Algorithm 2. After decrypting (or not) the input data _Xt_ transmitted from the client (Lines 1 to 4), the cloud server performs the second transformation using the perturbation _Pr_ (Line 5). _Pr_ is the additive inverse of the first transformation and used to restore the key features. Here, the cloud server does not know whether an adversarial attack has occurred. If the adversarial attack does not occur, the legitimate input data _X_ is restored due to the inverse relationship between the first transformation and the second transformation. Even if the adversarial attack occurs, most of the key features are restored by the second transformation. This is because the key features which affect classification are already corrupted by the generator, and it causes the magnitude of perturbation added by the adversary to the robust input data _Xr_ to be smaller than the magnitude of perturbation added to the legitimate input data _X_ . After analyzing the feeding input data _Xf_ using DNN model (Line 6), the cloud server transmits the encrypted analysis result _Rt_ to the client (Lines 7 to 11). _F._ _OPERATIONAL EXAMPLE_ In this section, we show some examples of how ARGAN works using CIFAR-10 test dataset. In Fig. 4a, we show an example of ARGAN for a truck sample under no adversarial attacks. Before transmitting to the cloud server, the client transforms a truck sample and calculates the perturbation. Then, the client transmits a transformed truck sample and a calculated perturbation to the cloud server. The cloud server restores the truck sample in the second transformation and feeds it to DNN model to produce prediction result. Here, the DNN model produces correct prediction result because the truck sample is completely restored at the second transformation. In Fig. 4b, we also show some examples of ARGAN in the CIFAR-10 test dataset under no adversarial attacks. Here, the legitimate input data represents the randomly selected samples for each class, the feeding input data represents the restored input data by ARGAN. From the ‘difference’ row in Fig. 4b, it is observed that there is no difference between the legitimate input data and the feeding input data because each legitimate input data is completely restored by the second transformation. In Fig. 5a, we show a example of ARGAN for a truck sample under DeepFool adversarial attack. The operation of the client is the same as Fig. 4a. However, in this example, the adversary generates the adversarial example for the truck sample using DeepFool and transmits it to the cloud server. Here, the magnitude of perturbation added by the adversary is very small because the key features which affect prediction are already corrupted when the client performs the first transformation. Then, the cloud server performs the second transformation for the adversarial example and feeds it to DNN model. Even if the cloud server performs the second transformation for the adversarial example, the DNN model produces correct prediction result. This is because most of the key features are restored at the second transformation. In Fig. 5b, we also show some examples of ARGAN in the CIFAR-10 test dataset under DeepFool adversarial attack. As shown in the ‘difference’ row in Fig. 5b, it is also observed that there is still no large difference between the legitimate input data and the feeding input data because the legitimate input data are restored by the second transformation. FIGURE 5. Operational example of ARGAN under DeepFool adversarial attack. IV. EVALUATION RESULTS To show the effectiveness of ARGAN, we measured the performance of ARGAN under various conditions including various dataset and different adversarial attacks [16]–[19]. Specifically, the performance of ARGAN is evaluated by answering the following questions: - Does ARGAN show the better performance than the other state-of-the-art defense methods? - Does ARGAN show the good performance under various datasets collected from diverse applications? - How do different combinations of loss functions influence on the performance of ARGAN? - Does ARGAN satisfy the basic sanity tests? - Does ARGAN show the good performance under adaptive attack scenario? _A._ _EXPERIMENTAL ENVIRONMENT_ When evaluating the performance of ARGAN, the experiments are performed using the CIFAR-10 color image dataset [13]. CIFAR-10 dataset consists of 50,000 training images and 10,000 testing images corresponding to 10 classes. We used randomly selected 1000 data instances from CIFAR-10 test dataset. When measuring the influence of different adversarial attacks on ARGAN and other defense methods, the parameter values are set as follows: (1) 0.3 for the magnitude of perturbation ( _ϵ_ ) in FGSM; (2) 10 and 0.3 for the number of iterations ( _N_ ) and _ϵ_, respectively, in PGD; (3) 50 and 0.02 for the maximum number of iterations and overshoot to prevent updates from vanishing, respectively, in DeepFool; and (4) 0 for the parameter to control the confidence value( _κ_ ) in C&W’s method. These parameter values are set following the recommended configuration values from the cleverhans library [32] and some representative works [20], [33]. The classification models are implemented using TensorFlow-gpu version 1.15.1 and Python version 2.7.15, and performed adversarial attacks by using the cleverhans software library, which provides standardized reference implementations of adversarial examples [32]. For the efficient experiments, the performance is measured on the Ubuntu 18.04.1 LTS machine with kernel version 4.15.0-36generic, 2.40GHz CPU clock(Intel Xeon CPU E5-2630 v3), GeForce GTX 2080 Ti, and 32GB memory. TABLE 1. Comparison results with _Gandef_ and _APE-GAN_ using CIFAR-10 dataset. FIGURE 6. Data distribution of legitimate input data and feeding input data under various adversarial attacks. _B._ _EXPERIMENTAL ANALYSIS_ 1) DOES ARGAN SHOW THE BETTER PERFORMANCE THAN THE OTHER STATE-OF-THE-ART DEFENSE METHODS? To compare the performance of ARGAN with other stateof-the-art GAN-based defense methods, we measured the classification accuracy of the _Gandef_ [12] using noise generation and _APE-GAN_ [14] using noise reduction. Since most of the-state-of-the-art GAN-based defense methods do not provide implementation guidance, _Gandef_ and _APE-GAN_ are selected for comparison with ARGAN. For _GanDef_, we used ZK-GanDef [31] which adds a gaussian perturbation with mean _µ_ = 0 and standard deviation _σ_ = 1. For _APE-_ _GAN_, we used FGSM, PGD, DeepFool and C&W method to generate adversarial input data. In Table 1, it is observed that the classification accuracy of _GanDef_ and _APE-GAN_ decreased for legitimate input data. For example, while the classification accuracy of _GanDef_ and _APE-GAN_ decreased by as much as 80.12% and 29.5%, respectively, ARGAN showed the same classification accuracy by as much as 90.93% under no adversarial attacks. Also, ARGAN showed higher classification accuracy against various adversarial attacks than _GanDef_ and _APE-GAN_ . Even though _GanDef_ showed the higher classification accuracy than ARGAN against FGSM, the classification accuracy of _GanDef_ against PGD, DeepFool and C&W perturbations was lower than ARGAN. Especially, _GanDef_ showed significantly lower classification accuracy than ARGAN against state-of-the-art adversarial attacks such as DeepFool and C&W method. Also, the classification accuracy of _APE-GAN_ showed lower classification accuracy against most of the adversarial attacks than ARGAN. In Fig. 6, it is observed that the comparison results with APE-GAN for the data distribution of the legitimate input data and the feeding input data. Under no adversarial attacks as shown in Fig. 6a, ARGAN showed the better similarity of the data distribution than APE-GAN. Here, a Euclidean TABLE 2. Comparison results with _Gandef_ and _APE-GAN_ using MNIST dataset. similarity of 1 means that the legitimate input data and the feeding input data are perfectly the same. In other words, it means ARGAN can restore legitimate input data perfectly. Also it is observed that ARGAN shows the better similarity of the data distribution for most adversarial attacks than APEGAN. Especially, as shown in Fig. 6(d) and Fig. 6(e), the data distribution of feeding input data in ARGAN for the stateof-the-art adversarial examples generation methods, such as DeepFool and C&W methods, are almost similar to that of legitimate input data. _Result_ _1:_ _ARGAN_ _showed_ _good_ _outputs_ _for_ _legitimate_ _input data as well as adversarial examples than state-of-_ _the-art_ _defense_ _methods._ _These_ _observations_ _imply_ _that_ _ARGAN_ _can_ _be_ _used_ _as_ _a_ _stand-alone_ _defense_ _method_ _against various adversarial attacks._ 2) DOES ARGAN SHOW THE GOOD PERFORMANCE UNDER VARIOUS DATASETS COLLECTED FROM DIVERSE APPLICATIONS? To show how effective ARGAN is under various datasets, additional experiments are performed using MNIST dataset [34] and CelebA dataset [35]. MNIST dataset is grayscale hand-written digits dataset and consists of 60,000 training images and 10,000 testing images corresponding to 10 classes. CelebA dataset is one of the most widely used dataset for facial attributes classification and consists of 162,770 training images and 19,867 testing images corresponding to 2 classes(Gender). For MNIST dataset, the classification accuracy of ARGAN is compared with _Gandef_ [12] and _APE-GAN_ [14]. In Table 2, only ARGAN showed the same classification accuracy for legitimate input data. Also, ARGAN still showed higher classification accuracy against state-of-the-art adversarial attacks such as DeepFool and C&W method. For example, while _Gandef_ and _APE-GAN_ against DeepFool showed the classification accuracy as much as 7.47% and 42.5%, respectively, ARGAN showed the classification accuracy by as much as 98.3%. However, ARGAN showed lower classification accuracy against adversarial attacks with large perturbation such as FGSM and PGD. The reasons are as follows: ARGAN transforms the input data to reduce the magnitude of perturbation added by the adversary. Such transformation of ARGAN is effective for the adversarial attacks, such as DeepFool and C&W methods, which are aimed at adding minimal perturbation. However, it is less TABLE 3. Comparison results with _Defense-GAN_ and _APE-GAN_ using CelebA dataset. FIGURE 7. Some examples from CelebA test dataset under various adversarial attacks. effective for the adversarial attacks, such as FGSM and PGD, which add a random amount of perturbation (relatively large) within a threshold. On the other hand, since _GanDef_ retrains DNN model using relatively large perturbation, such as Gaussian noise, it is effective for FGSM and PGD, but is less effective for DeepFool and C&W. Even _GanDef_ showed lower classification accuracy for DeepFool than nondefense. In the case of APE-GAN, it showed the higher classification accuracy for FGSM and PGD than ARGAN, but the classification accuracy of APE-GAN significantly decreased for legitimate input data. For CelebA dataset, the classification accuracy of ARGAN is compared with _Defense-GAN_ and _APE-GAN_ . Also, only the C&W method is considered because the magnitude of perturbation generated by FGSM, PGD, and DeepFool is so large that it can be easily detected as shown in Fig. 7. Here, we need to know that such attacks performed against a binary classification model for gender classes. In Table 3, as with MNIST dataset, only ARGAN showed the same classification accuracy for legitimate input data. Also, _Defense-GAN_ and _APE-GAN_ showed worse robustness against C&W method than ARGAN. For example, while TABLE 4. Experimental results with the combinations of various loss functions on ARGAN using CIFAR-10 dataset. when ARGAN was trained with the loss function of DCGAN, the target DNN model showed the similar classification accuracy as the joint loss of _ladv_ and _ldist_ on average, but lower than when ARGAN was trained with the joint loss of _ladv_, _ldist_ and _ltarget_ . For example, while the classification accuracy with the loss of DCGAN was 36.88% on average, the classification accuracy with the joint loss of _ladv_, _ldist_ and _ltarget_ measured into 40.25% on average. FIGURE 8. Classification accuracy with the increase of magnitude of FGSM perturbation. ARGAN showed the classification accuracy by as much as 98% against C&W method, _Defense-GAN_ and _APE-GAN_ showed the classification accuracy by as much as 43.8% and 96.5%, respectively. _Result_ _2:_ _ARGAN_ _shows_ _the_ _good-enough_ _performance_ _under_ _various_ _datasets_ _collected_ _from_ _diverse_ _applica-_ _tions. These results imply that ARGAN can be applied to_ _various practical applications._ 3) HOW DO DIFFERENT COMBINATIONS OF LOSS FUNCTIONS INFLUENCE ON THE PERFORMANCE OF ARGAN? To show the influence of different combination of loss functions on ARGAN, the classification accuracy of target DNN model is measured under the various adversarial attacks. The evaluation results are summarized in Table 4. First, the more the loss functions are combined, the higher is the classification accuracy of target DNN model under various adversarial attacks. Especially, ARGAN showed the highest classification accuracy by as much as 41.5% on average when all three loss functions were combined. Second, it is observed that the loss function used in APE-GAN is inadequate as the loss function of ARGAN. Specifically, when ARGAN was trained with the loss function of APE-GAN, it showed the classification accuracy as much as 14.6% on average, which is lower than when ARGAN was trained with the _ladv_ alone. On the other hand, Third, as observed from the last column in Table 4, ARGAN showed no accuracy degradation for legitimate input data. For example, ARGAN showed the same accuracy as much as 90.93% regardless of the combinations of loss functions. This is because the legitimate input data are restored by using the perturbation _Pr_ in the second transformation. _Result_ _3:_ _ARGAN_ _shows_ _the_ _good-enough_ _performance_ _when it was trained with the joint loss._ 4) DOES ARGAN SATISFY THE BASIC SANITY TESTS? To identify potential flaws of our evaluation results, the basic sanity test of ARGAN is conducted as described in [36]. Specifically, we showed the results for the following items in the basic sanity tests: (1) Verify increasing the magnitude of perturbation strictly increases attack success rate; and (2) With ‘‘large’’ magnitude of perturbation, classification accuracy should reach levels of random guessing. the basic sanity test is conducted using FGSM because it intuitively shows the change in classification accuracy as the magnitude of perturbation increases. In Fig. 8, it is observed the classification accuracy of ARGAN while gradually increasing the _ϵ_ of FGSM by 0.01 from 0.01 to 1.0. As a result of the first item, the classification accuracy of ARGAN decreased as the magnitude of perturbation increased. Especially, the classification accuracy of ARGAN rapidly decreased when the _ϵ_ was in the range from 0.05 to 0.10. When the magnitude of perturbation was greater than 0.15, the classification accuracy of ARGAN no longer significantly decreased. These results were the same in the non-defense model, but ARGAN showed the higher classification accuracy than non-defense model when the magnitude of adversarial perturbations was less than 0.15. As a result of the second item, ARGAN showed the classification accuracy about 10% when the magnitude of TABLE 5. Classification accuracy of ARGAN under the various denoising techniques of the adversary. perturbation was greater than 0.2. This means that ARGAN reached levels of random guessing on CIFAR-10 dataset which consist of 10 classes. _Result_ _4:_ _ARGAN_ _satisfies_ _the_ _basic_ _sanity_ _test_ _while_ _providing good robustness than non-defense model._ 5) DOES ARGAN SHOW THE GOOD PERFORMANCE UNDER ADAPTIVE ATTACK SCENARIO? To evaluate the performance of ARGAN under the worstcase adversary, the performance of ARGAN is measured on ResNet-20 for randomly selected 1000 data instances from CIFAR-10 test dataset under the scenario where the adversary is aware of ARGAN architecture. Note that, an adversary may assume that input data has been processed at the client, but does not know details of how to process input data. In other words, the adversary has no direct access to the first transformation. Instead, the adversary can mitigate the effectiveness of the first transformation by applying the denoising techniques. On the other hand, an adversary can control the second transformation only when he/she has complete access to the server. Thus, the classification accuracy is measured under two attack scenarios: (1) a white-box attack; and (2) a gray-box attack. For white-box attack, an adversary has complete access to the server and can bypass the second transformation. On the other hand, for gray-box attack, where an adversary only knows the parameter values used for training deep neural networks and cannot bypass the second transformation. When measuring the classification accuracy of ARGAN under two attack scenarios, five denoising techniques are used to mitigate the first transformation. As shown in Table 5, the classification accuracy of ARGAN decreased under both white-box and gray-box attacks. For example, while the stand-alone ARGAN showed the classification accuracy by as much as 40.65%, ARGAN under white-box attack and gray-box attack showed the classification accuracy by as much as 13.14% and 28.48% on average, respectively. For gray-box attack, it is observed that key features in input data are restored by the second transformation even though the first transformation is mitigated by the adversary. For example, even though the adversary mitigates the first transformation with a bit depth 5-bit filter, ARGAN showed the classification accuracy by as much as 83.9% against DeepFool. For white-box attack, the classification accuracy of ARGAN significantly decreased by as much as 13.14%, but is still higher than nondefense architecture. Also, ARGAN against DeepFool under white-box attack showed the lower accuracy than ARGAN against DeepFool under gray-box attack. For example, while ARGAN against DeepFool under the gray-box attack showed the classification accuracy by as much as 71.12% on average, ARGAN against DeepFool under the white-box attack showed the classification accuracy by as much as 16.46% on average. _Result_ _6:_ _ARGAN_ _effectively_ _works_ _even_ _under_ _the_ _adaptive_ _attack_ _scenario._ _Especially,_ _ARGAN_ _shows_ _the_ _good enough performance under the gray-box attack._ V. CONCLUSION With the evolution of deep learning technology, adversarial example is mainly highlighted as one of the most severe problem of deep learning technology. Especially, adversarial example can cause severe damage on cloud-based deep learning environment where a MITM attack can be occurred. To defend such adversarial examples, two types of GANbased defense methods have actively been studied as an emerging efficient defense methods: (1) noise generation architecture; and (2) noise reduction architecture. However, the accuracy of such GAN-based defense methods decreases when predicting and classifying the legitimate input data. In this paper, we propose ARGAN, a new GAN-based defense method to provide good outputs for adversarial examples as well as legitimate input data. The generator in ARGAN produces robust input data by reflecting the vulnerability of the target DNN model while simultaneously training with the discriminator. From evaluation results under various experimental conditions, it is observed that ARGAN provided robustness to target DNN models against various state-of-the-art adversarial attacks while maintaining the high accuracy even for legitimate input data. Also, it is observed that ARGAN showed better performance than the state-of-the-art GAN-based defense methods such as Gandef, Defense-GAN and APE-GAN. From such results, it is believed that ARGAN presented the necessity of various studies on the GAN-based defense architecture. REFERENCES [1] C. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfellow, and R. Fergus, ‘‘Intriguing properties of neural networks,’’ in _Int._ _Conf._ _Learn. Representations_, 2014. [2] T. Ray. (2020). _Deep_ _Learning_ _Godfathers_ _Bengio,_ _Hinton,_ _and_ _Lecun_ _Say_ _the_ _Field_ _Can_ _Fix_ _its_ _Flaws_ . ZDNet. [Online]. Available: https://www.zdnet.com/article/deep-learning-godfathers-bengio-hintonan%d-lecun-say-the-field-can-fix-its-flaws/ [3] M. Bojarski, D. D. Testa, D. Dworakowski, B. Firner, B. Flepp, P. Goyal, L. D. Jackel, M. Monfort, U. Müller, J. Zhang, X. Zhang, J. Zhao, and K. Zieba, ‘‘End to end learning for self-driving cars,’’ 2016, _arXiv:1604.07316_ . [4] F. Amato, A. López, E. M. Peña-Méndez, P. Vanhara, A. Hampl, and J. Havel, ‘‘Artificial neural networks in medical diagnosis,’’ _J._ _Appl._ _Biomed._, vol. 11, no. 2, pp. 47–58, 2013. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S1214021X14600570 [5] M. Shirvanian and N. Saxena, ‘‘Stethoscope: Crypto phones with transparent & robust fingerprint comparisons using inter text-speech transformations,’’ in _Proc._ _17th_ _Int._ _Conf._ _Privacy,_ _Secur._ _Trust_ _(PST)_, Aug. 2019, pp. 1–10. [6] M. F. R. M. Billah and M. A. Adnan, ‘‘SMARTLET: A dynamic architecture for real time face recognition in smartphone using cloudlets and cloud,’’ _Big_ _Data_ _Res._, vol. 17, pp. 45–55, Sep. 2019. [7] G. Ofualagba, O. Osas, I. Orobor, I. Oseikhuemen, and O. Etse, ‘‘Auto mated student attendance management system using face recognition,’’ _Int._ _J. Educ. Res. Inf. Sci._, vol. 5, pp. 31–37, Sep. 2018. [8] T. Soyata, R. Muraleedharan, C. Funai, M. Kwon, and W. Heinzelman, ‘‘Cloud-vision: Real-time face recognition using a mobile-cloudletcloud acceleration architecture,’’ in _Proc._ _IEEE_ _Symp._ _Comput._ _Com-_ _mun._ _(ISCC)_, Jul. 2012, pp. 59–66. [Online]. Available: http://dblp.unitrier.de/db/conf/iscc/iscc2012.html#SoyataMFKH12 [9] I. Rosenberg, A. Shabtai, Y. Elovici, and L. Rokach, ‘‘Defense methods against adversarial examples for recurrent neural networks,’’ 2019, _arXiv:1901.09963_ . [10] W. Hu and Y. Tan, ‘‘Generating adversarial malware examples for black box attacks based on GAN,’’ 2017, _arXiv:1702.05983_ . [11] K. Sun, Z. Zhu, and Z. Lin, ‘‘Enhancing the robustness of deep neural networks by boundary conditional GAN,’’ 2019, _arXiv:1902.11029_ . [12] G. Liu, I. Khalil, and A. Khreishah, ‘‘GanDef: A GAN based adver sarial training defense for neural network classifier,’’ 2019, _arXiv:1903._ _02585_ . [13] P. Samangouei, M. Kabkab, and R. Chellappa, ‘‘Defense-GAN: Protecting classifiers against adversarial attacks using generative models,’’ 2018, _arXiv:1805.06605_ . [14] S. Shen, G. Jin, K. Gao, and Y. Zhang, ‘‘APE-GAN: Adversarial perturbation elimination with GAN,’’ 2017, _arXiv:1707.05474_ . [15] S.-H. Choi, J. Shin, P. Liu, and Y.-H. Choi, ‘‘EEJE: Two-step input transformation for robust DNN against adversarial examples,’’ _IEEE Trans._ _Netw. Sci. Eng._, vol. 8, no. 2, pp. 908–920, Apr. 2021. [16] I. Goodfellow, J. Shlens, and C. Szegedy, ‘‘Explaining and harnessing adversarial examples,’’ in _Proc._ _Int._ _Conf._ _Learn._ _Represent._, 2015, pp. 1–11. [17] A. Madry, A. Makelov, L. Schmidt, D. Tsipras, and A. Vladu, ‘‘Towards deep learning models resistant to adversarial attacks,’’ 2017, _arXiv:1706.06083_ . [18] S.-M. Moosavi-Dezfooli, A. Fawzi, and P. Frossard, ‘‘DeepFool: A simple and accurate method to fool deep neural networks,’’ 2015, _arXiv:1511.04599_ . [19] N. Carlini and D. Wagner, ‘‘Towards evaluating the robustness of neural networks,’’ 2016, _arXiv:1608.04644_ . [20] C. Guo, M. Rana, M. Cisse, and L. van der Maaten, ‘‘Countering adversarial images using input transformations,’’ 2017, _arXiv:1711._ _00117_ . [21] A. Prakash, N. Moran, S. Garber, A. DiLillo, and J. Storer, ‘‘Deflecting adversarial attacks with pixel deflection,’’ 2018, _arXiv:1801.08926_ . [22] H. Lee, S. Han, and J. Lee, ‘‘Generative adversarial trainer: Defense to adversarial perturbations with GAN,’’ 2017, _arXiv:1705.03387_ . [23] X. Liu and C.-J. Hsieh, ‘‘Rob-GAN: Generator, discriminator, and adversarial attacker,’’ in _Proc._ _IEEE/CVF_ _Conf._ _Comput._ _Vis._ _Pattern_ _Recognit. (CVPR)_, Jun. 2019, pp. 11234–11243. [24] G. K. Santhanam and P. Grnarova, ‘‘Defending against adversarial attacks by leveraging an entire GAN,’’ 2018, _arXiv:1805.10652_ . [25] Y. Su, G. Sun, W. Fan, X. Lu, and Z. Liu, ‘‘Cleaning adversarial perturbations via residual generative network for face verification,’’ in _Proc._ _IEEE_ _Int._ _Conf._ _Acoust.,_ _Speech_ _Signal_ _Process._ _(ICASSP)_, May 2019, pp. 2597–2601. [26] U. Hwang, J. Park, H. Jang, S. Yoon, and N. Ik Cho, ‘‘PuVAE: A variational autoencoder to purify adversarial examples,’’ 2019, _arXiv:1903._ _00585_ . [27] A. Krizhevsky, V. Nair, and G. Hinton. (2009). _Cifar-10 (Canadian Insti-_ _tute_ _for_ _Advanced_ _Research)_ . [Online]. Available: http://www.cs.toronto. edu/~kriz/cifar.html [28] Z. Whittaker. (2017). _Dozens_ _of_ _Popular_ _Iphone_ _Apps_ _Vulnerable_ _to_ _Man-in-the-Middle_ _Attacks_ . ZDNet. [Online]. Available: https://www.zdnet.com/article/dozens-of-popular-iphone-appsvulnerable-%to-man-in-the-middle-attacks/ [29] F. Giesen, F. Kohlar, and D. Stebila, ‘‘On the security of TLS renegotiation,’’ in _Proc._ _ACM_ _SIGSAC_ _Conf._ _Comput._ _Commun._ _Secur._ _(CCS)_, 2013, pp. 387–398. [30] B. Möller, T. Duong, and K. Kotowicz, ‘‘This POODLE bites: Exploiting The SSL 3.0 fallback,’’ Google, Mountain View, CA, USA, Tech. Rep., Sep. 2014. Accessed: Mar. 22, 2022. [Online]. Available: https://www.openssl.org/~bodo/ssl-poodle.pdf [31] G. Liu, I. Khalil, and A. Khreishah, ‘‘ZK-GanDef: A GAN based zero knowledge adversarial training defense for neural networks,’’ in _Proc. 49th_ _Annu._ _IEEE/IFIP_ _Int._ _Conf._ _Dependable_ _Syst._ _Netw._ _(DSN)_, Jun. 2019, [pp. 64–75, doi: 10.1109/DSN.2019.00021.](http://dx.doi.org/10.1109/DSN.2019.00021) [32] N. Papernot, I. Goodfellow, R. Sheatsley, R. Feinman, and P. McDaniel, ‘‘Technical report on the CleverHans v2.1.0 adversarial examples library,’’ 2016, _arXiv:1610.00768_ . [33] W. Xu, D. Evans, and Y. Qi, ‘‘Feature squeezing: Detecting adversarial examples in deep neural networks,’’ 2017, _arXiv:1704.01155_ . [34] Y. LeCun and C. Cortes. (2010). _MNIST_ _Handwritten_ _Digit_ _Database_ . [Online]. Available: http://yann.lecun.com/exdb/mnist/ [35] Z. Liu, P. Luo, X. Wang, and X. Tang, ‘‘Deep learning face attributes in the wild,’’ in _Proc._ _IEEE_ _Int._ _Conf._ _Comput._ _Vis._ _(ICCV)_, Dec. 2015, pp. 3730–3738. [36] N. Carlini, A. Athalye, N. Papernot, W. Brendel, J. Rauber, D. Tsipras, I. Goodfellow, A. Madry, and A. Kurakin, ‘‘On evaluating adversarial robustness,’’ 2019, _arXiv:1902.06705_ . SEOK-HWAN CHOI received the B.E. degree from Pusan National University, Busan, South Korea, in 2016, where he is currently pursuing the Ph.D. degree in computer science and engineering. His research interests include security for artificial intelligence, adversarial examples, and intrusion detection. JIN-MYEONG SHIN received the B.E. degree from Pusan National University, Busan, South Korea, in 2017, where he is currently pursuing the Ph.D. degree in computer science and engineering. His research interests include security for artificial intelligence, homomorphic encryption, and intrusion detection. PENG LIU (Member, IEEE) received the B.S. and M.S. degrees from the University of Science and Technology of China and the Ph.D. degree from George Mason University, in 1999. He is currently a Professor of information sciences and technology and the Founding Director of the Center for Cyber-Security, Information Privacy, and Trust, and the Cyber Security Laboratory, Penn State University. He has published a monograph and more than 260 refereed technical papers. His research has been sponsored by the U.S. National Science Foundation, ARO, AFOSR, DARPA, DHS, DOE, AFRL, NSA, TTC, CISCO, and HP. His research interests include the areas of computer and network security. He has served on more than 100 program committees and reviewed papers for numerous journals. He received the DOE Early Career Principle Investigator Award. He has co-led the effort to make Penn State an NSA-Certified National Center of Excellence in Information Assurance Education and Research. He has advised or co-advised more than 30 Ph.D. dissertations to completion. YOON-HO CHOI (Member, IEEE) received the M.S. and Ph.D. degrees from the School of Electrical and Computer Engineering, Seoul National University, Seoul, South Korea, in 2004 and 2008, respectively. He was a Postdoctoral Scholar at Seoul National University, in 2008, and Pennsylvania State University, University Park, PA, USA, in 2009. From 2010 to 2012, he was a Senior Engineer with Samsung Electronics. From 2012 to 2014, he was an Assistant Professor with the Department of Convergence Security, Kyonggi University, Suwon, South Korea. He is currently an Associate Professor with the School of Computer Science and Engineering, Pusan National University, Busan, South Korea. His research interests include privacy-preserving deep learning, adversarial examples, anomaly detection, deep packet inspection for high speed intrusion prevention, and the IoT security for realizing secure computer systems and networks. He has served as a TPC member and an editor for various international conferences and journals.

섹션 본문 59문단 · 38,712자

I. INTRODUCTION

2A S a severe security problem of deep learning technology, the notion of adversarial example was introduced in 2013 [1]. With the evolution of deep learning technology, adversarial example has recently been highlighted as the most severe problem of deep learning technology [2]. While modifying legitimate input data with slight human-imperceptible perturbations, adversarial example largely changes the output value given by neural networks. As a result, this kind of security problem for the target deep neural network (DNN) model causes severe damage to the artificial intelligent (AI) systems such as self-driving systems [3], bio-medicine systems [4], and user authentication systems [5]- [8] which are sensitive to small variation in accuracy.

3To defend the target DNN model against adversarial examples, generative adversarial networks (GANs)-based defense methods have actively been studied as an emerging effective defense technology [9], [10]. The existing GANbased defense methods are grouped into one of two types of architectures according to the design purpose of the generator, i.e., noise generation architecture and noise reduction architecture. Note that given a training dataset, GAN learns to generate new data with the same statistics as the training dataset using two deep networks, which are the generator and the discriminator. The generator in the noise generation architecture produces the corrupted input data. While training DNN models by using both the corrupted input data and legitimate input data, the noise generation architecture makes DNN models robust against adversarial examples [11], [12]. On the other hand, the generator in the noise reduction architecture produces the purified input data whose data distribution is close to the legitimate input data distribution [13], [14]. Thus, the noise reduction architecture results in reducing the perturbation of adversarial examples before feeding input data into the target DNN model.

4However, the accuracy of such GAN-based defense methods can decrease when predicting or classifying legitimate input data. This is because GAN-based defense methods using the noise generation architecture or the noise reduction architecture use the slightly modified input data, i.e., the corrupted input data in the noise generation architecture and the purified input data in the noise reduction architecture. While the target DNN model is robust against adversarial examples due to the modified input data, it can make wrong decision for legitimate input data and thus, generates the false positives for legitimate input data. If such GAN-based defense methods which cause the wrong decision are used at self-driving systems, bio-medicine systems, and user authentication systems [6]- [8] which are sensitive to small accuracy variation, significant side effects can be caused.

5To solve the accuracy degradation of the existing GANbased defense methods for legitimate input data while keeping the target DNN model robust against adversarial examples, we propose a new GAN-based defense method, which is called Adversarially Robust GAN (ARGAN). Similar to EEJE [15], the proposed ARGAN architecture is designed following two-step transformation of input data to the target DNN model. That is, in the first transformation step, the noise data is added into the input data to the target DNN model and in the second transformation step, the inverse noise data is added to eliminate the influence of the noise added from the first transformation step on the output. However, ARGAN is designed using a black-box transformation method different from a white-box transformation method of EEJE. That is, while EEJE requires knowledge of the network architecture, weight values and other parameters of the target DNN model when generating the noise data in the first transformation step, ARGAN does not require complete knowledge of model because it uses a pre-trained generator as the transformation method. Specifically, in the first transformation step, the generator produces the robust input data against adversarial examples while reflecting the vulnerability of the target DNN model to adversarial examples and presenting a new joint loss function to optimize the parameter values of the generator. In the second transformation step, the robust input data are transformed into feeding input data to the target DNN model using the additive inverse of the generator.

6Compared to the other state-of-the-art GAN-based de- We also show that the accuracy of ARGAN outperforms the accuracy of the state-of-the-art GAN-based defense methods using noise generation architecture and noise reduction architecture, e.g., Gandef [12], Defense-GAN [13] and APE-GAN [14].

II. PRELIMINARIES AND RELATED WORKS

7In this section, after introducing well-known adversarial attacks, we overview previous GAN-based defense methods. We also describe the motivation for considering a new GANbased defense method by explaining the limitations of the previous GAN-based defense methods.

A. ADVERSARIAL ATTACKS

8In this section, we summarize the characteristics of four adversarial attacks [16]- [19], which are frequently used for performance verification in many defense methods.

9Based on linearization of cost functions, Fast Gradient Sign Method (FGSM) generates adversarial examples using the sign of the gradient to increase loss of DNN models [16]. FGSM is a simple and fast adversarial attacks, but it often makes sub-optimal perturbations. To resolve the problem of FGSM, Projected Gradient Descent (PGD) generates adversarial examples using several gradient updates for the fine optimization [17]. To perform fine optimization efficiently, PGD performs iterative gradient updates from randomly selected an initial point. To calculate minimal perturbation, DeepFool used the iterative linearization of the target DNN model [18]. In each iteration, the adversarial perturbation is updated to reach the decision boundary closest to the input data X. To increase attack success rate while calculating the minimum perturbation, C&W generates adversarial examples based on various distance metrics such as L 0 , L ∞ and L 2 norm [19]. In this paper, only L 2 type of C&W method (CW) is considered as a representative method because it is most frequently mentioned in other works [20], [21].

1) GAN-based defense methods using noise generation architecture

10To make DNN models more robust against adversarial examples, the noise generation architecture uses the GANs to train the robust DNN model or retrain the current deployed DNN models.

11Lee et al. used a GAN framework to make a DNN model more robust against adversarial examples [22]. They trained the generator to produce data corresponding to the weaknesses of the target DNN model, and retrained the DNN model using the data produced by the generator. Liu et al. proposed a training framework, called Rob-GAN, based on the insight that adversarial training and GANs complement each other [23]. In Rob-GAN, the generator and the discriminator are jointly optimized in the presence of adversarial attacks. Sun et al. used GAN-based data augmentation approach to improve the adversarial training [11]. They designed the generator to produce boundary samples for the target DNN model, and used the produced boundary samples for adversarial training. Liu et al. proposed GanDef, which is a GAN-based adversarial training method that utilizes a discriminator as the regularization of the feature selection [12]. Even though these defense methods provided good robustness against adversarial examples, they require a lot of costs while training the new robust DNN models or retraining the current deployed DNN models.

122) GAN-based defense methods using noise reduction architecture To make adversarial examples less threatened, the noise reduction architecture reduces perturbation of adversarial examples before feeding into DNN model. Pouya et al. proposed a defense method utilizing GANs, called Defense-GAN, to make the generator distribution closer to the data distribution [13]. To find the input data of generator, they performed the gradient descent iteratively. Defense-GAN especially worked well for the black-box attack as well as the white-box attack. Shen et al. proposed the APE-GAN, which eliminate the adversarial perturbation of the input data using GANs [14]. They designed the generator loss that combines content loss and adversarial loss to make the adversarial examples highly consistent with legitimate data distribution. APE-GAN worked well without knowledge of architecture and parameters of the target DNN model. Santhanam et al. proposed a GAN-based defense method, called cowboy, for detection and purification of adversarial examples [24]. They used a discriminator to detect the adversarial examples, and used a generator to purify the detected adversarial examples. Also, they showed that adversarial examples lie outside of the data distribution. Su et al. proposed a new training framework for GANs to remove the adversarial perturbation in face verification field [25]. To improve the performance of the generator, they used two pre-trained classification networks instead of a discriminator. Hwang et al. proposed a Variational Autoencoder(VAE)-based defense method, called PuVAE, to purify adversarial examples [26].

13They used a dilated Convolutional Neural Networks(CNNs) as a generator to prevent the information loss from feature selection. Given a reasonable time constraints, PuVAE showed outstanding performance compared to Defense-GAN.

3) Limitation of previous GAN-based defense methods

14Some artificial intelligent systems such as a cloud-based user authentication system can be exposed to adversarial examples. In other words, the adversary can perform an adversarial attack to change the output of DNN model f (·). When the adversarial attack h(·) and a legitimate input data X is given, the objective function of the adversary can be expressed into:

15To defend against adversarial examples h(X) in Equation 1, the artificial intelligence system can apply a defense method. For example, let us consider the artificial intelligence system that applies GAN-based defense method using noise reduction architecture as a defense method. To preserve the output of DNN model f (·), the generator G in the noise reduction architecture transforms the adversarial example into the purified input data. When the adversarial attack h(·) and a legitimate input data X is given, the objective function of the defense method can be expressed into:

16However, since such defense method transforms even the legitimate input data X while removing perturbations of adversarial examples, it may decrease the accuracy of the artificial intelligence system for the legitimate input data. The decrease in accuracy for the legitimate input data may be more sensitive than the increase in robustness for the adversarial examples in specific applications, such as selfdriving car and user authentication. In other words, the small decrease in accuracy for the legitimate input data can determine whether to apply defense methods for adversarial examples.

17For a more specific explanation of why the accuracy for legitimate input data is decreased, let us consider the artificial intelligence system that applies APE-GAN, which is a representative method of noise reduction architecture, as a defense method. Some examples of APE-GAN from CIFAR-10 test dataset [27] under no adversarial attacks are shown in Fig. 1. Here, the legitimate input data represents the randomly selected samples for each class, the feeding input data represents the transformed input data by APE-GAN and the difference represents difference in the legitimate input data and the feeding input data. From "difference" in Fig. 1, VOLUME 4, 2016 FIGURE 1: Ten legitimate images randomly selected from CIFAR-10 test dataset, where each image is transformed using APE-GAN FIGURE 2: Data distribution of legitimate input data and feeding input data to the target DNN model under no adversarial attacks. Here, 1000 test data randomly selected from CIFAR-10 test dataset were used for input data on ResNet-20 model and the term 'Euclidean similarity' represents the average euclidean similarity between legitimate input data and feeding input data.

18it is observed that most of the pixels of the legitimate input data are transformed by APE-GAN even though adversarial attacks do not occur. Note that the transformed pixels corrupt key features that directly affect classification. In Fig. 2, we show the data distribution of legitimate input data and feeding input data. It is observed that data distribution of the feeding input data, transformed by APE-GAN, is different from that of the legitimate input data. Such difference causes the degradation of classification accuracy. This observations motivate us to seek a new GAN-based defense method which provides the good accuracy not only for the adversarial example but also for the legitimate input data.

III. PROPOSED METHOD

19In this section, we overview the operation of ARGAN in detail. First, after introducing the targeted threat model, the overall operation and the objective function of ARGAN are described. Next, we describe the GAN architecture of ARGAN along with a joint loss consisting of adversarial loss, distance loss and target loss. Finally, each operation of ARGAN is described with specific examples in detail.

A. THREAT MODEL

20Let us consider a cloud-based user authentication system for Machine Learning as a Service(MLaaS). By using the trained DNN model, the cloud-based user authentication systems such as SMARTLET [6], FACECUBE [7], and MOCHA [8] predict the identity of the transmitted face image. In the legitimate situation without adversarial attacks, a user face image is taken by IP camera or smartphone at the client. The user face image is transmitted to the cloud-based face recognition server through either the unencrypted or encrypted session. As a result, the cloud-based face recognition server returns a normal prediction result. However, under the man-in-themiddle(MITM) threat, an adversary secretly alters the communications between two parties who believe that they are directly communicating with each other [28]. Even though the user face image is transmitted through the encrypted session, an adversary still can easily bypass it using stateof-the-art MITM threats based on Renegotiation, Version Rollback and so on [29], [30]. After the legitimate session between the client and the cloud-based face recognition server is altered through an MITM attack, the adversary modifies the legitimate face image with slight perturbations. Here, it is assumed that the adversary has complete access to target DNN model in cloud server. In other words, the adversary can get the architecture and parameters of target DNN model. As a result, adversary can relay the perturbed face image to the cloud-based face recognition server instead of the legitimate face image. Since the outputs given by neural networks for the legitimate face image and the perturbed face image are largely different, the cloud-based face recognition server returns an abnormal prediction result.

21In this threat model, the goal of the defender is to provide the robustness against adversarial attacks. It is assumed that the defender can be the administrator of the cloud-based face recognition server. Also it is assumed that the defender has trained the defense model for their system and has predeployed it to the IP camera or smartphone at the client.

B. OVERALL OPERATION OF ARGAN

22Different from the previous GAN-based defense methods, ARGAN performs two-step input transformation before feeding the input data into DNN models. The first trans- 1) The client performs the first transformation which transforms the legitimate input data X into the robust input data X r using the generator G before transmitting the data to the cloud server.

232) The cloud server performs the second transformation, which restores the key features corrupted by the generator G in the first transformation before feeding the data to the DNN model.

24When the adversarial attack h(·) and a legitimate input data X are given, the objective function of ARGAN is expressed into:

25where G(·) is the first transformation performed by the generator on the client side, G −1 (·) is the second transformation performed on the server side, and ∥X f − X∥ 2 is a difference in X f and the legitimate input data X. Here, X f represents a feeding input data of DNN model and is defined as follow according to whether adversarial attack h(·) occurs:

26Note that, different from the previous GAN-based defense methods, ARGAN shows the good accuracy for legitimate input data. As shown in Equations. 3 and 4, if adversarial attack h(·) do not occur, DNN models in ARGAN return the same result as DNN model with no defense method. This is because the second transformation, G −1 (·), is the additive inverse of the first transformation G(·) for a legitimate input data X.

C. GAN ARCHITECTURE OF ARGAN

27The goal of ARGAN is to provide the accuracy for legitimate input data is good-enough while keeping the DNN model robust against adversarial example.

28To achieve this, the generator of ARGAN is designed by reflecting the vulnerability of target DNN model. That is, the generator of ARGAN learns the distribution of robust input data X r and produces the robust input data X r with a given X as its input data. Here, the robust input data X r is defined as follow:

29Definition 1 (Robust Input Data). Let X be a given input data and f be a target DNN model. Let H be a set of adversarial attacks, say H = {FGSM, PGD, DeepFool, C&W }, it is said to the robust input data X r if it has the following characteristic:

30where p(·) is a conversion function which adds the random noise to the input data X, and p −1 (·) is an inverse function of p(·), which restores the input data X transformed by p(·).

31Note that it is difficult for random noise to satisfy Definition 1 for all H. Therefore, we obtained X r through several experiments using various sizes and types of noise. On the other hand, a discriminator of ARGAN is trained to distinguish the transformed input data G(X) by generator from robust input data X r . In other words, a discriminator encourages the transformed input data G(X) to better reflect the features of the robust input data X r . Thus, the generator and discriminator of ARGAN is defined to solve the adversarial zero sum problem as follow:

32where θ G and θ D represent the parameters of generator G and discriminator D, respectively.

33In Equation 6, the parameter θ G can be obtained by optimizing the generator loss function. Here, the generator / * First transformation * / 6 P r = X r .remove(X) 7 if isEncryption then 8 X t = encryption(X r ) 9 else 10 X t = X r 11 transmit(Server, X t , P r ) loss function l G is defined as a joint loss consisting of a adversarial loss, a distance loss and a target loss as shown in Fig. 3.

34The adversarial loss l adv measures the discriminator error for the transformed input data G(X) and is calculated as follow:

35which encourages the generator distribution to match the robust input data distribution for N number of training data. The distance loss l dist measures the difference between the transformed input data G(X) and the robust input data X r and is calculated as follow:

36where d(·) is a distance function that measures the similarity between the transformed input data G(X) and the robust input data X r . The L 2 distance is used so that G(X) matches X r even the key features. That is, the distance loss l dist encourages the internal representation of the transformed input data G(X) match to that of the robust input data X r . The target loss l target measures the error of the target DNN model and is calculated as follow:

37where f (·) is a target DNN model, y is a class of the legitimate input data X and r(·) is a random noise addition function that reflects the various vulnerabilities of target DNN model. Here, r(G(X)) is not equal to G(X) + r because all values of r(G(X)) lies between 0 and 1 but some values of G(X) + r can exceed 1. In other words, the target loss encourages the generator to produce the robust input data which are resistant to the adversarial attacks by reflecting the vulnerability of the target classifier while minimizing the impact on the performance of the target classifier. Consequently, the generator loss function l G is defined as

38a weighted summation of the three loss functions:

39where α, β and γ are hyperparameters to control the training process. After performing experiments with various values of α, β and γ, we set the value of α, β and γ to 0.7, 0.3 and 0.2, respectively.

40On the other hand, the parameter θ D can be obtained by optimizing the discriminator loss function. The goal of the discriminator is to distinguish between the transformed input data G(X) by generator and the robust input data X r . Thus, the discriminator loss function l D can be defined as follow:

D. CLIENT SIDE OPERATION

41The client performs the pre-processing and the first transformation which transforms the legitimate input data X into the robust input data X r using the generator G before transmitting the data to the cloud server. The operational details are shown in Algorithm 1. First, the client performs preprocessing for efficient analysis (Lines 1 to 4). For example, the client can cut out unnecessary portions of the input data and resize it. To make the legitimate input data X resistant to adversarial attacks, the client transforms the legitimate input data X into the robust input X r using the generator of ARGAN (Line 5). Also, the client calculates the perturbation P r that is used to restore at the cloud server (Line 6). Before transmitting to the cloud server, the client encrypts X r to X t if the client communicates with the cloud server through the encrypted connection (Line 7 to 10). Finally, the client transmits X t and P r to the cloud server (Line 11).

E. CLOUD SERVER SIDE OPERATION

42The cloud server performs the second transformation, which restores the key features corrupted by the generator G in the first transformation before feeding the data to the DNN model. The operational details of the cloud server are shown in Algorithm 2. After decrypting (or not) the input data X t transmitted from the client (Lines 1 to 4), the cloud server performs the second transformation using the perturbation P r (Line 5). P r is the additive inverse of the first transformation and used to restore the key features. Here, the cloud server does not know whether an adversarial attack has occurred. If the adversarial attack does not occur, the legitimate input data X is restored due to the inverse relationship between the first transformation and the second transformation. Even if the adversarial attack occurs, most of the key features are restored by the second transformation. This is because the key features which affect classification are already corrupted by the generator, and it causes the magnitude of perturbation added by the adversary to the robust input data X r to be smaller than the magnitude of perturbation added to the legitimate input data X. After analyzing the feeding input data X f using DNN model (Line 6), the cloud server transmits the encrypted analysis result R t to the client (Lines 7 to 11).

F. OPERATIONAL EXAMPLE

43In this section, we show some examples of how ARGAN works using CIFAR-10 test dataset.

44In Fig. 4a, we show an example of ARGAN for a truck sample under no adversarial attacks. Before transmitting to the cloud server, the client transforms a truck sample and calculates the perturbation. Then, the client transmits a transformed truck sample and a calculated perturbation to the cloud server. The cloud server restores the truck sample in the second transformation and feeds it to DNN model to produce prediction result. Here, the DNN model produces correct prediction result because the truck sample is completely restored at the second transformation. In Fig. 4b, we also show some examples of ARGAN in the CIFAR-10 test dataset under no adversarial attacks. Here, the legitimate input data represents the randomly selected samples for each class, the feeding input data represents the restored input data by ARGAN. From the 'difference' row in Fig. 4b, it is observed that there is no difference between the legitimate input data and the feeding input data because each legitimate input data is completely restored by the second transformation.

45In Fig. 5a, we show a example of ARGAN for a truck sample under DeepFool adversarial attack. The operation of the client is the same as Figure. 4a. However, in this example, the adversary generates the adversarial example for the truck sample using DeepFool and transmits it to the cloud server. Here, the magnitude of perturbation added by the adversary is very small because the key features which affect prediction are already corrupted when the client performs the first transformation. Then, the cloud server performs the second transformation for the adversarial example and feeds it to DNN model. Even if the cloud server performs the second transformation for the adversarial example, the DNN model produces correct prediction result. This is because most of the key features are restored at the second transformation. In Fig. 5b, we also show some examples of ARGAN in the CIFAR-10 test dataset under DeepFool adversarial attack. As shown in the 'difference' row in Fig. 5b, it is also observed that there is still no large difference between the legitimate input data and the feeding input data because the legitimate input data are restored by the second transformation.

A. EXPERIMENTAL ENVIRONMENT

46When evaluating the performance of ARGAN, the experiments are performed using the CIFAR-10 color image dataset [13]. CIFAR-10 dataset consists of 50,000 training images and 10,000 testing images corresponding to 10 classes. We used randomly selected 1000 data instances from CIFAR-10 test dataset.

47When measuring the influence of different adversarial attacks on ARGAN and other defense methods, the parameter values are set as follows: (1) [32] and some representative works [20], [33]. The classification models are implemented using TensorFlow-gpu version 1.15.1 and Python version 2.7.15, and performed adversarial attacks by using the cleverhans software library, which provides standardized reference implementations of adversarial examples [32]. For the efficient experiments, the performance is measured on the Ubuntu 18.04.1 LTS machine with kernel version 4.15.0-36-generic, 2.40GHz CPU clock(Intel Xeon CPU E5-2630 v3), GeForce GTX 2080 Ti, and 32GB memory.

1) Does ARGAN show the better performance than the other state-of-the-art defence methods?

48To compare the performance of ARGAN with other stateof-the-art GAN-based defense methods, we measured the classification accuracy of the Gandef [12] using noise generation and APE-GAN [14] using noise reduction. Since most of the-state-of-the-art GAN-based defense methods do not provide implementation guidances, Gandef and APE-GAN are selected for comparison with ARGAN. For GanDef, we used ZK-GanDef [31] which adds a gaussian perturbation with mean µ = 0 and standard deviation σ = 1. For APE-GAN, we used FGSM, PGD, DeepFool and C&W method to generate adversarial input data.

49In Table 1, it is observed that the classification accuracy of GanDef and APE-GAN decreased for legitimate input data. For example, while the classification accuracy of GanDef and APE-GAN decreased by as much as 80.12% and 29.5%, respectively, ARGAN showed the same classification accuracy by as much as 90.93% under no adversarial attacks. Also, ARGAN showed higher classification accuracy against various adversarial attacks than GanDef and APE-GAN. Even though GanDef showed the higher classification accuracy than ARGAN against FGSM, the classification accuracy of GanDef against PGD, DeepFool and C&W perturbations was lower than ARGAN. Especially, GanDef showed significantly lower classification accuracy than ARGAN against state-of-the-art adversarial attacks such as DeepFool and C&W method. Also, the classification accuracy of APE-GAN showed lower classification accuracy against most of the adversarial attacks than ARGAN.

50In Fig 6, it is observed that the comparison results with APE-GAN for the data distribution of the legitimate input data and the feeding input data. Under no adversarial attacks as shown in Fig 6a, ARGAN showed the better similarity of the data distribution than APE-GAN. Here, a Euclidean similarity of 1 means that the legitimate input data and the feeding input data are perfectly the same. In other words, it means ARGAN can restore legitimate input data perfectly. Also it is observed that ARGAN shows the better similarity VOLUME 4, 2016 of the data distribution for most adversarial attacks than APE-GAN. Especially, as shown in Fig. 6d and Fig. 6e, the data distribution of feeding input data in ARGAN for the stateof-the-art adversarial examples generation methods, such as DeepFool and C&W methods, are almost similar to that of legitimate input data.

51Result 1 : ARGAN showed good outputs for legitimate input data as well as adversarial examples than state-ofthe-art defense methods. These observations imply that ARGAN can be used as a stand-alone defense method against various adversarial attacks.

2) Does ARGAN show the good performance under various datasets collected from diverse applications?

52To show how effective ARGAN is under various datasets, additional experiments are performed using MNIST dataset [34] and CelebA dataset [35]. MNIST dataset is grayscale hand-written digits dataset and consists of 60,000 training images and 10,000 testing images corresponding to 10 classes. CelebA dataset is one of the most widely used dataset for facial attributes classification and consists of 162,770 training images and 19,867 testing images corresponding to 2 classes(Gender). For MNIST dataset, the classification accuracy of ARGAN is compared with Gandef [12] and APE-GAN [14]. In Table 3, only ARGAN showed the same classification accuracy for legitimate input data. Also, ARGAN still showed higher classification accuracy against state-of-the-art adversarial attacks such as DeepFool and C&W method. For example, while Gandef and APE-GAN against DeepFool showed the classification accuracy as much as 7.47% and 42.5%, respectively, ARGAN showed the classification accuracy by as much as 98.3%. However, ARGAN showed lower classification accuracy against adversarial attacks with large perturbation such as FGSM and PGD. The reasons are as follows : ARGAN transforms the input data to reduce the magnitude of perturbation added by the adversary. Such transformation of ARGAN is effective for the adversarial attacks, such as DeepFool and C&W methods, which are aimed at adding minimal perturbation. However, it is less effective for the adversarial attacks, such as FGSM and PGD, which add a random amount of perturbation (relatively large) within a threshold. On the other hand, since GanDef retrains DNN model using relatively large perturbation, such as Gaussian noise, it is effective for FGSM and PGD, but is less effective for DeepFool and C&W. Even GanDef showed lower classification accuracy for DeepFool than non-defense. In the case of APE-GAN, it showed the higher classification accuracy for FGSM and PGD than ARGAN, but the classification accuracy of APE-GAN significantly decreased for legitimate input data. For CelebA dataset, the classification accuracy of ARGAN is compared with Defense-GAN and APE-GAN. Also, only the C&W method is considered because the magnitude of perturbation generated by FGSM, PGD, and DeepFool is so large that it can be easily detected as shown in Fig. 7. Here, we need to know that such attacks performed against a binary classification model for gender classes. In Table 3, as with MNIST dataset, only ARGAN showed the same classification accuracy for legitimate input data. Also, Defense-GAN and APE-GAN showed worse robustness against C&W method than ARGAN. For example, while ARGAN showed the classification accuracy by as much as 98% against C&W method, Defense-GAN and APE-GAN showed the classification accuracy by as much as 43.8% and 96.5%, respectively. Table 4.

53First, the more the loss functions are combined, the higher is the classification accuracy of target DNN model under various adversarial attacks. Especially, ARGAN showed the highest classification accuracy by as much as 41.5% on average when all three loss functions were combined.

54Second, it is observed that the loss function used in APE-GAN is inadequate as the loss function of ARGAN. Specifically, when ARGAN was trained with the loss function of APE-GAN, it showed the classification accuracy as much as 14.6% on average, which is lower than when ARGAN was trained with the l adv alone. On the other hand, when ARGAN was trained with the loss function of DCGAN, the target DNN model showed the similar classification accuracy as the joint loss of l adv and l dist on average, but lower than when ARGAN was trained with the joint loss of l adv , l dist and l target . For example, while the classification accuracy with the loss of DCGAN was 36.88% on average, the classification accuracy with the joint loss of l adv , l dist and l target measured into 40.25% on average.

55Third, as observed from the last column in Table 4, AR-GAN showed no accuracy degradation for legitimate input data. For example, ARGAN showed the same accuracy as much as 90.93% regardless of the combinations of loss functions. This is because the legitimate input data are restored by using the perturbation P r in the second transformation.

56Result 3 : ARGAN shows the good-enough performance when it was trained with the joint loss.

4) Does ARGAN satisfy the basic sanity tests?

57To identify potential flaws of our evaluation results, the basic sanity test of ARGAN is conducted as described in [36]. Specifically, we showed the results for the following items in the basic sanity tests: (1) Verify increasing the magnitude of perturbation strictly increases attack success rate; and (2) With "large" magnitude of perturbation, classification accuracy should reach levels of random guessing. the basic sanity test is conducted using FGSM because it intuitively shows the change in classification accuracy as the magnitude of perturbation increases.

58In Fig. 8, it is observed the classification accuracy of ARGAN while gradually increasing the ϵ of FGSM by 0.01 from 0.01 to 1.0. As a result of the first item, the classification accuracy of ARGAN decreased as the magnitude of perturbation increased. Especially, the classification accuracy of ARGAN rapidly decreased when the ϵ was in the range from 0.05 to 0.10. When the magnitude of perturbation was greater than 0.15, the classification accuracy of ARGAN no longer significantly decreased. These results were the same in the non-defense model, but ARGAN showed the higher classification accuracy than non-defense model when the magnitude of adversarial perturbations was less than 0.15. As a result of the second item, ARGAN showed the classification accuracy about 10% when the magnitude of perturbation was greater than 0.2. This means that ARGAN reached levels of random guessing on CIFAR-10 dataset which consist of 10 classes. VOLUME 4, 2016 To evaluate the performance of ARGAN under the worstcase adversary, the performance of ARGAN is measured on ResNet-20 for randomly selected 1000 data instances from CIFAR-10 test dataset under the scenario where the adversary is aware of ARGAN architecture. Note that, an adversary may assume that input data has been processed at the client, but does not know details of how to process input data. In other words, the adversary has no direct access to the first transformation. Instead, the adversary can mitigate the effectiveness of the first transformation by applying the denoising techniques. On the other hand, an adversary can control the second transformation only when he/she has complete access to the server. Thus, the classification accuracy is measured under two attack scenarios: (1) a white-box attack; and (2) a gray-box attack. For white-box attack, an adversary has complete access to the server and can bypass the second transformation. On the other hand, for gray-box attack, where an adversary only knows the parameter values used for training deep neural networks and cannot bypass the second transformation. When measuring the classification accuracy of ARGAN under two attack scenarios, five denoising techniques are used to mitigate the first transformation. As shown in Table 5, the classification accuracy of AR-GAN decreased under both white-box and gray-box attacks. For example, while the stand-alone ARGAN showed the classification accuracy by as much as 40.65%, ARGAN under white-box attack and gray-box attack showed the classification accuracy by as much as 13.14% and 28.48% on average, respectively. For gray-box attack, it is observed that key features in input data are restored by the second transformation even though the first transformation is mitigated by the adversary. For example, even though the adversary mitigates the first transformation with a bit depth 5-bit filter, ARGAN showed the classification accuracy by as much as 83.9% against DeepFool. For white-box attack, the classification accuracy of ARGAN significantly decreased by as much as 13.14%, but is still higher than non-defense architecture. Also, ARGAN against DeepFool under white-box attack showed the lower accuracy than ARGAN against DeepFool under gray-box attack. For example, while ARGAN against DeepFool under the gray-box attack showed the classification accuracy by as much as 71.12% on average, ARGAN against DeepFool under the white-box attack showed the classification accuracy by as much as 16.46% on average.

59Result 6 : ARGAN effectively works even under the adaptive attack scenario. Especially, ARGAN shows the good enough performance under the gray-box attack.

V. CONCLUSION

60With the evolution of deep learning technology, adversarial example is mainly highlighted as one of the most severe problem of deep learning technology. Especially, adversarial example can cause severe damage on cloud-based deep learning environment where a MITM attack can be occurred. To defend such adversarial examples, two types of GANbased defense methods have actively been studied as an emerging efficient defense methods: (1) noise generation architecture; and (2) noise reduction architecture. However, the accuracy of such GAN-based defense methods decreases when predicting and classifying the legitimate input data. In this paper, we propose ARGAN, a new GAN-based defense method to provide good outputs for adversarial examples as well as legitimate input data. The generator in ARGAN produces robust input data by reflecting the vulnerability of the target DNN model while simultaneously training with the discriminator. From evaluation results under various experimental conditions, it is observed that ARGAN provided robustness to target DNN models against various state-of-theart adversarial attacks while maintaining the high accuracy

참고문헌 29건

  1. Deep Learning Face Attributes in the Wild 2015 10.1109/iccv.2015.425
  2. On the security of TLS renegotiation 2013 10.1145/2508859.2516694
  3. Cloud-Vision: Real-time face recognition using a mobile-cloudlet-cloud acceleration architecture 2022 IEEE Symposium on Computers and Communications (ISCC) · 2012 10.1109/iscc.2012.6249269
  4. Artificial neural networks in medical diagnosis Journal of Applied Biomedicine · University of South Bohemia in České Budějovice · 2013 10.2478/v10136-012-0031-x
  5. This POODLE Bites: Exploiting The SSL 3.0 Fallback 2014
  6. DeepFool: A Simple and Accurate Method to Fool Deep Neural Networks 2016 10.1109/cvpr.2016.282
  7. End to End Learning for Self-Driving Cars arXiv (Cornell University) · Cornell University · 2016 10.48550/arxiv.1604.07316
  8. Feature Squeezing: Detecting Adversarial Examples in Deep Neural Networks 2018 10.14722/ndss.2018.23198
  9. APE-GAN: Adversarial Perturbation Elimination with GAN arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1707.05474
  10. SMARTLET: A Dynamic Architecture for Real Time Face Recognition in Smartphone Using Cloudlets and Cloud Big Data Research · Elsevier BV · 2018 10.1016/j.bdr.2018.07.001
  11. Defense Methods Against Adversarial Examples for Recurrent Neural Networks arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1901.09963
  12. On Evaluating Adversarial Robustness arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1902.06705
  13. Enhancing the Robustness of Deep Neural Networks by Boundary Conditional GAN arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1902.11029
  14. Cleaning Adversarial Perturbations via Residual Generative Network for Face Verification ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) · 2019 10.1109/icassp.2019.8683327
  15. GanDef: A GAN Based Adversarial Training Defense for Neural Network Classifier IFIP advances in information and communication technology · Springer Science+Business Media · 2019 10.1007/978-3-030-22312-0_2
  16. Deflecting Adversarial Attacks with Pixel Deflection 2018 10.1109/cvpr.2018.00894
  17. Countering Adversarial Images using Input Transformations arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1711.00117
  18. Towards Evaluating the Robustness of Neural Networks 2022 IEEE Symposium on Security and Privacy (SP) · 2017 10.1109/sp.2017.49
  19. Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using\n Generative Models arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1805.06605
  20. ZK-GanDef: A GAN Based Zero Knowledge Adversarial Training Defense for Neural Networks 2019 10.1109/dsn.2019.00021
  21. PuVAE: A Variational Autoencoder to Purify Adversarial Examples IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2939352
  22. Rob-GAN: Generator, Discriminator, and Adversarial Attacker 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.01149
  23. Automated Student Attendance Management System Using Face Recognition 2018
  24. Stethoscope: Crypto Phones with Transparent &amp; Robust Fingerprint Comparisons using Inter Text-Speech Transformations 2019 10.1109/pst47121.2019.8949068
  25. EEJE: Two-Step Input Transformation for Robust DNN Against Adversarial Examples IEEE Transactions on Network Science and Engineering · Institute of Electrical and Electronics Engineers · 2020 10.1109/tnse.2020.3008394
  26. On Assessing ML Model Robustness: A Methodological Framework (Academic Track) Dagstuhl Research Online Publication Server · 2025 10.4230/oasics.saia.2024.1
  27. Defending Against Adversarial Attacks by Leveraging an Entire GAN arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1805.10652
  28. Generating Adversarial Malware Examples for Black-Box Attacks Based on GAN Communications in computer and information science · Springer Science+Business Media · 2022 10.1007/978-981-19-8991-9_29
  29. Generative Adversarial Trainer: Defense to Adversarial Perturbations\n with GAN arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1705.03387