Abstract
Clinical medicine often requires collaborative expertise, yet current Large Language Model (LLM) applications are typically limited by single-agent perspectives or the high computational costs of static multi-agent systems. We introduce MDAgents, an adaptive framework that dynamically scales the number and type of LLM "specialists" based on the complexity of a medical query. By mimicking real-world clinical workflows—ranging from primary care to integrated care teams—MDAgents outperforms both solo and static multi-agent systems across 7 out of 10 medical benchmarks. Our results demonstrate that adaptive collaboration not only improves diagnostic accuracy but also significantly reduces computational overhead for simpler tasks.
Introduction
In clinical practice, medical decision-making is rarely a solitary endeavor. While a primary care physician handles routine cases, complex mysteries often necessitate a multidisciplinary "Tumor Board" or an Integrated Care Team. Current LLM implementations in medicine generally fall into two inefficient categories: single-agent systems that are prone to hallucinations and static multi-agent systems that treat every query with the same resource-intensive committee.
The primary challenge is a lack of adaptability. In a real hospital, a board of ten specialists is not assembled to treat a common cold. MDAgents addresses this gap by introducing an adaptive "moderator" that triages queries, ensuring that computational resources are matched to the difficulty of the medical case.
The MDAgents Framework
MDAgents operates through a four-step pipeline designed to adapt to the specific needs of each medical query:
- Complexity Check: A moderator agent evaluates the query against clinical guidelines to assign a complexity level: Low, Moderate, or High.
- Recruitment: Based on the complexity, a recruiter agent assembles the appropriate team. Low-complexity cases are handled by a single Primary Care Physician (PCP) agent; moderate cases trigger a Multi-disciplinary Team (MDT); and high-complexity cases recruit an Integrated Care Team (ICT).
- Analysis and Synthesis: Solo agents utilize Chain-of-Thought (CoT) prompting. MDTs engage in collaborative discussion rounds, while ICTs follow a tiered process where specialists generate reports that are subsequently synthesized.
- Final Decision: A decision-maker agent aggregates all insights, conversational history, and moderator feedback to produce a final diagnosis or treatment plan.
To maintain clinical accuracy, the framework incorporates MedRAG, enabling agents to access the latest biomedical literature.
Evaluation and Results
The framework was evaluated across 10 diverse medical benchmarks, including text-only (MedQA, PubMedQA), image-based (PathVQA), and multi-modal (MedVidQA) datasets.
Performance Gains
MDAgents achieved state-of-the-art performance in 7 out of 10 benchmarks, showing up to a 4.2% improvement over solo LLM and static group settings. The collaborative structure proved particularly effective at higher "temperatures" (T=1.2), where the group consensus acted as a filter for individual agent noise.
The "Sweet Spot" of Collaboration
A key finding of this research is the identification of an optimal team size. The researchers discovered that a 3-agent setup often provides the best balance between accuracy and cost. Increasing the number of agents beyond this point frequently led to diminishing returns in accuracy while significantly increasing computational expense.
Computational Efficiency
By triaging queries, MDAgents achieved high accuracy with significantly fewer API calls compared to static models. Low-complexity cases were resolved rapidly, while resources were preserved for high-complexity cases—a logical trade-off that mirrors efficient hospital resource management.
Conclusion and Future Work
MDAgents demonstrates that adaptive, hierarchical collaboration is a viable path toward scaling the "medical brain" of LLMs. While currently a research tool, future work aims to integrate "doctor-in-the-loop" feedback, allowing human clinicians to interact with agent teams in real-time. This integration will be crucial for aligning specialist agents with evolving clinical evidence and reducing diagnostic errors in live environments.
Summary updated