MedicalRSI: Medical Recursive Self-Improving Agents via Clinical Model-Harness Co-Evolution
Organizations: Northwestern University · University of Washington
Abstract
Medical agents built on large language models (LLMs) have advanced rapidly, yet most stay fixed once deployed and do not keep using their experience to improve later attempts. As a result, the same kind of error can recur across patients. To address this, existing self-improvement methods update an agent's weights or its medical harness from its own experience, but their improving strategy stays fixed and never learns which changes actually help, which caps how much the agent can improve. Recursive self-improvement (RSI) instead improves both the agent and its improving strategy. However, achieving RSI for medical agents is challenging, because clinical workflows rarely come with a reference harness, and a change that fixes early errors may not fix the problems the agent meets later. We propose MedicalRSI, an RSI framework built on Clinical Model-Harness Co-Evolution, in which one model plays two roles. The Solver is the medical agent itself, and the Improver is its learnable improving strategy, which writes a medical harness from the agent's failures. Each harness is rewarded by its gain over acting without it, and both roles are trained together, so the Improver keeps adapting to the problems the Solver has not yet solved. On multiple benchmarks and LLM backbones, MedicalRSI outperforms existing context-level and weight-level self-improvement methods and transfers well to unseen workflows, new LLMs and new databases, a step toward medical agents that keep improving.
Figures & tables
| In-Domain | Out-of-Domain | Overall | |||||||
| Model | Method | Improver | Solver | Process | Outcome | Process | Outcome | Process | Outcome |
| Qwen3.5 9B | No Self-Improvement | ||||||||
| Base Agent | – | 57.6 2.2 | 40.8 3.0 | 41.2 4.0 | 20.0 5.0 | 54.5 1.9 | 36.9 2.8 | ||
| Context-Level Self-Improvement | |||||||||
| Reflexion | 65.4 2.2 | 51.2 3.0 | 51.2 4.5 | 31.7 6.1 | 62.7 1.9 | 47.5 2.9 | |||
| ExpeL | 55.6 2.1 | 36.5 3.0 | 38.9 3.1 | 13.3 4.5 | 52.5 1.9 | 32.2 2.6 | |||
| In-Domain | Out-of-Domain | Overall | ||||
| Variant | Process | Outcome | Process | Outcome | Process | Outcome |
| Full System | ||||||
| MedicalRSI | 93.0 1.3 | 89.5 1.9 | 78.7 3.3 | 66.1 5.1 | 90.3 1.2 | 85.1 1.9 |
| Training | ||||||
| w/o RL | 69.5 1.9 | 55.5 2.7 | 69.2 3.5 | 53.1 5.3 | 69.4 1.6 | 55.1 2.4 |
| w/o SFT | 83.4 1.9 | 76.2 2.6 | 57.2 4.3 | 40.2 5.7 | 78.5 1.7 | 69.5 2.6 |
Appendix figures & tables21 assets
Supplementary material from the paper’s appendix.
Appendix
| Trained | |||||||
| Method | Domain | Object | Learns At | Solver | Improver | Shared Weights | Transfer |
| Other Domains | |||||||
| Reflexion ( Shinn et al., 2023 ) | Agents, Reasoning | Context | Test | ✗ | ✗ | ✗ | ✗ |
| ExpeL ( Zhao et al., 2024 ) | Agents | Context | Train | ✗ | ✗ | ✗ | ✗ |
| AWM ( Wang et al., 2025c ) | Agents | Skills | Both | ✗ | ✗ | ✗ | ✗ |
| DC ( Suzgun et al., 2026 ) | Reasoning | Context | Test | ✗ | ✗ | ✗ | ✗ |
| Setting | Value |
| Base model | Qwen3.5-9B , thinking off |
| LoRA rank / / dropout | 64 / 128 / 0.05 |
| Rounds | 10 |
| Training workflows per round | 13 of 26, all 20 tasks |
| Candidates per workflow ( ) | 8 |
| Solver attempts per task with ( ) | 2 |
| In-Domain | Out-of-Domain | Overall | |||||||
| Model | Method | Improver | Solver | Process | Outcome | Process | Outcome | Process | Outcome |
| Qwen3.5 4B | No Self-Improvement | ||||||||
| Base Agent | – | 61.0 2.3 | 45.8 3.1 | 49.0 4.6 | 31.7 6.2 | 58.8 1.9 | 43.1 2.8 | ||
| Context-Level Self-Improvement | |||||||||
| Reflexion | 65.8 2.3 | 53.5 3.0 | 51.9 4.7 | 35.0 6.3 | 63.2 2.0 | 50.0 2.8 | |||
| ExpeL | 57.8 2.3 | 43.5 3.0 | 47.3 4.4 | 28.3 5.9 | 55.9 2.0 | 40.6 2.7 | |||
| In-Domain | Out-of-Domain | Overall | |||||
| Model | Run | Process | Outcome | Process | Outcome | Process | Outcome |
| Qwen3.5 9B | Run 1 | 93.0 1.3 | 89.5 1.9 | 78.7 3.3 | 66.1 5.1 | 90.3 1.2 | 85.1 1.9 |
| Run 2 | 89.9 1.6 | 85.2 2.2 | 76.3 3.5 | 63.2 5.4 | 87.3 1.4 | 81.1 2.0 | |
| Run 3 | 93.3 1.3 | 89.8 1.9 | 81.9 3.2 | 70.8 5.1 | 91.1 1.1 | 86.2 1.9 | |
| Mean | 92.0 1.9 | 88.2 2.6 | 79.0 2.8 | 66.7 3.8 | 89.6 2.0 | 84.1 2.7 | |
| In-Domain | Out-of-Domain | Overall | |||||||
| Model | Method | Improver | Solver | Process | Outcome | Process | Outcome | Process | Outcome |
| Qwen3.5 9B | No Self-Improvement | ||||||||
| Base Agent | – | 43.7 2.3 | 28.1 2.7 | 36.0 3.3 | 13.3 4.4 | 42.3 2.0 | 25.3 2.6 | ||
| Context-Level Self-Improvement | |||||||||
| Reflexion | 49.6 2.5 | 37.7 2.9 | 42.1 4.4 | 25.0 5.6 | 48.2 2.3 | 35.3 2.8 | |||
| ExpeL | 41.2 2.4 | 26.9 2.7 | 25.0 2.2 | 3.3 2.4 | 38.1 2.0 | 22.5 2.4 | |||
| In-Domain | Out-of-Domain | Overall | |||||||
| Method | With | Without | With | Without | With | Without | |||
| No Self-Improvement | |||||||||
| Base Agent † | 40.8 | 40.8 | 0.0 | 20.0 | 20.0 | 0.0 | 36.9 | 36.9 | 0.0 |
| Context-Level Self-Improvement | |||||||||
| Reflexion | 51.2 | 41.2 | 10.0 | 31.7 | 21.7 | 10.0 | 47.5 | 37.5 | 10.0 |
| ExpeL † | 36.5 | 36.5 | 0.0 | 13.3 | 13.3 | 0.0 | 32.2 | 32.2 | 0.0 |
| In-Domain | Out-of-Domain | Overall | ||||
| Baseline | 95% CI | 95% CI | 95% CI | |||
| No Self-Improvement | ||||||
| Base Agent | +48.7 | [42.1, 55.3] | +46.1 | [35.3, 56.8] | +48.2 | [42.7, 53.9] |
| Context-Level Self-Improvement | ||||||
| Reflexion | +38.3 | [31.5, 44.9] | +34.5 | [23.9, 45.3] | +37.6 | [31.8, 43.3] |
| ExpeL | +53.0 | [46.2, 59.6] | +52.8 | [41.8, 63.9] | +52.9 | [47.0, 58.6] |
| In-Domain | Out-of-Domain | Overall | ||||
| Method | Test Batch | Training | Test Batch | Training | Test Batch | Training |
| Context-Level Self-Improvement | ||||||
| Fixed Improver | 49.5 | 49.3 | 18.3 | 18.3 | 43.6 | 43.5 |
| Fixed Improver (GPT) | 53.6 | 51.3 | 43.1 | 46.9 | 51.6 | 50.4 |
| SFT Improver | 56.3 | 56.4 | 49.0 | 51.9 | 54.9 | 55.5 |
| GRPO Improver | 63.1 | 63.2 | 52.7 | 55.1 | 61.2 | 61.7 |
| Process | Outcome | |||||||
| Method | Improver | Solver | Mean | 95% CI | Mean | 95% CI | ||
| No Self-Improvement | ||||||||
| Base Agent | – | 56.1 1.8 | +27.3 | [23.8, 30.7] | 38.4 2.4 | +35.6 | [31.1, 40.4] | |
| Context-Level Self-Improvement | ||||||||
| Reflexion | 66.1 1.6 | +17.4 | [14.3, 20.5] | 48.2 2.3 | +25.8 | [21.1, 30.6] | ||
| Fixed Improver | 62.5 1.4 | +20.9 | [18.2, 23.8] | 42.0 2.1 | +32.1 | [27.8, 36.3] | ||
| In-Domain | Out-of-Domain | Overall | |||||||
| Method | Random | Vote | Pick | Random | Vote | Pick | Random | Vote | Pick |
| Context-Level Self-Improvement | |||||||||
| Fixed Improver | 49.5 | 46.7 | 47.1 | 18.3 | 11.7 | 11.3 | 43.6 | 40.1 | 40.4 |
| Fixed Improver (GPT) | 53.6 | 51.9 | 52.5 | 43.1 | 49.7 | 47.7 | 51.6 | 51.5 | 51.6 |
| SFT Improver | 56.3 | 53.1 | 55.2 | 49.0 | 58.1 | 58.3 | 54.9 | 54.0 | 55.8 |
| GRPO Improver | 63.1 | 64.2 | 63.0 | 52.7 | 60.8 | 59.1 | 61.2 | 63.6 | 62.3 |
| Never Order | Order Needed | No Order Needed | ||||
| Method | Random | Pick | Random | Pick | Random | Pick |
| Context-Level Self-Improvement | ||||||
| Fixed Improver | 57.9 | 71.6 | 23.0 | 19.6 | 67.3 | 63.3 |
| Fixed Improver (GPT) | 44.7 | 40.4 | 29.8 | 30.7 | 77.2 | 75.6 |
| SFT Improver | 43.4 | 40.0 | 29.5 | 27.4 | 79.8 | 76.4 |
| GRPO Improver | 28.6 | 34.4 | 42.4 | 36.3 | 82.0 | 82.7 |
| Tokens | 11 Workflows | 6 Unseen Workflows |
| One-Time Cost of a Workflow | ||
| First pass of the Solver on its 10 tasks | 127,024 | 138,505 |
| Writing one harness | 10,409 | 12,066 |
| Writing 16 candidates | 15,783 | 17,693 |
| Running 16 candidates on the 10 tasks | 2,074,474 | 2,202,151 |
| Tokens per Task | ||
LLM Agent Self-Improvement
Large language model agent self-improvement studies how agents use experience and feedback to improve their behavior, tools, and workflows.
See all 307 papers