A foundation model for clinical-grade computational pathology and rare cancers detection

Eugene Vorontsov, Alican Bozkurt, Adam Casson, George Shaikovski, Michal Zelechowski, Kristen Severson, Eric Zimmermann, James M. Hall, Neil Tenenholtz, Nicolò Fusi, Ellen Yang, Philippe Mathieu, Alexander van Eck, Donghun Lee, Julian Viret, E.betz Robert, Yi Kan Wang, Jeremy D. Kunz, Matthew C. H. Lee, Jan Bernhard, Ran Godrich, Gerard J. Oakley, Ewan K.a. Millar, Matthew G. Hanna, Hannah Y. Wen, Juan Antonio Retámero, William A. Moye, Razik Yousfi, Christopher Kanan, David S. Klimstra, Brandon Rothrock, Siqi Liu, Thomas J. FuchsNature Medicine 2024

Abstract

The analysis of histopathology images with artificial intelligence aims to enable clinical decision support systems and precision medicine. The success of such applications depends on the ability to model the diverse patterns observed in pathology images. To this end, we present Virchow, the largest foundation model for computational pathology to date. In addition to the evaluation of biomarker prediction and cell identification, we demonstrate that a large foundation model enables pan-cancer detection, achieving 0.95 specimen-level area under the (receiver operating characteristic) curve across nine common and seven rare cancers. Furthermore, we show that with less training data, the pan-cancer detector built on Virchow can achieve similar performance to tissue-specific clinical-grade models in production and outperform them on some rare variants of cancer. Virchow's performance gains highlight the value of a foundation model and open possibilities for many high-impact applications with limited amounts of labeled training data.

Introduction

Traditional artificial intelligence (AI) in pathology has largely followed a "one-model-per-task" paradigm, where specialized models are developed for specific tissues or diseases. While effective for common conditions, this approach struggles with data scarcity for rare cancers and often fails to generalize across the vast morphological diversity encountered in clinical practice. To overcome these limitations, researchers have introduced Virchow, a massive foundation model designed to learn a universal representation of human tissue from an unprecedented volume of unlabeled data.

Datasets and Scale

The primary strength of Virchow lies in the scale and diversity of its training data. The model was trained on approximately 1.5 million H&E-stained whole-slide images (WSIs) derived from nearly 120,000 patients at Memorial Sloan Kettering Cancer Center (MSKCC). This dataset is significantly larger than previous benchmarks in the field and encompasses a wide array of clinical scenarios, including common and rare malignancies, as well as benign and precursor lesions.

Data distribution of the 1.5 million whole-slide images, including cancer types, specimen sources, and diagnostic categories.

The evaluation of Virchow involved a comprehensive pan-cancer test set of over 6,000 specimens covering 16 cancer types, external validation sets from global sites, and specialized biomarker datasets for genetic alteration prediction.

The Virchow Architecture

Virchow utilizes a Vision Transformer (ViT-H) architecture with 632 million parameters. The model was trained using the DINOv2 self-supervised learning (SSL) framework, which allows it to learn rich feature representations from billions of tissue "tiles" without the need for manual annotations.

The Virchow foundation model architecture, illustrating the processing of tissue tiles into a universal feature representation.

To translate these tile-level features into slide-level clinical insights, the researchers developed Agata, a weakly supervised aggregator. Agata employs a cross-attention mechanism to identify and prioritize the most diagnostically relevant tiles within a specimen, overcoming the memory constraints associated with processing gigapixel-scale images.

Key Results and Insights

Virchow demonstrates state-of-the-art performance across several critical domains:

  • Pan-Cancer Detection: The model achieved a specimen-level AUC of 0.95 across 16 different cancer types. Notably, it maintained a high AUC of 0.937 for rare cancers, significantly outperforming existing foundation models.
  • Clinical Parity: Despite being a generalist model, the Virchow-based pan-cancer detector performed at parity with FDA-cleared specialist models for breast and prostate cancer. Crucially, it outperformed these specialists on rare variants, such as neuroendocrine tumors, due to its broader exposure to malignant patterns across all tissues.
  • Biomarker Prediction: Virchow set new benchmarks for predicting digital biomarkers (e.g., MSI status, EGFR mutations) directly from routine H&E slides, suggesting a path toward more accessible and cost-effective precision medicine.
  • Emergent Biological Features: Analysis of the model's internal representations revealed that it naturally clusters biologically similar cell types (e.g., malignant vs. inflammatory) without explicit supervision, indicating that it has learned fundamental principles of tissue morphology.

Discussion and Future Work

While Virchow represents a significant leap forward, several areas for future development remain. The current model is trained on data from a single institution; incorporating multi-institutional data could further enhance robustness. Additionally, while the model operates at 20x magnification, some high-grade diagnostic tasks may require 40x resolution. Future research will also focus on model distillation to reduce the computational cost of deploying such large-scale models in clinical settings and the development of "slide-level" foundation models to better capture global tissue architecture.

In conclusion, Virchow demonstrates that scaling laws observed in large language models also apply to computational pathology. By providing a robust, general-purpose representation of human tissue, Virchow opens new possibilities for high-impact clinical applications, particularly in the detection and diagnosis of rare diseases where labeled data is scarce.

Summary updated

BibTeX
@inproceedings{vorontsov2024foundation,
  author = {Eugene Vorontsov and Alican Bozkurt and Adam Casson and George Shaikovski and Michal Zelechowski and Kristen Severson and Eric Zimmermann and James M. Hall and Neil Tenenholtz and Nicolò Fusi and Ellen Yang and Philippe Mathieu and Alexander van Eck and Donghun Lee and Julian Viret and E.BETZ ROBERT and Yi Kan Wang and Jeremy D. Kunz and Matthew C. H. Lee and Jan Bernhard and Ran Godrich and Gerard J. Oakley and Ewan K.A. Millar and Matthew G. Hanna and Hannah Y. Wen and Juan Antonio Retámero and William A. Moye and Razik Yousfi and Christopher Kanan and David S. Klimstra and Brandon Rothrock and Siqi Liu and Thomas J. Fuchs},
  title = {{A foundation model for clinical-grade computational pathology and rare cancers detection}},
  booktitle = {Nature Medicine},
  year = {2024},
  doi = {10.1038/s41591-024-03141-0},
}
Figure