Modular post-hoc enhancements for zero-shot histopathology classification using vision-language models
Open Access
- 18 September 2025
- journal article
- Published by IOP Publishing in Machine Learning: Science and Technology
- Vol. 6 (3) , 035056
Abstract
Zero-shot learning with vision-language models (VLMs) has shown promising results in histopathological image classification. However, existing approaches often under-utilize domain-specific adaptations that could enhance performance in specialized medical tasks. In this study, we systematically evaluate three modular, post-hoc enhancements to standard zero-shot VLM pipelines: (1) cosine similarity calibration for affinity matrix construction, (2) prompt template enhancement via diverse clinical prompts, and (3) adaptive hyperparameter tuning using a Gaussian mixture model-based method for adjusting pseudo-labeling weights (λ) and support set contributions (γ), following Zanella et al We conduct extensive zero-shot experiments on the NCT-CRC-HE-100 K dataset, using 60 000 patches for validation of inference-time hyperparameters and reserving 40 000 patches as an independent test set. No training or fine-tuning was performed. The evaluation was carried out across five VLMs: CLIP, CONCH, PLIP, Quilt-B16, and Quilt-B32. Results show that each enhancement module yields significant accuracy gains. Cosine calibration improves CLIP (+7.8%), CONCH (+1.53%), PLIP (+14.3%), Quilt-B16 (+16.1%), and Quilt-B32 (+11.4%). Prompt enhancement yields accuracy gains in PLIP (+16.8%) and Quilt-B32 (+29.9%), with limited effect on CLIP or CONCH. Adaptive tuning yields large improvements in PLIP (+28.4%). The best performance is achieved with the full combination of enhancements, with PLIP reaching 87.88% (+27.88%, p < 0.001) and Quilt-B32 reaching 88.38% (+36.1%) over their baselines. CLIP showed significance only with cosine calibration (p < 0.001), reflecting its contrastive learning backbone. Although CONCH reached the highest raw accuracy (92.63%) under the full enhancement setting, this performance appears primarily driven by its histopathology-specific pretraining; statistically significant gains emerged only in cosine-based combinations, indicating limited responsiveness to prompt or tuning. Our findings highlight the critical role of structured modular enhancements in optimizing VLM performance for specialized clinical domains.Keywords
This publication has 15 references indexed in Scilit:
- Future of Artificial Intelligence—Machine Learning Trends in Pathology and MedicineLaboratory Investigation, 2025
- Unlocking the black box: an in-depth review on interpretability, explainability, and reliability in deep learningNeural Computing and Applications, 2024
- Towards a general-purpose foundation model for computational pathologyNature Medicine, 2024
- A visual-language foundation model for computational pathologyNature Medicine, 2024
- Computational pathology: A survey review and the way forwardJournal of Pathology Informatics, 2024
- A visual–language foundation model for pathology image analysis using medical TwitterNature Medicine, 2023
- Data-efficient and weakly supervised computational pathology on whole-slide imagesNature Biomedical Engineering, 2021
- Clinical-grade computational pathology using weakly supervised deep learning on whole slide imagesNature Medicine, 2019
- Classification and mutation prediction from non–small cell lung cancer histopathology images using deep learningNature Medicine, 2018
- A survey on deep learning in medical image analysisMedical Image Analysis, 2017