Joint Optimization of Reasoning and Dual-Memory for Self-Learning Diagnostic Agent
Organizations: University of Illinois Urbana-Champaign · Albert Einstein College of Medicine
Abstract
Clinical expertise improves not only by acquiring medical knowledge, but by accumulating experience that yields reusable diagnostic patterns. Recent LLMs-based diagnostic agents have shown promising progress in clinical reasoning for decision support. However, most approaches treat cases independently, limiting experience reuse and continual adaptation. We propose SEA, a self-learning diagnostic agent with cognitively inspired dual-memory module. We design a reinforcement training framework tailored to our designed agent for joint optimization of reasoning and memory management. We evaluate SEA in two complementary settings. On standard evaluation with MedCaseReasoning dataset, SEA achieves 92.46% accuracy, outperforming the strongest baseline by +19.6%, demonstrating the benefit of jointly optimizing reasoning and memory. On the long-horizon with ER-Reason dataset, SEA attains the best final accuracy (0.7214) and the largest improvement (+0.35 Acc@100), while baseline methods show limited or unstable gains. Expert evaluation further indicates that rules consolidated from SEA show strong clinical correctness, usefulness and trust, suggesting that the induced rules in dual-memory module are reliable and practically meaningful. Overall, SEA improves both diagnostic reasoning ability and continual learning by effectively transforming experience into reusable knowledge.
Figures & tables
| Model | Accuracy (%) | Macro-F1 (%) | Std. |
| Zeroshot | |||
| Qwen3-4b | 43.2 | 40.0 | 0.025 |
| Qwen3-8b | 45.1 | 41.9 | 0.025 |
| Qwen3-14B | 50.4 | 42.9 | 0.024 |
| OLMo3-7B | 47.1 | 43.9 | 0.025 |
| LLaMa-3.1-8B | 42.1 | 39.8 | 0.025 |
| Method | Final Accuracy (%) | Acc@50 (%) | Acc@100 (%) |
| Zeroshot | |||
| Qwen-4b | 41.9 | -5.0 | +8.0 |
| Qwen-8b | 44.6 | +1.0 | +6.0 |
| GPT-5.2 | 53.2 | +8.0 | +13.0 |
| Trained Baselines | |||
| Qwen-8b (SFT) | 56.8 | -2.0 | +1.0 |
| Method | Ablated Module | Acc. | |
| Zero-shot | Training & Memory Modules | 0.45 | -0.47 |
| DiagnosticReward (w/o memory) | All Memory Modules | 0.77 | -0.15 |
| DiagnosticReward+ShortTerm-memory | LongTerm Memory&MemoryReward | 0.82 | -0.10 |
| DiagnosticReward+LongTerm-Memory | ShortTerm Memory&MemoryReward | 0.72 | -0.20 |
| DiagnosticReward+Dual-Memory | Memory Reward | 0.47 | -0.45 |
| SEA | None (full model) | 0.92 | — |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Evaluation aspect | Standard evaluation | Long-horizon evaluation |
| Dataset | MedCaseReasoning | ER-Reason |
| Training on the target dataset | Yes, using its training split | No |
| Test-case organization | Cases are evaluated independently | Cases arrive sequentially as a stream |
| Feedback during evaluation | No | Yes, after each round |
| Memory update during evaluation | No feedback-based self-learning | Yes, previous experience is incorporated |
| Primary purpose | Evaluate static diagnostic competence | Evaluate OOD sequential adaptation and experience reuse |
Clinical Reasoning
Clinical reasoning studies how AI systems interpret patient evidence, form and revise diagnoses, and support safe decisions across care settings.
See all 180 papers