One Model to Magnify Them All: Efficient Scale-Invariant Histopathology via Conditional Normalization and Continuous Magnification Training

Agnieszka Florkowska, Henning Müller, Marek Wodzinski
8/10/2026
cs.CV

Official code: aflorkowska/OneModelToMagnifyThemAll (0 stars, Python, last commit 2026-08-12).

Abstract

Whole slide images (WSIs) in digital histopathology are acquired at discrete magnification levels encoding complementary diagnostic information from global tissue architecture to fine-grained cellular morphology. Yet, deep learning models remain sensitive to scale variation.

Show full abstract

Existing magnification-invariant methods rely on multi-scale architectures at predefined discrete resolutions, while in clinical deployment the acquisition magnification varies continuously, rarely aligns with a model's fixed training resolution, and intermediate scales are common, so robust coverage otherwise demands a costly ensemble of magnification-specific models. We propose Conditional Layer Normalization (CLN), a lightweight mechanism that generates affine normalization parameters from input pixel size via a small MLP, integrated into standard CNN architectures for both WSI classification and segmentation. Trained on patches sampled continuously across a range of pixel sizes, the model decouples inference from scanner-dependent magnification and generalizes to arbitrary, previously unseen scales at test time. On the PANDA prostate cancer dataset, our approach on average matches or exceeds independently trained single-magnification models and ranks among the top three performers at every evaluated magnification, including those unseen during training. This collapses a five-model ensemble into a single network and reduces training, and inference cost roughly 4-5 times, while leaving the multiply-accumulate count unchanged. The code is available at: https://github.com/aflorkowska/OneModelToMagnifyThemAll.

View on arXivView PDF

Code Implementations(1)

00PythonAug 3, 20263 months agoNOASSERTION

Similar Papers

Cite this paper

@article{florkowska2026model,
  title  = {One Model to Magnify Them All: Efficient Scale-Invariant Histopathology via Conditional Normalization and Continuous Magnification Training},
  author = {Agnieszka Florkowska and Henning Müller and Marek Wodzinski},
  year   = {2026},
  eprint = {2608.09403},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.09403v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.09403.svg)](https://codeofpaper.com/paper/2608.09403)

Discussion