# RRSI: Regularized Recursive Self-Improvement of Agent Harnesses

Regularized harness evolution resists overfitting the evolve set

Peng Xia, Rujun Han, Zifeng Wang, Yanfei Chen, Yufan Zhuang, Yoonho Lee and 8 more · arXiv · 2026-9-21

- **Problem** Automated harness evolution fits the finite evolve set it is scored on, so gains there often vanish on unseen benchmarks. Adaptive reuse of the same tasks lets the search latch onto them.
- **Method** RRSI caps edits per candidate and screens benchmark-specific proposals before evaluation.
- **Results** RRSI gains up to 4.3 points on five out-of-distribution benchmarks. Its out-of-distribution average reaches 43.6, versus 39.7 for the unevolved base harness.

## Why evolved harnesses can fail to transfer

Harness engineering has mostly been manual, with humans reading failed trajectories and tweaking the scaffold by hand. The authors call this recursive self-improvement at the agent-system level, because feedback from the current system improves the harness that shapes its later behavior.

The catch is that one finite evolve set serves to propose, select and score the candidates. Every round reuses those same tasks, so the adaptive search can latch onto them and overfit. Evolve-set performance may rise without corresponding gains on unseen tasks. The authors name three coupled ways this appears: benchmark-specific fitting, noise chasing, and complexity accumulation.

Each of them widens the gap between evolve-set scores and transfer performance.

Recent works separate evolution and evaluation tasks to measure this generalization. Their own fix keeps the harness fully editable and constrains how finite, noisy evolve-set feedback guides the search.

In the evolution loop, the current harness is run on the evolve set, its trajectories are summarized into feedback, and a proposer LLM generates candidates. The best candidate on the same evolve set becomes the next incumbent. Because the candidates depend on measurements from those same tasks in earlier rounds, the reuse is adaptive. Their remedy regularizes the search dynamics, so sparse updates, evidence-aware credit and conservative selection keep leakage and noise out of permanent harness state.

## Regularizing the search instead of the edits

RRSI keeps the space of possible harness edits fully open and limits how the search moves through that space. The regularization acts on two sides of the loop, proposal and selection, so the search is shaped without being narrowed in advance.

On the proposal side, RRSI caps how many independently attributable edits one candidate may bundle, using a budget that shrinks over the run. That budget starts at b\_max and falls to b\_min, so early rounds can combine coordinated changes while later rounds become sparser. Each evaluated candidate is logged with its component, hypothesis, source diff, score and cost change, and acceptance outcome.

The proposer reads this history, so rejected mechanisms stay as negative evidence and successful ones keep explicit credit. When progress stays within the noise band over the previous w rounds, part of the proposal budget goes to components not yet exercised.

On the selection side, RRSI screens candidates before full evaluation, so a leaking candidate never receives an inflated evolve-set score. A candidate must clear the noise-adjusted floor, requiring its score to be at least the best score so far minus delta. Cost is handled by a rule that requires any extra policy-token cost to be justified by a measured gain.

The authors borrow from classical regularization, using L0, L1 and L2 style analogies rather than a penalized objective. The L0 analogy is the closest one, since the number of independently active edits per update is capped. Pruning plays the role of L1 sparsification, and cost-aware acceptance plays the role of L2 shrinkage. The reasoning is that every look at the evolve set is another adaptive test on finite data, so the search should remember what it has already learned.

## How one round of RRSI runs

Each round starts from the incumbent harness, and its trajectories are summarized into feedback that the proposer reads. The proposer generates candidate harnesses, and the best candidate becomes the next incumbent only after evaluation on the same evolve set. Each evolve score is an average over k trials per task, so the score carries stochastic noise from repeated agent runs.

Because the same evolve tasks are reused across rounds, the candidates proposed later depend on measurements from earlier rounds. A per-candidate cap on independent edits starts loose and tightens over the run, following a cosine schedule that falls from b\_max to b\_min. Early rounds can bundle several coordinated changes, whereas later rounds are pushed toward sparse, attributable edits.

The proposer also receives a record of every earlier candidate, so it doesn't repeat hypotheses that already failed. That record holds the component each candidate changed, the hypothesis it tested, the source diff, the score and cost change, and whether it was accepted. Rejected mechanisms stay on record as negative evidence, and accepted ones keep explicit credit.

When progress stays inside the noise band over the last w rounds, the search counts as stalled.

Generic prompt or tool-description improvements pass this screen, since the screen targets benchmark-specific content. Screening happens before evaluation because a leaking candidate would otherwise receive an inflated evolve score that makes it attractive in later rounds.

A candidate can replace the incumbent only if its evolve score stays within the noise band delta of the best score seen so far. The authors estimate delta by repeatedly evaluating the unchanged base harness before evolution starts. For a candidate whose gain exceeds delta, the relative policy-token cost increase must satisfy ΔC ≤ β0 + β1ΔS.

Both betas are selected on the evolve set and then held fixed for every transfer evaluation.

## Does the gain transfer beyond the evolve split?

RRSI lifts every held-out split in all three domains, compared with the unevolved base harness H0 measured in the same window. On the evolve splits, the gains are 6.0 points on Terminal-Bench 2.1, 4.9 on EngDesign and 1.1 on Harvey LAB. The authors focus on what remains once the harness leaves those splits. SWE-bench Verified gains 1.8 points, even though repository-level bug fixing was never part of the evolve scoring.

Frontier-Eng gains 4.3 Medal points, a 24.3% relative improvement over the base harness. No held-out split regresses, which is the failure a memorizing harness would produce.

Against four prior evolution methods started from the same base harness, the ranking changes out of distribution. TTHE finishes 1.7 points below the harness it started from on that average. RRSI shows the smallest evolve-set gain among evolved harnesses, yet its out-of-distribution average reaches 43.6 versus 39.7 for H0.

In Table 1, RRSI scores 40.7 on JobBench, 52.3 on GDPval and 37.9 on APEX-Agents. Those scores compare with 36.0, 48.8 and 34.2 for the base harness H0 on the same three benchmarks. Harvey LAB and JobBench, GDPval share judge-based grading, so a judge could reward style rather than better work. The engineering design tasks close that route, because EngDesign and Frontier-Eng graders are simulators or testbenches.

Their grading is deterministic, so judge variance drops out of the measurement.

## Which regularizers matter, and at what token cost

The ablation splits the regularizers into two groups, the proposal-side constraints and the acceptance-side constraints. Taking out either group pushes the evolve-set score up while transfer drops, so both groups shape generalization. The authors read this as an unconstrained selection rule spending its accepted edits on noise and context rather than on mechanism.

Removing the acceptance constraints also lifts tokens per trial from 2.42 million to 3.59 million, as Table 2 shows.

Removing only the proposal constraints costs 0.2 points on the evolve split but 1.7 points out of distribution. That gap hints that directing the search matters even when no candidate gets rejected. Removing both groups gives unregularized evolution, which scores 92.8 on the evolve split, the highest of any arm. Its out-of-distribution average of 40.3 sits within a point of the unevolved harness, which scores 39.7.

Unregularized evolution also spends 3.80 million tokens per trial, against 2.42 million for RRSI.

AHE is the extreme case, using 3.82 million policy tokens per trial, 58% more than RRSI. AHE scores 4.4 points lower out of distribution than RRSI does. Trajectory length follows the same ordering, with RRSI running 26.3 steps per trial. The prior methods run between 27.3 and 34.6 steps per trial. The unevolved harness H0 runs 21.2 steps per trial at 1.56 million tokens, so every evolved harness costs more than H0.

Evolution therefore pays for part of its gain in test-time compute, and the regularizers set the price.

## Does the harness depend on one policy

The authors ran coding evolution separately with two frozen policies, Claude Opus 4.8 and Gemini 3.5 Flash, from different model families. Each run started from the same coding harness and evolved only on Terminal-Bench 2.1. The resulting harness was then evaluated on both the evolve benchmark and SWE-bench Verified, which the search never scored.

Under Gemini 3.5 Flash, RRSI raised Terminal-Bench 2.1 from 64.6 to 78.7, and the harness transferred a 2.2-point gain to SWE-bench Verified. The Gemini 3.5 Flash row of Table 3 shows the same pattern, so the transfer doesn't rest on a single policy.

With Claude Opus 4.8, Terminal-Bench 2.1 moved from 74.2 to 80.2 on the evolve split. SWE-bench Verified rose from 82.0 to 83.8 under the same policy, a 1.8-point transfer gain. The authors read this as evidence that RRSI's benefits aren't tied to one particular backbone.

A harness is a program rather than a set of weights, so a mechanism could help only the policy it was searched against. To test this, the authors took the final Gemini 3.5 Flash harness and ran it unchanged with Gemini 3.1 Flash Lite. On Terminal-Bench 2.1, its accuracy rose from 11.2 to 14.6 with the evolved harness, a 30.4% relative gain.

The base score is less than a fifth of the search policy's score, so the absolute gain of 3.4 points is smaller.

The authors attribute the smaller absolute gain to the weaker backbone, which leaves fewer tasks within reach of any harness. They conclude that the mechanisms don't depend on the capability level at which they were searched. The paper tests transfer across two policy families and one weaker backbone, but it doesn't test a longer chain of policy changes.

## Limitations: what the evidence does not cover

The study covers only harness-level self-improvement with frozen backbone models, so it doesn't test settings where model weights change during evolution. The authors state that RRSI still relies on a finite evolve set and several regularization hyperparameters. The beta\_0 and beta\_1 values were selected on the evolve set and then kept fixed for all transfer evaluations.

Although transfer was checked across multiple domains, benchmarks, and policy models, those checks don't settle these broader questions. For the coding domain, only two search policies were used, Claude Opus 4.8 and Gemini 3.5 Flash. The cross-model check used a single harness, evolved with Gemini 3.5 Flash and run unchanged on Gemini 3.1 Flash Lite.

## Paper info

- **Authors**: Peng Xia, Rujun Han, Zifeng Wang, Yanfei Chen, Yufan Zhuang, Yoonho Lee, Chengsong Huang, Han Yu, Zhongying CuiZhu, Yifei Ming, Huaxiu Yao, Burak Gokturk, Tomas Pfister, Chen-Yu Lee
- **Venue**: arXiv · Preprint
- **First published**: 2026-9-21
- **Added**: 2026-10-20
- **Updated**: 2026-10-4
- **Version**: v3
- **arXiv**: 2609.24972
- **Category**: cs.LG · cs.AI · cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2609.24972v3) · [PDF ↗](https://arxiv.org/pdf/2609.24972v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Peng Xia, Rujun Han, Zifeng Wang, Yanfei Chen, Yufan Zhuang, Yoonho Lee, Chengsong Huang, Han Yu, Zhongying CuiZhu, Yifei Ming, Huaxiu Yao, Burak Gokturk, Tomas Pfister, Chen-Yu Lee (2026). RRSI: Regularized Recursive Self-Improvement of Agent Harnesses. arXiv:2609.24972v3. https://arxiv.org/abs/2609.24972v3

**BibTeX**

```
@misc{xia2026rrsi,
  title = {{RRSI: Regularized Recursive Self-Improvement of Agent Harnesses}},
  author = {Peng Xia and Rujun Han and Zifeng Wang and Yanfei Chen and Yufan Zhuang and Yoonho Lee and Chengsong Huang and Han Yu and Zhongying CuiZhu and Yifei Ming and Huaxiu Yao and Burak Gokturk and Tomas Pfister and Chen-Yu Lee},
  year = {2026},
  eprint = {2609.24972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.24972v3}
}
```

## Other paper commentary

- [The Tasteful Agent: Measuring and Improving Taste in Long-Horizon Tasks](https://refivu.com/en/papers/51ca75de-e1a2-40e9-85fd-8a0bf3905a45-the-tasteful-agent-measuring-and-improving-taste-in.md)
- [AgentGarten: Code Worlds for Evolving Agents](https://refivu.com/en/papers/01ba62df-ac45-4380-9eaa-9088dfb2b6ff-agentgarten-code-worlds-for-evolving-agents.md)
- [Agent-Reflex: Teaching Language Agents to Act Reflectively](https://refivu.com/en/papers/7eb7b09e-c398-4382-9fbd-fe06f80512f9-agent-reflex-teaching-language-agents-to-act-reflectively.md)
- [AgentSWE: Can Coding Agents Build the Agent You Actually Want?](https://refivu.com/en/papers/0edc53d4-a7db-411e-a9bd-bcb685052116-agentswe-can-coding-agents-build-the-agent-you.md)
- [Reflexion: Language Agents with Verbal Reinforcement Learning](https://refivu.com/en/papers/a572f458-b121-4d38-bfc9-7a77309a3aba-reflexion-language-agents-with-verbal-reinforcement-learning.md)
- [A Generalist Agent](https://refivu.com/en/papers/890475cb-e797-43df-8de3-0d0eb9ed882e-a-generalist-agent.md)
- [VepAgent: Bridging Causal-Transition via Tool-Augmented Reinforcement Learning for Video Event Prediction](https://refivu.com/en/papers/821eb34f-ba18-4d31-a976-622431079e7e-vepagent-bridging-causal-transition-via-tool-augmented.md)
- [LoGRA: Scaling LLM Reinforcement Learning with Low-Rank Gradient Sketches](https://refivu.com/en/papers/b85545ae-a4d6-4afa-b0bd-967680590ff5-logra-scaling-llm-reinforcement-learning-with-low-rank.md)
- [Thinking Inertia: LLMs Keep Thinking When Told Not To](https://refivu.com/en/papers/42bed0d5-260c-4bc9-9e41-a01f312aefdb-thinking-inertia-llms-keep-thinking-when-told-not.md)
- [YuE2: Unifying Symbolic and Audio Music Generation at Frontier Quality](https://refivu.com/en/papers/ecbae6d0-7b9f-4e95-b4e7-bb41e58fd807-yue2-unifying-symbolic-and-audio-music-generation-at.md)
- [VisionHOPE: Visual Backbones as Self-Modifying Learning Systems](https://refivu.com/en/papers/e5713b15-02fd-4883-8432-3a93aa4463b6-visionhope-visual-backbones-as-self-modifying-learning.md)
- [RealCompanion: Benchmarking Human Understanding from Reasoning over Longitudinal Real-World Conversations](https://refivu.com/en/papers/919bd630-767e-45e3-8cce-94d716b20f9c-realcompanion-benchmarking-human-understanding-from.md)

## Terms in this paper

- [overfitting](https://refivu.com/en/terms/82a66a720533-overfitting)
- [generalization](https://refivu.com/en/terms/e48ace30330d-generalization)
- [agent harness](https://refivu.com/en/terms/ea884b75f1bc-agent-harness)
- [regularization](https://refivu.com/en/terms/7f4c4ddfa718-regularization)
- [Gemini 3.5 Flash](https://refivu.com/en/terms/451012a90ae8-gemini-3-5-flash)
- [recursive self-improvement](https://refivu.com/en/terms/bbf0655d934a-recursive-self-improvement)
- [Claude Opus 4.8](https://refivu.com/en/terms/8e795330a9f6-claude-opus-4-8)
- [GDPval](https://refivu.com/en/terms/adb0bc7578a5-gdpval)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/4a41b8e7-207d-475d-b437-fb840feec85a-rrsi-regularized-recursive-self-improvement-of-agent)
