A Hierarchical Benchmark of Foundation Models for Dermatology
Furkan Yuceyalcin, Abdurrahim Yilmaz, Burak Temelkuran
TL;DR
Current dermatology benchmarks largely rely on binary screening, which neglects the hierarchical nature of clinical diagnosis. The authors evaluate embeddings from ten foundation models using a hierarchical, adapter-based pipeline on the DERM12345 dataset with 40 subclasses, across four levels of clinical granularity. They uncover a granularity gap: strong performance on binary malignancy but reduced accuracy on fine-grained subclass discrimination, with general medical models and dermatology-specific models offering complementary strengths. The study guides backbone selection by task granularity and highlights the need for specialized strategies to support real-world diagnostic workflows.
Abstract
Foundation models have transformed medical image analysis by providing robust feature representations that reduce the need for large-scale task-specific training. However, current benchmarks in dermatology often reduce the complex diagnostic taxonomy to flat, binary classification tasks, such as distinguishing melanoma from benign nevi. This oversimplification obscures a model's ability to perform fine-grained differential diagnoses, which is critical for clinical workflow integration. This study evaluates the utility of embeddings derived from ten foundation models, spanning general computer vision, general medical imaging, and dermatology-specific domains, for hierarchical skin lesion classification. Using the DERM12345 dataset, which comprises 40 lesion subclasses, we calculated frozen embeddings and trained lightweight adapter models using a five-fold cross-validation. We introduce a hierarchical evaluation framework that assesses performance across four levels of clinical granularity: 40 Subclasses, 15 Main Classes, 2 and 4 Superclasses, and Binary Malignancy. Our results reveal a "granularity gap" in model capabilities: MedImageInsights achieved the strongest overall performance (97.52% weighted F1-Score on Binary Malignancy detection) but declined to 65.50% on fine-grained 40-class subtype classification. Conversely, MedSigLip (69.79%) and dermatology-specific models (Derm Foundation and MONET) excelled at fine-grained 40-class subtype discrimination while achieving lower overall performance than MedImageInsights on broader classification tasks. Our findings suggest that while general medical foundation models are highly effective for high-level screening, specialized modeling strategies are necessary for the granular distinctions required in diagnostic support systems.
