PromptAttack: Prompt-based Attack for Language Models via Gradient Search
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
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021Learning to Prompt for Vision-Language Modelscited by 2,269
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2021GPT Understands, Toocited by 715
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2021Pre-Trained Models: Past, Present and Futurecited by 319
- 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
- 2021CPT: Colorful Prompt Tuning for Pre-trained Vision-Language Modelscited by 182
- 2016Crafting Adversarial Input Sequences for Recurrent Neural Networkscited by 102
Built on by
Citing papers per year: 2023: 8; 2024: 6; 2025: 1.
15 papers.
Sort:
By area:
- 2023On Evaluating Adversarial Robustness of Large Vision-Language Modelscited by 281
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Modelscited by 29
- 2023Attacks in Adversarial Machine Learning: A Systematic Survey from the Life-cycle Perspectivecited by 19
- 2023Mutual-modality Adversarial Attack with Semantic Perturbationcited by 14
- 2023Forcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attackscited by 9
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuningcited by 9
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attackscited by 9
- 2024In-Context Learning May Not Elicit Trustworthy Reasoning: A-Not-B Errors in Pretrained Language Modelscited by 8
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerationscited by 8
- 2025Adversarial Attacks against Neural Ranking Models via In-Context Learningcited by 4
- 2023COVER: A Heuristic Greedy Adversarial Attack on Prompt-based Learning in Language Modelscited by 3
- 2023TARGET: Template-Transferable Backdoor Attack Against Prompt-based NLP Models via GPT4cited by 3
3 more
- 2025Adversarial Attacks against Neural Ranking Models via In-Context Learning21 Aug 2025
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations9 Oct 2024
- 2024In-Context Learning May Not Elicit Trustworthy Reasoning: A-Not-B Errors in Pretrained Language Models23 Sep 2024
- 2024Can Reinforcement Learning Unlock the Hidden Dangers in Aligned Large Language Models?5 Aug 2024
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attacks17 Jul 2024
- 2024Towards Universal and Black-Box Query-Response Only Attack on LLMs with QROA4 Jun 2024
- 2024textitLinkPrompt: Natural and Universal Adversarial Attacks on Prompt-based Language Models25 Mar 2024
- 2023Mutual-modality Adversarial Attack with Semantic Perturbation20 Dec 2023
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuning16 Dec 2023
- 2023Forcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attacks7 Dec 2023
- 2023TARGET: Template-Transferable Backdoor Attack Against Prompt-based NLP Models via GPT429 Nov 2023
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Models12 Jun 2023
- 2023Forcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attackscited by 9
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attackscited by 9
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerationscited by 8
- 2023TARGET: Template-Transferable Backdoor Attack Against Prompt-based NLP Models via GPT4cited by 3
- 2024Towards Universal and Black-Box Query-Response Only Attack on LLMs with QROAcited by 3
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations9 Oct 2024
- 2024Turning Generative Models Degenerate: The Power of Data Poisoning Attacks17 Jul 2024
- 2024Towards Universal and Black-Box Query-Response Only Attack on LLMs with QROA4 Jun 2024
- 2023Forcing Generative Models to Degenerate Ones: The Power of Data Poisoning Attacks7 Dec 2023
- 2023TARGET: Template-Transferable Backdoor Attack Against Prompt-based NLP Models via GPT429 Nov 2023
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Modelscited by 29
- 2023Attacks in Adversarial Machine Learning: A Systematic Survey from the Life-cycle Perspectivecited by 19
- 2023Mutual-modality Adversarial Attack with Semantic Perturbationcited by 14
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuningcited by 9
- 2025Adversarial Attacks against Neural Ranking Models via In-Context Learningcited by 4
- 2023COVER: A Heuristic Greedy Adversarial Attack on Prompt-based Learning in Language Modelscited by 3
- 2024textitLinkPrompt: Natural and Universal Adversarial Attacks on Prompt-based Language Modelscited by 3
- 2025Adversarial Attacks against Neural Ranking Models via In-Context Learning21 Aug 2025
- 2024textitLinkPrompt: Natural and Universal Adversarial Attacks on Prompt-based Language Models25 Mar 2024
- 2023Mutual-modality Adversarial Attack with Semantic Perturbation20 Dec 2023
- 2023TrojFSP: Trojan Insertion in Few-shot Prompt Tuning16 Dec 2023
- 2023TrojLLM: A Black-box Trojan Prompt Attack on Large Language Models12 Jun 2023
- 2023COVER: A Heuristic Greedy Adversarial Attack on Prompt-based Learning in Language Models9 Jun 2023
- 2023Attacks in Adversarial Machine Learning: A Systematic Survey from the Life-cycle Perspective19 Feb 2023