AgentSafeEvo: Adversarial Co-Evolution for LLM Agent Safety

Chenxu Wang, Xiaoyu Wen, Han Qi, Ziyuan Zhou, Cheng Jin +2 more
10/14/2026
cs.AI

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026agentsafeevo,
  title  = {AgentSafeEvo: Adversarial Co-Evolution for LLM Agent Safety},
  author = {Chenxu Wang and Xiaoyu Wen and Han Qi and Ziyuan Zhou and Cheng Jin and Chaochao Lu and Qiaosheng Zhang},
  year   = {2026},
  eprint = {2610.19422},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.19422v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.19422.svg)](https://codeofpaper.com/paper/2610.19422)

Discussion