Benchmarking Domain Generalization Algorithms in Computational Pathology
Neda Zamanitajeddin, Mostafa Jahanifar, Kesi Xu, Fouzia Siraj, Nasir Rajpoot
TL;DR
This study tackles domain shift in computational pathology by systematically benchmarking 30 domain generalization (DG) algorithms on three tasks (CAMELYON17, MIDOG22, HISTOPANTUM) using a unified HistoDomainBed platform and 7,560 cross-validation runs. It finds that self-supervised learning and stain augmentation consistently deliver strong generalization, while simple ERM baselines remain competitive with proper design; stain normalization also performs well in several settings. The work introduces HISTOPANTUM, a pan-cancer tumor-detection dataset, and provides practical DG guidelines tailored to CPath, emphasizing pretrained fine-tuning and modality-specific augmentations. Together, these contributions offer a scalable, reproducible benchmark and actionable insights to improve robust performance of DL models under domain shifts in histopathology. The findings have direct practical impact for deploying DG methods in clinical-pathology pipelines and guiding future foundation-model integration in CPath.
Abstract
Deep learning models have shown immense promise in computational pathology (CPath) tasks, but their performance often suffers when applied to unseen data due to domain shifts. Addressing this requires domain generalization (DG) algorithms. However, a systematic evaluation of DG algorithms in the CPath context is lacking. This study aims to benchmark the effectiveness of 30 DG algorithms on 3 CPath tasks of varying difficulty through 7,560 cross-validation runs. We evaluate these algorithms using a unified and robust platform, incorporating modality-specific techniques and recent advances like pretrained foundation models. Our extensive cross-validation experiments provide insights into the relative performance of various DG strategies. We observe that self-supervised learning and stain augmentation consistently outperform other methods, highlighting the potential of pretrained models and data augmentation. Furthermore, we introduce a new pan-cancer tumor detection dataset (HISTOPANTUM) as a benchmark for future research. This study offers valuable guidance to researchers in selecting appropriate DG approaches for CPath tasks.
