Journal of Cognitive Human-Computer Interaction

Defense Against Adversarial AI

Bhavani G., Soundarya S., Tejashwini V., Sumitha S.
Volume 7, Issue 1, pp. 20–23 (2024)
DOI: https://doi.org/10.54216/JCHCI.070105
Online: https://americaspg.com/journal/25/article/2651

Abstract

The increasing prevalence of deep learning technology has paved the way for a new era of AI-powered capabilities, promising revolutionary advancements across various societal domains such as healthcare and autonomous vehicles. Despite offering potent solutions to complex problems, the formidable power of these AI systems is accompanied by a susceptibility that malicious actors could exploit. Adversarial attacks, particularly targeting deep learning models, involve the crafting of altered inputs, often imperceptible changes to images, to deceive or undermine the functionality of the AI system. Within the domain of autonomous driving systems, adversarial attacks pose a severe risk. Envision a situation where a precisely manipulated adversarial attack targets a red traffic light sign, causing the AI system to misclassify it as an entirely unrelated object, perhaps identifying it as a bird. The potential consequences of such misclassifications underscore the serious impact that adversarial attacks can exert on the safety and dependability of autonomous vehicles. The potential repercussions of such misclassification are severe, with the risk of causing traffic accidents and posing a notable safety threat. Ensuring the resilience and security of AI technologies against adversarial threats is of utmost importance as AI continues to play a pivotal role in critical applications such as healthcare, finance, and autonomous systems. It necessitates a holistic strategy that melds advanced research, meticulous testing, and the deployment of robust security measures. This comprehensive approach is essential for fostering trust and mitigating potential harm in an ever- growing, AI-driven world.

Keywords: Deep Learning; AI; Smart Systems; Complex Problems

1. INTRODUCTION

In today’s dynamic landscape of artificial intelligence (AI), deep learning models represent the pinnacle of computational achievement, showcasing remarkable capabilities in pattern recognition, prediction, and data processing. However, alongside their power comes a significant vulnerability: susceptibility to adversarial attacks. These attacks exploit weaknesses in AI systems and aim to manipulate decision-making processes, potentially leading to incorrect predictions or classifications.

The concept of hacking deep learning models delves into this realm of subversion, where sophisticated techniques are employed to deceive and compromise AI systems. Adversarial attacks involve crafting subtle alterations to input data, known as adversarial examples, which can mislead the model while appearing normal to human observers. Motivations for such attacks vary, ranging from academic research to more malicious intentions such as digital impersonation or misinformation campaigns.

The implications of hacked deep learning models extend beyond technical concerns to ethical and societal considerations. Erroneous medical diagnoses, flawed autonomous vehicle decisions, and compromised communication systems are among the potential consequences, highlighting the critical need to understand and address vulnerabilities in AI systems. Addressing these challenges requires a multifaceted approach involving the exploration of attack vectors, the development of defensive strategies, and consideration of real-world impacts. By fostering a deeper understanding of the dynamics

Figure 1. Neural intrusions.
Figure 1. Neural intrusions.

between AI and cybersecurity, stakeholders can navigate the future of AI responsibly and ethically.

Y. Ding et al. [1] suggested a lightweight encryption approach for diverse-sized medical images to ensure privacy in smart medical technology. It efficiently encrypts multiple images at a cost comparable to single-image encryption, utilizing a secure key sequence generated by SHA-256. Y. Chen et al. [2] approached machine learning models against the Fast Gradient Sign Method (FGSM), focusing on a robust CNNbased image classification architecture.

K. Khullar et al. [3] evaluated the effectiveness of model architectures against adversarial attacks on the CIFAR-10 dataset, using both L∞metrics and Wasserstein distance strategies to generate adversarial examples. Pedraza et al. [4] introduced a chaos-theory-based method to discern adversarial examples from regular images in deep learning. Their findings indicate that combining Lyapunov exponents with entropy significantly enhances discriminatory power.

Pandya et al. [6] examined explainability of image classifiers under targeted adversarial attack. Xiao and Zheng [7] explored a defense strategy against adversarial examples in image classification, demonstrating enhanced robustness on CIFAR-10 and Tiny ImageNet datasets. Wang et al. [8] proposed adversarial image detection based on sentiment analysis, while Liu et al. [9] presented a query-free embedding attack against deep learning systems.

Zhang et al. [10] proposed a preprocessing defense framework based on image compression reconstruction. Tian et al. [12] investigated limitations of AI in image classification through an interactive adversarial attack game. Agarwal et al. [13] proposed a non-deep-learning defense using image transforms such as Discrete Wavelet Transform and Discrete Sine Transform. Additional studies addressed adversarial attacks in intrusion detection, transfer learning, face recognition, model reuse, and feature-attribution-based detection [14, 15, 17, 18, 19, 24, 25, 23].

3. PROPOSED METHODOLOGY

Artificial intelligence plays a pivotal role in autonomous systems by learning from data and facilitating decision-making processes. However, it is susceptible to adversarial attacks, which aim to deceive or compromise model performance. These attacks are categorized into white-box attacks, assuming full access to the model, and black-box attacks, relying solely on input-output interactions. Of particular concern

Table 1. Summary of adversarial attack and defense directions discussed in related work.
Table 1. Summary of adversarial attack and defense directions discussed in related work.

Adversarial training Retraining with clean and perturbed examples

Improves model robustness against evasion attacks Image reconstruction Compression and superresolution restoration

Removes or weakens perturbation noise Transform-based denoising Wavelet and sine transform filtering

Neutralizes adversarial perturbations without retraining Detection methods Logit distribution, entropy, and feature attribution

Figure

are adversarial image black-box attacks, which can produce images indistinguishable from regular ones to humans but cause misinterpretation by deep learning models.

This project develops a methodology to analyze and mitigate such attacks using a pretrained model. First, it studies adversarial image attacks using techniques such as FGSM to generate perturbed images that induce misclassification by deep learning models. Given an input image x, label y, model parameters θ, and loss function J, FGSM can be expressed as:

xadv = x+ε sign(∇xJ(θ,x,y)), (1)

where ε controls perturbation strength.

Second, the method uses training with a pretrained model by leveraging the established AlexNet architecture. By retaining lower layers trained on extensive datasets such as ImageNet and fine-tuning upper layers, the model can efficiently adapt to new datasets while optimizing time and resource utilization.

To combat adversarial example attacks, adversarial training emerges as a prevalent defense mechanism. This method retrains the classification network using a blend of clean and adversarial examples, with the aim of fortifying the network’s resilience. During training, labels of adversarial examples remain unchanged, preserving their true labels rather than reflecting erroneous predictions. For instance, an adversarial example resembling a cat retains its original “cat” label instead of being mislabeled as “dog” due to network misclassification.

Figure 2. Strategies for resilience against neural intrusions.
Figure 2. Strategies for resilience against neural intrusions.
Figure 3. CNN architecture.
Figure 3. CNN architecture.

4. ALGORITHM DESCRIPTION

Convolutional Neural Networks (CNNs) utilize a series of layers, each designed to identify different aspects of an input image. The network’s complexity depends on its specific purpose, with layers ranging from a few to potentially thousands. These layers iteratively enhance their comprehension of the input by incorporating insights from preceding stages, enabling the CNN to discern nuanced patterns and details within the data.

CNNs take cues from connectivity patterns found in the human visual cortex, optimizing their structure for efficient interpretation of visual information. Their artificial neurons are strategically arranged to process entire images effectively, resembling the brain’s ability to perceive visuals. Renowned for object recognition, CNNs are extensively deployed in computer vision applications such as image classification and object detection. They find diverse applications across industries, including autonomous driving, facial recognition technology, and medical image analysis.

Convolution involves sliding small filters over the input image, allowing the network to detect patterns and features at different spatial locations. For an input feature map X and kernel K, a convolutional response can be represented as:

Y(i, j) = ∑

X(i+m, j +n)K(m,n). (2) m ∑ n

This approach enables CNNs to learn hierarchical representations of the input, progressively extracting more abstract features as information flows through the network.

5. RESULTS AND DISCUSSION

The AlexNet model, renowned for its image recognition capabilities, has been found vulnerable to adversarial image attacks. These attacks, utilizing techniques like FGSM, subtly alter pixels in images, making them imperceptible to humans but misleading to the model, resulting in misclassifications. This investigation delves into the escalating trend of AI model hacking, which poses significant risks across various

Figure 4. Pretrained DL model without attack phase.
Figure 4. Pretrained DL model without attack phase.
Figure 5. Pretrained DL model with adversarial attack phase.
Figure 5. Pretrained DL model with adversarial attack phase.

domains.

While AI technologies offer numerous benefits, they also entail substantial risks if exploited maliciously. The study examines diverse adversarial techniques, including data poisoning, model inversion, and evasion attacks, elucidating their exploitation of AI system weaknesses. Additionally, it proposes defense mechanisms aimed at fortifying AI systems against such attacks, informed by a thorough understanding of adversarial methodologies and constraints.

By offering effective solutions and guidance, this study aims to inform future research and development in AI security, addressing ethical and responsible challenges in AI deployment. Its contributions are pivotal in navigating the complexities of the AI security landscape and fostering a safer AI ecosystem.

6. CONCLUSION

Artificial intelligence has propelled remarkable advancements in technology, transforming our interactions with the world. However, exploring adversarial attacks on deep learning models reveals vulnerabilities in AI systems, necessitating robust security measures and ethical guidelines. Techniques such as FGSM underscore the importance of proactive defense mechanisms.

We propose a defense framework focusing on adversarial training with pretrained models to counter adversarial image attacks, enhancing AI system resilience against evolving threats. This paper explores universal adversarial example attacks targeting image classification models and aims to uncover the reasons behind their susceptibility. Understanding these vulnerabilities is crucial for devising effective strategies to counter adversarial examples.

Through experiments, the study observed minimal discrepancy in pixel-value distribution between clean and adversarial examples; the primary difference lies in salient image regions. Based on these findings, adversarial training can enhance both the accuracy and resilience of the original classification model. Additionally, training a discriminator to discern adversarial examples shows promise in mitigating attacks, although challenges remain when handling large datasets.

References

[1]  Y. Ding, F. Tan, Z. Qin, M. Cao, K. -K. R.Choo and Z. Qin, "Deep Keygen: A Deep Learning- Based Stream Cipher Generator for Medical Image Encryption and Decryption," in IEEE Transactions onNeural Networks and Learning Systems, vol. 33, no. 9, pp. 4915-4929, doi: 10.1109/TNNLS.2021.3062754, Sept. 2022.

[2]  Y. Chen, M. Zhang, J. Li and X. Kuang, "Adversarial Attacks and Defenses in ImageClassification: A Practical Perspective," 2022 7th International Conference on Image, Vision andComputing (ICIVC), Xi’an, China, pp. 424- 430,doi: 10.1109/ICIVC55077.2022.9886997,2022.

[3] Sweeta Bansal,Karan Kohli,K. K. Vishwakarma,Kush Gupta. "Graph Algo Visualizer." Journal of Cognitive Human-Computer Interaction, Vol. 3, No. 2, 2022 ,PP. 36-41.

[4]. Pedraza A, Deniz O, Bueno G. Approaching Adversarial Example Classification withChaos Theory. Entropy (Basel). Oct 24;22(11):1201. doi: 10.3390/e22111201. PMID:33286969; PMCID: PMC7712112,2020.

[5]. Y. Wang, L. Xie, X. Liu, J. -L. Yin and T. Zheng, "Model-Agnostic Adversarial Example Detection Through Logit Distribution Learning," 2021 IEEE International Conference on Image Processing (ICIP), Anchorage, AK, USA, pp. 3617-3621, doi: 10.1109/ICIP42928.2021.9506292,2021.

[6]. M. A. Pandya, P. Siddalingaswamy and S. Singh, "Explainability of Image Classifiers for Targeted Adversarial Attack," 2022 IEEE 19th India Council International Conference (INDICON), Kochi, India,pp.1-6,doi: 10.1109/INDICON56171.2022.10039871,2022.

[7]. C. Xiao and C. Zheng, "One Man’s Trash Is Another Man’s Treasure: Resisting Adversarial Examples by Adversarial Examples," in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition(CVPR), Seattle, WA, USA, 2020pp.409-418. doi: 10.1109/CVPR42600.2020.00049,2020.

[8].Y. Wang, T. Li, S. Li, X. Yuan and W. Ni,"New Adversarial Image Detection Based on Sentiment Analysis," in IEEE Transactions on NeuralNetworks and Learning Systems, doi: 10.1109/TNNLS.2023.3274538.

[9].Y. Liu, W. Zhang and N. Yu, "Query-Free Embedding Attack Against Deep Learning," 2019 IEEE International Conference on Multimedia and Expo (ICME), Shanghai, China, pp. 380-386, doi: 10.1109/ICME.2019.00073,2020.

[10]. Zhang YA, Xu H, Pei C, Yang G.Adversarial example defense based on image reconstruction. PeerJ Comput Sci. Dec24;7: e811. doi: 10.7717/peerj-cs.811. PMID: 35036533; PMCID: PMC8725667,2021.

[11].  R. Venkatesan,M.Sumithra,B. Buvaneswari,R. Selvalingeshwaran. (2022). Food Ordering Systems'        Newness. Journal of Cognitive Human-Computer Interaction, 4 ( 1 ), 15-20.

[11].Tian, Xuejun, Tian, Xinyuan, and Pan, Bingqin. ‘Similarity Attack: An Adversarial Attack Game for Image Classification Based on Deep Learning’. 1 Jan. 2023 : 1467 – 1478

[12]. A.Agarwal, R. Singh, M. Vatsa and N. Ratha, "Image Transformation-Based DefenseAgainst Adversarial Perturbation on Deep Learning Models," in IEEE Transactions on Dependable and Secure Computing, vol. 18, no. 5, pp. 2106-2121, 1 Sept.-Oct. 2021, doi: 10.1109/TDSC.2020.3027183

[13]. J. Ji, B. Zhong and K. -K. Ma, "Multi-ScaleDefense of Adversarial Images," 2019 IEEEInternational Conference on Image Processing (ICIP),Taipei, Taiwan, 2019, pp. 4070-4074, doi: 10.1109/ICIP.2019.8803408.

[14]. C. -Y. Lin, F. -J. Chen, H. -F. Ng and W. -Y. Lin, "Invisible Adversarial Attacks on Deep Learning-Based Face Recognition Models," in IEEE Access, vol. 11, pp. 51567-51577, 2023, doi: 10.1109/ACCESS.2023.3279488.

[15].J. -H. Choi, H. Zhang, J. -H. Kim, C. -J. Hsieh and J. -S. Lee, "Deep Image Destruction: Vulnerability of Deep Imageto- Image Models against Adversarial Attacks," 2022 26th International Conference on Pattern Recognition (ICPR), Montreal,QC, Canada, 2022, pp. 1287-1293, doi: 10.1109/ICPR56361.2022.9956577.

[16].D. Vyas and V. V. Kapadia, "Evaluation ofAdversarial Attacks and Detection on Transfer Learning Model," 2023 7th International Conference on Computing Methodologies and Communication(ICCMC), Erode, India, 2023, pp. 1116- 1124, doi: 10.1109/ICCMC56507.2023.10084164.

[17].S. Niu, Y. Liu, J. Wang, and H. Song, “A decade survey of transfer learning (2010-2020),” IEEE Transactions on Artificial Intelligence, 2021.

[18]. S. Rezaei and X. Liu, “A target-agnostic attack on deep models: Exploiting security vulnerabilities of transfer learning,” arXiv preprint arXiv:1904.04334, 2019.

[19].A.Abdelkader, M. J. Curry, L. Fowl, T. Goldstein, A. Schwarzschild, M. Shu, C. Studer, and C. Zhu, “Headless horseman: Adversarial attacks on transfer learning models,” in ICASSP 2020-2020 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2020, pp. 3087–3091.

[20].Meenakshi and G. Maragatham, “A reviewon security attacks and protective strategies of machine learning,” in Int.

Conf. on Emerging CurrentTrends in Computing and Expert Technology, Cham, Springer, pp. 1076–1087, 2019.

[21].B.Pal and S. Tople, “To transfer or not to transfer: Misclassification attacks against transfer learned text classifiers,” arXiv preprint arXiv:2001.02438, 2020.

[22].Z. Yan, Y. Guo and C. Zhang, “Deep defe nse: Training DNNs with improved adversarial robustness,” arXiv preprint arXiv: 1803.00404, 2018.

[23]. P. Yang, J. Chen, C. J. Hsieh, J. L. Wang and M. Jordan, “Ml-loo: Detecting adversarial exampl es with feature attribution,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, no. 4, pp. 6639–6647, 2020.

[24].Athalye, N. Carlini and D. Wagner, “Obfu scated gradients give a false sense of security: Circumventing defenses to adversarial examples,” in Int. Conf. on Machine Learning, PMLR, Stockholm, Sweden,pp. 274–283, 2018.

[25].Y. Ji, X. Zhang, S. Ji, X. Luo, and T. Wang,“Model-reuse attacks on deep learning systems,” in Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, 2018, pp.349– 363.