InquiryLoom

Source

Self-Improvement Memory Enables Continual Recursive Self-Improvement

Copy link

Press Ctrl+C (⌘C on a Mac) to copy the text below; on a phone, long-press and choose Copy.

Share posterSuggest a change
All versions

v6Update linked conclusion titles and add newly extracted independent research findings.

Chunyu_G

Changes since v5

Overview

67 unchanged lines
An AI agent can improve its performance by changing the software that manages its prompts, tools and execution, without retraining the underlying model. This paper introduces Self-Improvement Memory (SIM), which preserves the reasons behind previous software changes and their measured results so that optimization can continue when the model or task distribution changes. ## Problem Recursive self-improvement (RSI) typically optimizes an agent harness against a fixed model and benchmark. Transferring the resulting harness to a new setting does not necessarily transfer its benefits: a completion check, tool parser or retrieval strategy that works for one model or dataset may fail in another. The final harness contains the implementation, but may not explain why a change was introduced, which failures it targeted, or whether those failures were actually resolved. Without this history, subsequent optimization can repeat unsuccessful attempts or remove useful mechanisms without understanding their purpose. ## Method The authors define Continual Recursive Self-Improvement (CRSI) as continued harness optimization after a change of benchmark or policy model, assuming a compatible executable interface. Cross-dataset continuation keeps the policy fixed; cross-model continuation keeps the benchmark and evaluation split fixed. SIM accompanies the evolved harness into the next optimization stage. Unlike memory used by an agent to solve tasks, SIM is consumed by the agents responsible for improving the harness itself. [Harness optimization memory belongs to the optimizer rather than the task-solving policy](idea:69e39b89-09fa-4a69-a253-694145f4a294) ## Implementation Each memory entry represents a root-cause hypothesis, such as premature task completion. It contains a history of selected modifications, their rationale, predicted task-level improvements, observed outcomes, and provenance (domain, benchmark, policy model and optimization round). The optimization loop works as follows: 1. The evaluator executes the current harness and collects scores, traces and errors. 2. The proposer reads the harness, run history and SIM, then proposes candidate modifications. 3. The selector screens candidates and chooses among evaluated modifications, considering performance, complexity, specificity and regression risk. 4. SIM records the selected modification and measured outcomes, appending to an existing problem or creating a new entry. Unsuccessful predictions are retained; if no candidate is accepted, SIM remains unchanged. ### Optimization architecture ![SIM architecture showing source-to-target transfer, evaluator, proposer, pre-execution screening, candidate evaluation, selection, retained harness, memory reads and updates, and held-out evaluation outside the loop](asset:08b76d00-6da4-405d-b3d0-6b61b792754b "Optimization architecture redrawn from Method §§3.1–3.3 and Figure 2; policy weights remain frozen within each run.") *Conceptual diagram based on Sections 3.1–3.3 and Figure 2. The policy model remains frozen throughout.* Both proposer and selector read the complete memory. Held-out evaluation is excluded from optimization feedback. [Root-cause memory should preserve predicted and observed outcomes of selected harness edits](idea:ec72ddc1-a47b-4f79-848b-9d6719bb8757) ## Results Experiments cover coding, text classification, agentic workspace and engineering design. The authors compare fresh optimization from the seed harness, transfer of the evolved harness alone, transfer with root causes only, and transfer with full SIM. The three transfer conditions share the same starting harness and optimization budget. | Setting | Reported final held-out score advantage | | --- | --- | | Six cross-dataset transitions | Full SIM exceeds harness-only transfer by 2.43–4.35 points | | Same cross-dataset transitions | Full SIM exceeds root-cause-only memory by 0.20–6.06 points | | Four Opus-to-Gemini transitions | Full SIM exceeds harness-only transfer by 3.60–11.33 points | | Ten independent coding source runs | Mean paired advantage of 2.36 points over harness-only transfer; p = 0.003 | [Full optimization memory improves continuation beyond transferring a harness or retaining diagnoses alone](idea:992178be-466d-4aba-b782-62637e5da280) The workspace experiment illustrates why continued optimization matters: the transferred harness starts at 68.41, below the new model's seed score of 73.89. After optimization, harness-only transfer reaches 73.42, whereas full SIM reaches 84.75. ### Workspace transfer: held-out scores | Condition | Starting score | Final score | Gain | | --- | ---: | ---: | ---: | | Harness only | 68.41 | 73.42 | +5.01 | | Full SIM | 68.41 | 84.75 | +16.34 | ```mermaid flowchart LR A[Transferred harness: 68.41] --> B[Harness only: 73.42] A --> C[Full SIM: 84.75] ``` *Matched starting harness and optimization budgets; scores from Section 4.3.1. Gains are calculated from the reported endpoints.*
[Harness transfer can regress when the policy model changes](idea:c836da23-13de-4cbf-9f8c-c0254127f931) ### Additional research findings [Optimization memory can improve target-task performance while reducing regression on previously optimized coding tasks](idea:0029840c-05eb-4d41-9ed6-69d1147d0bf9) [Optimization memory can reach a stronger coding-agent harness earlier in a fixed-round adaptation budget](idea:5c276b67-551b-4679-b65c-4fba88047a4d) [Optimization memory improves coding-agent harness adaptation in nine of ten independently initialized paired experiments](idea:5109c490-3a1f-47f2-99a6-abba6069593d) [A shared agent harness optimized using feedback from multiple models can match the average performance of individually optimized harnesses](idea:b7a67ca6-2062-4a2b-9fbc-1884ac9c3b6d) [Continually inheriting an optimized agent harness across model generations does not always beat fresh optimization](idea:a54096bf-abb0-4f5c-a495-c96d23aaf7e5) ## Limitations The experiments assume compatible harness interfaces and fixed optimization procedures. Independent repetitions focus on coding; other domains use one optimization run per condition. SIM is evaluated as a combined procedure, so the effects of inherited memory and subsequent memory updates are not isolated. The complete memory is supplied without retrieval or truncation, leaving long-term scaling an open question.
4 unchanged lines
[Full-memory harness optimization has untested scaling and attribution limits](idea:c41f70a4-030e-4ef9-96d4-9ae0ad895283) The central contribution is to preserve the experience of improving an agent, not merely the improved agent implementation. The reported results support this approach under the tested transitions, rather than establishing that every future model or dataset change will benefit.