NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Domain-specific optimization and diverse evaluation of self-supervised models for histopathology

Jeremy Lai, Faruk Ahmed, Supriya Vijay, Tiam Jaroensri, Jessica Loo, Saurabh Vyawahare, Saloni Agarwal, Fayaz Jamil, Yossi Matias, Gregory S. Corrado, Dale R. Webster, Jonathan Krause, Yun Liu, Po-Hsuan Cameron Chen, Ellery Wulczyn, David F. SteinerarXiv 2023 · DOI

Introduction

In computational pathology, the development of robust diagnostic models has traditionally been hindered by the "annotation bottleneck." Creating high-quality labels for histopathology images requires significant time and effort from expert pathologists, making it difficult to scale AI solutions across the vast landscape of tissue types and diseases. While the broader field of artificial intelligence has seen a paradigm shift toward "foundation models"—large-scale models trained on unlabeled data—applying these techniques to medical imaging is not a straightforward task. Histopathology images present unique challenges, including gigapixel scales, significant color variation due to staining processes, and features that span from sub-cellular structures to complex tissue architectures.

Researchers from Google and Verily have addressed these challenges by developing high-performance foundation models specifically optimized for histopathology. By refining standard self-supervised learning (SSL) techniques with domain-specific enhancements, they created models that not only outperform standard ImageNet-based pre-training but also demonstrate remarkable data efficiency, matching top-tier performance using only a fraction of the typical training data.

Methodology

The study focused on two primary SSL frameworks utilizing a Vision Transformer (ViT) backbone: SimCLR, a contrastive approach that learns by identifying different augmented "views" of the same image, and Masked Siamese Networks (MSN), a non-contrastive approach that matches masked image patches to an unmasked "teacher" version.

To bridge the gap between natural images and medical slides, the researchers introduced several domain-specific optimizations:

  • RandStainNA: A specialized color augmentation technique designed to simulate the natural variability found in Hematoxylin and Eosin (H&E) staining across different laboratories.
  • PathBlur: A novel augmentation that introduces Poisson noise and JPEG artifacts to mimic the real-world imperfections of digital pathology scanners.
  • Center Embeddings: In pathology, the diagnostic label of a patch often depends on the object at its center (e.g., a mitotic figure). The researchers found that prioritizing the embeddings of tokens in the center of a patch, rather than the standard global "class token," significantly improved performance on localized tasks.
  • Data Rebalancing: To prevent the model from over-learning common tissue morphologies, k-means clustering was employed to ensure a diverse distribution of cell types during the pre-training phase.

Experimental Setup and Datasets

The models were pre-trained on a massive dataset of 60 million image patches extracted from Whole Slide Images (WSIs) within The Cancer Genome Atlas (TCGA), encompassing 32 different cancer types.

To rigorously evaluate these models, the team established a comprehensive benchmark consisting of 11 patch-level tasks (such as breast cancer detection, lung subtyping, and Gleason grading for prostate cancer) across 17 tissue types. Furthermore, the models were tested on their ability to generalize to "held-out" tasks, including mitotic figure identification and weakly supervised slide-level predictions, such as determining gene expression or patient survival from a single slide.

Key Insights and Results

The Superiority of Domain-Specific SSL

The results confirm that "pathology is not ImageNet." Models pre-trained on natural images (like dogs or cars) serve as a poor baseline for medical tasks. The optimized SSL models (MSN-best and SimCLR-best) achieved an average AUC of ~93.4% across the benchmark, significantly outperforming the 87.8% AUC of ImageNet-supervised models.

Data Efficiency

One of the most striking findings was the models' data efficiency. In fine-tuning experiments, the SSL-based foundation models reached the same performance levels using only 25% of the available training slides as an ImageNet-pre-trained model using 100% of the slides. This suggests that foundation models can drastically reduce the amount of expert annotation required for new clinical tasks.

The Importance of Spatial Context and Color

Among the various optimizations, specialized color augmentation (RandStainNA) was the most consistently beneficial, highlighting the sensitivity of pathology models to stain variation. Additionally, the use of "center embeddings" led to a dramatic improvement in mitotic figure detection, with AUCs jumping from approximately 89% to over 97%.

Generalization to Slide-Level Tasks

Even without specific training for slide-level analysis, the learned representations were powerful enough to predict complex biomarkers. Using simple linear classifiers on top of the foundation model's features, the team achieved high accuracy in predicting MSI status (94.3% AUC) and ER status (91.3% AUC).

Conclusion and Future Directions

This research demonstrates that foundation models, when properly optimized for the nuances of histopathology, can provide a powerful and efficient base for a wide variety of clinical applications. However, the authors note that as these models improve, current benchmarks may become "saturated," necessitating the development of more challenging and diverse evaluation sets.

Future work will likely focus on integrating these visual models with other data modalities, such as pathology reports (text) and genomic data, to create holistic diagnostic tools. Additionally, exploring how these models handle varying magnifications and the integration of more complex aggregation strategies, such as Attention-based Multiple Instance Learning (ABMIL), remains a priority for the field.

Summary updated

BibTeX
@misc{lai2023domain,
  author = {Jeremy Lai and Faruk Ahmed and Supriya Vijay and Tiam Jaroensri and Jessica Loo and Saurabh Vyawahare and Saloni Agarwal and Fayaz Jamil and Yossi Matias and Gregory S. Corrado and Dale R. Webster and Jonathan Krause and Yun Liu and Po-Hsuan Cameron Chen and Ellery Wulczyn and David F. Steiner},
  title = {{Domain-specific optimization and diverse evaluation of self-supervised models for histopathology}},
  year = {2023},
  eprint = {2310.13259},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.13259},
}
Figure