arXiv(opens in a new tab)cs.LGOct 2026Cited by 5 papers on PaperVantage

Manuscript Offprint

arXiv:2610.10310

RSIGym: A Flexible Environment for Recursive Self-Improvement

Fanqing Meng, Lingxiao Du, Haocheng Lu, Qiguang Chen, Ziqi Zhao, Zijian Wu, Jiayuan Zhuo, Mengkang Hu, Michael Qizhe Shieh

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

ABSTRACT

Recursive self-improvement requires carrying accepted changes into later improvement cycles, while studying agent-proposed changes also requires substantial research infrastructure. Existing settings often leave agents to rebuild routine infrastructure or restrict exploration to individual components. We introduce RSIGYM, an agent-native research environment based on Everything as a Service (EaaS). RSIGYM exposes training, inference, rollout, evaluation, and sandbox execution through reusable services, with shared budget and permission controls supporting Data, Harness, and Joint improvement tracks. This design enables agents to investigate individual interventions and jointly optimize data, training settings, and execution harnesses within the same environment. We define RSI-Index as the mean fraction of the remaining performance gap closed across five benchmarks covering software engineering, terminal interaction, mathematics, scientific reasoning, and skill-based tasks. Comparing six frontier research models in independent Joint runs, Opus 5 achieves the highest RSI-Index of 0.4809 under a $500 platform-service budget per benchmark run. Its selected systems improve all five benchmarks, raising SWE-bench Verified from 17.67% to 50.33% and AIME from 31.67% to 97.78%. Additional experiments examine DSH-harness refinement, budget variation, and restricted network access, while recorded trajectories reveal how agents diagnose failures and select candidates. We open-source the full RSIGYM codebase and results to support reproducibility and further research.

1. Introduction

Following a recent survey, we use recursive self-improvement (RSI) for a process in which accepted changes are carried into later improvement cycles; recursive progress further requires that inherited changes improve how subsequent improvements are produced [Li et al., 2026a]. Automated scientific-research systems such as The AI Scientist generate ideas, run experiments, and analyze results [Lu et al., 2024, Chen et al., 2025]. In the improvement loop studied here, an agent identifies a behavioral bottleneck, proposes an intervention, and tests whether the target system improves. Yet existing environments often leave routine training and inference infrastructure for the research agent to assemble. For example, PostTrainBench gives agents an H100 GPU and internet access but no starter code, training data, or hyperparameter configuration, so agents must build the training pipeline themselves [Rank et al., 2026]. Reusable services can remove this repeated setup work and leave agents more of their time and

†^{\dagger}Corresponding authors: mkhu@evolvent.co and qizhex@nus.edu.sg.

evolvent.co

RSIGym

S

compute budget for investigating the target system.

Reducing this engineering burden must go hand in hand with preserving the agent's freedom to explore how different components contribute to improvement. Existing benchmarks establish useful, controlled settings by focusing on particular parts of the workflow (Table 1): optimizing bounded post-training runs and training algorithms [Rank et al., 2026, Chi et al., 2026], revising training-data strategies under a shared training stack [Meng et al., 2026], or searching harnesses around fixed actor weights [Sleiman et al., 2026]. These settings help study individual interventions, while a broader RSI environment must also support their interactions. Training data and hyperparameters determine the learned model, and the harness determines how that model reasons, uses tools, and acts in a task. Studying their co-evolution therefore calls for reusable infrastructure that agents can invoke directly, together with a configurable improvement space. The same environment should support controlled studies of individual components and joint optimization of data, training settings, and harnesses.

We bring these two requirements together in RSIGYM, an agent-native research environment built on Everything as a Service (EaaS). Research agents work in lightweight, CPU-only containers and conduct experiments through five reusable services. A Train Server executes LoRA fine-tuning through Tinker with optional custom losses, and a Model Server exposes base models and trained checkpoints through an OpenAI-compatible gateway. A Rollout Server provides frontier models for data generation and judging, while a Benchmark Server evaluates model-harness pairs through Harbor. A separate Sandbox Service provides E2B cloud sandboxes for data generation, testing, and other computation. Together, these services support a continuous research loop: the agent proposes a change, trains or revises a candidate, evaluates it, and uses the returned evidence to decide what to try next. Familiar interfaces, service skill documents, and asynchronous execution make this loop directly accessible to research agents.

The scope of this research loop is controlled through permissions and budgets, allowing the same services to support different experimental questions. A shared authorization service checks every call against the run's permissions and remaining budget and records its cost. In the Data track, the agent changes training data while the training recipe and harness remain fixed. In the Harness track, it revises the execution code with model weights held fixed. The Joint track opens data, training settings, and harness code together. These settings make it possible to study individual interventions and their co-evolution within a common infrastructure. Our experiments measure target-system gains within individual budgeted research runs. Whether the resulting systems improve subsequent research cycles remains to be evaluated.

To measure what agents achieve within these improvement spaces, we introduce RSI-Index across SWE-bench Verified, Terminal-Bench 2.0, AIME, GPQA Diamond, and SkillsBench. The index averages the fraction of the remaining performance gap closed on each benchmark, giving all five domains equal weight. In the Joint track, six frontier research models start from the same base model and minimal harness. With a $500 platform-service budget per benchmark run, Opus 5 achieves the highest RSI-Index of 0.4809. Its selected systems improve all five benchmarks, raising SWE-bench Verified from 17.67% to 50.33% and AIME from 31.67% to 97.78%.

The environment’s configurable controls also let us examine how outcomes vary with the starting harness, available budget, and access to external data. With Qwen3.6-35B-A3B-Instruct weights fixed, autonomous revisions to the existing DSH-harness raise Terminal-Bench performance from 30.34% to 40.82%, increasing the number of tasks solved on all three attempts from 15 to 26. Raising the service budget from 500to500 to1,000 improves three of four tested research-model-benchmark pairs. An additional Data-track run disables public network access to examine research under network isolation. The recorded trajectories connect these outcomes to the agents’ experiments, showing how they diagnose failures, compare candidates, and select final systems. RSIGYM thus supports studying both the improvements agents produce and the research decisions that lead to them.

Our contributions are threefold:

• An Agent-Native RSI Environment. We introduce RSIGYM, which combines reusable research services with shared budget and permission controls to support both component-level interventions and joint optimization.

• Cross-Domain Evaluation and Empirical Analysis. We define RSI-Index, compare six frontier research models across five benchmarks, and analyze how research decisions and experimental settings shape improvement.

evolvent.co

RSIGym

S

Figure

Figure 1: Overview of RSIGYM. Inside a lightweight container, the research agent iterates a research loop: it generates data, trains a checkpoint, evaluates the checkpoint with its harness, and analyzes the results to revise its data, training configuration, or harness. Colored tags mark the services each stage uses. The services themselves, shown at the bottom, run on external providers. All five share one authorization service, which checks every call against the run's platform key and tracks the run's budget (Sections 3.3 and 3.4). When the run ends, the agent submits its final system, which the same evaluation service scores under a fixed protocol.

• Open Code and Experimental Records. We release the full codebase, experiment details, and evaluation results to support reproduction and further research.

References (21)