Abstract
Clinical AI models often suffer from a "reliability gap," where high performance on benchmarks fails to translate to real-world settings due to distribution shifts. We present ModelAuditor, an autonomous LLM-based agent designed to identify these failure modes before clinical deployment. By simulating environmental shifts and recommending targeted data augmentations, ModelAuditor recovers 15–25% of lost performance at a negligible cost.
Introduction: The Clinical Reliability Gap
A significant challenge in medical AI is the discrepancy between laboratory performance and real-world utility. Models achieving expert-level accuracy on curated datasets frequently fail when exposed to the variability of clinical practice—such as differences in lighting, hardware, or staining protocols. These "distribution shifts" create hidden vulnerabilities that can jeopardize patient safety. Currently, auditing for these risks is a manual, expert-intensive process that is difficult to scale and often leaves models with hidden failure modes that only surface post-deployment.
Methods: The ModelAuditor Framework
ModelAuditor utilizes an autonomous multi-agent system, powered by Claude 3.7 Sonnet, to automate the auditing workflow. The process is divided into three distinct phases:
- Contextual Elicitation: The agent interacts with the user to define the clinical task and operational environment (e.g., "detecting melanoma via smartphone").
- Multi-Agent Debate: A "Proposer" and a "Critic" agent debate to select optimal evaluation metrics (based on the MetricsReloaded framework) and relevant synthetic distribution shifts (e.g., brightness, rotation, or JPEG artifacts).
- Execution & Reporting: The system executes hundreds of automated evaluation cycles and generates an "executive report" detailing specific failure modes and providing code-ready augmentation strategies to fix them.
Experimental Evaluation
The framework was validated across three high-stakes clinical domains using established datasets:
- Histopathology: Evaluating inter-institutional variation using the WILDS Camelyon17 dataset.
- Dermatology: Testing sensitivity to lighting and skin tone shifts using SIIM-ISIC, HAM10000, and Fitzpatrick17 datasets.
- Radiology: Simulating equipment heterogeneity by testing models trained on CheXpert against the Chest-Xray14 dataset.
Key Insights
Context-Aware Auditing
ModelAuditor tailors its evaluation to the specific clinical use case. It recognizes, for instance, that robustness to lighting is paramount in dermatology, while staining consistency is critical in pathology. This specificity ensures that audits are clinically relevant rather than generic benchmarks.
The Power of Multi-Agent Debate
The structured debate between the Proposer and Critic agents ensures statistical rigor. In testing, the agent's metric selections matched domain-expert recommendations with 100% overlap, demonstrating that LLM agents can replicate complex expert reasoning when properly scaffolded.
Targeted vs. Generic Augmentation
A key finding is that generic augmentation strategies, such as AutoAugment, can sometimes degrade performance in specialized medical contexts. ModelAuditor’s strength lies in recommending "targeted" fixes that address the specific vulnerabilities identified during the audit, consistently outperforming standard methods.
Results
ModelAuditor demonstrated significant improvements in both performance and efficiency:
- Performance Recovery: Retraining models with targeted recommendations recovered 15–25% of performance lost under distribution shifts.
- Calibration: The agent significantly reduced overconfidence in incorrect predictions, improving model calibration which is critical for clinical trust.
- Efficiency: Audits were completed in 5–10 minutes for less than $0.50 USD in API fees, making rigorous auditing accessible for standard clinical workflows on consumer hardware.
Conclusion and Future Work
ModelAuditor democratizes the process of clinical AI auditing, moving it from a specialized luxury to a routine quality-control step. While currently focused on computer vision, future iterations will expand to multimodal models combining images with electronic health records. Although synthetic shifts cannot perfectly replicate the real world, ModelAuditor provides a critical first line of defense against hidden failure modes in clinical AI.
Summary updated