arXiv:2610.28201cs.AIOct 2026

Manuscript Offprint

arXiv:2610.28201

MaD-RSI: Model-as-Data for Recursive Self-Improvement of Agent Harnesses

Yu Cui, Hong He, Ruiqing Yue, Sicheng Pan, Zhuoyu Sun, Yifei Liu, Ting Li, Wenzhuo Zhu, Baohan Huang, Haibin Zhang, Cong Zuo

Abstract

Recursive self-improvement (RSI) of agent harnesses has emerged as an effective approach to enhancing the capabilities of large language model (LLM) agents. By searching the harness space for a specific LLM on a given dataset, RSI can discover a harness tailored to the capabilities and behavioral characteristics of that model. However, such optimization often creates a strong coupling between the learned harness and its target LLM, limiting generalization across models and requiring substantial computational resources to adapt to new LLMs. Moreover, existing RSI methods typically optimize a harness using feedback from a single model and evaluate its generalization to other models only after training. This paradigm treats model differences primarily as a criterion for evaluating generalization rather than as valuable evidence for optimization. In this paper, we introduce a new perspective that treats models as data and places the harness at the center of optimization. Building on this perspective, we propose MAD-RSI, a framework that directly optimizes a shared harness across multiple heterogeneous LLMs by incorporating their diverse failure trajectories into the training process. Rather than assessing model differences only after optimization, MAD-RSI leverages these differences as training evidence to guide the self-improvement of a shared harness. Furthermore, we introduce a new evaluation framework with two complementary metrics designed to assess the effectiveness of harness optimization across models. Experiments across multiple datasets and LLMs demonstrate that MAD-RSI improves generalization over existing approaches while reducing training costs.

1 Introduction

Large language model (LLM) agents have achieved strong performance on complex tasks, including reasoning and code generation (Yang et al., 2024; Yao et al., 2023; Chen et al., 2025). Their effectiveness depends not only on the underlying LLM but also on the harness. Recent work on recursive self-improvement (RSI) has shown that iteratively searching and refining this harness can enhance agent capabilities without updating model parameters (Chan et al., 2026; Duan et al., 2026; Lin et al., 2026). However, many RSI methods optimize a harness using execution feedback from a single target LLM (Liu et al., 2026). Such specialization can entangle the learned harness with the capabilities and behavioral characteristics of that model, limiting its portability to other LLMs (Qu et al., 2026). Adapting the harness to a new model may therefore require another costly optimization run, making it difficult to build an ecosystem of reusable and continuously improving harnesses.

This limitation also shapes how RSI is evaluated. A common protocol optimizes a harness with one LLM and assesses its transfer to other models (Lee et al., 2026; Xia et al., 2026). In this paradigm, differences among models primarily serve to measure generalization, rather than to guide improvement. Yet heterogeneous LLMs can exhibit different outcomes and execution trajectories on the same task under the same harness. A failure from one model, when contrasted with a success from another, may reveal deficiencies that are difficult to identify from either trajectory alone. These observations suggest a different question: Can behavioral differences among LLMs serve as training evidence for learning a harness that generalizes across models?

We address this question through Models-as-Data, a perspective that treats heterogeneous LLMs, observed under controlled inference configurations (DeepSeek-AI, 2026) (such as sampling), as sources of behavioral evidence while placing the shared harness at the center of optimization (Mehri et al., 2022). Instead of viewing models solely as separate optimization targets or subjects of subsequent transfer evaluation, we use their successful and failed executions as complementary signals for harness improvement. The goal is to optimize a sin-

Figure

Figure 1: Comparison between MAD-RSI and existing RSI approaches that evolve agent harnesses using feedback from a single backbone model.

gle harness that can be used with different LLMs independently, not to ensemble multiple models at inference time.

Building on this perspective, we propose MAD-RSI, a framework for RSI of a shared harness using evidence from multiple heterogeneous LLMs. MAD-RSI first organizes responses to shared queries across models and inference configurations into a structured tensor, preserving the conditions under which each outcome is observed. It then selects informative queries using both disagreement among models and coverage of distinct response patterns. Finally, it jointly diagnoses aligned successful and failed trajectories to inform subsequent harness revisions. In this way, behavioral differences across models become inputs to the optimization process rather than observations reserved for evaluation.

To assess RSI methods designed for multiple models, we further introduce an evaluation framework with two complementary measures of optimization effectiveness: success coverage, which captures whether at least one model succeeds on a task, and joint success, which captures whether all evaluated models succeed on that task. These population measures complement evaluations of transfer to previously unseen LLMs. We study MAD-RSI on legal reasoning, code generation, medical reasoning, and agent safety tasks across heterogeneous LLMs. The results show improvements in performance across models and transfer in some settings, with tradeoffs that vary by task. On the general tasks, optimizing one shared harness also reduces cumulative training cost relative to running separate optimization processes for each development model. More broadly, this study invites a reconsideration of the role of LLMs in RSI: beyond being targets of harness optimization, they can provide the evidence that drives it. We summarize our contributions as follows:

• Models-as-Data perspective. We formulate an RSI paradigm across models in which behavioral differences among heterogeneous LLMs become evidence for optimizing a shared harness, rather than serving only as a means of evaluating transfer after training.

• MAD-RSI framework. We develop a shared harness optimization framework that combines structured response representations, evidence selection based on disagreement and behavioral coverage, and joint diagnosis of successful and failed trajectories.

• Evaluation and empirical study. We introduce two complementary population measures for assessing harness optimization across models and evaluate generalization and training cost across diverse tasks and LLMs.

References (8)