MAGDA: Multi-agent Guideline-Driven Diagnostic Assistance

David Bani-Harouni, Nassir Navab, Matthias Keicher

Introduction

The healthcare industry is currently grappling with a significant shortage of radiologists, with some regions reporting deficits as high as 40%. While Large Language Models (LLMs) have demonstrated impressive capabilities in medical examinations, their application in clinical settings is often hindered by a tendency toward "creativity" or hallucinations. In medicine, deterministic adherence to evidence-based clinical guidelines is paramount. Furthermore, traditional medical AI models often require vast amounts of labeled data, making them difficult to apply to rare diseases where data is scarce.

To address these challenges, we present MAGDA (Multi-Agent Guideline-driven Diagnostic Assistance), a framework designed for zero-shot medical image diagnosis. MAGDA bypasses the need for task-specific fine-tuning by "reading" and applying clinical guidelines directly to images through a collaborative multi-agent system.

Methodology: A Collaborative Multi-Agent Approach

MAGDA orchestrates a workflow between three specialized LLM-based agents to mimic the diagnostic process of a clinician:

The MAGDA framework architecture, illustrating the collaborative workflow between Screening, Diagnosis, and Refinement agents.
  1. The Screening Agent ($S$): Acts as the system's "eyes." It translates expert clinical guidelines into descriptive prompts. These prompts are then used to query a Vision-Language Model (VLM), such as BioVil-T, to identify specific positive or negative findings within a chest X-ray.
  2. The Diagnosis Agent ($D$): Receives the findings and employs Chain-of-Thought (CoT) prompting to reason through the evidence, eventually suggesting a preliminary diagnosis.
  3. The Refinement Agent ($R$): Acts as a final consultant, reviewing the diagnosis and considering inter-dependencies between diseases to ensure logical consistency before the final output.

A critical innovation in MAGDA is the use of LLM-based negation. Rather than simple rule-based "no" prefixes, the LLM generates linguistically natural negations, which significantly enhances the VLM's accuracy in identifying the absence of conditions.

Key Insights and Results

The framework was evaluated on the CheXpert dataset and the ChestX-ray 14 Longtail dataset, the latter specifically targeting rare diseases.

Performance on Standard Benchmarks

MAGDA demonstrated superior performance compared to existing zero-shot state-of-the-art methods. On the CheXpert dataset, it achieved a micro F1-score of 46.18, outperforming models like CheXzero and Xplainer. Notably, the study found that providing explicit clinical guidelines (MAGDA) performed better than letting the LLM rely solely on its internal pre-trained medical knowledge [MAGDA (nG)].

Performance comparison on the CheXpert dataset, showing MAGDA's superior F1-score and recall compared to other zero-shot methods.

Success in Rare Disease Diagnosis

One of the most significant findings was MAGDA's efficacy in diagnosing rare "tail" diseases. On the ChestX-ray 14 Longtail dataset, MAGDA achieved 18.5% accuracy, nearly doubling the performance of Xplainer (8.2%) and vastly outperforming a supervised ResNet-50 (1.7%). This highlights the power of guideline-driven zero-shot learning when training data is limited.

Transparency and Reasoning

By utilizing Chain-of-Thought reasoning, MAGDA provides a transparent "why" behind every conclusion. This allows clinicians to verify the model's logic—such as weighing one finding as a stronger indicator than the absence of another—fostering the trust necessary for AI adoption in clinical workflows.

Limitations and Future Directions

Despite its success, MAGDA faces certain bottlenecks. The system's accuracy is heavily dependent on the underlying VLM; if the VLM fails to detect a finding, the reasoning agents cannot correct the error. Additionally, the multi-agent nature of the system involves multiple LLM calls, which can result in slower inference speeds compared to single-pass neural networks. Future work will focus on optimizing these interactions and refining how complex medical ontologies are integrated into the prompts.

Summary updated

BibTeX
@inproceedings{baniharouni2024magda,
  author = {David Bani-Harouni and Nassir Navab and Matthias Keicher},
  title = {{MAGDA: Multi-agent Guideline-Driven Diagnostic Assistance}},
  booktitle = {MedAGI @ MICCAI},
  year = {2024},
  doi = {10.1007/978-3-031-73471-7\_17},
}
Figure