Abstract
Medical foundation models have shown promise in controlled benchmarks, yet widespread deployment remains hindered by reliance on task-specific fine-tuning. Here, we introduce DermFM-Zero, a dermatology vision-language foundation model trained via masked latent modelling and contrastive learning on over 4 million multimodal data points. We evaluated DermFM-Zero across 20 benchmarks spanning zero-shot diagnosis and multimodal retrieval, achieving state-of-the-art performance without taskspecific adaptation. We further evaluated its zero-shot capabilities in three multinational reader studies involving over 1,100 clinicians. In primary care settings, AI assistance enabled general practitioners to nearly double their differential diagnostic accuracy across 98 skin conditions. In specialist settings, the model significantly outperformed board-certified dermatologists in multimodal skin cancer assessment. In collaborative workflows, AI assistance enabled non-experts to surpass unassisted experts while improving management appropriateness. Finally, we show that DermFM-Zero’s latent representations are interpretable: sparse autoencoders unsupervisedly disentangle clinically meaningful concepts that outperform predefined-vocabulary approaches and enable targeted suppression of artifact-induced biases, enhancing robustness without retraining. These findings demonstrate that a foundation model can provide effective, safe, and transparent zero-shot clinical decision support.
Introduction
The deployment of artificial intelligence in dermatology has traditionally been constrained by the need for task-specific fine-tuning. While specialized models can excel at narrow tasks, such as melanoma detection, the vast diversity of dermatological conditions—encompassing thousands of diseases across various imaging modalities—makes fine-tuning for every clinical scenario impractical. Furthermore, the "black box" nature of many deep learning models poses a significant barrier to clinical trust, as practitioners cannot easily discern if a model is relying on clinically relevant features or spurious correlations, such as the presence of surgical markings or rulers.
To address these challenges, we present DermFM-Zero, a vision-language foundation model designed for zero-shot clinical application. DermFM-Zero achieves state-of-the-art diagnostic performance without task-specific adaptation and introduces a novel framework for automated concept discovery, allowing for both interpretability and the mitigation of visual biases without retraining.
Methodology
DermFM-Zero was developed using a two-stage pretraining curriculum optimized for the dermatological domain.
Two-Stage Pretraining
- Masked Latent Modeling (Unimodal): A vision encoder was first trained on 3 million unlabeled dermatology images. This stage focused on learning fine-grained morphological structures, such as pigment networks and lesion borders, independent of textual descriptions.
- Contrastive Learning (Multimodal): The visual features were subsequently aligned with medical text using 1 million curated image-text pairs. To capture the complexity of clinical descriptions, the standard text encoder was replaced with PubMedBERT, utilizing an extended 256-token window.
Automated Concept Discovery
To enhance interpretability, Sparse Autoencoders (SAEs) were applied to the model's latent space. This unsupervised "discover-then-name" approach disentangles internal representations into human-interpretable clinical concepts (e.g., "blue globules" or "irregular streaks"). This method bypasses the limitations of rigid, predefined expert vocabularies and allows for the identification of the model's internal logic.
Experimental Setup
Datasets
The model was pretrained on a massive dataset of 4 million multimodal data points, including the Derm1M dataset, educational materials, and a large private clinical collection from MoleMap. Evaluation was conducted across 20 benchmarks, including HAM-10000, PAD-UFES-20, ISIC2020, and the DAFFODIL-5 dataset for rare diseases.
Reader Studies
The zero-shot capabilities of DermFM-Zero were validated through three multinational reader studies involving over 1,100 clinicians, including general practitioners (GPs) and board-certified dermatologists. These studies assessed the model's impact on real-world clinical and dermoscopic decision-making.
Results and Discussion
Zero-Shot Performance and Clinical Impact
DermFM-Zero demonstrated significant dominance in zero-shot tasks, achieving a balanced accuracy of 0.744 on multi-class skin cancer diagnosis, outperforming the next-best foundation model by 23.7%. Notably, the model (304M parameters) outperformed much larger general-domain models like DINOv3-7B, highlighting the importance of domain-specific pretraining over sheer parameter scaling.
In reader studies, AI assistance provided a "skill-leveling" effect. For 30 GPs, top-3 diagnostic accuracy across 98 conditions nearly doubled (from 26.6% to 48.2%), while potentially harmful management decisions decreased. In collaborative workflows, non-expert clinicians using DermFM-Zero were able to surpass the diagnostic accuracy of unassisted experts.
Interpretability and Bias Mitigation
The SAE-discovered concepts were found to be highly aligned with clinical reality, even outperforming standard Concept Bottleneck Models. Crucially, this interpretability enables "Editable AI." By identifying and suppressing neurons associated with non-clinical artifacts (e.g., rulers or hair), researchers improved diagnostic AUROC by 12% to 38% on confounded datasets without retraining the network.
Conclusion
DermFM-Zero represents a significant step toward scalable and transparent AI in dermatology. By leveraging zero-shot learning and unsupervised concept discovery, the model provides effective clinical support while allowing for the direct mitigation of biases.
Future work will focus on prospective clinical deployments to evaluate the model in dynamic real-world environments. Additionally, efforts will be made to expand the model's coverage of the "long tail" of rare dermatological conditions and to further investigate skin-tone-based fairness in human-AI interactions. Integrating the interpretable SAE concepts into clinician-facing user interfaces remains a key priority for enhancing trust and decision-making.
Summary updated