Benchmarking foundation models as feature extractors for weakly-supervised computational pathology

Peter Neidlinger, Omar S. M. El Nahhas, Hannah Sophie Muti, Tim Lenz, Michael Hoffmeister, Hermann Brenner, Marko van Treeck, Rupert Langer, Bastian Dislich, Hans Michael Behrens, Christoph Röcken, Sebastian Foersch, Daniel Truhn, Antonio Marra, Oliver Lester Saldanha, Jakob Nikolas Kather · DOI

Introduction

In the rapidly evolving field of computational pathology, foundation models (FMs) have emerged as the cornerstone for analyzing whole-slide images (WSIs). These models, pre-trained on vast, often unlabeled datasets, are designed to extract rich morphological features that can then be used for downstream clinical tasks, such as biomarker prediction or patient stratification. However, the evaluation of these models has historically been fragmented. Most FMs are benchmarked by their own developers on internal datasets, raising concerns about data leakage and optimistic bias.

This study addresses the critical need for a rigorous, independent "stress test." By evaluating 19 distinct pathology foundation models across 31 clinical tasks and 13 patient cohorts, the researchers provide a comprehensive roadmap for selecting and deploying AI in clinical pathology.

Methodology: A Weakly-Supervised Approach

The study utilizes a weakly-supervised learning framework, which is essential for scaling AI in medicine. Unlike fully supervised methods that require labor-intensive, pixel-level annotations by pathologists, weakly-supervised learning uses slide-level labels (e.g., "positive for BRAF mutation") to train models on the entire slide.

The experimental pipeline consists of four primary stages:

  1. Feature Extraction: 19 foundation models were used to convert high-resolution WSIs into compact numerical feature vectors. These models included vision-only architectures and vision-language models.
  2. Aggregation: The researchers employed the STAMP pipeline, a Transformer-based aggregator, to process the patches within a slide and generate a final prediction.
  3. External Validation: To ensure generalizability, models were trained on public datasets (TCGA) and validated on independent external cohorts, including CPTAC, DACHS, and proprietary datasets from Bern, Kiel, and Milan (IEO).
  4. Interpretability: Grad-CAM heatmaps were generated to visualize the tissue regions driving the models' decisions, ensuring the AI focuses on biologically relevant features rather than artifacts like pen marks or slide preparation noise.

Data Scale and Diversity

The benchmark's strength lies in its scale, encompassing 9,528 slides from 6,818 patients. The study focused on four major cancer types: Lung, Colorectal, Gastric, and Breast. By testing on diverse cohorts like the German DACHS study and various European hospital datasets, the researchers ensured the models were tested against the "real-world" variability of slide preparation and patient populations.

Key Insights and Results

1. The Superiority of Vision-Language Models

CONCH, a vision-language model trained on 1.1 million image-caption pairs, emerged as a top performer. This suggests that incorporating textual descriptions from pathology reports during training allows the model to learn more nuanced, clinically relevant features than models trained on images alone.

2. Diversity Over Volume

A significant finding was that the sheer volume of training data is not the sole determinant of success. Virchow2, trained on 3.1 million slides, and CONCH both achieved an average AUROC of 0.71 across all tasks. Models trained on diverse tissue types often outperformed those trained on larger but more homogenous datasets, highlighting the importance of data variety in foundation model development.

3. The Power of Ensembling

The study revealed that different models often have complementary "views" of the same tissue. While one model might excel at identifying tumor cells, another might be more sensitive to the surrounding stroma. By ensembling the top models (e.g., CONCH and Virchow2), the researchers achieved a 6.2% reduction in misclassifications, with the ensemble outperforming individual models in 55% of the tasks.

4. Task-Specific Performance

The models demonstrated high proficiency in "morphology-heavy" tasks, such as lung cancer subtyping (AUROC ~0.77). However, they faced greater challenges with prognostic tasks, such as predicting overall survival (AUROC ~0.63). This indicates that while FMs are excellent at identifying visual patterns, predicting long-term clinical outcomes remains a complex frontier. Additionally, these models proved robust in data-scarce environments, maintaining performance even with as few as 75 training patients.

Discussion and Future Directions

While this benchmark provides a definitive look at the current state of pathology FMs, it also highlights areas for growth. The study was limited to four cancer types, and several proprietary or newer models were not included due to licensing restrictions. Furthermore, the ensembling was performed using simple concatenation; more sophisticated model-merging techniques could potentially unlock even higher performance without increasing computational overhead.

In conclusion, this independent benchmark establishes CONCH and Virchow2 as the current state-of-the-art for pathology feature extraction. It also underscores that the future of computational pathology may not lie in a single "super-model," but in the strategic ensembling of diverse models that capture the full complexity of human tissue.

Summary updated

BibTeX
@inproceedings{neidlinger2025benchmarking,
  author = {Peter Neidlinger and Omar S. M. El Nahhas and Hannah Sophie Muti and Tim Lenz and Michael Hoffmeister and Hermann Brenner and Marko van Treeck and Rupert Langer and Bastian Dislich and Hans Michael Behrens and Christoph Röcken and Sebastian Foersch and Daniel Truhn and Antonio Marra and Oliver Lester Saldanha and Jakob Nikolas Kather},
  title = {{Benchmarking foundation models as feature extractors for weakly-supervised computational pathology}},
  booktitle = {Nature Biomedical Engineering},
  year = {2025},
  doi = {10.1038/s41551-025-01516-3},
}
Figure