Evo$^2$: Evolving the Evolver through Weight-Harness Co-Evolution

Chejian Xu, Shujian Zhang, Wenxuan Zhou, John Lambert, Beck Chen, Bo Li, Andrew Hard, Rajiv MathewsarXiv 2026

TL;DR

Evo$^2$ is a novel framework for creating self-evolving AI agents that improve both their internal "brains" (model weights) and their external "tools" (the agent harness) simultaneously. By training a single model to act as both a Proposer of code edits and a Reflector on execution feedback, Evo$^2$ achieves state-of-the-art performance on coding and memory benchmarks, even doubling the performance of proprietary models like GPT-5-mini through harness evolution alone.

What Problem Does This Paper Address?

The quest for autonomous AI agents often focuses on "self-evolution"—the ability of a system to improve without human intervention. Currently, researchers usually take one of two paths:

  1. Weight Updates: Training the model on its own successful trajectories (e.g., STaR).
  2. Harness Improvements: Using a model to rewrite the "harness"—the Python code that manages prompts, tool calls, and control flow—to make the agent more effective.

The authors argue that these two paths are treated as separate silos, overlooking a crucial synergy: a model’s ability to propose useful edits depends on its internal weights, and the quality of the data available for training those weights depends on the effectiveness of the harness. Evo$^2$ bridges this gap through weight-harness co-evolution, where the model learns to become a better "evolver" while simultaneously discovering better agent architectures.

Methods

Evo$^2$ introduces a unified approach to self-improvement through several key components:

1. The Dual-Role Evolver

Instead of using different models for different tasks, a single policy serves two roles:

  • The Proposer: Writes code edits to modify the agent harness.
  • The Reflector: Examines execution traces (successes and failures) to diagnose problems and provide directives for further revision or "crossover."
The high-level concept of weight-harness co-evolution.

2. Tree-Based Harness Evolution & Crossover

Harness evolution is organized as a tree search. To prevent the search from getting stuck in local optima, the authors introduce Crossover Searching. The Reflector can identify a successful strategy discovered in one branch of the tree and direct the Proposer to integrate it into a different harness branch.

3. EvoTIDE Training Pipeline

To update the model weights, the authors developed EvoTIDE (Tree-guided Interleaved Dual-role Evolution). This pipeline involves:

  • Trajectory Recovery: Techniques like "edit extraction" (pulling code from chat logs) and "prefix continuation" (fixing malformed outputs) to salvage training data from failed rollouts.
  • Interleaved GRPO: The model is trained using Group Relative Policy Optimization, alternating between its Proposer and Reflector roles.
  • Dynamic Parent Sampling: The model is trained on a "pool" of harnesses at different performance levels, teaching it how to both refine strong candidates and repair broken ones.
The detailed pipeline for harness evolution and trajectory collection.

Datasets

The framework was evaluated across two primary domains:

  • Coding: Polyglot, SWE-bench Verified (software engineering), and LiveCodeBench.
  • Memory: LoCoMo (Long-Context Memory) and LongMemEval.

The authors also tested the transferability of evolved harnesses—taking a harness evolved for one benchmark and applying it to another without further training.

Key Insights and Ideas

  • The Evolver is a Learnable Skill: Proposing edits and reflecting on feedback are not just static capabilities; they are skills that improve significantly when the model is trained on the outcomes of its own evolution attempts.
  • Efficiency Gains: Interestingly, evolved harnesses don't just perform better; they are often more efficient. The Evo$^2$ champion harness used fewer LLM calls and tokens than unevolved baselines while achieving higher accuracy.
  • Harness Transferability: A harness evolved on one coding task (like Polyglot) remains highly effective when moved to a different task (like SWE-bench), suggesting that the evolution process discovers generalizable agentic strategies.
  • Proprietary Model Boost: Even when model weights are fixed (as with proprietary APIs), the dual-role search framework significantly improves performance, nearly doubling the success rate of a GPT-5-mini agent on SWE-bench.

Key Results

Evo$^2$ consistently outperformed existing self-evolution baselines (SICA, DGM, HGM, GEA) across all benchmarks.

Comparison of Evo2 against baselines on coding benchmarks.
  • Polyglot: Achieved 82.1% Pass@1, compared to 62.6% for the strongest baseline.
  • SWE-bench Verified: Resolved 48.3% of instances, significantly higher than the 41.0% baseline.
  • Memory Tasks: On LoCoMo, it achieved 60.4 F1, and transferred to LongMemEval with a score of 71.5%, outperforming all competitors.
  • Weight Evolution Impact: Training the weights via EvoTIDE provided a massive boost, adding +16.3 points on Polyglot compared to using the untrained base model for evolution.

Limitations and Future Work

  • Fixed Executor: During the co-evolution process, the "inner" task executor (the model actually solving the coding problems) remains fixed. Future work could explore evolving the executor and the harness/evolver simultaneously.
  • Initial Compute: The training pipeline (SFT + GRPO) requires significant initial computation to "warm up" the evolver.
  • Domain Specificity: While the authors showed success in coding and memory, the framework's performance in more creative or subjective domains (like creative writing or open-ended reasoning) remains to be seen.

Summary updated

BibTeX
@misc{xu2026evo,
  author = {Chejian Xu and Shujian Zhang and Wenxuan Zhou and John Lambert and Beck Chen and Bo Li and Andrew Hard and Rajiv Mathews},
  title = {{Evo$^2$: Evolving the Evolver through Weight-Harness Co-Evolution}},
  year = {2026},
  eprint = {2610.13025},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.13025},
}
Figure