Manuscript Offprint

arXiv:2609.35290

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 Huang

ABSTRACT

Recent work has explored improving agents by jointly evolving their harnesses and models, but often takes a “potpourri” approach that bundles together new tools, new decision-making procedures, and model adaptation to the evolved harness under a single notion of agent improvement. In this paper, we instead investigate how agents can improve their decision-making procedures. In particular, we propose EvoIn, an agent fine-tuning framework that bridges evolution and internalization. EvoIn first analyzes agent execution traces to evolve and validate new decision-making procedures by temporarily instantiating them in the harness. The validated procedures guide the agent to generate improved reasoning traces. These traces are then rewritten into self-contained reasoning traces, removing explicit references to harness instructions while expressing the induced decision logic as the model’s own reasoning. Finally, EvoIn fine-tunes the model on the rewritten traces, internalizing these procedures so that the improved decision-making persists without the evolved harness at inference time. We evaluate EvoIn on diverse benchmarks and find that it consistently enables agents to learn stronger decision-making procedures, raising the pass rate by 10.9 points in-domain and by 9.2 points out-of-domain. Results further show that the internalized decision procedures generalize to unseen tasks. Case studies show that agents can learn to decide how to solve a task before solving it, for example by checking a document’s length to choose between reading it in full and searching it. EvoIn is also broadly applicable, showing consistent improvements on another model family.

1 INTRODUCTION

Decision-making procedures are central to the reasoning ability of language agents (Balke & Gilbert, 2014; Rao & Georgeff, 1998; Sumers et al., 2023). They determine how an agent reasons and acts, shaping behaviors such as planning, tool use, and verification (Yao et al., 2022; Yang et al., 2024; Dou et al., 2026). Consider an agent asked to fix a software bug. Even with access to the same tools, one agent may patch the apparent failure immediately, whereas another may trace the relevant code, reproduce the failure, gather evidence, and check for regressions. A stronger agent may further adjust its planning and verification to the task, performing lightweight checks for a simple local change but broader verification for a risky cross-module modification. We view an agent as a model coupled with a harness, where the harness denotes the model-external system that mediates the model's execution and interaction with the environment (Lin et al., 2026a; Ning et al., 2026). Decision-making procedures can be specified explicitly in the harness, through prompts, workflows, hooks, or other control logic (Lin et al., 2026a; Yao et al., 2023; Shinn et al., 2023), or carried implicitly by the model and instantiated through its own reasoning (Chen et al., 2023; Qiao et al., 2024). This raises natural questions: how can we improve agents' decision-making procedures, and to what extent can agents themselves drive or even automate this improvement process?

∗^{*}The first three authors contributed equally.

A Model fine-tuning

Figure

(M,H)⟶(M∗,H)(M, H) \longrightarrow (M^{*}, H)

B Harness evolution

Figure

(M,H)⟶(M,H∗)(M, H) \longrightarrow (M, H^{*})

C Model-harness co-evolution

Figure

(M,H)⟶(M∗,H∗)(M, H) \longrightarrow (M^{*}, H^{*})

D Evoln (Evolution-Internalization)

(M,H)⟶(M,H∗)⟶(M∗,H)(M, H) \longrightarrow (M, H^{*}) \longrightarrow (M^{*}, H)

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.

We compare existing paradigms for improving agents’ decision-making procedures, as illustrated in Figure 1. Model fine-tuning approaches keep the harness fixed and improve the language model, typically through better tasks, environments, trajectories, or rewards (Chen et al., 2024; Zeng et al., 2024; Fu et al., 2025; Jimenez et al., 2024). In this paradigm, agents may help construct training data or collect experience, but there is no explicit space to propose, test, and validate candidate procedure changes before training. This also limits the exploration of decision procedures 1^{1} that are easier to express and evaluate externally, especially those that may not be readily acquired through direct model updates. Harness evolution takes the opposite route, keeping the model fixed while explicitly modifying the harness to change the decision-making procedures that govern how the agent solves tasks (Lin et al., 2026a; Zhang et al., 2026a; Lee et al., 2026b). However, it alone leaves these improvements external to the underlying language model, without a chance to internalize reusable decision procedures as stronger model reasoning capabilities.

More recent work co-evolves models and harnesses, combining the two directions above (Chen et al., 2026c; Lee et al., 2026a; Chen et al., 2026a;b). While effective for optimizing the final agent system, this jointly rewards new tools, decision procedures, and model adaptation under the same end-to-end objective, making it difficult to tell whether the model has learned stronger decision-making procedures or simply become better matched to the evolved harness (Yu et al., 2026). More importantly, training the model with the evolved harness confounds stronger reasoning with harness-specific adaptation, making it unclear whether the decision logic learned by the model during training transfers and generalizes across different harnesses.

In this work, we propose EvoIn, an agent fine-tuning framework that bridges the explicit exploration enabled by harness evolution and the lasting capability gains enabled by model internalization, while allowing agents to drive much of the process. Starting from training data, the agent first analyzes the reasoning traces and answers produced under the current harness, proposes improvements to its decision-making procedures, and evaluates the resulting changes. This process can be repeated for multiple rounds to progressively refine the procedures based on evaluation feedback. The evolved harness then guides the generation of improved reasoning traces. Because these traces may explicitly refer to procedural instructions introduced by the evolved harness, they are rewritten into self-contained reasoning traces that preserve the induced decision logic while expressing it as the model's own reasoning. Finally, the rewritten traces are used with the original harness to fine-tune

1^{1}We use decision-making procedure, decision procedure, and procedure interchangeably in this paper.

the model. In this way, the harness provides a temporary space for agents to discover and validate better decision procedures, which are ultimately learned by the model.

Concretely, EvoIn raises accuracy by 10.9 points on the in-domain categories and by 9.2 points on the out-of-domain benchmarks, with gains of up to 19.7 points on a single benchmark. More specifically, rewriting is necessary for internalization: a model fine-tuned on the unrewritten trajectories cites instructions and tools that do not exist in the original harness (Figure 3(c)), runs out of turns on 19.4% of out-of-domain examples compared with 6.1% for EvoIn, and keeps almost none of the out-of-domain gain. The learned procedures also transfer to different task types, where the model can reason about unseen tasks and generate task-appropriate decision procedures rather than simply replay those encountered during evolution. Experimental results on Gemma also show clear gains, suggesting that EvoIn generalizes across model families. Moreover, case studies show that agents can discover and learn procedures that dynamically adapt to the input, such as checking the document length before choosing how to read the document (Appendix A.9). In summary, with its simple fine-tuning pipeline and promising results, we hope EvoIn offers a practical path toward more capable agents with less human intervention and inspires future work toward agent self-improvement.

References (56)