Mind the Gap: Continuous Magnification Sampling for Pathology Foundation Models
Alexander Möllers, Julius Hense, Florian Schulz, Timo Milbich, Maximilian Alber, Lukas Ruff
TL;DR
This work reframes magnification sampling in pathology foundation models as a multi-source domain adaptation problem and demonstrates that standard discrete uniform sampling degrades representations at intermediate scales. It introduces continuous magnification training via crop-and-resize, along with principled optimization of sampling distributions under average- and worst-case criteria, to achieve smoother, more robust embeddings across the magnification spectrum. The authors validate their theory with RankMe-based profiling and two new multi-scale benchmarks (TCGA-MS, BRACS-MS), showing improvements of up to about 4 percentage points in intermediate magnifications and revealing magnification as a major driver of model performance. The findings have practical implications for evaluating and constructing pathology foundation models that perform reliably across scales, and point to future directions in cross-scale analysis and multi-scale benchmark development.
Abstract
In histopathology, pathologists examine both tissue architecture at low magnification and fine-grained morphology at high magnification. Yet, the performance of pathology foundation models across magnifications and the effect of magnification sampling during training remain poorly understood. We model magnification sampling as a multi-source domain adaptation problem and develop a simple theoretical framework that reveals systematic trade-offs between sampling strategies. We show that the widely used discrete uniform sampling of magnifications (0.25, 0.5, 1.0, 2.0 mpp) leads to degradation at intermediate magnifications. We introduce continuous magnification sampling, which removes gaps in magnification coverage while preserving performance at standard scales. Further, we derive sampling distributions that optimize representation quality across magnification scales. To evaluate these strategies, we introduce two new benchmarks (TCGA-MS, BRACS-MS) with appropriate metrics. Our experiments show that continuous sampling substantially improves over discrete sampling at intermediate magnifications, with gains of up to 4 percentage points in balanced classification accuracy, and that optimized distributions can further improve performance. Finally, we evaluate current histopathology foundation models, finding that magnification is a primary driver of performance variation across models. Our work paves the way towards future pathology foundation models that perform reliably across magnifications.
