Beyond Classification: Pathology Foundation Models as Detection Encoders for Mitotic Figures

Sweta Banerjee, Alireza Teimoury, Nils Porsche, Alexandra K. Stoll, Viktoria Weiss, Niklas Hargarter, Jonas Ammeling, Thomas Conrad, Christoph Stroblberger, Christopher Kaltnecker, Robert Klopfleisch, Christof A. Bertram, Katharina Breininger, Marc AubrevillearXiv 2026

Here is a concise, engaging summary of the paper, tailored for researchers and engineers interested in computational pathology and computer vision.

TL;DR

This paper investigates whether the frozen latent spaces of pathology foundation models (FMs)—originally trained via image-level self-supervision—contain enough spatial resolution to perform dense object detection. By evaluating six prominent FMs across three detector paradigms, the authors demonstrate that frozen FMs can compete with fully fine-tuned networks in-domain and actually outperform them in out-of-domain scenarios, proving their superior generalization capabilities.

What Problem Does This Paper Address?

Pathology foundation models (FMs) like UNI, Virchow, and H-Optimus have revolutionized computational pathology by providing powerful feature representations from massive, unlabeled datasets. However, these models are typically trained using image- or patch-level self-supervised learning (e.g., DINOv2 or MoCo). While they excel at classification tasks, it has remained an open question whether their frozen latent spaces retain the fine-grained spatial localization required for dense prediction tasks like object detection.

Detecting mitotic figures (cells undergoing division) is a critical prognostic marker in cancer grading, but it requires identifying tiny structures within large tissue sections. Traditionally, this relies on end-to-end fully fine-tuned convolutional networks. This paper tests whether frozen FMs can eliminate the need for expensive end-to-end training while maintaining or improving detection accuracy and robustness.

Methods

The authors designed a systematic evaluation pipeline to test six Vision Transformer (ViT)-based pathology FMs: UNI, UNI2-h, Virchow, Virchow2, H-Optimus-0, and H-Optimus-1.

Overview of the detection pipeline combining frozen FM backbones with a feature pyramid neck and various detector heads.

To adapt these single-scale ViT backbones for multi-scale object detection, the authors:

  1. Froze the FM backbones, using them strictly as feature extractors.
  2. Appended a lightweight Feature Pyramid Neck (based on the ViTDet architecture) to extract multi-scale feature maps.
  3. Paired the backbones with three distinct object detection heads representing major paradigms: RetinaNet (one-stage), Faster R-CNN (two-stage), and Deformable DETR (attention-based).

They compared these 18 frozen FM configurations against standard ImageNet-pretrained ResNet-50 baselines (both fully fine-tuned and completely frozen).

Datasets

  • MIDOG++: A multi-domain mitotic figure detection dataset spanning seven distinct tumor/species domains. This served as the primary dataset for training, validation, and in-domain testing.
  • TUPAC16: A secondary dataset consisting of 71 human breast cancer cases, used exclusively as an out-of-domain (OOD) test set to evaluate model robustness under domain shift.

Key Insights and Ideas

  • Image-Level Pretraining Preserves Spatial Details: Despite being trained on global image-level objectives without explicit localization signals, modern pathology FMs inherently encode dense spatial information that a simple, lightweight neck can successfully recover for object detection.
  • Domain Specificity Matters: Frozen pathology FMs significantly outperformed a frozen ImageNet-pretrained ResNet-50, demonstrating that the features learned from massive histopathology pretraining are uniquely suited for cellular-level tasks.
  • The OOD Reversal: While a fully fine-tuned ResNet-50 narrowly wins on in-domain data, it loses its edge out-of-domain. Frozen FMs generalize much more gracefully to unseen datasets, likely because their frozen weights prevent them from overfitting to the source domain's specific characteristics.

Key Results

In-Domain Performance (MIDOG++)

The fully fine-tuned ResNet-50 paired with RetinaNet achieved the highest overall F1-score (0.7917). However, the top-performing frozen FM configuration—H-Optimus-0 with RetinaNet—followed closely behind with an F1-score of 0.7718, yielding the highest precision (0.8197) across all tested models.

Table 1. Detection performance across frozen foundation-model backbones, detection heads, and ResNet-50 baselines (trained end-to-end and frozen) on the MIDOG++ test set. All metrics are reported with 95% bootstrap confidence intervals (10,000 slide-level resamples) in brackets; F1, precision, and recall are evaluated at each configuration’s validation-selected operating threshold, and FROC-AUC is a threshold-independent area on the [0, 8] FP/image scale. The best value in each column is shown in bold.

Out-of-Domain Performance (TUPAC16)

Under domain shift, the hierarchy flipped. H-Optimus-0 with RetinaNet achieved the top F1-score (0.7349), outperforming the best fully fine-tuned ResNet-50 configuration (0.7193). The Virchow family also demonstrated strong OOD performance, confirming that frozen FMs provide a more robust baseline for real-world deployment where domain shifts are common.

Table 2. Out-of-domain detection performance, evaluated on TUPAC16. F1, precision, and recall are reported at each configuration’s operating threshold, with 95% bootstrap confidence intervals (10,000 slide-level resamples) in brackets; FROC-AUC was evalu- ated on the [0, 8] FP/image scale. Best value in each column is shown in bold.

Limitations and Future Work

While these results are promising, the authors highlight a few limitations:

  1. Strictly Frozen Backbones: This study only evaluates the baseline information present in the FMs. Implementing Parameter-Efficient Fine-Tuning (PEFT) techniques, such as LoRA (Low-Rank Adaptation), could potentially close the remaining in-domain performance gap.
  2. Limited OOD Evaluation: Robustness was evaluated on only one secondary dataset (TUPAC16); broader multi-center validation is needed.
  3. Head Dependency: Performance varied significantly depending on the choice of the detector head (with RetinaNet being the most stable), indicating that head selection is a crucial hyperparameter when working with frozen FMs.

Summary updated

BibTeX
@misc{banerjee2026beyond,
  author = {Sweta Banerjee and Alireza Teimoury and Nils Porsche and Alexandra K. Stoll and Viktoria Weiss and Niklas Hargarter and Jonas Ammeling and Thomas Conrad and Christoph Stroblberger and Christopher Kaltnecker and Robert Klopfleisch and Christof A. Bertram and Katharina Breininger and Marc Aubreville},
  title = {{Beyond Classification: Pathology Foundation Models as Detection Encoders for Mitotic Figures}},
  year = {2026},
  eprint = {2607.28007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.28007},
}
Figure