Manuscript Offprint

arXiv:2608.22176

Role-Specialized Mixture-of-Agents with Open-Weight LLMs for Clinical Prediction

Jun Hou, Yi Fang, Xuan Wang

Abstract

Large Language Models (LLMs) are increasingly applied to clinical prediction tasks such as in-hospital mortality and readmission from electronic health records (EHRs). Privacy and compliance constraints motivate systems that can be deployed locally, which has increased interest in open-weight multi-agent designs. However, most medical multi-agent systems are evaluated as a single block, leaving unclear which agent role contributes to prediction and whether retrieval drives observed gains. We study a role-specialized Mixture-of-Agents (MoA) that combines medical knowledge retrieval with contrastive similar-patient reasoning. By varying the role design while holding the retrieval setup fixed, we localize the main effect to the final integrator. Pairing large open-weight analysts with a small open-weight integrator matches closed-model prompting on F1 for mortality prediction while flagging substantially more true high-risk patients. Mechanism analysis shows the role assignment directly yields a high-recall operating point without threshold tuning. The effect is task-dependent, with smaller gains for readmission because the available records correlate weakly with this longer-horizon outcome. These results position role design as a key factor in privacy-constrained, training-free clinical LLM prediction.

1 Introduction

Predicting outcomes such as in-hospital mortality and readmission from electronic health records (EHRs) is a core clinical decision-support task, and large language models (LLMs) are increasingly being adapted to this setting. Although proprietary closed-source LLMs often perform strongly under prompting, their use in clinical prediction raises privacy and compliance concerns (Zhong et al., 2025). Fine-tuning a local model can address some of these concerns, but it requires labeled clinical cohorts, substantial training resources, and may limit generalization across scenarios or institutions. This creates a practical need for open-weight, locally hosted, and training-free clinical LLM systems that can approach closed-source performance.

Multi-agent systems (MAS) offer one route toward this goal. By distributing reasoning, medical MAS frameworks allow agent roles to be specialized for distinct reasoning functions, combine retrieved evidence with task-specific deliberation, and reduce reliance on a single closed model (Tang et al., 2024; Kim et al., 2024; Wang et al., 2025b). Yet existing systems are often evaluated as a single block, leaving unclear which role drives prediction and whether open-weight LLMs can be assembled to match closed-source models without training.

We answer these questions with a role-specialized Mixture-of-Agents built from open-weight LLMs 1^{1}: two contrastive analysts compare the target patient with positive- and negative-outcome exemplars, and a final integrator combines their assessments to make a decision. We evaluate the system on the MIMIC datasets (Johnson et al., 2016; 2023), keeping knowledge sources fixed to isolate role and model effects. Our key finding is that using large open-weight analysts with a small open-weight integrator matches the

1^{1}Code and experimental artifacts: https://github.com/JuneHou/moa-clinical-rag.git closed-model few-shot baseline on MIMIC-IV mortality F1 while identifying substantially more high-risk patients, and a role-isolation analysis localizes this gain to the integrator, which shifts the decision threshold. Further analysis suggests the smaller integrator applies a lower threshold to comorbidity severity, improving mortality sensitivity but not readmission, where pre-discharge records carry less signal about post-discharge outcomes. Our contributions are threefold. First, we introduce a training-free, open-weight role-specialized Mixture-of-Agents, deployable locally under privacy constraints. Second, we develop a role-isolation analysis for clinical multi-agent prediction and identify the integrator as the threshold-setting role in the pipeline. Third, we provide a mechanism analysis showing that the threshold reflects comorbidity severity that model families translate, and is bounded by where each outcome's predictive signal lies.

References (31)

  • ReConcile: Round-table conference improves reasoning via consensus among diverse LLMs (opens the publisher in a new tab)
  • Gram: graph-based attention model for healthcare representation learning
  • Improving factuality and reasoning in language models through multiagent debate
  • GraphCare: Enhancing healthcare predictions with personalized knowledge graphs
  • Reasoning-enhanced healthcare predictions with knowledge graph community retrieval
  • Medcpt: Contrastive pre-trained transformers with large-scale pubmed search logs for zero-shot biomedical information retrieval
  • Mimic-iii, a freely accessible critical care database
  • Scientific data, 10(1):1, 2023
  • Mdagents: An adaptive collaboration of llms for medical decision-making
  • Risk prediction on electronic health records with prior medical knowledge
  • KAME: Knowledge-based attention model for diagnosis prediction in healthcare
  • Qwen2.5 Technical Report
  • Medagents: Large language models as collaborators for zero-shot medical reasoning
  • Mixture-of-agents enhances large language model capabilities
  • Enhancing electronic health record modeling through large language model-driven multi-agent collaboration
  • Benchmarking retrieval-augmented generation for medicine
  • Ram-ehr: Retrieval augmentation meets clinical predictions on electronic health records
  • Considerations for patient privacy of large language models in health care: scoping review
  • Two readings stand out
  • >Method</td><td colspan=
  • $D$ is signed, where $D > 0$ spreads the groups correctly, $D \approx 0$ no spread, $D < 0$ backwards
  • Crucially, the pipeline does not merely move the 0.5 decision threshold
  • Every cell has positive D with a CI clear of 0
  • At 5.4% prevalence positives are rare, so $\bar{P}[event]$ is noisy and the CIs are wide
  • The pipeline does not produce correct probability spread
  • Feature AUROC is a plain bag-of-codes classifier (conditions+procedures+drugs from the input record) predicting the label, 5-fold cross-validated (held-out, no leakage); AUROC=0.5 means the codes are statistically independent of the outcome (an association, not clinical correctness)
  • Severity language is the count of a fixed, hand-curated list of acute-severity terms (organ failure, sepsis, malignancy, critical, icu, ventilat, shock, respiratory failure, renal failure, cardiac arrest, septicemia, pneumonia, metastat, intubat, vasopressor) matched as substrings
  • ><tr><td rowspan=
  • A/R/I = analyst/retrieval/integrator; oss = large, qwen = small
  • Retrieved medical evidence reaches the two kinds of role by different mechanisms, and this is the one asymmetry worth stating explicitly
  • mortality is rare