AttnGCG: Enhancing jailbreak attacks on LLMs using attention manipulationAttnGCG: Enhancing Jailbreaking Attacks on LLMs with Attention Manipulation
AI summary
The researchers propose AttnGCG, a method that enhances GCG-based jailbreak attacks by manipulating model attention scores, improving on average by about 7% on the Llama-2 series and about 10% on the Gemma series. The paper first observes that attacks are less effective when the model pays more attention to the system prompt used for safety alignment, and then adjusts attention scores accordingly. The authors report that the method also transfers to unseen harmful targets and black-box models such as GPT-3.5 and GPT-4, and state that its attention score visualizations are more interpretable. Code at https://github.com/UCSC-VLAA/AttnGCG-attack。