mlsanityData to 7 Oct 2026

Mitigating Adversarial Attacks in LLMs through Defensive Suffix Generation

arXiv 2412.13705 ↗First posted 18 Dec 2024cs.CV cs.AI cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

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 (Ltotal) combining defensive loss (Ldef) and adversarial loss (Ladv) 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.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 19 of its 24 references that are in the map. First posted on arXiv 18 Dec 2024.

Builds on

19 of 24 references.

References · 19

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  4. 2023Mistral 7Bcited by 3,065
  5. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
  6. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  7. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  8. 2023Certifying LLM Safety against Adversarial Promptingcited by 248
  9. 2020Understanding and Improving Fast Adversarial Trainingcited by 213
  10. 2023M3IT: A Large-Scale Dataset towards Multi-Modal Multilingual Instruction Tuningcited by 126
  11. 2023An LLM can Fool Itself: A Prompt-Based Adversarial Attackcited by 111
  12. 2024Efficient Adversarial Training in LLMs with Continuous Attackscited by 104
7 more
  1. 2024Jailbreaking Prompt Attack: A Controllable Adversarial Attack against Diffusion Modelscited by 68
  2. 2023All Languages Matter: On the Multilingual Safety of Large Language Modelscited by 51
  3. 2020Generating Fluent Adversarial Examples for Natural Languagescited by 49
  4. 2023PoisonPrompt: Backdoor Attack on Prompt-based Large Language Modelscited by 40
  5. 2024Prompt Stealing Attacks Against Large Language Modelscited by 39
  6. 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Modelscited by 29
  7. 2023Generative AI Text Classification using Ensemble LLM Approachescited by 29

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.