Papers
arxiv:2610.19422

AgentSafeEvo: Adversarial Co-Evolution for LLM Agent Safety

Published on Oct 14
· Submitted by
CHENXU WANG
on Oct 15
Authors:
,
,
,
,

Abstract

AgentSafeEvo uses adversarial co-evolution to train LLM agents to resist malicious tool-use attacks across diverse tasks without sacrificing general capabilities.

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.

Community

Paper author Paper submitter

Hi, I’m one of the authors of AgentSafeEvo. We introduce an adversarial co-evolution framework that jointly trains attacker and defender LLM agents for safer multi-turn tool use. We evaluate across seven safety and capability benchmarks and release our code, models, and datasets to support further research: https://github.com/lalalamdbf/AgentSafeEvo.

Sign up or log in to comment

Models citing this paper 3

Datasets citing this paper 1

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2610.19422 in a Space README.md to link it from this page.

Collections including this paper 2