Summary
This paper introduces a new strategy called AttnGCG, which builds on the existing Greedy Coordinate Gradient (GCG) method. It focuses on improving jailbreaking attacks on large language models (LLMs) by manipulating attention scores to optimize adversarial prompts. The study finds that increasing attention to adversarial suffixes can enhance attack success rates (ASR) and demonstrates that this approach outperforms traditional GCG in both direct and transfer attacks.
Strengths
1. The study utilizes the attention mechanism of LLMs to guide the optimization of jailbreak prompts, offering a new perspective on how adversarial inputs can bypass safety measures.
2. The authors perform evaluations in both white-box and transfer attack settings, showcasing the robustness and transferability of AttnGCG.
3. Attention heatmap visualizations enhance the interpretability of the attack process, providing insights into why specific jailbreak attempts succeed.
4. The presentation is clear and well-structured, making it easy to follow and understand the main contributions of this work.
Weaknesses
1. The improvements of AttnGCG over GCG are relatively limited: The experimental results indicate that the performance gains of AttnGCG over GCG are under 10% in most cases.
2. Limitations of baseline comparisons: The experiments only compare AttnGCG with GCG. To strengthen the paper's credibility, it would be beneficial for the authors to include comparisons with other existing jailbreak attack methods, such as AutoDAN [1], COLD-Attack [2], AdvPrompter [3], and AmpleGCG [4]. This would help position AttnGCG's relative advantages and uniqueness within the current research landscape.
3. Lack of evaluation under safety system prompts: The experiments focus solely on the attack efficacy without considering scenarios where safety system prompts are in use. To validate the real-world applicability of AttnGCG, testing its performance with active safety system prompts, especially in comparison with methods from [5,6,7], would help determine if it maintains or improves upon the advantages over GCG under enhanced security measures.
4. Applicability to the latest models: Although the paper mentions that AttnGCG is less effective on the latest models (e.g., Gemini-1.5-Pro-latest and GPT-4o), there is no in-depth analysis or discussion provided. More research and data are needed to explore potential improvements or strategies to address these limitations, ensuring better applicability and robustness in future versions.
[1] Liu X, Xu N, Chen M, et al. Autodan: Generating stealthy jailbreak prompts on aligned large language models[J]. arXiv preprint arXiv:2310.04451, 2023.
[2] Guo X, Yu F, Zhang H, et al. Cold-attack: Jailbreaking llms with stealthiness and controllability[J]. arXiv preprint arXiv:2402.08679, 2024.
[3] Paulus A, Zharmagambetov A, Guo C, et al. Advprompter: Fast adaptive adversarial prompting for llms[J]. arXiv preprint arXiv:2404.16873, 2024.
[4] Liao Z, Sun H. Amplegcg: Learning a universal and transferable generative model of adversarial suffixes for jailbreaking both open and closed llms[J]. arXiv preprint arXiv:2404.07921, 2024.
[5] Xie Y, Yi J, Shao J, et al. Defending chatgpt against jailbreak attack via self-reminders[J]. Nature Machine Intelligence, 2023, 5(12): 1486-1496.
[6] Zhang Z, Yang J, Ke P, et al. Defending large language models against jailbreaking attacks through goal prioritization[J]. arXiv preprint arXiv:2311.09096, 2023.
[7] Zhou Y, Han Y, Zhuang H, et al. Defending jailbreak prompts via in-context adversarial game[J]. arXiv preprint arXiv:2402.13148, 2024.