Skip to content

Prompt-based adversarial example generation and robustness enhancement methodsA Prompting-based Approach for Adversarial Example Generation and Robustness Enhancement

arXiv· arXiv:2203.10714· Yuting Yang, Pei Huang, Juan Cao, Jintao Li, Yun Lin, Jin Song Dong, Feifei Ma, Jian Zhang·Indexed by this site · 26 days ago· Originally publishedAttacks
AI summary

The researchers propose a prompt-based adversarial attack method that constructs a malicious prompt for each sample and, guided by a malicious objective, generates adversarial examples via mask filling, and they present accompanying robustness enhancement techniques. The attack targets inherent vulnerabilities of NLP models; as long as the victim model is based on a pretrained language model (PLM), adversarial examples can be generated without interacting with it. The accompanying prompt-based adversarial training method does not actually generate adversarial examples and can be efficiently applied to large-scale training sets. Experimental results show that the attack method achieves a high attack success rate, the generated adversarial examples are more diverse, fluent and natural, and the robustness enhancement method can significantly improve the model's ability to resist adversarial attacks.

Read originalarxiv.org