paper-with-me

Papers

Mitigating Adversarial Attacks in LLMs through Defensive Suffix Generation

2024-12-18 · Minkyoung Kim, Yunha Kim, Hyeram Seo, Heejung Choi, JiYe Han, Gaeun Kee, Soyoung Ko, Hyoje Jung, Byeolhee Kim, Young-Hak Kim, Sanghyun Park, Tae Joon Jun

Large language models (LLMs) have exhibited outstanding performance in natural language processing tasks. However, these models remain susceptible to adversarial attacks in which slight input perturbations can lead to harmful or misleading outputs. A gradient-based defensive suffix generation algorithm is designed to bolster the robustness of LLMs. By appending carefully optimized defensive suffixes to input prompts, the algorithm mitigates adversarial influences while preserving the models' utility. To enhance adversarial understanding, a novel total loss function ($L_{\text{total}}$) combining defensive loss ($L_{\text{def}}$) and adversarial loss ($L_{\text{adv}}$) generates defensive suffixes more effectively. Experimental evaluations conducted on open-source LLMs such as Gemma-7B, mistral-7B, Llama2-7B, and Llama2-13B show that the proposed method reduces attack success rates (ASR) by an average of 11\% compared to models without defensive suffixes. Additionally, the perplexity score of Gemma-7B decreased from 6.57 to 3.93 when applying the defensive suffix generated by openELM-270M. Furthermore, TruthfulQA evaluations demonstrate consistent improvements with Truthfulness scores increasing by up to 10\% across tested configurations. This approach significantly enhances the security of LLMs in critical applications without requiring extensive retraining.

📄 PDF Abstract BibTeX arXiv:2412.13705

Code (0)

등록된 구현이 없습니다.

Tasks

TruthfulQA

Similar Papers 제목 키워드 기반

Evaluating Adversarial Robustness: A Comparison Of FGSM, Carlini-Wagner Attacks, And The Role of Distillation as Defense Mechanism

2024-04-05 · Trilokesh Ranjan Sarkar, Nilanjan Das, Pralay Sankar Maitra, Bijoy Some 외

This technical report delves into an in-depth exploration of adversarial attacks specifically targeted at Deep Neural Networks (DNNs) utilized for image classification. The study also investigates defense mechanisms aime…

Adversarial Robustnessimage-classificationImage Classification

Differential Robustness in Transformer Language Models: Empirical Evaluation Under Adversarial Text Attacks

2025-09-05 · Taniya Gidatkar, Oluwaseun Ajao, Matthew Shardlow arxiv

This study evaluates the resilience of large language models (LLMs) against adversarial attacks, specifically focusing on Flan-T5, BERT, and RoBERTa-Base. Using systematically designed adversarial tests through TextFoole…

Defensive Dropout for Hardening Deep Neural Networks under Adversarial Attacks

2018-09-13 · Siyue Wang, Xiao Wang, Pu Zhao, Wujie Wen 외

Deep neural networks (DNNs) are known vulnerable to adversarial attacks. That is, adversarial examples, obtained by adding delicately crafted distortions onto original legal inputs, can mislead a DNN to classify them as …

Denoising Autoencoder-based Defensive Distillation as an Adversarial Robustness Algorithm

2023-03-28 · Bakary Badjie, José Cecílio, António Casimiro

Adversarial attacks significantly threaten the robustness of deep neural networks (DNNs). Despite the multiple defensive methods employed, they are nevertheless vulnerable to poison attacks, where attackers meddle with t…

Adversarial RobustnessData PoisoningDenoising

Game-Theoretic Defenses for Robust Conformal Prediction Against Adversarial Attacks in Medical Imaging

2024-11-07 · Rui Luo, Jie Bao, Zhixin Zhou, Chuangyin Dang

Adversarial attacks pose significant threats to the reliability and safety of deep learning models, especially in critical domains such as medical imaging. This paper introduces a novel framework that integrates conforma…

Adversarial RobustnessConformal PredictionPredictionUncertainty Quantification+1