AI summary · arXiv: 2310.19737v1 · cs.AI
Adversarial Attacks and Defenses in Large Language Models: Old and New Threats
The essentials
- Challenges in enhancing the robustness of neural networks
- Overestimation of new defense approaches due to faulty evaluations
- Proposal of prerequisites to enhance the evaluation process and reduce faulty assessments
- Focus on adversarial arms race in natural language processing with closed-source Large Language Models (LLMs)
- Identification of embedding space attacks as a viable threat model for generating malicious content in open-sourced models
- Need for improved defenses against embedding space attacks
- Analysis of a recently proposed defense approach and demonstration of overestimating robustness without tailored best practices for LLMs
- Emphasis on accurate robustness evaluations in neural networks
- Insights into potential threats and challenges associated with large language models
- Importance of implementing effective defense strategies to enhance network robustness in natural language processing applications.
Key points written by AI: they may contain errors, check them against the paper.
Ask questions about this paper to our AI assistant
How to chat with this paper? Illustrated guide
You can also chat with multiple papers at once here.
Keep this conversation — a free account saves your questions and answers, your collections of papers and your alerts.
Continue with Google Create a free accountTools for this paper
Advanced tools Premium
For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium
Among the 31 papers around this one, the name that comes back most: Nicholas Carlini (2 papers)
2 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.
Papers around this one
See them on a mapRanked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Adversarial Attacks and Defenses on Large Language Models: A Systematic ReviewRuo-Bing Li, Jiayi Liu, Jin-Yang Zhen et al. · 2025 · International Conference on Big Data and Artificial Intelligence · cited 3 times · Not summarized yet
Abstract
The rapid advancement of large language models (LLMs) presents both transformative opportunities and significant security challenges, primarily due to their susceptibility to adversarial attacks-crafted inputs designed to deceive them-which pose considerable risks to their reliability and security. This survey comprehensively reviews these textual adversarial attacks, categorizing them into sentence-level, wordlevel, and character-level manipulations, while also exploring multi-level approaches that combine these techniques. To counter such threats, the survey examines a range of defense strategies, including detection methods, adversarial training, semantic analysis, general system enhancem…
-
Adversarial Robustness in LLMs: A Survey of Attacks and Defenses with Experimental Evaluation of Decision Based Attack and Human-in-Pipeline DefenseP. Sahoo, Minati Mishra · 2026 · 2026 International Conference on Air Defense and Security (ICADS) · Not summarized yet
Abstract
Natural Language Processing (NLP) has witnessed remarkable progress with the advent of Large Language Models(LLMs) such as GPT, Gemini, Claude, and LLaMA, which demonstrate powerful capabilities in text generation, reasoning, and human like response. However, their susceptibility to adversarial manipulation poses a significant threat, particularly in defense and security sensitive applications where reliability and robustness are paramount. Even subtle perturbations or carefully crafted prompts can mislead LLMs into producing harmful or misleading content, undermining mission critical systems. This paper investigates adversarial attacks and corresponding defense strategies for LLMs, emphasiz…
-
Breaking Down the Defenses: A Comparative Survey of Attacks on Large Language ModelsArijit Ghosh Chowdhury, Md. Mofijul Islam, Vaibhav Kumar et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 59 times · Not summarized yet
Abstract
Large Language Models (LLMs) have become a cornerstone in the field of Natural Language Processing (NLP), offering transformative capabilities in understanding and generating human-like text. However, with their rising prominence, the security and vulnerability aspects of these models have garnered significant attention. This paper presents a comprehensive survey of the various forms of attacks targeting LLMs, discussing the nature and mechanisms of these attacks, their potential impacts, and current defense strategies. We delve into topics such as adversarial attacks that aim to manipulate model outputs, data poisoning that affects model training, and privacy concerns related to training da…
-
A Survey of Textual Adversarial Attacks and Defenses on Large Language Models (LLMs)Si-Rui Song · 2025 · Science and Technology of Engineering, Chemistry and Environmental Protection · cited 1 time · Not summarized yet
Abstract
The broad use of large language models (LLMs) like GPT-4 and LLaMA in dialogue systems, content generation, etc., causes security flaws of these models to rise. The current study examines progress made in recent years on textual adversarial attacks and defenses for LLMs, focusing on special attack vectors and defensive techniques targeting LLMs. Firstly, a 'Target—Technology—Scenario' three-dimensional attack classification framework that mainly consists of typical kinds of attacks including PIA and JBA. Secondly, defense mechanisms from two different perspectives: alignment enhancement in the training phase and security controls in the inference phase. In addition, by conducting experiments…
-
Assessing Adversarial Robustness of Large Language Models: An Empirical StudyZe-Yu Yang, Zhao Meng, Xiao-Chen Zheng et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 41 times · Not summarized yet
Abstract
Large Language Models (LLMs) have revolutionized natural language processing, but their robustness against adversarial attacks remains a critical concern. We presents a novel white-box style attack approach that exposes vulnerabilities in leading open-source LLMs, including Llama, OPT, and T5. We assess the impact of model size, structure, and fine-tuning strategies on their resistance to adversarial perturbations. Our comprehensive evaluation across five diverse text classification tasks establishes a new benchmark for LLM robustness. The findings of this study have far-reaching implications for the reliable deployment of LLMs in real-world applications and contribute to the advancement of …
-
Robustness of Large Language Models Against Adversarial AttacksYiyi Tao, Yi-Xian Shen, Hang Zhang et al. · 2024 · 2024 4th International Conference on Artificial Intelligence, Robotics, and Communication (ICAIRC) · cited 25 times · Not summarized yet
Abstract
The increasing deployment of Large Language Models (LLMs) in various applications necessitates a rigorous evaluation of their robustness against adversarial attacks. In this paper, we present a comprehensive study on the robustness of GPT LLM family. We employ two distinct evaluation methods to assess their resilience. The first method introduces character-level text attack in input prompts, testing the models on three sentiment classification datasets: StanfordNLP/IMDB, Yelp Reviews, and SST-2. The second method involves using jailbreak prompts to challenge the safety mechanisms of the LLMs. Our experiments reveal significant variations in the robustness of these models, demonstrating their…
-
Baseline Defenses for Adversarial Attacks Against Aligned Language ModelsNeel Jain, Avi Schwarzschild, Yuxin Wen et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 836 times · Not summarized yet
Abstract
As Large Language Models quickly become ubiquitous, it becomes critical to understand their security vulnerabilities. Recent work shows that text optimizers can produce jailbreaking prompts that bypass moderation and alignment. Drawing from the rich body of work on adversarial machine learning, we approach these attacks with three questions: What threat models are practically useful in this domain? How do baseline defense techniques perform in this new domain? How does LLM security differ from computer vision? We evaluate several baseline defense strategies against leading adversarial attacks on LLMs, discussing the various settings in which each is feasible and effective. Particularly, we l…
-
Research on adversarial attack and defense of large language modelsJi-Dong Yang, Qiangyun Chi, Wen-Qiang Xu et al. · 2024 · Applied and Computational Engineering · cited 3 times · Not summarized yet
Abstract
Abstract. Large language models (LLMs) have made excellent progress in text and image understanding and generation. However, with the wide range of applications of these models in various industries, the issue of their security, especially the defense against adversarial attacks, has become a focus of research. This study focuses on exploring the adversarial attacks faced by LLMs and their defense strategies, especially the design and optimization of defense mechanisms. Through literature review and case studies, this paper analyzes in detail the white-box and black-box attack patterns against LLMs, including model inversion, backdoor attacks, and token-based strategies. In response to these…
Prior work it builds on
-
Universal and Transferable Adversarial Attacks on Aligned Language ModelsAndy Zou, Zifan Wang, J. Zico Kolter et al. · 2023 · Computation and Language · preprint, not peer reviewed · cited 4,031 times · AI summary available
Abstract
Because "out-of-the-box" large language models are capable of generating a great deal of objectionable content, recent work has focused on aligning these models in an attempt to prevent undesirable generation. While there has been some success at circumventing these measures -- so-called "jailbreaks" against LLMs -- these attacks have required significant human ingenuity and are brittle in practice. In this paper, we propose a simple and effective attack method that causes aligned language models to generate objectionable behaviors. Specifically, our approach finds a suffix that, when attached to a wide range of queries for an LLM to produce objectionable content, aims to maximize the probab…
-
Are aligned neural networks adversarially aligned?Nicholas Carlini, Milad Nasr, Christopher A. Choquette-Choo et al. · 2023 · Neural Information Processing Systems · cited 427 times · Not summarized yet
Abstract
Large language models are now tuned to align with the goals of their creators, namely to be"helpful and harmless."These models should respond helpfully to user questions, but refuse to answer requests that could cause harm. However, adversarial users can construct inputs which circumvent attempts at alignment. In this work, we study adversarial alignment, and ask to what extent these models remain aligned when interacting with an adversarial user who constructs worst-case inputs (adversarial examples). These inputs are designed to cause the model to emit harmful content that would otherwise be prohibited. We show that existing NLP-based optimization attacks are insufficiently powerful to rel…
-
Certifying LLM Safety against Adversarial PromptingAounon Kumar, Chirag Agarwal, Suraj Srinivas et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 355 times · Not summarized yet
Abstract
Large language models (LLMs) are vulnerable to adversarial attacks that add malicious tokens to an input prompt to bypass the safety guardrails of an LLM and cause it to produce harmful content. In this work, we introduce erase-and-check, the first framework for defending against adversarial prompts with certifiable safety guarantees. Given a prompt, our procedure erases tokens individually and inspects the resulting subsequences using a safety filter. Our safety certificate guarantees that harmful prompts are not mislabeled as safe due to an adversarial attack up to a certain size. We implement the safety filter in two ways, using Llama 2 and DistilBERT, and compare the performance of erase…
-
LLM Self Defense: By Self Examination, LLMs Know They Are Being TrickedAlec Helbling, Mansi Phute, Matthew Hull et al. · 2023 · Tiny Papers @ ICLR · cited 353 times · Not summarized yet
Abstract
Large language models (LLMs) are popular for high-quality text generation but can produce harmful content, even when aligned with human values through reinforcement learning. Adversarial prompts can bypass their safety measures. We propose LLM Self Defense, a simple approach to defend against these attacks by having an LLM screen the induced responses. Our method does not require any fine-tuning, input preprocessing, or iterative output generation. Instead, we incorporate the generated content into a pre-defined prompt and employ another instance of an LLM to analyze the text and predict whether it is harmful. We test LLM Self Defense on GPT 3.5 and Llama 2, two of the current most prominent…
-
Towards Deep Learning Models Resistant to Adversarial AttacksAleksander Madry, Aleksandar Makelov, Ludwig Schmidt et al. · 2017 · Machine Learning · cited 16,131 times · AI summary available
Abstract
Recent work has demonstrated that deep neural networks are vulnerable to adversarial examples---inputs that are almost indistinguishable from natural data and yet classified incorrectly by the network. In fact, some of the latest findings suggest that the existence of adversarial attacks may be an inherent weakness of deep learning models. To address this problem, we study the adversarial robustness of neural networks through the lens of robust optimization. This approach provides us with a broad and unifying view on much of the prior work on this topic. Its principled nature also enables us to identify methods for both training and attacking neural networks that are reliable and, in a certa…
Papers that cite it
-
Efficient Adversarial Training in LLMs with Continuous AttacksSophie Xhonneux, A. Sordoni, Stephan Günnemann et al. · 2024 · Neural Information Processing Systems · cited 161 times · Not summarized yet
Abstract
Large language models (LLMs) are vulnerable to adversarial attacks that can bypass their safety guardrails. In many domains, adversarial training has proven to be one of the most promising methods to reliably improve robustness against such attacks. Yet, in the context of LLMs, current methods for adversarial training are hindered by the high computational costs required to perform discrete adversarial attacks at each training iteration. We address this problem by instead calculating adversarial attacks in the continuous embedding space of the LLM, which is orders of magnitudes more efficient. We propose a fast adversarial training algorithm (C-AdvUL) composed of two losses: the first makes …
-
A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the UglyYifan Yao, Jinhao Duan, Kaidi Xu et al. · 2023 · Cryptography and Security · cited 1,413 times · AI summary available
Abstract
Large Language Models (LLMs), such as ChatGPT and Bard, have revolutionized natural language understanding and generation. They possess deep language comprehension, human-like text generation capabilities, contextual awareness, and robust problem-solving skills, making them invaluable in various domains (e.g., search engines, customer support, translation). In the meantime, LLMs have also gained traction in the security community, revealing security vulnerabilities and showcasing their potential in security-related tasks. This paper explores the intersection of LLMs with security and privacy. Specifically, we investigate how LLMs positively impact security and privacy, potential risks and th…
-
Adversarial Attacks on Large Language Models Using Regularized RelaxationSamuel Jacob Chacko, Sajib Biswas, Chashi Mahiul Islam et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 19 times · Not summarized yet
Abstract
As powerful Large Language Models (LLMs) are now widely used for numerous practical applications, their safety is of critical importance. While alignment techniques have significantly improved overall safety, LLMs remain vulnerable to carefully crafted adversarial inputs. Consequently, adversarial attack methods are extensively used to study and understand these vulnerabilities. However, current attack methods face significant limitations. Those relying on optimizing discrete tokens suffer from limited efficiency, while continuous optimization techniques fail to generate valid tokens from the model's vocabulary, rendering them impractical for real-world applications. In this paper, we propos…
-
Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMsA. Sheshadri, Aidan Ewart, Phillip Guo et al. · 2024 · Trans. Mach. Learn. Res. · cited 204 times · Not summarized yet
Abstract
Large language models (LLMs) can often be made to behave in undesirable ways that they are explicitly fine-tuned not to. For example, the LLM red-teaming literature has produced a wide variety of'jailbreaking'techniques to elicit harmful text from models that were fine-tuned to be harmless. Recent work on red-teaming, model editing, and interpretability suggests that this challenge stems from how (adversarial) fine-tuning largely serves to suppress rather than remove undesirable capabilities from LLMs. Prior work has introduced latent adversarial training (LAT) as a way to improve robustness to broad classes of failures. These prior works have considered untargeted latent space attacks where…
-
Soft Prompt Threats: Attacking Safety Alignment and Unlearning in Open-Source LLMs through the Embedding SpaceLeo Schwinn, David Dobre, Sophie Xhonneux et al. · 2024 · Neural Information Processing Systems · cited 120 times · Not summarized yet
Abstract
Current research in adversarial robustness of LLMs focuses on discrete input manipulations in the natural language space, which can be directly transferred to closed-source models. However, this approach neglects the steady progression of open-source models. As open-source models advance in capability, ensuring their safety also becomes increasingly imperative. Yet, attacks tailored to open-source LLMs that exploit full model access remain largely unexplored. We address this research gap and propose the embedding space attack, which directly attacks the continuous embedding representation of input tokens. We find that embedding space attacks circumvent model alignments and trigger harmful be…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 4 November 2026.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.