mlsanityData to 14 Oct 2026

A Prompting-based Approach for Adversarial Example Generation and Robustness Enhancement

arXiv 2203.10714 ↗First posted 21 Mar 2022cs.CLcited by 12

Not on the map. Why?

Abstract (arXiv)

Recent years have seen the wide application of NLP models in crucial areas such as finance, medical treatment, and news media, raising concerns of the model robustness and vulnerabilities. In this paper, we propose a novel prompt-based adversarial attack to compromise NLP models and robustness enhancement technique. We first construct malicious prompts for each instance and generate adversarial examples via mask-and-filling under the effect of a malicious purpose. Our attack technique targets the inherent vulnerabilities of NLP models, allowing us to generate samples even without interacting with the victim NLP model, as long as it is based on pre-trained language models (PLMs). Furthermore, we design a prompt-based adversarial training method to improve the robustness of PLMs. As our training method does not actually generate adversarial samples, it can be applied to large-scale training sets efficiently. The experimental results show that our attack method can achieve a high attack success rate with more diverse, fluent and natural adversarial examples. In addition, our robustness enhancement method can significantly improve the robustness of models to resist adversarial attacks. Our work indicates that prompting paradigm has great potential in probing some fundamental flaws of PLMs and fine-tuning them for downstream tasks.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 17 of its 30 references that are in the map. First posted on arXiv 21 Mar 2022.

Builds on

17 of 30 references.

References · 17

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
  3. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
  4. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  5. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
  6. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 938
  7. 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
  8. 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
  9. 2017Supervised Learning of Universal Sentence Representations from Natural Language Inference Datacited by 432
  10. 2018Generating Natural Language Adversarial Examplescited by 424
  11. 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 163
  12. 2020GSum: A General Framework for Guided Neural Abstractive Summarizationcited by 129
5 more
  1. 2021Dialogue State Tracking with a Language Model using Schema-Driven Promptingcited by 94
  2. 2018On Adversarial Examples for Character-Level Neural Machine Translationcited by 85
  3. 2019Learning to Discriminate Perturbations for Blocking Adversarial Attacks in Text Classificationcited by 57
  4. 2020Frequency-Guided Word Substitutions for Detecting Textual Adversarial Examplescited by 54
  5. 2021Using Adversarial Attacks to Reveal the Statistical Bias in Machine Reading Comprehension Modelscited by 29

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 2; 2023: 4; 2024: 3; 2025: 2; 2026: 1.

12 papers.