Research
MuViT: Multi-Resolution Vision Transformers for Learning Across Scales in Microscopy
MuViT: Multi-Resolution Vision Transformers for Learning Across Scales in Microscopy Overview Research area: Computer vision for computational microscopy and digital pathology; specifically multi-reso
- arXiv
- 2602.24222
- Published
- 2026-02-27
- Authors
- Albert Dominguez Mantes, Gioele La Manno, Martin Weigert
AI summary
MuViT: Multi-Resolution Vision Transformers for Learning Across Scales in MicroscopyOverview
- Research area: Computer vision for computational microscopy and digital pathology; specifically multi-resolution transformer architectures for gigapixel-scale image analysis.
- Technical level: Advanced. The paper assumes familiarity with Vision Transformers, masked autoencoders, self-attention, rotary positional embeddings, and semantic segmentation benchmarks.
- Scope: The paper introduces MuViT, a transformer encoder that ingests several crops of the same scene at different physical resolutions, aligns them in a shared world-coordinate system via RoPE, and evaluates it on synthetic, mouse-brain, and kidney-pathology segmentation tasks.
What This Paper Is About
Modern microscopy (light-sheet fluorescence, electron microscopy, digital pathology) routinely produces images exceeding 50K × 50K pixels that contain structure at many spatial scales, from single cells to whole tissue architecture. Standard deep learning pipelines compute tiled predictions on single-resolution crops (for example 512 × 512 pixels), which forces a trade-off: enlarging the tile to gain context costs memory, and small tiles lose the global information needed to classify a pixel correctly. MuViT's goal is to let one transformer encoder attend jointly over crops of the same underlying image at several resolutions at once, so that wide-field context and fine detail inform each other within a single forward pass.
Key Contributions
-
A genuinely multi-resolution Vision Transformer. MuViT jointly processes true multi-resolution observations (multiple fields of view of the same scene, sharing pixel size but differing in scale) inside one encoder, in contrast to hierarchical or pyramidal models such as Swin, PVT, and HIPT that construct feature pyramids from a single-resolution input.
-
World-coordinate RoPE for cross-scale attention. Each token receives absolute world coordinates, defined as the pixel coordinate system of the highest-resolution input, and these coordinates drive the rotary position embeddings inside query/key projections. This enables cross-resolution attention without requiring crop alignment, and the paper shows that inaccurate coordinates (the "naive bbox" baseline) cause large performance drops.
-
Multi-resolution MAE pretraining. The masked-autoencoder recipe is extended to the multi-resolution setting using Dirichlet-weighted per-level masking (α = 0.5) with an overall masking ratio ρ = 0.75, producing scale-consistent representations that converge downstream segmentation models within a few epochs.
-
Strong results on synthetic and large-scale microscopy tasks. Improvements over ViT and CNN baselines across a synthetic benchmark, the mouse brain anatomy dataset, and the KPIS kidney pathology benchmark, including a linear-probing study showing that adding resolution levels progressively improves representation quality.
Main Findings
-
Synthetic task requires cross-scale reasoning, and MuViT solves it. On the synthetic concentric-ring dataset, MuViT[1,4] + UNETR reaches mDSC = 0.9538 (outer 0.9499, inner 0.9577), while single-resolution baselines cluster near chance class assignment: U-Net 0.4016, DeepLabV3 0.4895, MuViT[1] + UNETR 0.5003.
-
Correct coordinates are essential, not cosmetic. Training the same MuViT[1,4] architecture with fixed, centered "naive" bounding boxes collapses performance to mDSC = 0.3864 on Synthetic. On Mouse, MuViT[1,8,32] + Mask2Former drops from mDSC = 0.901 to 0.820 with naive coordinates, and MuViT[1,8,32] + UNETR drops from 0.883 to 0.793.
-
State-of-the-art brain anatomy segmentation with small tiles. MuViT[1,8,32] + Mask2Former reaches mDSC = 0.901 on the Mouse test set using 3 × 256 × 256 inputs. The strongest baseline, DeepLabV3, needs 1024 × 1024 inputs to reach mDSC = 0.843, and falls to 0.676 at 512 × 512 and 0.520 at 256 × 256. MuViT achieves the highest Dice in every class except Caudoputamen, where MuViT[1,8,32] + UNETR performs best (0.924 versus 0.922).
-
Hard, context-dependent structures benefit most. The Septal complex, described as small and heavily reliant on global anatomical positioning, reaches Dice 0.859 with MuViT[1,8,32] versus 0.734 for DeepLabV3; most single-scale methods fail to classify it reliably.
-
Fast convergence from MAE pretraining. On Mouse, MuViT[1,8,32] + Mask2Former reaches mDSC = 0.843 after only 10 epochs and surpasses 0.88 by epoch 25 (0.619 at epoch 1, 0.880 at epoch 25, 0.878 at epoch 50). Conventional architectures trained on 1024 × 1024 inputs show slow, unstable early training, with most below 0.30 Dice at epoch 10.
-
KPIS pathology results beat a benchmark-specific method with far smaller inputs. MuViT[1,8] + UNETR achieves Dice 0.8958 on the KPIS test set, ahead of HoloHisto-4K (0.8454, at 3840 × 2160 inputs), SAM-ViT-H (0.7724), SAM-ViT-B (0.7519), SwinUNETR-V2 (0.7158), DeepLabV3 (0.6822), SegFormer (0.6501), UNETR (0.6425), and nnU-Net (0.6219). The multi-resolution variant also improves markedly over its own single-level counterpart MuViT[1] + UNETR (0.8492).
-
Reconstruction error improves with scale-consistent coordinates on KPIS. For MuViT[1,8,32,64] on KPIS, MSE is 3.268 × 10⁻³, 9.387 × 10⁻³, 7.941 × 10⁻³, and 6.913 × 10⁻³ at levels 1, 8, 32, and 64, versus 3.410 × 10⁻³, 9.998 × 10⁻³, 8.816 × 10⁻³, and 7.302 × 10⁻³ for the naive-coordinate variant. On Mouse the ablation is mixed across levels: MuViT[1,8,32] (naive) records lower MSE at level 1 and level 32, while the scale-consistent model is lower at level 8.
-
More resolution levels yield richer frozen features. In linear probing on KPIS for the 4-class experimental-group classification, ROC-AUC rises from 0.958 (MuViT[1], 256 × 256) to 0.963 (MuViT[1,8]) to 0.988 (MuViT[1,8,32,64]). HIPT used off-the-shelf at 4096 × 4096 scores 0.907; the paper notes HIPT was pretrained on a large histopathology pool that does not include KPIS.
-
Robustness to coordinate noise, at a compute cost. MuViT tolerates Gaussian noise added to inference bounding boxes, with only minor degradation up to approximately 32 px across all datasets. The paper also reports runtime and peak memory benchmarks as the number of resolution levels grows, acknowledging computational overhead in exchange for a substantially larger effective context.
Methodology in Plain English
The core idea is to treat different spatial scales as complementary input "modalities," the way a multimodal encoder might treat an image and a depth map.
The model receives a tuple of image crops plus the bounding box of each crop, expressed in a common "world" coordinate system defined by the pixel grid of the finest-resolution input. Each crop is split into non-overlapping 8 × 8 patches, projected to a shared embedding dimension through level-specific linear layers, and tagged with a learnable level embedding so the model knows which scale a token came from. Every patch also gets a coordinate: the center of that patch mapped into world coordinates through its bounding box.
Those coordinates are fed into 2D axial Rotary Position Embeddings computed inside the attention layers of a 12-layer transformer encoder with roughly 25M parameters. Because the rotation angles depend on absolute world position rather than on the token's index within its own crop, two patches that describe the same physical location receive the same positional encoding even if they come from different resolution levels. That is what allows one attention operation to mix coarse context with fine detail.
Two decoders are used. For self-supervised pretraining, a masked autoencoder hides 75% of tokens and reconstructs them with L lightweight per-level decoders of two transformer layers each; the first decoder layer cross-attends to the visible encoder outputs using the same coordinate-based RoPE. The per-level masking proportions are drawn from a Dirichlet distribution so the model sees many different cross-scale visibility configurations. The loss is mean squared error on masked patches only, averaged over levels. For segmentation, the pretrained encoder is paired with either a UNETR-style convolutional decoder with skip connections from layers 0, 5, and 11, or a Mask2Former-style query decoder; the loss combines cross-entropy and Dice with weights of 1.0 each, computed only at the finest level.
Training samples nested crops at random positions, with each finer crop contained inside the coarser one (but not centered), so the model must learn general spatial relationships rather than a fixed layout. Images are stored as Zarr pyramids so only the sampled multi-scale positions are loaded. For the gigapixel datasets, whole-image predictions are produced by tiled inference without tile overlap, using tiles matching each method's training input size.
Why This Matters
Impact on research. The paper reframes multi-scale vision as a geometry problem rather than an architecture problem. Instead of building feature pyramids internally from one input, MuViT shows that giving a plain transformer correct world coordinates is enough to fuse physically distinct resolutions. The naive-bounding-box ablations are the strongest evidence: identical architecture, identical inputs, wrong coordinates, and performance collapses. This points to a design principle that can be transferred to other domains where observations come at multiple scales over a shared coordinate frame.
Real-world applications.
- Digital pathology. Whole-slide kidney biopsies in KPIS span 16k–71k × 14k–81k pixels; MuViT segments glomeruli at Dice 0.8958 using only 2 × 512 × 512 inputs, which matters for slide-scanner throughput and memory budgets.
- Preclinical and drug-discovery imaging. The KPIS dataset comes from four mouse models representing different conditions and stages of chronic kidney disease, and the frozen MuViT encoder classifies those experimental groups at 0.988 ROC-AUC, suggesting use for phenotype screening.
- Brain atlasing and connectomics. The Mouse dataset covers 11 anatomical regions across 618 DAPI-stained images from 12 volumetric brains at roughly 13k × 9k pixels, where boundaries between structures such as the Septal complex are exactly the cases multi-scale context resolves.
- Large-scale microscopy pipelines generally. Light-sheet fluorescence microscopy and electron microscopy volumes named in the introduction have the same structure: hierarchical organization that no single field of view captures.
Industry relevance. The practical selling point is the memory-versus-context trade-off. Medical imaging and microscopy vendors are constrained by GPU memory when deploying slide-level models; MuViT claims better accuracy than baselines using far smaller inputs, since coarse levels carry the global context without inflating tile size. The released code (github.com/weigertlab/muvit), the Zarr-pyramid data strategy for memory-efficient loading, and the reported runtime and peak-memory benchmarks all speak to deployment concerns rather than pure benchmark chasing.
Future Directions
- Reduce the attention overhead. Jointly attending over all scales increases computational cost; the authors propose sparse or cross-scale attention schemes as one route to closing that gap.
- Extend beyond semantic segmentation. The paper focuses on segmentation because it most directly probes the global-context-versus-local-detail challenge, and explicitly names instance segmentation and object detection as natural next tasks to assess.
- Move to 3D volumes. The coordinate-based formulation is described as readily extendable to volumetric data, where crops would be sampled from different slices while keeping spatial consistency through positional encoding.
- Handle non-nested and misaligned views. The framework is stated to be flexible enough to incorporate views from different spatial regions that are not nested, an open question given how much performance depends on accurate coordinates and how the model behaves under coordinate noise (robust up to roughly 32 px).
Target Audience
Researchers and engineers working on computational microscopy, whole-slide image analysis, and digital pathology who need models that reason over gigapixel images. It is also relevant to computer-vision researchers interested in positional encoding design, multi-scale transformers, and multi-modal-style masked pretraining, and to practitioners deploying segmentation models under tight GPU memory budgets. Readers should be comfortable with transformer internals, masked autoencoders, and segmentation metrics to get the most out of it.
Authors’ abstract
Modern microscopy routinely produces gigapixel images that contain structures across multiple spatial scales, from fine cellular morphology to broader tissue organization. Many analysis tasks require combining these scales, yet most vision models operate at a single resolution or derive multi-scale features from one view, limiting their ability to exploit the inherently multi-resolution nature of microscopy data. We introduce MuViT, a transformer architecture built to fuse true multi-resolution observations from the same underlying image. MuViT embeds all patches into a shared world-coordinate system and extends rotary positional embeddings to these coordinates, enabling attention to integrate wide-field context with high-resolution detail within a single encoder. Across synthetic benchmarks, kidney histopathology, and high-resolution mouse-brain microscopy, MuViT delivers consistent improvements over strong ViT and CNN baselines. Multi-resolution MAE pretraining further produces scale-consistent representations that enhance downstream tasks. These results demonstrate that explicit world-coordinate modelling provides a simple yet powerful mechanism for leveraging multi-resolution information in large-scale microscopy analysis.