Improving adversarial example generation against safety-aligned LLMsImproved Generation of Adversarial Examples Against Safety-aligned LLMs
Researchers propose introducing transfer attack ideas originally used to attack black-box image classification models (Skip Gradient Method and Intermediate Level Attack) into gradient-based adversarial prompt generation to improve automated jailbreak effectiveness against safety-aligned LLMs. The authors state that 87% of the query-specific adversarial suffixes generated by their combined method can make Llama-2-7B-Chat output text exactly matching the target string on AdvBench, 33% higher than the GCG baseline. On Llama-2-7B-Chat, the method raises the attack success rate of query-specific prompts from GCG's 38% to 68%, and the attack success rate of universal adversarial prompts from 26.68% to 60.32%, an absolute increase of more than 30%. The authors state that these improvements bring no significant computational overhead, and the code has been released on GitHub.