How well do frozen foundation models transfer? A calibration-focused benchmark for diabetic retinopathy grading
Background: Pretrained foundation models are increasingly adopted for diabetic retinopathy (DR) screening, yet it remains unclear how much of their performance derives from the learned representations versus the adaptation procedure. Most benchmarks report discrimination metrics alone, neglecting probability calibration. Methods: We compared the frozen representations of three pretrained encoders: MedSigLIP (medical vision-language; ViT-B/16, 448 × 448), RETFound (retinal self-supervised; ViT-L/16, 224 × 224), and EfficientNet-B0 (ImageNet-supervised; 224 × 224). All encoder weights were frozen; only an identical lightweight multilayer perceptron head was trained. Models were developed on APTOS 2019 (3,662 fundus images; five-fold cross-validation) and externally validated on MESSIDOR-2 (1,744 images). Binary referable DR detection and five-class severity grading were evaluated. AUC, expected calibration error (ECE), and Brier score served as co-primary endpoints. External-set tests used patient-level cluster-robust bootstrap to account for bilateral correlation. Results: = 0.016, cluster-robust bootstrap). For five-class grading, MedSigLIP achieved an external macro-F1 of 0.450 versus 0.247 (RETFound) and 0.291 (EfficientNet-B0). Temperature scaling reduced development ECE to 0.014-0.022 but proved ineffective under domain shift (external ECE 0.086-0.149). All encoders exhibited catastrophic failure on mild DR (grade 1) externally, with RETFound and EfficientNet-B0 achieving F1 = 0.000 and MedSigLIP only 0.153. Conclusion: Under frozen transfer, the MedSigLIP encoder package produced more generalisable and better calibrated representations than both retinal self-supervised (RETFound) and ImageNet-supervised (EfficientNet-B0) encoders. Domain-specific pretraining did not guarantee domain-general frozen representations. These findings demonstrate that development-set discrimination alone is insufficient for encoder evaluation and that calibration metrics-particularly the Brier score-should be reported as standard practice.
Authors
- Mehmet Poyrazer
- Rıdvan Erten (ORCID: https://orcid.org/0000-0002-1939-4738)
- Hüseyin Yağcı
Institutions
- Ministry of Health (TR)
- University of Health Science (KH)
- Sağlık Bilimleri Üniversitesi (TR)
- Kocaeli Üniversitesi (TR)
- University of Health Sciences Antigua (AG)
Publication Details
- Journal
- Frontiers in Medicine
- Published
- 2026-04-16
- DOI
- https://doi.org/10.3389/fmed.2026.1815982
- Primary Topic
- Retinal Imaging and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 0.00