AegisLLM: 面向大语言模型安全中自反思防御的可扩展智能体系统
AegisLLM: Scaling Agentic Systems for Self-Reflective Defense in LLM Security
AI总结:
本研究提出协同多智能体防御系统AegisLLM,通过多角色智能体协作与测试阶段自动化提示优化,无需重训练模型即可增强LLM安全性,在遗忘与越狱基准上表现优于传统方法。
摘要:
我们提出了AegisLLM,一种用于对抗对抗性攻击与信息泄露的协同多智能体防御系统。在AegisLLM中,由编排器、偏转器、响应器和评估器组成的自主智能体结构化工作流协同工作,确保大语言模型(LLM)输出安全合规,同时通过提示优化实现持续自我提升。我们表明,在测试阶段扩展智能体推理系统——既通过增设额外智能体角色,也通过利用自动化提示优化(如DSPy)——可在不损害模型效用的前提下大幅增强鲁棒性。这种测试阶段防御无需重新训练模型,即可实时适配不断演变的攻击。我们在包括遗忘(unlearning)和越狱(jailbreaking)在内的关键威胁场景下开展了综合评估,验证了AegisLLM的有效性。在WMDP遗忘基准测试中,AegisLLM仅用20个训练样本、不到300次语言模型(LM)调用就实现了近乎完美的遗忘效果。在越狱基准测试方面,我们在StrongReject上的表现相比基础模型提升了51%;在PHTest上的错误拒绝率仅为7.9%,而同类方法的错误拒绝率为18%-55%。我们的研究结果凸显了自适应智能体推理相较于静态防御的优势,确立了AegisLLM作为基于模型修改的传统方法的有力运行时替代方案的地位。代码可在https://github.com/zikuicai/aegisllm获取。
英文摘要:
We introduce AegisLLM, a cooperative multi-agent defense against adversarial attacks and information leakage. In AegisLLM, a structured workflow of autonomous agents - orchestrator, deflector, responder, and evaluator - collaborate to ensure safe and compliant LLM outputs, while self-improving over time through prompt optimization. We show that scaling agentic reasoning system at test-time - both by incorporating additional agent roles and by leveraging automated prompt optimization (such as DSPy)- substantially enhances robustness without compromising model utility. This test-time defense enables real-time adaptability to evolving attacks, without requiring model retraining. Comprehensive evaluations across key threat scenarios, including unlearning and jailbreaking, demonstrate the effectiveness of AegisLLM. On the WMDP unlearning benchmark, AegisLLM achieves near-perfect unlearning with only 20 training examples and fewer than 300 LM calls. For jailbreaking benchmarks, we achieve 51% improvement compared to the base model on StrongReject, with false refusal rates of only 7.9% on PHTest compared to 18-55% for comparable methods. Our results highlight the advantages of adaptive, agentic reasoning over static defenses, establishing AegisLLM as a strong runtime alternative to traditional approaches based on model modifications. Code is available at https://github.com/zikuicai/aegisllm
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。