SwarmRSI: Recursive Self-Improvement through Evolving Scientific Agent Swarm

Qianru Meng, Xi Zhang, Konstantinos Papakostas, Congfeng Cao, Wenxiang Hu, Tianyi Lu, Lun Zhou, Zaiqiao Meng, Zhaochun Ren, Xiaohui Yan, Yougang Lyu

TL;DR

SwarmRSI is a framework that enables swarms of AI agents to recursively improve their scientific research capabilities by evolving a shared pool of hypotheses, code, and experimental evidence. By decoupling the revision of ideas from the repair of code and recombining successful components from otherwise "failed" experiments, it achieves state-of-the-art results on major scientific discovery benchmarks like NatureBench and OpenProblems.

What Problem Does This Paper Address?

Scientific discovery is an iterative process of trial and error, but current AI agents often struggle with two fundamental bottlenecks:

  1. The Attribution Problem: When an experiment fails, it’s often unclear whether the underlying hypothesis was flawed or if the implementation (the code) was simply buggy. Standard agents might abandon a brilliant idea just because the first version of the code didn't work.
  2. The Hidden Value Problem: A research program might fail to improve the overall "score" of a task, yet still contain a highly effective sub-component (e.g., a specific data processing function) that could be the missing piece for another agent's research.
Figure 1: Two limitations motivating SWARMRSI. In the top example, a poor result does not show whether the hypothesis or its implementation needs revision, and a promising hypothesis is abandoned. In the bottom example, a program without overall gains holds compo- nents useful to another agent’s later research. Dashed links mark open revisions and potential reuse.

SwarmRSI addresses these by treating research not as a linear path, but as an evolving swarm of "inheritable research states" that agents can mutate, recombine, and refine over time.

Methods

The framework operates through a central Shared Research Graph that records every attempt, including failures. The core logic is driven by three main mechanisms:

  • Feedback-Guided Swarm Mutation: Agents use experimental feedback to decide their next move. If an experiment fails due to code errors, the agent performs a P-mutation (repairing the program). If the code runs but the results are poor or inconsistent, it performs an H-mutation (revising the hypothesis).
  • Complementary Swarm Recombination: This allows agents to "mix and match" successes.
  • Rebase: An agent can take a promising hypothesis and "rebase" it onto a more stable program developed by a different agent.
  • Crossover: Agents can combine code components from different programs that showed strengths in different sub-tasks or data instances.
  • Recursive Swarm Evolution: A controller manages the "frontier" of active research. It uses a discounted Upper Confidence Bound (UCB) strategy to decide which hypotheses to revisit and which programs to refine, balancing the need to explore new ideas with the "pressure" to fix known implementation gaps.
Figure 1: Two limitations motivating SWARMRSI. In the top example, a poor result does not show whether the hypothesis or its implementation needs revision, and a promising hypothesis is abandoned. In the bottom example, a program without overall gains holds compo- nents useful to another agent’s later research. Dashed links mark open revisions and potential reuse.

Datasets

The authors evaluated SwarmRSI across 118 tasks using three diverse benchmarks:

  • OpenProblems: Six complex single-cell analysis tasks (e.g., denoising, batch integration).
  • NatureBench: 90 scientific coding tasks spanning protein biology, physics, molecular design, and more.
  • MLE-Bench Lite: 22 machine learning engineering competitions.

The framework was tested using two different LLM backbones: DeepSeek-V4-Pro and Gemini 3.1 Pro Preview.

Key Insights and Ideas

  • Failure is a First-Class Citizen: Unlike many agents that discard failed runs, SwarmRSI uses them to guide future repairs. The authors found that 35% of failed implementations eventually led to new "best" programs after subsequent refinement.
  • Hypothesis Persistence: By decoupling ideas from code, SwarmRSI is much more efficient at finding winning ideas. 62% of its proposed hypotheses eventually led to improvements, compared to only 17% for baseline methods like Arbor.
  • Cross-Task Inheritance: The "self-improvement" isn't just within a single task. When the system was allowed to inherit research states from previous tasks, its performance on new, held-out tasks nearly doubled (from 41.7% to 86.1% Match-SOTA rate).
  • Swarm Synergy: In their analysis, 77% of final best programs were direct descendants of a rebase, crossover, or feedback-triggered update, proving that the collaborative swarm approach is central to its success.

Key Results

SwarmRSI consistently outperformed both general-purpose coding agents and specialized scientific agents:

  • State-of-the-Art Performance: On OpenProblems, it achieved an average score of 76.2, significantly higher than human experts (57.2) and specialized agents like TusoAI (67.1).
  • NatureBench Dominance: It matched the published SOTA on 44.4% of tasks, the highest rate among all compared methods.
  • MLE-Bench Success: It earned medals on 81.8% of tasks, outperforming other self-evolving frameworks like MLEvolve.
  • Real-World Utility: Professional biologists successfully reproduced two of the programs evolved by SwarmRSI and used them for follow-up research into intestinal and splenic immunity.
Figure 3: SWARMRSI with two backbones. Full bars give Match-SOTA and Any-Medal rates (%), and solid portions give Surpass-SOTA and Gold rates.

Limitations and Future Work

  • Executable Requirement: SwarmRSI relies heavily on execution feedback. It cannot currently tackle purely theoretical research where code cannot be run and evaluated automatically.
  • Heuristic Rebase: The process of matching "needs" to "mechanisms" during rebasing is currently heuristic-based and could be improved with more sophisticated semantic matching.
  • Scope: The current evaluation focuses on coding and data analysis. The authors note that generalizing this to complete, end-to-end research workflows (including literature synthesis and physical lab automation) remains a challenge for future work.

Summary updated

BibTeX
@misc{meng2026swarmrsi,
  author = {Qianru Meng and Xi Zhang and Konstantinos Papakostas and Congfeng Cao and Wenxiang Hu and Tianyi Lu and Xiao Zhang and Lun Zhou and Zaiqiao Meng and Zhaochun Ren and Xiaohui Yan and Yougang Lyu},
  title = {{SwarmRSI: Recursive Self-Improvement through Evolving Scientific Agent Swarm}},
  year = {2026},
  eprint = {2610.20431},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.20431},
}
Figure