Manuscript Offprint

arXiv:2610.32026

RSI-Opt: Recursive Self-Improvement Optimizer Agents For Model Training

Binghang Lu, Yige Sun, Guang Lin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Conventional neural-network training typically follows a predefined optimization recipe, motivating a LLM agent that monitors training dynamics and adjusts optimizer settings as training progresses, but a fixed agent policy does not accumulate experience across runs. We introduce RSI-OPT, a plug-and-play Recursive Self-Improvement Optimizer Agents which evolves the knowledge that guides this process: a prompt, a playbook of procedures, a library of tested optimizer code, and a decision cadence. A meta-agent rewrites this policy using evidence from earlier runs, and an archive retains evaluated policies for further evolution. Across 5 generations on three training tasks, the meta-agents develop reusable procedures and code and conduct their own CPU proxy experiments. RSI-Opt substantially improves optimizer-agent performance, with representative raw-space summary z-scores increasing from +10.48 to +14.33 on the evolution suite with Opus 5.5 and from -0.36 to +3.11 on held-out tasks with GPT-5.5 through cross-model policy transfer. On the Burgers PDE, it reduces mean relative L2L_{2} error by approximately 2.7-fold with Opus 5.5 and 8.8-fold with GPT-6.1 over the fixed-prompt agent baseline, although PDE transfer varies across LLMs and tasks. Controlled comparisons show that the evolved policy combines reusable optimization knowledge with adaptation to each task: initial decisions capture most observed gains on seen tasks, while continued adaptation improves outcomes on unseen tasks. These findings demonstrate how procedures and executable tools accumulated across training runs can improve optimizer-agent performance and support transfer to scientific machine learning.

1 Introduction

Neural-network training usually begins with an optimizer and schedule chosen in advance. Their effectiveness can depend on the architecture, data, and training dynamics, yet selecting a new recipe often requires repeated runs and manual intervention. A coding agent offers another form of adaptation: it can inspect a training run and revise the optimizer's program while the model trains. Concurrent work on reactive optimizers, OPAL [2], studies this within-run setting. A single LLM agent observes training dynamics and revises the update rule, learning rates, schedules, and diagnostics during an individual run. Its conversation persists within that run, but its fixed initial policy does not retain lessons for the next one. A useful optimizer change, a misleading diagnostic, or a tested implementation must be rediscovered when a new run starts. We study whether optimizer agents can improve this initial policy across runs through recursive self-improvement. RSI-OPT makes the agent's accumulated knowledge an explicit, editable object: a prompt, a playbook of procedures and lessons, a library of optimizer and diagnostic code, and a decision cadence. An outer meta-agent reads evidence from earlier runs, modifies a parent policy, and evaluates the child on a training suite. An archive supports continued exploration and inheritance, following the archive-based approach of the Darwin Gödel Machine [35]. The underlying LLM weights, meta-agent instructions, and evaluator remain fixed; the policy used to improve optimizers is the object that evolves (Figure 1). This separation makes the learned knowledge inspectable, but it also exposes a generalization question. A policy can improve its evolution score by accumulating broadly useful procedures or by fitting recipes to a few familiar tasks. Better training-suite performance alone does not distinguish the two. Nor does a growing code library show whether an agent still needs to adapt during a new run. We therefore examine the content of the evolved policies, their transfer to unseen tasks and other LLMs, and the contribution of decisions made after the initial optimizer change. Our contributions are:

• An explicit policy-evolution framework for optimizer agents. RSI-OPT adds cross-run policy evolution to the within-run optimizer-agent setting. Our experiments connect a coding agent to an editable optimizer interface, allowing it to monitor training dynamics and revise update rules during a run. fixed baseline prompt, and four example tasks, with attribution and implementation details in Section 4. The contribution is the evolving policy, outer search, and study of the resulting knowledge.

• An evaluation of transfer and online adaptation. We evaluate nine single-GPU tasks with three in-run LLMs, fresh evaluation seeds, comparisons of reported means, and controls using an unedited library template, a frozen first optimizer change, a one-decision agent, and the full agent. Three tasks guide evolution; three ML tasks and three PDE problems test transfer beyond that suite.

• Evidence of selective transfer and specialization. Evolved policies improve the training suite for all three LLMs. GPT-5.5 and GPT-6.1 improve the mean summary score in every task group; Opus 5.5 improves on four of six held-out tasks but has a lower aggregate held-out summary score. Initial adaptation captures most of the observed benefit on seen tasks, while later decisions improve unseen-task performance for both baseline and evolved agents. Held-out ML transfer peaks early as continued evolution increasingly fits the training suite.

The meta-agents accumulate substantive artifacts: reusable update modules, parameter-role checks, scheduling procedures, and CPU proxy experiments. We analyze these artifacts alongside their measured outcomes rather than treating higher archive scores as sufficient evidence of general improvement. The harness, policies, transcripts, and results are released.

References (33)