Summary (Overview)

  • Problem Definition: The paper introduces Continual Recursive Self-Improvement (CRSI), a new setting where harness optimization continues after a benchmark or policy-model change, requiring the optimizer to decide which parts of an evolved harness to reuse or revise.
  • Key Contribution: The authors propose Self-Improvement Memory (SIM), a structured record that groups edits by recurring harness problems, capturing rationale, predicted and observed outcomes, and evaluation context—carried alongside the evolved harness into target optimization.
  • Main Findings: Full SIM outperforms harness-only and root-cause-only continuation in all six cross-dataset settings and four cross-model (Opus-to-Gemini) settings, with a mean paired advantage of 2.36 points over harness-only continuation (p = 0.003) across ten independent source runs in coding.
  • Novelty: SIM conditions both the proposer and selector in the RSI loop, preserving source experience while incorporating new attempts during target optimization—addressing the gap where evolved harnesses alone lack explanation of why edits were made.
  • Scope: Validated across four domains: coding, text classification, agentic workspace, and engineering design.

Introduction and Theoretical Foundation

Background and Motivation

LLM agents depend on both a policy model and a harness that manages context, tools, and execution. Improving the harness can raise performance without updating model weights, but finding useful changes manually requires repeated engineering and evaluation. Recent work automates this through recursive self-improvement (RSI), using execution feedback to repeatedly propose, evaluate, and select harness edits.

However, optimization is usually conducted within a fixed setting. As models are updated and agents encounter new tasks, harness optimization often needs to continue beyond that setting, raising two fundamental challenges:

  1. Adapting to a new model: Multi-model serving (one shared harness for different policies) and model evolution (new versions replacing earlier ones) both motivate reusing an evolved harness and its improvement experience. Yet modifications suited to one policy can interact differently with another—even when the benchmark stays fixed.

  2. Adapting to new data: With the policy fixed, a different task distribution can expose failures that source optimization did not address. A completion gate that checks whether commands ran successfully, for example, may need to check whether a feasible solution is also optimal.

Key Insight

"The evolved harness alone leaves important questions unanswered: why was an edit proposed, what was it expected to fix, and what happened when it was tested?"

Source optimization produces this evidence, but it need not accompany the harness. Without this history, target optimization may repeat earlier attempts or change inherited components without knowing their purpose.

Theoretical Formulation

Harness RSI follows the Meta-Harness framework. A setting is defined as σ=(M,X)\boldsymbol{\sigma} = (M, \mathcal{X}) with disjoint evolve and held-out evaluation sets χevo\chi^{\mathrm{evo}} and χeval\chi^{\mathrm{eval}}. The score J(H;M,X)J(H; M, \mathcal{X}) follows the benchmark's aggregation rule.

A run consists of N rounds. At round t=0,…,N−1t = 0, \ldots, N-1:

Ct=P(Ht,Ft,Dt),Ht+1=S(Ht,Ft,Ct,FtC),(1)\begin{array}{c} \mathcal{C}_t = P(H_t, F_t, \mathcal{D}_t), \\ H_{t+1} = \mathcal{S}(H_t, F_t, \mathcal{C}_t, F_t^{\mathcal{C}}), \end{array}\tag{1}

where FtF_t is feedback (scores, traces, errors), Ct\mathcal{C}_t is the set of kk candidate harnesses, PP is the proposer, S\mathcal{S} is the selector, and FtCF_t^{\mathcal{C}} contains feedback from executed candidates.


Methodology

Problem Formulation: CRSI

After source RSI in σS=(MS,XS)\sigma_S = (M_S, \mathcal{X}_S), optimization resumes from the final retained harness HSH_S in σT=(MT,XT)\sigma_T = (M_T, \mathcal{X}_T):

  • Cross-dataset CRSI: Benchmark changes while policy stays fixed (XS≠XT,MS=MT)(\mathcal{X}_S \neq \mathcal{X}_T, M_S = M_T)
  • Cross-model CRSI: Policy changes on the same benchmark and split (MS≠MT,χS=χT)(M_S \neq M_T, \chi_S = \chi_T)

Both require a shared executable harness interface.

Self-Improvement Memory (SIM)

SIM groups edits by the recurring harness problems they address. For a root-cause hypothesis cic_i, an entry is:

mi=(ci,[(aij,oij,pij)]j),(2)m_i = \big(c_i, [(a_{ij}, o_{ij}, p_{ij})]_j\big),\tag{2}

where jj indexes attempts in order and Mt={mi}\mathcal{M}_t = \{m_i\} is the current memory. Each attempt stores:

  • aija_{ij}: modification and its rationale
  • oijo_{ij}: predicted and observed task outcomes
  • pijp_{ij}: provenance (domain, benchmark, policy, and round)

Predictions of which tasks an edit will fix are recorded before evaluation and checked afterward.

The RSI Loop with SIM

The loop in Equation 1 becomes:

Ct=P(Ht,Ft,Dt;Mt),Ht+1=S(Ht,Ft,Ct,FtC;Mt).(3)\begin{array}{c} \mathcal{C}_t = P(H_t, F_t, \mathcal{D}_t; \mathcal{M}_t), \\ H_{t+1} = \mathcal{S}(H_t, F_t, \mathcal{C}_t, F_t^{\mathcal{C}}; \mathcal{M}_t). \end{array}\tag{3}

Each proposal cites an existing root cause or names a new one. After selection, only the chosen candidate is recorded, including its measured outcomes even when the edit regresses or fails. The update Mt+1=U(Mt,et)\mathcal{M}_{t+1} = U(\mathcal{M}_t, e_t) appends this record to the cited problem or creates a new entry. If no edit is accepted, et=∅e_t = \emptyset and U(Mt,∅)=MtU(\mathcal{M}_t, \emptyset) = \mathcal{M}_t.

Transfer Conditions Compared

ConditionInitializationDescription
Cold Start(H0,∅)(H_0, \emptyset)From seed harness, no memory
Harness Transfer(HS,∅)(H_S, \emptyset)Evolved harness, no memory
Problem-Only Memory(HS,MSc)(H_S, \mathcal{M}_S^c)Root causes only
Full SIM(HS,MS)(H_S, \mathcal{M}_S)Complete record

Experimental Setup

  • Domains: Coding (Terminal-Bench 2.1 → TB4), Text classification (3-dataset → 8-dataset suite), Agentic workspace (Harvey LAB → JobBench/GDPval/APEX-Agents), Engineering design (EngDesign → Frontier-Eng)
  • Models: Gemini 3.8 Flash as policy, proposer, and selector in main comparisons; Claude Opus 5.5 for cross-model transfer source RSI
  • Budgets: N = 10 rounds, k = 5 candidate proposals per round, five rollouts per task
  • Seeds: AHE seed and Terminus-2 (coding), NoMemory and Few-ShotAll (text classification), ReAct agent over MCP tool gateway (workspace and engineering)

Empirical Validation / Results

Cross-Dataset CRSI Results

Full SIM finishes highest in all six settings, exceeding Harness Transfer by 2.43–4.35 points and Problem-Only Memory by 0.20–6.06 points. Problem-Only Memory shows mixed effects (ranging from 1.82 points below to 2.40 above Harness Transfer), demonstrating that keeping edit history and evaluation evidence helps beyond retaining the diagnosis alone.

Key observation: Source RSI raises held-out source scores by 2.75–6.41 points in all six settings, yet the FewShotAll harness starts target RSI below the seed (72.92 vs. 75.72). Harness-only continuation reaches 74.12 (below Cold Start at 75.92), while Full SIM reaches 77.92.

Cross-Model CRSI Results

When the Opus-evolved harness is first run with Gemini, it scores below Gemini's seed harness in every domain (deficits from 0.60 to 5.48 points). Full SIM finishes highest in all four domains, exceeding harness-only continuation by 3.60–11.33 points. Workspace shows the largest difference: both begin at 68.41, but Full SIM reaches 84.75 while Harness Transfer reaches only 73.42.

Continual Improvement across Model Generations

Table 1 | Success rates on held-out TB2.1 across Gemini generations

Gemini modelSeedFresh RSICRSI
2.5 Flash17.821.422.4
3.5 Flash70.273.376.8
3.8 Flash87.288.990.5
4 Argon89.795.694.8

CRSI improves over fresh RSI in two of three subsequent generations (by 3.5 points on Gemini 3.5 Flash and 1.6 on Gemini 3.8 Flash), while finishing 0.8 points lower on Gemini 4 Argon.

One Harness for Multiple Models

Table 2 | Text-classification scores averaged over Grok 4.20 Reasoning, Claude Opus 5.5, and Gemini 3.8 Flash

Harness constructionEvolveHeld-outAll
B1: Per-model harnesses77.4075.2076.30
B2: Shared seed72.3673.2872.82
S1: Sequential CRSI76.7274.2075.46
S2: Unified synthesis78.9275.2477.08
S3: Source policy used for RSI
Gemini 3.8 Flash74.2871.2472.76
Grok 4.20 Reasoning68.2466.8467.54
Claude Opus 5.575.2072.2473.72

Unified synthesis reaches a similar mean score to separately evolved harnesses (75.24 vs. 75.20 held-out), above the shared seed's 73.28.

Paired Coding Study (Primary Statistical Evidence)

Table 3 | Paired coding continuations from ten independent Terminus-2 source runs

RunStartNo SIMSIMΔ
118.1820.6122.42+1.81
216.9717.5819.39+1.81
317.5820.0020.61+0.61
418.1818.1823.64+5.46
517.5818.7920.61+1.82
619.3920.0023.64+3.64
718.7920.0021.82+1.82
818.1820.0019.39−0.61
919.3918.1823.03+4.85
1019.3920.0022.42+2.42
Mean18.3619.3321.70+2.36

SIM finishes higher in 9 of 10 pairs. The mean paired advantage is 2.36 points (95% CI [1.05, 3.68]; two-sided paired t(9) = 4.06, p = 0.003). A signed-rank check gives p = 0.006; the paired standardized effect is d = 1.28.

Qualitative Analysis: How SIM Guides Reuse and Revision

  • SIM guides reuse and revision: With SIM, the proposer retains completion verification while adding target checks (feasibility vs. optimality). Without SIM, the run tightens the gate, twice repairs completion deadlocks, and misattributes the inherited gate to its own first round.
  • SIM preserves diagnoses while adding target evidence: Target rounds append revised checks and measured outcomes under source diagnoses, keeping source attempts and unresolved predictions available.
  • SIM supports earlier target progress: Full SIM is best or tied throughout rounds 1–10 for both coding seeds, exceeding the strongest control's final score by round 5 (AHE) and round 2 (Terminus-2). Full SIM loses only 3 successful rollouts out of 225 on source retention vs. 6 for Harness Transfer.

Theoretical and Practical Implications

Theoretical Significance

  1. Memory as a first-class citizen in RSI: The paper demonstrates that the experience of harness optimization—not just the final artifact—carries transferable value. This shifts the theoretical framing from "what harness works" to "what did we learn about why harnesses work."

  2. Root causes are insufficient: Problem-Only Memory's mixed performance shows that diagnoses alone don't capture enough information. The full record—including predicted vs. observed outcomes and provenance—provides essential context for deciding whether an edit still applies.

  3. Transfer is not guaranteed: The observation that source-evolved harnesses can start below seed harnesses on target settings (e.g., FewShotAll at 72.92 vs. seed at 75.72) challenges assumptions about positive transfer and motivates the need for memory-guided adaptation.

  4. Cross-model transfer is harder than cross-dataset: Opus-evolved harnesses starting below Gemini's seed in every domain (deficits up to 5.48 points) suggest that model-harness interactions are a significant source of variance, reinforcing the importance of provenance in SIM.

Practical Implications

  1. Model evolution workflows: SIM enables seamless continuation as models are updated within a family, with CRSI outperforming fresh RSI in two of three generations tested. This is directly applicable to production LLM serving pipelines.

  2. Multi-model serving: Unified synthesis with SIM reaches near-parity with per-model optimization (75.24 vs. 75.20 held-out), suggesting that one harness can serve multiple policy models without significant performance loss—reducing maintenance overhead.

  3. Engineering effort reduction: By preserving rationale and outcomes, SIM reduces redundant exploration and helps optimizers avoid repeating failed attempts or breaking inherited components whose purpose is documented.

  4. Evaluation methodology: The paired-study design across ten independent source runs provides a rigorous template for evaluating continual learning methods in agentic settings, addressing the common pitfall of single-run comparisons.


Conclusion

Main Takeaways

CRSI continues harness optimization when the benchmark or policy model changes. SIM carries earlier diagnoses, edits, and outcomes into this process and records new attempts. From matched starting harnesses, Full SIM outperforms harness-only continuation in all six cross-dataset settings and four Opus-to-Gemini domains. The ten-pair coding study finds a mean advantage of 2.36 points across independent source runs (p = 0.003).

The case analyses show how this history helps the proposer and selector reuse earlier reasoning while revising fixes for new requirements—retaining what works, revising what needs adjustment, and avoiding the repetition of failed attempts.

Limitations

  • Within the compute budget, independent RSI repetitions focus on coding; other domains use one run per condition.
  • The study covers settings with compatible harness interfaces and keeps the optimizer's planning and search procedures fixed.
  • SIM is evaluated as a complete procedure, combining inherited memory with updates during target optimization.

Future Directions

  • Extend evaluation to more repeated runs and longer transition sequences
  • Explore adaptation of planning, token allocation, and tool interfaces
  • Investigate the interaction between SIM and other memory mechanisms (e.g., task-solving agent memory)
  • Study the scalability of SIM as memory grows across many generations of models and benchmarks

Related papers