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

PandaGuard:针对越狱攻击的LLM安全性系统评估

PandaGuard: Systematic Evaluation of LLM Safety against Jailbreaking Attacks

Beijing Institute of AI Safety and Governance (Beijing-AISI)(北京人工智能安全与治理研究院);Beijing Key Laboratory of Safe AI and Superalignment(北京安全人工智能与超对齐重点实验室);BrainCog Lab, CASIA(CASIA脑认知实验室)

Guobin Shen, Dongcheng Zhao, Linghao Feng, Xiang He, Jihang Wang, Sicheng Shen, Haibo Tong, Yiting Dong, Jindong Li, Xiang Zheng, Yi Zeng

AI总结:

PandaGuard提出统一模块化框架,系统评估LLM越狱攻击与防御,并构建PandaBench基准,覆盖49个模型、19种攻击和12种防御,揭示无单一最优防御及评判分歧问题。

摘要:

大型语言模型(LLM)已展现出卓越的能力,但仍易受称为“越狱”的对抗性提示攻击,此类攻击可绕过安全对齐并引发有害输出。尽管LLM安全研究投入日益增多,现有评估往往零散,聚焦于孤立的攻击或防御技术,缺乏系统性、可复现的分析。在本工作中,我们提出PandaGuard,一个统一且模块化的框架,将LLM越狱安全建模为包含攻击者、防御者和评判者的多智能体系统。我们的框架实现了19种攻击方法和12种防御机制,以及多种评判策略,全部集成于灵活的插件架构中,支持多样化的LLM接口、多种交互模式和配置驱动的实验,从而增强可复现性和实际部署。基于此框架,我们开发了PandaBench,一个综合基准,评估这些攻击/防御方法在49个LLM和多种评判方法上的交互,执行需超过30亿个令牌。我们广泛的评估揭示了对模型脆弱性、防御成本-性能权衡和评判一致性的关键见解。我们发现,没有任何单一防御在所有维度上都是最优的,且评判分歧引入了安全评估中的显著方差。我们发布代码、配置和评估结果,以支持LLM安全领域透明且可复现的研究。

英文摘要:

Large language models (LLMs) have achieved remarkable capabilities but remain vulnerable to adversarial prompts known as jailbreaks, which can bypass safety alignment and elicit harmful outputs. Despite growing efforts in LLM safety research, existing evaluations are often fragmented, focused on isolated attack or defense techniques, and lack systematic, reproducible analysis. In this work, we introduce PandaGuard, a unified and modular framework that models LLM jailbreak safety as a multi-agent system comprising attackers, defenders, and judges. Our framework implements 19 attack methods and 12 defense mechanisms, along with multiple judgment strategies, all within a flexible plugin architecture supporting diverse LLM interfaces, multiple interaction modes, and configuration-driven experimentation that enhances reproducibility and practical deployment. Built on this framework, we develop PandaBench, a comprehensive benchmark that evaluates the interactions between these attack/defense methods across 49 LLMs and various judgment approaches, requiring over 3 billion tokens to execute. Our extensive evaluation reveals key insights into model vulnerabilities, defense cost-performance trade-offs, and judge consistency. We find that no single defense is optimal across all dimensions and that judge disagreement introduces nontrivial variance in safety assessments. We release the code, configurations, and evaluation results to support transparent and reproducible research in LLM safety.

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

↑