mlsanityData to 7 Oct 2026

PromptAttack: Prompt-based Attack for Language Models via Gradient Search

arXiv 2209.01882 ↗First posted 5 Sep 2022cs.CL cs.AI cs.CRcited by 15

Not on the map. Why?

Abstract (arXiv)

As the pre-trained language models (PLMs) continue to grow, so do the hardware and data requirements for fine-tuning PLMs. Therefore, the researchers have come up with a lighter method called textitPrompt Learning. However, during the investigations, we observe that the prompt learning methods are vulnerable and can easily be attacked by some illegally constructed prompts, resulting in classification errors, and serious security problems for PLMs. Most of the current research ignores the security issue of prompt-based methods. Therefore, in this paper, we propose a malicious prompt template construction method (PromptAttack) to probe the security performance of PLMs. Several unfriendly template construction approaches are investigated to guide the model to misclassify the task. Extensive experiments on three datasets and three PLMs prove the effectiveness of our proposed approach PromptAttack. We also conduct experiments to verify that our method is applicable in few-shot scenarios.

Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 14 of its 18 references that are in the map. First posted on arXiv 5 Sep 2022.

Builds on

14 of 18 references.

References · 14

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  3. 2021Learning to Prompt for Vision-Language Modelscited by 2,269
  4. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  5. 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
  6. 2021GPT Understands, Toocited by 715
  7. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
  8. 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
  9. 2021Pre-Trained Models: Past, Present and Futurecited by 319
  10. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  11. 2021CPT: Colorful Prompt Tuning for Pre-trained Vision-Language Modelscited by 182
  12. 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
2 more
  1. 2020Automatically Identifying Words That Can Serve as Labels for Few-Shot Text Classificationcited by 98
  2. 2022Exploring the Universal Vulnerability of Prompt-based Learning Paradigmcited by 56

Built on by

Cited by year

Citing papers per year: 2023: 8; 2024: 6; 2025: 1.

15 papers.

Sort:

By area: