AegisLLM: Scaling Agentic Systems for Self-Reflective Defense in LLM Security
Zikui Cai, Shayan Shabihi, Bang An, Zora Che, Brian R. Bartoldson, Bhavya Kailkhura, Tom Goldstein, Furong Huang
BuildingTrust @ ICLR 2025
Abstract. Large Language Models (LLMs) are vulnerable to a range of threats, from adversarial attacks like jailbreaking to the leakage of sensitive information that should have been unlearned. Existing defense mechanisms are often static and require extensive model retraining, making them slow to adapt to evolving threats. To address this, we propose \ours, a cooperative multi-agent framework that provides adaptive, test-time defense for LLMs. At the core of \ours is a multi-agent system that can be optimized with a remarkably small number of examples to achieve strong performance on multiple, distinct security challenges. We demonstrate the effectiveness of \ours on two critical and distinct threats: unlearning and jailbreaking. On the WMDP unlearning benchmark, \ours achieves near-perfect unlearning (approaching 25% random chance) with only 20 training examples. For jailbreaking, our system improves defense by 51% over the base model on the StrongReject benchmark, while maintaining a low false refusal rate of only 7.9% on PHTest. Furthermore, we show that prompts optimized on one benchmark generalize effectively to others, underscoring the robustness of our approach. Our work highlights the significant advantages of adaptive, agentic reasoning and demonstrates the power of optimization for creating scalable and efficient LLM safety solutions. We provide our code at: https://anonymous.4open.science/r/aegisllm-11B0.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
Loading the discussion…