arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.18638cs.CRcs.AIcs.CL
收藏

带剪枝的攻击图:优化隐身越狱提示生成以增强LLM内容审核

Graph of Attacks with Pruning: Optimizing Stealthy Jailbreak Prompt Generation for Enhanced LLM Content Moderation

Amazon Bedrock Science(亚马逊Bedrock科学);Drexel University(德雷塞尔大学);University of Virginia(弗吉尼亚大学)

Daniel Schwartz, Dmitriy Bespalov, Zhe Wang, Ninad Kulkarni, Yanjun Qi

AI总结:

针对LLM对抗性误用问题,提出GAP框架,通过互联图结构实现攻击路径知识共享,生成隐身越狱提示,攻击成功率提高20.8%且查询成本降62.7%,还可改进内容审核系统的检测性能。

摘要:

随着大型语言模型(LLMs)的日益普及,确保其抵御对抗性误用的鲁棒性至关重要。本文介绍了GAP(带剪枝的攻击图)框架,这是一种生成隐身越狱提示以评估和增强LLM防护措施的先进方法。GAP通过实现互联图结构解决现有基于树的LLM越狱方法的局限性,该结构支持攻击路径间的知识共享。实验评估表明GAP优于现有技术,攻击成功率提高20.8%,同时查询成本降低62.7%。GAP在攻击开源和闭源LLM方面持续优于最先进方法,攻击成功率>96%。此外,我们提出了专用变体,如用于自动种子生成的GAP-Auto和用于多模态攻击的GAP-VLM。GAP生成的提示在改进内容审核系统方面非常有效,用于微调时真阳性检测率提高108.5%,准确率提高183.6%。我们的实现可在https://github.com/dsbuddy/GAP-LLM-Safety获取。

英文摘要:

As large language models (LLMs) become increasingly prevalent, ensuring their robustness against adversarial misuse is crucial. This paper introduces the GAP (Graph of Attacks with Pruning) framework, an advanced approach for generating stealthy jailbreak prompts to evaluate and enhance LLM safeguards. GAP addresses limitations in existing tree-based LLM jailbreak methods by implementing an interconnected graph structure that enables knowledge sharing across attack paths. Our experimental evaluation demonstrates GAP's superiority over existing techniques, achieving a 20.8% increase in attack success rates while reducing query costs by 62.7%. GAP consistently outperforms state-of-the-art methods for attacking both open and closed LLMs, with attack success rates of >96%. Additionally, we present specialized variants like GAP-Auto for automated seed generation and GAP-VLM for multimodal attacks. GAP-generated prompts prove highly effective in improving content moderation systems, increasing true positive detection rates by 108.5% and accuracy by 183.6% when used for fine-tuning. Our implementation is available at https://github.com/dsbuddy/GAP-LLM-Safety.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑