CoEvolve: Training LLM Agents via Agent-Data Mutual Evolution

Shidong Yang, Ziyu Ma, Tongwen Huang, Yiming Hu, Yong Wang, Xiangxiang ChuarXiv 2026

TL;DR

CoEvolve introduces a closed-loop framework where an LLM agent and its training data distribution evolve together. By detecting behavioral weaknesses—such as forgetting previously learned skills or showing instability—during reinforcement learning, it dynamically synthesizes and validates new tasks to continuously challenge and improve the agent without human intervention.

What Problem Does This Paper Address?

Training Large Language Model (LLM) agents via reinforcement learning typically relies on static datasets, whether they are human-curated expert trajectories or synthetic data generated through unguided random exploration. This creates a major bottleneck: static data cannot adapt to an agent's shifting capabilities during training.

As an agent improves, it continues to practice tasks it has already mastered while leaving complex, long-tail, or multi-step environment interactions completely unaddressed. To build truly robust agents, we need a dynamic curriculum that automatically discovers and targets the agent's evolving failure modes.

Comparison of training paradigms

Methods

The authors propose CoEvolve, an autonomous, closed-loop agent-data co-evolution framework that operates in three iterative stages:

  1. Training and Signal Extraction: The agent is optimized using Group Relative Policy Optimization (GRPO). During environment rollouts, the framework monitors trajectories to extract three distinct behavioral weakness signals:
  2. Forgetting Signals: Tasks the agent previously succeeded at but now fails due to policy drift.
  3. Boundary Signals: Tasks showing high outcome variability (borderline success/failure), indicating proximity to a decision boundary.
  4. Rare Signals: Infrequent but recurring action patterns that signal systematic underexploration.
  5. Signal-Guided Environment Re-exploration: An external exploration LLM (e.g., Qwen3-Max) analyzes these failure trajectories, summarizes the root cause of the weakness, and performs targeted multi-round, multi-step re-exploration in the environment to uncover alternative successful paths.
  6. Task Abstraction and Validation: The newly discovered interactions are abstracted into clean task-solution pairs. These are validated through actual environment execution; only successful or positive-reward tasks are appended to the training set, dynamically reshaping the data distribution for the next training iteration.
Figure 2: Overview of the CoEvolve framework. The agent is trained with GRPO, and feedback signals are extracted from rollout trajectories (Stage 1). These signals guide signal-conditioned re-exploration via an LLM (Stage 2) and are transformed into validated tasks to evolve the training set (Stage 3). This closed-loop process enables CoEvolve without human supervision.

Datasets

The framework was evaluated across several highly interactive agent benchmarks:

  • AppWorld: A simulated ecosystem of digital services (Spotify, calendar, mail) where agents execute multi-step tasks via Python API calls. Evaluated on both Test-Normal and Test-Challenge splits.
  • BFCL (Berkeley Function Calling Leaderboard) v3: A benchmark focusing on complex, multi-turn tool use and function-calling accuracy.
  • ALFWorld & WebShop: Used in the appendix to evaluate cross-domain transferability beyond API-centric environments (household tasks and e-commerce navigation, respectively).

Key Insights and Ideas

  • Curriculum via Failure: Instead of relying on complex, human-engineered curricula, an agent's own algorithmic failures provide the perfect, automated blueprint for targeted data generation.
  • The Dominance of Boundary Conditions: Analysis revealed that "Boundary Signals" make up the largest share of agent weaknesses (~45-51%), showing that agents struggle most with instability near success thresholds rather than completely random failures.
Figure 4: Distribution of extracted signals on AppWorld and BFCL. Boundary signals dominate (51.4% on Ap- pWorld and 45.5% on BFCL), followed by forgetting and rare signals.
  • Structural Complexity Emergence: Feedback-driven synthesis naturally shifts the training data toward longer interaction sequences and multi-step dependencies, automatically filling the gap left by short-horizon static datasets.
  • True Novelty, Not Memorization: Measuring the cosine similarity between synthesized tasks and validation sets proved that CoEvolve generates genuinely novel tasks (similarity peaking around 0.4–0.7) rather than near-duplicates, preserving data diversity.

Key Results

  • Substantial Performance Gains: CoEvolve achieved massive absolute improvements over base models across multiple scales: +19.43% for Qwen2.5-7B, +15.58% for Qwen3-4B, and +18.14% for Qwen3-30B-A3B.
  • Beating Closed-Source Giants: Mid-sized open models trained with CoEvolve outperformed massive closed-source models. For instance, Qwen3-4B with CoEvolve achieved a 63.00% success rate on BFCL-V3, surpassing GPT-4 (54.00%) and Gemini-2.5-Flash (41.50%).
  • High Cost-Efficiency: Despite the continuous generation loop, CoEvolve only introduces about ~10% additional computational overhead compared to standard GRPO training, making it highly practical.
Figure 3: Dynamics of CoEvolve during training. (a) Performance comparison between CoEvolve and the baseline on AppWorld as training progresses. (b) Number of detected signals across training steps. (c) Evolution of the data distribution, showing the relationship between original and synthesized tasks at different stages. (d) Conversion from detected weakness signals to newly generated training tasks over training. Together, the figure shows how feedback signals guide data generation, reshape the data distribution, and support stable performance improvement.

Limitations and Future Work

  • Signal Coverage: The framework currently relies on only three behavioral signals (forgetting, boundary, rare), which might miss other nuanced types of agent underperformance.
  • Early-Stage Noise: In the initial phases of training when the agent's policy is highly immature, the extracted feedback signals can be noisy or incomplete, potentially misguiding the exploration model.
  • Safety and Alignment: Because the data evolution loop is entirely autonomous, deploying CoEvolve in safety-critical or adversarial environments would require integrating explicit safety filters and risk-triggered human reviews to keep the adaptation controllable.

Summary updated

BibTeX
@misc{yang2026coevolve,
  author = {Shidong Yang and Ziyu Ma and Tongwen Huang and Yiming Hu and Yong Wang and Xiangxiang Chu},
  title = {{CoEvolve: Training LLM Agents via Agent-Data Mutual Evolution}},
  year = {2026},
  eprint = {2604.15840},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.15840},
}
Figure