Generating Valid and Natural Adversarial Examples with Large Language Models
Not on the map. Why?
Abstract (arXiv)
Deep learning-based natural language processing (NLP) models, particularly pre-trained language models (PLMs), have been revealed to be vulnerable to adversarial attacks. However, the adversarial examples generated by many mainstream word-level adversarial attack models are neither valid nor natural, leading to the loss of semantic maintenance, grammaticality, and human imperceptibility. Based on the exceptional capacity of language understanding and generation of large language models (LLMs), we propose LLM-Attack, which aims at generating both valid and natural adversarial examples with LLMs. The method consists of two stages: word importance ranking (which searches for the most vulnerable words) and word synonym replacement (which substitutes them with their synonyms obtained from LLMs). Experimental results on the Movie Review (MR), IMDB, and Yelp Review Polarity datasets against the baseline adversarial attack models illustrate the effectiveness of LLM-Attack, and it outperforms the baselines in human and GPT-4 evaluation by a significant margin. The model can generate adversarial examples that are typically valid and natural, with the preservation of semantic meaning, grammaticality, and human imperceptibility.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 22 of its 31 references that are in the map. First posted on arXiv 20 Nov 2023.
Builds on
22 of 31 references.
References · 22
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2018Universal Sentence Encodercited by 489
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 286
- 2017Generating Natural Adversarial Examplescited by 183
10 more
- 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 102
- 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 101
- 2020OpenAttack: An Open-source Textual Adversarial Attack Toolkitcited by 84
- 2021Towards Improving Adversarial Training of NLP Modelscited by 79
- 2023ChatGPT or Grammarly? Evaluating ChatGPT on Grammatical Error Correction Benchmarkcited by 77
- 2022MAVEN-ERE: A Unified Large-scale Dataset for Event Coreference, Temporal, Causal, and Subevent Relation Extractioncited by 66
- 2023When does In-context Learning Fall Short and Why? A Study on Specification-Heavy Taskscited by 37
- 2023How do humans perceive adversarial text? A reality check on the validity and naturalness of word-based adversarial attackscited by 18
- 2023Modeling Adversarial Attack on Pre-trained Language Models as Sequential Decision Makingcited by 6
- 2022Are Synonym Substitution Attacks Really Synonym Substitution Attacks?cited by 4
Built on by
Citing papers per year: 2024: 3; 2025: 7; 2026: 2.
12 papers.
- 2025Metamorphic Testing of Large Language Models for Natural Language Processingcited by 12
- 2024Guardians of Discourse: Evaluating LLMs on Multilingual Offensive Language Detectioncited by 5
- 2024Thinker-DDM: Modeling Deliberation for Machine Translation with a Drift-Diffusion Processcited by 3
- 2025Bounded PCTL Model Checking of Large Language Model Outputscited by 1
- 2025Red-teaming Activation Probes using Prompted LLMscited by 1
- 2025CryptoQA: A Large-scale Question-answering Dataset for AI-assisted Cryptographycited by 1
- 2025Automatic Replication of LLM Mistakes in Medical Conversationscited by 1
- 2026When the Manual Lies: A Realistic Benchmark to Evaluate MCP Poisoning Attacks for LLM Agentscited by 1
- 2024Advancing NLP Security by Leveraging LLMs as Adversarial Enginescited by 0
- 2025CogniAlign: Survivability-Grounded Multi-Agent Moral Reasoning for Safe and Transparent AIcited by 0
- 2025RAG-targeted Adversarial Attack on LLM-based Threat Detection and Mitigation Frameworkcited by 0
- 2026S-GBT: Smooth Growth Bound Tensor for Certified Robustness Against Word Substitution Attacks in NLPcited by 0
- 2026S-GBT: Smooth Growth Bound Tensor for Certified Robustness Against Word Substitution Attacks in NLP11 Jun 2026
- 2026When the Manual Lies: A Realistic Benchmark to Evaluate MCP Poisoning Attacks for LLM Agents22 May 2026
- 2025Automatic Replication of LLM Mistakes in Medical Conversations24 Dec 2025
- 2025CryptoQA: A Large-scale Question-answering Dataset for AI-assisted Cryptography2 Dec 2025
- 2025RAG-targeted Adversarial Attack on LLM-based Threat Detection and Mitigation Framework9 Nov 2025
- 2025Metamorphic Testing of Large Language Models for Natural Language Processing3 Nov 2025
- 2025Red-teaming Activation Probes using Prompted LLMs1 Nov 2025
- 2025Bounded PCTL Model Checking of Large Language Model Outputs23 Sep 2025
- 2025CogniAlign: Survivability-Grounded Multi-Agent Moral Reasoning for Safe and Transparent AI14 Sep 2025
- 2024Advancing NLP Security by Leveraging LLMs as Adversarial Engines23 Oct 2024
- 2024Guardians of Discourse: Evaluating LLMs on Multilingual Offensive Language Detection21 Oct 2024
- 2024Thinker-DDM: Modeling Deliberation for Machine Translation with a Drift-Diffusion Process16 Feb 2024