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, H.-m. Behrens, Christoph Röcken, Sebastian Foersch, Daniel Truhn, Antonio Marra, Oliver Lester Saldanha, Jakob Nikolas Kather

Abstract

Numerous pathology foundation models have been developed to extract clinically relevant information. There is currently limited literature independently evaluating these foundation models on external cohorts and clinically relevant tasks to uncover adjustments for future improvements. Here we benchmark 19 histopathology foundation models on 13 patient cohorts with 6,818 patients and 9,528 slides from lung, colorectal, gastric and breast cancers. The models were evaluated on weakly supervised tasks related to biomarkers, morphological properties and prognostic outcomes. We show that a vision-language foundation model, CONCH, yielded the highest overall performance when compared with vision-only foundation models, with Virchow2 as close second, although its superior performance was less pronounced in low-data scenarios and low-prevalence tasks. The experiments reveal that foundation models trained on distinct cohorts learn complementary features to predict the same label, and can be fused to outperform the current state of the art. An ensemble combining CONCH and Virchow2 predictions outperformed individual models in 55% of tasks, leveraging their complementary strengths in classification scenarios. Moreover, our findings suggest that data diversity outweighs data volume for foundation models.

Introduction

In the last two years, the field of computational pathology has seen an influx of "foundation models" (FMs)—large neural networks trained on millions of tissue images to learn general biological representations. However, most of these models are evaluated by their creators on internal datasets, leading to potential bias and data leakage. This study provides an independent "head-to-head" comparison on external datasets to understand which models generalize to real-world clinical tasks, such as predicting genetic mutations or patient survival from a single H&E slide.

Methodology: The STAMP Pipeline

The authors employed a standardized weakly supervised learning workflow using the STAMP pipeline:

  1. Tessellation: High-resolution whole-slide images (WSIs) are broken into small patches (tiles).
  2. Feature Extraction: Each of the 19 foundation models acts as a "frozen" encoder, converting image tiles into numerical feature vectors.
  3. Aggregation: A transformer-based aggregator (or Attention-based Multiple Instance Learning) is trained to analyze tile features and predict a single clinical label.

The benchmark evaluated 12 pure vision models (e.g., UNI, Virchow2), 3 vision-language models (CONCH, PLIP, BiomedCLIP), and 4 slide-level encoders.

Datasets and Clinical Tasks

The study utilized a diverse array of datasets totaling 6,818 patients and 9,528 slides. Training was conducted on The Cancer Genome Atlas (TCGA) across lung, colorectal, gastric, and breast cancers, while external validation was performed on five independent cohorts, including CPTAC and DACHS.

Overview of the patient cohorts and datasets used in the benchmarking study, including CRC and BRCA samples from TCGA, CPTAC, DACHS, and IEO.

The 31 clinical tasks were categorized into Morphology (e.g., cancer subtyping), Biomarkers (e.g., MSI status, BRAF mutations), and Prognosis (e.g., lymph node status).

Key Insights

Diversity Outweighs Volume

A striking finding is that the number of unique anatomic tissue sites in a model's pretraining set correlated more strongly with performance than the total number of images. Models trained on diverse slides often outperformed those trained on larger but more homogeneous datasets.

Correlation analysis (Pearson's r) showing that pretraining data diversity is a key driver of downstream model performance.

Complementary Strengths and Ensembles

Different models "see" tissue differently. Vision-language models like CONCH often focus on specific diagnostic regions, while vision-only models like Prov-GigaPath may take a more global approach. Because models learn complementary features, fusing them (e.g., concatenating features from CONCH and Virchow2) outperformed any single model in 55% of tasks.

The "Small Data" Wall

Despite their foundation status, these models still struggle with low-prevalence biomarkers and low-data scenarios. They are not yet a universal solution for tasks where only a few dozen labeled examples exist.

Results

  • Overall Leaders: CONCH and Virchow2 tied for the highest average performance across all tasks with an average AUROC of 0.71.
  • Task Performance: Models performed best on Morphology tasks (mean AUROC 0.77) and struggled most with Prognosis (mean AUROC 0.63).
  • Ensemble Gains: A simple ensemble of CONCH and Virchow2 reached an AUROC of 0.719, a statistically significant improvement over individual models.

Limitations and Future Outlook

The benchmark was limited to four major cancer types and focused on frozen feature extractors. Future work should expand to rarer cancers and explore the impact of parameter-efficient fine-tuning. Additionally, capturing global spatial dependencies across an entire slide remains an open research frontier.

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 H.-M. 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