# Distilling Pathology Foundation Models for Mitotic Figure Classification: The Loss and Recovery of Scanner Robustness

arXiv: https://arxiv.org/abs/2611.37085 · HTML: https://mlsanity.com/paper/2611.37085/

## Key facts

- No citing papers in the map yet (data through 2 Dec 2026).
- Placed in Distillation for medical imaging, one of 12 directions in Knowledge distillation.
- Builds on 25 of its 37 references that are in the map.
- Submitted 27 Nov 2026, announced 30 Nov 2026.

## Placed in

- Knowledge distillation / [Distillation for medical imaging](https://mlsanity.com/distill/distillation-for-medical-imaging/)

## Builds on (most cited first, 25 of 25)

- [Deep Residual Learning for Image Recognition](https://mlsanity.com/paper/1512.03385/) (2015)
- [Distilling the Knowledge in a Neural Network](https://mlsanity.com/paper/1503.02531/) (2015)
- [A ConvNet for the 2020s](https://mlsanity.com/paper/2201.03545/) (2022)
- [Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervision](https://mlsanity.com/paper/2312.09390/) (2023)
- [Improving robustness against common corruptions by covariate shift adaptation](https://mlsanity.com/paper/2006.16971/) (2020)
- [Detecting and Correcting for Label Shift with Black Box Predictors](https://mlsanity.com/paper/1802.03916/) (2018)
- [A Unified View of Label Shift Estimation](https://mlsanity.com/paper/2003.07554/) (2020)
- [Batch Calibration: Rethinking Calibration for In-Context Learning and Prompt Engineering](https://mlsanity.com/paper/2309.17249/) (2023)
- [Extending the WILDS Benchmark for Unsupervised Adaptation](https://mlsanity.com/paper/2112.05090/) (2021)
- [Mitosis domain generalization in histopathology images -- The MIDOG challenge](https://mlsanity.com/paper/2204.03742/) (2022)
- [How I failed machine learning in medical imaging -- shortcomings and recommendations](https://mlsanity.com/paper/2103.10292/) (2021)
- [Distilling foundation models for robust and efficient models in digital pathology](https://mlsanity.com/paper/2501.16239/) (2025)
- [Current Pathology Foundation Models are unrobust to Medical Center Differences](https://mlsanity.com/paper/2501.18055/) (2025)
- [Leveraging Vision-Language Models for Improving Domain Generalization in Image Classification](https://mlsanity.com/paper/2310.08255/) (2023)
- [Domain generalization across tumor types, laboratories, and species -- insights from the 2022 edition of the Mitosis Domain Generalization Challenge](https://mlsanity.com/paper/2309.15589/) (2023)
- ["Why did the Model Fail?": Attributing Model Performance Changes to Distribution Shifts](https://mlsanity.com/paper/2210.10769/) (2022)
- [Quantifying the Scanner-Induced Domain Gap in Mitosis Detection](https://mlsanity.com/paper/2103.16515/) (2021)
- [Scanner-Induced Domain Shifts Undermine the Robustness of Pathology Foundation Models](https://mlsanity.com/paper/2601.04163/) (2026)
- [Distilling Out-of-Distribution Robustness from Vision-Language Foundation Models](https://mlsanity.com/paper/2311.01441/) (2023)
- [Deployment of Image Analysis Algorithms under Prevalence Shifts](https://mlsanity.com/paper/2303.12540/) (2023)
- [Benchmarking Foundation Models for Mitotic Figure Classification](https://mlsanity.com/paper/2508.04441/) (2025)
- [Your AI-Generated Image Detector Can Secretly Achieve SOTA Accuracy, If Calibrated](https://mlsanity.com/paper/2602.01973/) (2026)
- [A Deployment-Friendly Foundational Framework for Efficient Computational Pathology](https://mlsanity.com/paper/2602.14010/) (2026)
- [Multi-Teacher Contrastive Distillation for Edge-Efficient Pathology Foundation Models](https://mlsanity.com/paper/2607.05533/) (2026)
- [Tempering and few-shot calibration of pathology foundation models improve digital biomarker reproducibility across slide scanners](https://mlsanity.com/paper/2611.31536/) (2026)

## Abstract (arXiv)

Pathology foundation models classify mitotic figures robustly on unseen scanners but are too slow for every candidate cell, so they are distilled into compact networks; whether the teacher's scanner robustness survives at a fixed operating point is unknown. On the breast subset of MIDOG++, with one of three scanners held out at a time, we distil four LoRA-adapted foundation models into ResNet-18 and ConvNeXt-T students, decompose the student's loss into three layers (operating point, normalisation statistics, representation) and repair each in order of cost, with pre-specified contrasts and a paired bootstrap over images and seeds. Distillation transfers the teacher's ranking (AUROC) but not its robustness (F1). Most of the loss, however, needs no retraining: for ResNet-18 and three of the four teachers, the operating point and BatchNorm statistics account for 51% to 75% of the teacher's advantage, and for BatchNorm-free ConvNeXt-T the operating point alone accounts for 41% to 46%. One logit offset fitted to the teacher's predictions on unlabelled images (TGR) reaches the bound of a labelled cutoff (within 0.005 F1 from five images on) and, unlike source-referenced recalibration and prior-shift estimators, survives changes in mitosis prevalence. Retraining on unlabelled target images gives the largest gain, mostly without the teacher, although for ConvNeXt-T the teacher adds 0.030 F1. Repaired layer by layer, a ConvNeXt-T student with 23 to 41 times fewer parameters and 62 to 98 times the throughput recovers 86% to 99% of its teacher's advantage and is non-inferior to Virchow2 at a margin of 0.02 F1; it stays 0.005 to 0.012 F1 below three LoRA trainings of H-optimus-0, and non-inferiority to any one of them is not established.
