Large language models can fool themselves: a prompt-based adversarial attackAn LLM can Fool Itself: A Prompt-Based Adversarial Attack
The paper proposes PromptAttack, which converts adversarial text attacks into attack prompts, letting the victim LLM itself output adversarial examples that can fool itself. The prompt consists of three parts: the original input, the attack goal, and attack guidance, where the attack guidance gives perturbation instructions at the character, word, and sentence levels respectively. The paper uses a fidelity filter to maintain the original semantics of the adversarial examples, and enhances the attack effect by ensembling adversarial examples at different perturbation levels. Experiments on Llama2 and GPT-3.5 show that the attack success rate of PromptAttack is consistently higher than AdvGLUE and AdvGLUE++; the paper also mentions that a single simple emoji can mislead GPT-3.5 into making an incorrect prediction.