SwarmRSI: Recursive Self-Improvement through Evolving Scientific Agent SwarmsSwarmRSI: Recursive Self-Improvement through Evolving Scientific Agent Swarm
SwarmRSI evolves research state through population mutation and recombination, and the authors say NatureBench Match-SOTA 44.4% is the highest in the comparison.
- Scientific agents need to improve their research capabilities from their own experimental experience. Failed experiments do not distinguish whether to change the hypothesis or the implementation, and programs with no overall gain may still contain components that other agents need.
- SwarmRSI turns hypotheses, programs, evidence, and unresolved needs into inheritable state. Feedback from other agents decides whether to change a hypothesis or fix a program; rebase and crossover reuse hypotheses and complementary components; each result is written back to the shared graph for the next step's selection.
- Evaluated on OpenProblems, 90 NatureBench tasks, and 22 MLE-Bench Lite. The authors report an OpenProblems average of 76.2 for the Gemini backbone, and Match-SOTA of 44.4% and Any-Medal of 81.8% across both backbones.
- The authors note that the method requires executable evaluation, crossover is only available when instance-level scores exist, and H/P selection does not inherit UCB guarantees. Cross-task evidence comes from 6 source tasks, 12 held-out tasks, and one backbone. Experiments include three benchmarks, five ablation groups, and 644 failure annotations.
- Evaluated models
- DeepSeek-V4-ProGemini 3.1 Pro Preview
- Benchmarks
- OpenProblemsNatureBenchMLE-Bench Lite
- Metrics
- AvgMatch-SOTASurpass-SOTAgAbove MedianAny-MedalGold
SwarmRSI lets scientific agent swarms inherit hypotheses, programs, and experimental evidence through a shared graph, and uses feedback-guided mutation, complementary recombination, and recursive evolution to rewrite the starting point for the next round. On 118 scientific programming and ML engineering tasks, the OpenProblems single-cell evaluation averages 76.2 points, higher than human experts' 57.2 and TusoAI's 67.1; on 90 NatureBench tasks, 44.4% match published SOTA, while the best Claude Code configuration achieves 35.6%. Biologists have reproduced two of the programs and used them in follow-up research on gut and spleen immunity.
Paper analysis
What problem does this paper attempt to solve?
Failed experiments do not distinguish between hypothesis and implementation, and programs with no overall gain may still contain reusable components.
How a swarm of scientific agents can recursively self-improve (RSI) from experimental experience while avoiding discarding hypotheses prematurely and missing reusable components.
- Scenario: The authors define scientific RSI as using an agent's own experimental experience to improve its research capabilities. The swarm can divide labor into idea generation, implementation, and evaluation, and use persistent memory and shared history to pass experience to subsequent research.
- Two obstacles: Failed experiments do not show whether to change the hypothesis or the implementation, so promising hypotheses can be abandoned; programs with no overall gain may still contain components that other agents will need later (Figure 1).
- Authors' hypothesis: The value of a hypothesis depends on how it is implemented and tested, and feedback from other agents can highlight what is worth changing. Intermediate results are stepping stones for other search paths, and current scores underestimate their contribution to future research.
- This paper proposes: SwarmRSI treats inheritable research state (hypotheses, programs, experimental evidence) as the object of evolution, and updates this state via feedback-guided swarm mutation, complementary swarm recombination, and recursive swarm evolution.
What related research exists?
The authors position this paper as a study of the state of research inherited by evolving agents, rather than of changing code, policies, or workflows.
Transcribed according to the groupings in Section 2 and the introduction. The paper only mentions differences when explicitly comparing by name.
Scientific programming agents
- Tang et al. (2025), Yamada et al. (2025) use LLM agents for hypothesis generation, experiment implementation, and result evaluation.
- Program-centric agents use execution feedback to search or modify code (Jiang et al., 2025; Nam et al., 2025); R&D-Agent uses specialized roles to coordinate proposals and implementation (Yang et al., 2025).
- Systems with memory bring execution experience into subsequent experiments (Zhu et al., 2026; Du et al., 2026). Arbor links hypotheses, programs, and evidence into a persistent hypothesis tree (Jin et al., 2026); SAGE compares competing failure explanations and targets interventions at hypotheses, experimental designs, or implementations (Ma et al., 2026).
Recursive self-improvement
- AIDE2 keeps accepted code modifications as a basis for further self-improvement (Srikanth et al., 2026). Dream-RSI uses a replay simulator built from a tree of historical discoveries to improve exploration strategies (Zheng et al., 2026).
- MASS alternates between workflow evolution and model fine-tuning (Lee et al., 2026). AQuA uses recorded experiments to guide subsequent research proposals (Guo et al., 2026a).
- The paper states these methods improve the agent's code, policy, workflow, or proposals.
Two types of evolution in the introduction
- Program evolution uses execution feedback to improve executable candidates (Jiang et al., 2025; Nam et al., 2025; Novikov et al., 2025; Liu et al., 2025).
- Hypothesis evolution improves research directions through iterative generation and evaluation (Gottweis et al., 2026; Wang et al., 2026a; Liu et al., 2026; Jin et al., 2026). The paper also mentions persistent memory (Lyu et al., 2026; Weng et al., 2026) and improving exploration strategies with accumulated history (Zheng et al., 2026).
Baseline methods and benchmarks
- Program evolution baselines are AIDE, MLEvolve; hypothesis evolution baseline is Arbor; domain scientific agents are TusoAI, Biomni; general programming agents are Claude Code, Codex, Gemini CLI. ML-Master 2.0 and Famou-Agent 2.0 are also compared on MLE-Bench Lite.
- Benchmarks are OpenProblems (six single-cell tasks), NatureBench (all 90 scientific programming tasks), and MLE-Bench Lite (22 low-complexity competitions).
The authors state that SwarmRSI also grounds hypotheses in experiments and lets agents use each other's feedback and partial results; the difference from the above RSI works is the research state inherited by the evolving agents.
How does the paper address this problem?
SwarmRSI uses feedback-driven mutation, complementary recombination, and recursive evolution on a shared graph to update inheritable research state.
SwarmRSI lets a swarm of evolving agents inherit research state: feedback decides whether to change a hypothesis or fix a program, recombination reuses others' hypotheses and program components, and each result is written back to the shared graph and determines the next step. Figure 2 shows Hypothesis Agents, Program Agents, and Evidence Analysis Agents; all agents in each run share one backbone.
Problem setting and inheritable state
Given a research goal q, a starting program p0, and a budget B, the system returns the highest-utility program among those validly evaluated within budget: p⋆B ∈ argmaxp ∈ Pvalid(B) u(p). A hypothesis h specifies a modeling or algorithmic mechanism, and a program p implements it under task constraints; different programs can test the same hypothesis.
At step t, the acting agent uses research state st=(Ht,Pt,Et,Ut), i.e., hypotheses, programs, experimental evidence, and unresolved needs. The state is assembled from records in the shared graph Gt relevant to the current action, including other agents' results. Each record contains the tested hypothesis, parent and resulting programs, the outcome, and execution and implementation evidence. The graph keeps failures and no-gain attempts, and edges record hypothesis–program associations and parent or reuse relations.
Feedback-Guided Swarm Mutation
- Input: Selected parent pair (ht, pt) and state st. The authors state that unsuccessful runs point to implementation obstacles, and cross-instance differences point to research directions to modify.
- Proposal: Propose gives a new hypothesis and a revision plan δt. Cross-instance differences guide hypothesis revision; execution failures or unimplemented interventions guide program repair.
- Two mutation types: Changing the hypothesis is H-mutation; keeping the hypothesis and only fixing the implementation is P-mutation. Implement executes the plan on the parent program. Candidates retain the parent relation and revision rationale and enter shared evaluation.
Complementary Swarm Recombination
- Rebase: For hypotheses with unresolved implementation needs, match by need and program-mechanism labels, select a base bt from another agent's valid program frontier, keep ht, and rewrite its implementation. Requests triggered by the new best program point directly to that program.
- Crossover: Use observed utility by instance (dataset or subtask). Donors are programs that beat the parent program on some instance, sorted by largest advantage. For each instance, take the component from the highest-ranked donor that beat the parent there, and keep the parent's component elsewhere. At most two donors. Enabled only when instance-level feedback is available.
- Both operations record provenance and send new candidates into the same evaluation loop.
Recursive Swarm Evolution
- Two frontiers: Hypothesis frontier FH keeps active hypotheses balanced across mechanism families; program frontier FP keeps the current best program and the best program of each implemented family. In Table 5, active hypotheses/programs representation is 4/8.
- H/P selection: Score feasible frontiers f with discounted-UCB: recent improvement per token cost, plus an exploration term, plus saturation pressure from unresolved needs the frontier can handle. β=0.5, γ=0.25, discount ρ=0.9, need saturation K=4, wait threshold W=8 (Table 5). Untried frontiers, and frontiers that have waited too long, take priority over scores; when both have no updated samples, H precedes P.
- Write-back: Each candidate is executed and evaluated per the task protocol. Execution checks completion and task compliance; source and output comparison checks whether the planned changes were implemented. Attempts that succeed, fail, or yield no gain all update the graph, and the next agent assembles state from it. On implementation failure, the hypothesis is kept and a program fix is requested (deepen); on mixed wins and losses across instances, a hypothesis change is requested (broaden); when a new best program appears, a request is made to implement the retained hypothesis on it. After the budget is exhausted, the best valid program is returned.
The code audit in Appendix A.2 checks execution and the task contract; the scientific audit compares parent-child source and submitted outputs, flagging unchanged source, new functions without static references, or identical comparable outputs. Only valid scored candidates that pass source/output checks receive hypothesis credit.
What experiments did the paper conduct?
The authors state that OpenProblems average score and NatureBench Match-SOTA are the highest among the compared methods.
Experimental Setup
- Backbone: The authors run DeepSeek-V4-Pro and Gemini 3.1 Pro Preview. All agents in each run share one backbone. Results marked with † are means over three random seeds. Published entries retain their original settings; the authors state that comparisons with them are descriptive.
- Benchmarks: OpenProblems six single-cell tasks (denoising, label prediction, batch integration, spatially variable genes, deconvolution, visualization); NatureBench all 90 scientific programming tasks across six domains; MLE-Bench Lite low-complexity split of 22 competitions. The main text collectively calls them 118 scientific programming and machine learning engineering tasks.
- Re-run baselines: Same DeepSeek-V4-Pro: AIDE, TusoAI on OpenProblems; AIDE, Arbor on NatureBench; MLEvolve, Arbor on MLE-Bench Lite. Published comparisons also include Biomni, ChatGPT, Claude Code, Codex, Gemini CLI, ML-Master 2.0, Famou-Agent 2.0, etc.
- Metrics: OpenProblems uses the official evaluator's normalized scores (×100) and the six-task equal-weight mean Avg. NatureBench first passes a benchmark validity judge, then reports Match-SOTA (g≥0) and Surpass-SOTA (g>0.1); g is the direction-adjusted improvement relative to published SOTA. MLE-Bench Lite uses the official scorer on a private test split to give Above Median and medal rates; Any-Medal is the proportion of tasks achieving any medal. Ratio denominators include invalid or missing results.
- Budget and tests: Per-task time limits are 8, 4, 12 hours, respectively. Comparisons with Arbor and AIDE on NatureBench Match-SOTA use 95% paired bootstrap intervals and McNemar tests.
Main Results
The table below lists only the authors' three-seed re-runs (†). OpenProblems Avg, NatureBench S/M, and MLE-Bench Lite Any-Medal and Gold come from Tables 1–3, respectively. A cell marked "not reported" means that table does not have that method × benchmark.
Swipe horizontally to read the table
Method and backbone OP Avg NB Match NB Surpass MLE Any-Medal MLE Gold SwarmRSI, Gemini 3.1 Pro Preview 76.2 44.4% 14.4% 81.8% 40.9% SwarmRSI, DeepSeek-V4-Pro 74.2 44.4% 15.6% 81.8% 45.5% Arbor, DeepSeek-V4-Pro not reported 36.7% 12.2% 77.3% 40.9% AIDE, DeepSeek-V4-Pro 55.8 27.8% 10.0% not reported not reported TusoAI, DeepSeek-V4-Pro 67.1 not reported not reported not reported not reported MLEvolve, DeepSeek-V4-Pro not reported not reported not reported 72.7% 36.4% - The authors claim SwarmRSI achieves SOTA on OpenProblems and NatureBench and surpasses hypothesis-evolution and program-evolution agents under the same backbone. Relative to Arbor and AIDE, they report Match-SOTA higher by 7.8 and 16.7 percentage points, with 95% CIs [2.2, 13.3] and [8.9, 24.4], and McNemar p-values 0.015625 and 0.0000610. Relative to same-backbone Claude Code, they report Match-SOTA higher by 21.1 percentage points; this entry comes from published results.
- In Table 1, Avg is highest for the Gemini row, but not highest on every task: on Label, Biomni is 89.0, Human Expert 85.0, ChatGPT 81.0; on Batch, ChatGPT is 83.0. In Table 2, the highest Match-SOTA across the table is 44.4%, the lowest is Claude Code with DeepSeek-V4-Pro at 23.3%; Surpass-SOTA is not the highest, with Claude Code with Qwen 3.8 Max 0902 at 17.8%. These published rows are omitted from the table.
- In Table 3 same-backbone re-runs, SwarmRSI's Any-Medal is higher than Arbor's and MLEvolve's. Published Arbor (GPT-5.5) has Any-Medal 86.4% and Gold 77.3%; Famou-Agent 2.0 has Gold 50.0% and Above Median 93.9%. SwarmRSI (DeepSeek-V4-Pro) has Above Median 90.9%. The authors state that in Figure 6 its tokens are fewer than TusoAI's and Arbor's; the main text does not give token numbers for that figure.
Trajectories and Cross-Task Transfer
- Failure recovery and hypothesis conversion: Across all 90 NatureBench tasks on DeepSeek-V4-Pro, subsequent refinement turns 35% of failed implementations into new best valid programs, versus 12% for AIDE and 5% for Arbor (Figure 4a). Of proposed hypotheses, 62% lead to improvement, versus 17% for Arbor. Appendix C.3 states stagnation rates of 43%, with AIDE 63% and Arbor 70%.
- Inherited updates: In one seed of the same backbone across all 90 tasks, about 77% of final best program lineages contain at least one rebase, crossover, or feedback-triggered update. Updates triggered by performance feedback or unresolved implementation requests achieve a new-best rate of 28.4%, versus 21.9% for all updates. The authors give examples: on 00917, after nine consecutive candidates without improvement, two hypothesis mutations reach Surpass-SOTA; on 00639, crossover combining three programs reaches Match-SOTA, then a rebase enables previously unexecuted code.
- Cross-task: Six source tasks are split into three generations, two per generation, then search proceeds on a pre-fixed set of 12 held-out tasks. The authors state that after three generations, inherited state raises mean g from 12.01 to 21.89 and Match-SOTA from 41.7% to 86.1% (Table 12, three seeds). Gen 3's Δg relative to cold start is 9.88, paired 95% CI [6.88, 13.06].
Failure Analysis and Biological Case Studies
- Failure types: The authors annotate 35 trajectories below Match-SOTA or without medals, totaling 644 failed attempts; two annotators have Cohen's κ=0.92. Of these, 93.3% are faithful interventions with no gain, and 6.7% are implementation or execution issues. On 00838, upstream and downstream code covers the proposed replacement, and the score remains valid; on 02316, a negative binomial mixture with a Potts spatial prior runs correctly but collapses all positions into one cluster.
- Gut case: Biologists reproduce the program on the contrastiveVI task: subtract each infected cell's healthy-neighbor mean, then reduce dimensions on the residuals. In the Haber gut instance, helminth day 10 gut epithelial MHC-II mean is higher than Salmonella's, written as 1.17 versus 0.34. Across two helminth day-10 sources, covariate-adjusted local Spearman ρ is 0.77 and 0.69, and RNA PCA is 0.65 and 0.40; across four sources, antimicrobial scores have lower local agreement than RNA PCA (Section 5.5).
- Spleen case: On the CytoCommunity task, the evolved program combines phenotype-derived anatomical priors with an anatomy-constrained Markov random field, raising g from 0.045 to 0.102. Across three spleen images, in manually annotated marginal zones, 20–21% of B cells fall in myeloid/erythroid-rich neighborhoods. The authors state that six markers show no consistent shift across the three images, and the B220 effect changes sign.
Additional Ablations and Analyses
Table 4 covers all 90 NatureBench tasks, DeepSeek-V4-Pro, three seeds. Match / Surpass / mean g (×100): full method 44.4 / 15.6 / 12.8; without H-mutation 34.4 / 8.9 / 7.2; without P-mutation 31.1 / 6.7 / 5.4; without recombination 37.8 / 7.8 / 7.6; without shared graph 36.7 / 10.0 / 8.1; H/P selection changed to fixed alternation 35.6 / 8.9 / 4.6. The authors state that removing H or P mutation lowers Match-SOTA by 10.0 and 13.3 percentage points, and claim program repair contributes more. In Table 6, task-paired 95% CIs for mean g decreases across variants all exclude 0, with the largest decrease being 8.2 for removing H/P selection. Appendix B.7 states that task-level g varies across the three seeds (per-task range 0.0123–0.0781), but no task crosses the Match-SOTA or Surpass-SOTA thresholds, and no competition crosses a medal boundary.
What are some points that can be further explored?
The authors note reliance on executable feedback, and that the benefits of H/P selection are only established empirically.
Limitations and future directions noted by the authors
- An evaluator that can execute candidate programs is required; research without executable feedback is out of scope (Section F).
- Execution feedback does not necessarily show whether a predetermined intervention was faithfully implemented, and performance gains alone do not establish its scientific mechanism (Section F).
- Rebase selects bases by matching recorded implementation needs and program mechanism labels; the authors call this a heuristic and say it does not measure what programs can do. Crossover applies only when benchmarks report per-instance scores (Section F).
- H/P selection adapts discounted UCB but does not inherit its guarantees; benefits are established only empirically (Section F).
- Evaluation is a matched-budget comparison on three benchmark families. The human failure analysis characterizes 644 failed attempts across 35 trajectories. Cross-task evidence comes from six source tasks, 12 held-out tasks, and one backbone, with the number of generations confounded with the number of source tasks seen (Section F).
- The evaluation does not separately assess literature synthesis, idea quality, or peer review quality. The authors write that generalization to the full research pipeline and information-seeking agents requires additional evaluation; settings such as legal reasoning, zero-shot entity extraction, conversational recommendation, and shopping research are untested and require task-specific objectives and protocols (Section F).
Experimental coverage
- The backbones run by the authors are DeepSeek-V4-Pro and Gemini 3.1 Pro Preview; baseline reruns under the same backbone use DeepSeek-V4-Pro, and entries marked with † in Tables 1–3 are means over three random seeds (Section 4.5).
- Benchmarks are six OpenProblems tasks, all 90 NatureBench tasks, and 22 MLE-Bench Lite competitions; per-task time limits are 8, 4, and 12 hours (Sections 4.2, B.4).
- Ablations compare five variants on all 90 NatureBench tasks with DeepSeek-V4-Pro as the backbone and three seeds (Table 4). Match-SOTA comparisons with Arbor and AIDE report McNemar tests and 95% paired bootstrap intervals (Section B.3).
- Trajectory diagnostics cover all 90 NatureBench tasks; the ~77% inheritance source statistics come from one seed of DeepSeek-V4-Pro. Cross-task experiments use six source tasks, 12 held-out tasks, one backbone, and three seeds (Sections 5.3, C.2).
- Failure annotation covers 35 trajectories and 644 attempts, with two annotators and κ=0.92 (Section 5.4). Biologists reproduced two programs. The paper does not give specific token counts for each method in Figure 6 in the main text, only stating they are less than TusoAI and Arbor.
Summarize the main content of the paper
SwarmRSI evolves inheritable research state, and the authors state it achieves SOTA on two scientific programming benchmarks.
SwarmRSI is a recursive self-improvement framework for a swarm of scientific agents: what evolves is the research state that agents inherit next, not just code or workflows.
- Problem: Failed experiments do not distinguish whether the hypothesis or the implementation is at fault, so promising hypotheses can be abandoned; programs with no overall gain may still contain components that other agents need.
- Method: A shared graph stores hypotheses, programs, evidence, and unresolved needs, including failed and no-gain attempts. Feedback-Guided Swarm Mutation uses feedback from other agents to decide whether to mutate the hypothesis (H-mutation) or fix the program (P-mutation). Complementary Swarm Recombination uses rebase to attach retained hypotheses to others' effective programs, and crossover to combine complementary components by instance. Recursive Swarm Evolution uses discounted-UCB to allocate the next step between the hypothesis frontier and the program frontier, and writes each outcome back to the graph.
- Results: The authors claim state-of-the-art results on OpenProblems and NatureBench. Gemini 3.1 Pro Preview achieves a mean of 76.2 across six OpenProblems tasks, and DeepSeek-V4-Pro 74.2 (Table 1). Both backbones achieve a Match-SOTA of 44.4% on all 90 NatureBench tasks, which the authors claim is the highest among compared methods; under the same backbone, this is 7.8 percentage points higher than Arbor and 16.7 percentage points higher than AIDE, with McNemar p<0.05 (Table 2). On MLE-Bench Lite, both backbones achieve an Any-Medal of 81.8%, which the authors claim is higher than hypothesis- and program-evolving agents under the same backbone (Table 3). In one seed, about 77% of the final best programs come from rebase, crossover, or feedback-triggered updates.
- Exceptions: Individual items such as Label and Batch, as well as Surpass-SOTA on NatureBench and some published MLE entries, are higher than SwarmRSI. Of 644 annotated failures, 93.3% were faithful interventions with no gain.
- Authors' conclusions: The swarm improves its own research by evolving what agents inherit. Biologists reproduced two programs and used them for subsequent analyses of gut and spleen immunity. The authors also write that executable feedback does not automatically indicate whether an intervention was faithful, and performance gains do not establish a scientific mechanism.