mlsanityData to 14 Oct 2026

Gradient-Based Word Substitution for Obstinate Adversarial Examples Generation in Language Models

arXiv 2307.12507 ↗First posted 24 Jul 2023cs.CL cs.AI cs.CRcited by 3

Not on the map. Why?

Abstract (arXiv)

In this paper, we study the problem of generating obstinate (over-stability) adversarial examples by word substitution in NLP, where input text is meaningfully changed but the model's prediction does not, even though it should. Previous word substitution approaches have predominantly focused on manually designed antonym-based strategies for generating obstinate adversarial examples, which hinders its application as these strategies can only find a subset of obstinate adversarial examples and require human efforts. To address this issue, in this paper, we introduce a novel word substitution method named GradObstinate, a gradient-based approach that automatically generates obstinate adversarial examples without any constraints on the search space or the need for manual design principles. To empirically evaluate the efficacy of GradObstinate, we conduct comprehensive experiments on five representative models (Electra, ALBERT, Roberta, DistillBERT, and CLIP) finetuned on four NLP benchmarks (SST-2, MRPC, SNLI, and SQuAD) and a language-grounding benchmark (MSCOCO). Extensive experiments show that our proposed GradObstinate generates more powerful obstinate adversarial examples, exhibiting a higher attack success rate compared to antonym-based methods. Furthermore, to show the transferability of obstinate word substitutions found by GradObstinate, we replace the words in four representative NLP benchmarks with their obstinate substitutions. Notably, obstinate substitutions exhibit a high success rate when transferred to other models in black-box settings, including even GPT-3 and ChatGPT. Examples of obstinate adversarial examples found by GradObstinate are available at https://huggingface.co/spaces/anonauthors/SecretLanguage.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 35 of its 58 references that are in the map. First posted on arXiv 24 Jul 2023.

Builds on

35 of 58 references.

References · 35

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  7. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  8. 2013Intriguing properties of neural networkscited by 5,155
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  10. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  11. 2017Axiomatic Attribution for Deep Networkscited by 3,384
  12. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
23 more
  1. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  2. 2019Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inferencecited by 876
  3. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
  4. 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 571
  5. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  6. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
  7. 2018Generating Natural Language Adversarial Examplescited by 424
  8. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  9. 2016Deep Reinforcement Learning for Dialogue Generationcited by 288
  10. 2018Pathologies of Neural Models Make Interpretations Difficultcited by 140
  11. 2021Measure and Improve Robustness in NLP Models: A Surveycited by 107
  12. 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 94
  13. 2018On Adversarial Examples for Character-Level Neural Machine Translationcited by 85
  14. 2020Reevaluating Adversarial Examples in Natural Languagecited by 85
  15. 2018Excessive Invariance Causes Adversarial Vulnerabilitycited by 66
  16. 2020Fundamental Tradeoffs between Invariance and Sensitivity to Adversarial Perturbationscited by 55
  17. 2022Discovering the Hidden Vocabulary of DALLE-2cited by 43
  18. 2018Adversarial Over-Sensitivity and Over-Stability Strategies for Dialogue Modelscited by 26
  19. 2020To what extent do human explanations of model behavior align with actual model behavior?cited by 18
  20. 2020Semantics Altering Modifications for Evaluating Comprehension in Machine Readingcited by 13
  21. 2020Word Shape Matters: Robust Machine Translation with Visual Embeddingcited by 12
  22. 2020Undersensitivity in Neural Reading Comprehensioncited by 9
  23. 2021Modeling Disclosive Transparency in NLP Application Descriptionscited by 4

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.