EvoIn: Bridging Evolution and Internalization for Agent Fine-Tuning

Shihan Dou, Shaofan Liu, Zhonghang Lu, Jiahang Lin, Shichun Liu, Binghai Wang, Jiajie Jin, Guanting Dong, Tao Gui, Qi Zhang, Xuanjing HuangarXiv 2026

TL;DR

EvoIn is a novel framework that improves AI agents by first "evolving" advanced decision-making procedures in an external scaffolding (the harness) and then "internalizing" those strategies into the model’s weights via fine-tuning. By rewriting execution traces to remove harness-specific jargon, EvoIn allows agents to retain sophisticated reasoning capabilities—like checking document length before choosing a search strategy—even when the external prompts are removed, leading to significant performance gains across both seen and unseen tasks.

What Problem Does This Paper Address?

Building a capable language agent involves two main components: the model (the brain) and the harness (the external system of prompts, tools, and workflows). Traditionally, researchers improve agents by either fine-tuning the model or engineering a better harness. While "co-evolution" (updating both) is becoming popular, it often results in a "potpourri" where the model becomes overly dependent on specific, complex external instructions.

The authors identify a critical gap: how can we make the model truly smarter so that it doesn't need a massive, task-specific prompt at inference time? The challenge lies in bridging the gap between explicit exploration (trying new strategies in the harness) and lasting capability gains (internalizing those strategies into the model's own reasoning).

Methods

The EvoIn framework operates in five distinct stages:

  1. Procedure Proposal: A "proposal agent" (Claude Opus 4.7) analyzes failure patterns in the current agent's execution traces and suggests harness updates—such as new workflows or refined tool instructions.
  2. Procedure Evaluation: These candidate harnesses are validated on a development set. The best-performing harness is retained.
  3. Procedure-Guided Sampling: The target model (e.g., Qwen3.5) uses the evolved harness to generate successful reasoning trajectories for training data.
  4. Rewriting (The TAILOR Pipeline): This is the core innovation. Trajectories generated under a complex harness often contain references to specific instructions (e.g., "As mandated in Step 0..."). The TAILOR pipeline rewrites these into self-contained traces where the logic is expressed as the model’s own internal reasoning. It also includes a "replay and repair" step to ensure the traces are executable under the original, simple seed harness.
  5. Procedure Internalization: The model is fine-tuned on these cleaned, rewritten traces.
Figure 1: Four paradigms for improving language agents. (A) Model fine-tuning updates the model while keeping the harness fixed. (B) Harness evolution updates the harness while keeping the model fixed. (C) Model–harness co-evolution updates both jointly. (D) EvoIn first evolves the harness to discover improved decision procedures, then internalizes the reusable procedures into the model and returns to the original harness. Flame icons and superscript ∗indicate updated components.

Datasets

The authors evaluated EvoIn across a massive range of tasks:

  • In-Domain (ID): 23 task categories organized into seven groups, including multi-document retrieval, evidence-grounded QA, and structured-data reasoning.
  • Out-of-Domain (OOD): Six diverse benchmarks to test generalization, including AA-LCR (long-context reasoning), LongBench v2, and MRCR (multi-turn conversation).
  • Model Families: While primarily tested on Qwen3.5-35B, the authors also demonstrated success with the Gemma-4-31B family.

Key Insights and Ideas

  • Rewriting is Essential: Without the rewriting step, fine-tuned models often "hallucinate" external instructions or try to call tools that don't exist in the production environment. Rewriting transforms "following orders" into "autonomous reasoning."
  • Adaptive Routing: One of the most interesting behaviors learned was "adaptive routing." Agents evolved a strategy to check a document's length first: reading short documents in full but using targeted search/chunking for long ones.
  • Separation of Concerns: By evaluating the final model under the original simple harness, the authors prove that the performance gains come from the model's improved weights, not just a better prompt.
EvoIn refines decision procedures through iterative proposal and evaluation.

Key Results

  • Significant Performance Boost: On Qwen3.5-35B, EvoIn raised the in-domain pass rate by 10.9 points (a 30% relative gain) and the out-of-domain pass rate by 9.2 points (a 48% relative gain).
  • Generalization: The internalized procedures transferred effectively to unseen benchmarks. For example, on the MRCR benchmark, the "Score" metric jumped by a staggering 43.76 points.
  • Efficiency: Compared to "Seed-harness SFT" (simply training on successful traces from the original harness), EvoIn provided much higher gains, proving that the evolution of better procedures is the primary driver of improvement.

Limitations and Future Work

  • Teacher Dependency: The current evolution process relies on a stronger "proposal agent" (Claude). The authors aim to move toward true "self-improvement" where the target model drives its own evolution.
  • Single Cycle: The study focused on one complete evolution-internalization cycle. The authors suggest that repeated cycles could lead to recursive self-improvement.
  • Domain Expansion: While highly effective for context-heavy reasoning, the framework needs to be tested in other complex environments like software engineering or autonomous web navigation.

Summary updated

BibTeX
@misc{dou2026evoin,
  author = {Shihan Dou and Shaofan Liu and Zhonghang Lu and Jiahang Lin and Shichun Liu and Binghai Wang and Jiajie Jin and Guanting Dong and Tao Gui and Qi Zhang and Xuanjing Huang},
  title = {{EvoIn: Bridging Evolution and Internalization for Agent Fine-Tuning}},
  year = {2026},
  eprint = {2609.35290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.35290},
}
Figure