arXiv:2504.19019cs.CLcs.AI2025-04被引 2

用图结构生成更高效的黑盒越狱提示,提升模型安全测试效果

Graph of Attacks: Improved Black-Box and Interpretable Jailbreaks for LLMs

  • 基于思想图框架,动态融合多条攻击路径
  • 仅需少量查询即达五倍于现有方法的越狱成功率
  • 无需模型参数,生成可读性强的越狱提示,适合安全评估者

大型语言模型(LLMs)虽具强大能力,但仍易受对抗性越狱攻击影响,导致安全机制失效。为提升模型鲁棒性,本文提出Graph of ATtacks(GoAT),利用思想图框架[Besta et al., 2024]生成对抗性提示以测试模型对齐能力。相比现有方法,GoAT在较少查询次数下实现高达五倍的越狱成功率,尤其在鲁棒模型如Llama上表现突出。其核心在于采用图结构而非树状推理,使多条攻击路径可感知彼此进展,实现协同优化与深度探索。该方法在不访问目标模型参数的前提下,生成高质量、人类可读的越狱提示,具备强黑盒特性。技术上,通过迭代合并与优化思想节点,促进不同路径间的协同增益。代码已开源:https://github.com/GoAT-pydev/Graph_of_Attacks。

原文摘要 · Abstract (English)

The challenge of ensuring Large Language Models (LLMs) align with societal standards is of increasing interest, as these models are still prone to adversarial jailbreaks that bypass their safety mechanisms. Identifying these vulnerabilities is crucial for enhancing the robustness of LLMs against such exploits. We propose Graph of ATtacks (GoAT), a method for generating adversarial prompts to test the robustness of LLM alignment using the Graph of Thoughts framework [Besta et al., 2024]. GoAT excels at generating highly effective jailbreak prompts with fewer queries to the victim model than state-of-the-art attacks, achieving up to five times better jailbreak success rate against robust models like Llama. Notably, GoAT creates high-quality, human-readable prompts without requiring access to the targeted model's parameters, making it a black-box attack. Unlike approaches constrained by tree-based reasoning, GoAT's reasoning is based on a more intricate graph structure. By making simultaneous attack paths aware of each other's progress, this dynamic framework allows a deeper integration and refinement of reasoning paths, significantly enhancing the collaborative exploration of adversarial vulnerabilities in LLMs. At a technical level, GoAT starts with a graph structure and iteratively refines it by combining and improving thoughts, enabling synergy between different thought paths. The code for our implementation can be found at: https://github.com/GoAT-pydev/Graph_of_Attacks.

越狱攻击黑盒测试思想图安全评估

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。