AgentSafeEvo: Adversarial Co-Evolution for LLM Agent Safety
Chenxu Wang, Xiaoyu Wen, Han Qi, Ziyuan Zhou, Cheng Jin, Chaochao Lu, Qiaosheng Zhang
Abstract
Large language model (LLM) agents accomplish complex tasks through multi-turn interactions with external tools. However, malicious content embedded in user queries, tool descriptions, or environment observations can manipulate their decisions and induce unsafe actions. Adversarial co-evolution has emerged as an effective approach to strengthening LLM safety, but existing work primarily focuses on language-level safety or indirect prompt injection in web tasks. In this paper, we introduce AgentSafeEvo, a co-evolutionary reinforcement learning framework for agent safety built on an attacker-defender game spanning diverse tasks and attack types. The attacker learns to construct adversarial agent tasks that expose weaknesses in the defender's tool use, while the defender learns to complete tasks safely under these attacks. We further introduce learnability-guided task weighting, which uses within-task defender-reward variability to adjust each task's contribution to attacker and defender updates. Extensive experiments on agent safety and general capability benchmarks demonstrate that our method improves adversarial robustness while maintaining general agent capabilities.
Create a lesson
Related papers
Evolving Together, Failing Apart: The Skill-Policy Co-evolution Trap in Self-Improving Agents
Shared title terminologycs.AIYujie Feng, Xiaobin Wang, Jinluan Yang et al.
DoppelVet: Comparative Safety Verification for Self-Evolving Agents
Shared title terminologycs.AIYifan Duan, Du Yin, Siyuan Zheng et al.
STRIDE: Strategy-to-Tactics Retrieval-Guided Skill Disclosure and Evolution for Agentic Reinforcement Learning
Shared title terminologycs.AIShixin Hong, Wanqing Cui, Yibo Hu et al.
HookEvo: A Framework for Coordinated Plugin Evolution on Hook-Enabled Agent Runtimes
Shared title terminologycs.AIShengze Huang, Yanyu Mao, Xiaofei Yu et al.
Shortcut Sensitivity in Agent-Safety Evaluations
Shared title terminologycs.AIHasan Demirkiran, Jens Ernstberger
Recursive Reward Improvement via Adversarial Meta-Prompt Evolution
Shared title terminologycs.AIWei Dai, Qianchu Liu, Guanghui Qin et al.