# MedicalRSI: Medical Recursive Self-Improving Agents via Clinical Model-Harness Co-Evolution

> MedicalRSI trains a model to act on clinical workflows and write skills or tools from its failures, rewarding harnesses by gains over acting without them. After ten training rounds, Qwen3.5-9B's MedAgentBench task success reaches 85.1%, 22.3 points above the strongest baseline.

- arXiv: https://arxiv.org/abs/2611.26806
- Authors: Ziqing Wang, Hamid Palangi, Lili Zhao, Kaize Ding
- Published: 2026-11-24
- Topic: Agents
- Visual carousel: https://instaxiv.com/p/2611.26806
- Explanation by InstaXiv, a secondary educational summary. Cite the original paper for exact results. InstaXiv is not affiliated with or endorsed by arXiv or Cornell University.

## Can Qwen3.5-9B learn to improve how it improves on MedAgentBench?

**85.1%** Overall tasks solved; +22.3 pts vs GRPO Solver

## When the agent learns, who improves it?

**Earlier routes:** They train model weights or change the harness, while the strategy choosing those changes stays fixed.

**MedicalRSI:** One shared model learns both to act and to write workflow harnesses from failures.

## A failure becomes a workflow-specific harness

![Figure 4](https://cdn.instaxiv.com/figures/2611.26806/figure4.webp)

The Solver reads magnesium from three days earlier and places no order. The Improver adds a 24-hour filter; memory keeps the higher-gain skill/tool per workflow for reuse on new patients. (Figure 4)

## A harness is judged by what it changes

**No reference harness:** The Improver sees task traces and outcome feedback, but no reference answers or grader checks.

**Counterfactual gain:** Compare each candidate with the Solver without a workflow-specific skill or tool, on the same tasks. Outcome/process scores credit fixes, penalize regressions, and mixed order/no-order case types weigh equally.

## Harnesses turn unsolved tasks into training signal

![Figure 3](https://cdn.instaxiv.com/figures/2611.26806/figure3.webp)

On MedAgentBench with Qwen3.5-9B, 19% of training tasks remained unsolved after eight RL-only attempts in the last round, versus 3% with failure-written harnesses. (Figure 3)

## The Solver and Improver train together

1. **SFT warm-start**: Selected GPT-6.1-Sol harnesses that improved the Base Agent seed the writer.
2. **Reward both roles**: RL trains the Solver on task success and the Improver on harness gain over the no-workflow-skill/tool baseline.
3. **Shared weights**: Both roles train the same model; its revised Improver writes harnesses for the next round.

## A harness must keep pace with its Solver

**Frozen after round 1:** On Qwen3.5-9B, it adds 3.9 points over the Solver alone in the last MedAgentBench round.

**Round-10 co-evolved harness:** It adds 20.1 points over that same Solver.

## MedAgentBench: overall and held-out task success

| Method | Overall Outcome (%) | Held-out Outcome (%) |
| --- | --- | --- |
| GRPO Solver | 62.8 ± 2.8 | 38.3 ± 6.4 |
| GRPO Improver | 61.2 ± 2.2 | 52.7 ± 5.2 |
| **MedicalRSI (+22.3/+13.4 pts)** | **85.1 ± 1.9** | **66.1 ± 5.1** |

_Qwen3.5-9B, 10 rounds; Outcome (% solved), ± bootstrap SD; held-out = 6 workflows/60 tasks. Deltas vs best row; main table._

## A second EHR benchmark repeats the advantage

**Fixed Improver (GPT):** With Qwen3.5-9B, it solves 69.5% ± 2.1 overall on MedAgentGym's EHR-SeqSQL tasks over MIMIC-III.

**MedicalRSI:** It reaches 89.0% ± 1.6 overall, 19.5 points above that strongest baseline.

## New workflows adapt without retraining

1. **Probe first**: With weights fixed, the Solver tries an initial batch without a workflow-specific skill/tool; the Improver reads traces and outcome feedback.
2. **Use nearby workflows**: For new workflows, it references skills/tools from the three most similar training workflows, never reference answers.
3. **Evaluate candidates**: It averages 16 candidates on that batch; with traces but no outcome feedback, Qwen3.5-9B loses only 0.6 Outcome points on MedAgentBench.

## Transfer beyond the original solver and database

![Figure 6](https://cdn.instaxiv.com/figures/2611.26806/figure6.webp)

Panel (a): a trained 9B Improver helps seven other solvers, including frontier models. Panel (c): after MIMIC-III training, it scores 37.2% on 320 eICU tasks, +4.7 points vs next, without weight updates. (Figure 6)

## Boundaries on what these benchmarks establish

- **Benchmark scope**: Results are grader-scored EHR tasks on MedAgentBench and MedAgentGym, not prospective clinical outcomes.
- **Test-batch adaptation**: Main scores adapt on test-task traces; writing from training-task failures instead changes overall MedAgentBench scores by at most 1.2 points.
- **Candidate-run overhead**: Candidate runs alone cost 2,202,151 tokens on a 10-task held-out MedAgentBench workflow; including setup, crossover vs GRPO Solver is 1,372 tasks.

Best used when: Recurring EHR workflows where measured skills or query tools can serve many tasks.

## Key takeaways

- Training the Solver and Improver together outperforms either route's strongest tested baseline on these EHR tasks.
- For recurring workflows, keep a skill or tool only when it improves outcomes against the same Solver without it.
- Will the gains survive prospective evaluation in live EHR workflows, beyond benchmark graders?

## Links

- arXiv: https://arxiv.org/abs/2611.26806
- PDF: https://arxiv.org/pdf/2611.26806

## Citation

```bibtex
@article{wang2026medicalrsi,
  title   = {MedicalRSI: Medical Recursive Self-Improving Agents via Clinical Model-Harness Co-Evolution},
  author  = {Wang, Ziqing and Palangi, Hamid and Zhao, Lili and Ding, Kaize},
  journal = {arXiv preprint arXiv:2611.26806},
  year    = {2026},
  url     = {https://arxiv.org/abs/2611.26806}
}
```
