mlsanityData to 14 Oct 2026

Generating Valid and Natural Adversarial Examples with Large Language Models

arXiv 2311.11861 ↗First posted 20 Nov 2023cs.CL cs.AIcited by 12

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
  3. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
  4. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 843
  5. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
  6. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  7. 2018Universal Sentence Encodercited by 489
  8. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
  9. 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
  10. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  11. 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 286
  12. 2017Generating Natural Adversarial Examplescited by 183
10 more
  1. 2022Why Should Adversarial Perturbations be Imperceptible? Rethink the Research Paradigm in Adversarial NLPcited by 102
  2. 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 101
  3. 2020OpenAttack: An Open-source Textual Adversarial Attack Toolkitcited by 84
  4. 2021Towards Improving Adversarial Training of NLP Modelscited by 79
  5. 2023ChatGPT or Grammarly? Evaluating ChatGPT on Grammatical Error Correction Benchmarkcited by 77
  6. 2022MAVEN-ERE: A Unified Large-scale Dataset for Event Coreference, Temporal, Causal, and Subevent Relation Extractioncited by 66
  7. 2023When does In-context Learning Fall Short and Why? A Study on Specification-Heavy Taskscited by 37
  8. 2023How do humans perceive adversarial text? A reality check on the validity and naturalness of word-based adversarial attackscited by 18
  9. 2023Modeling Adversarial Attack on Pre-trained Language Models as Sequential Decision Makingcited by 6
  10. 2022Are Synonym Substitution Attacks Really Synonym Substitution Attacks?cited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 7; 2026: 2.

12 papers.