Structure-Guided Masked Autoencoders for Ultra-High Resolution Scientific Image Understanding
Organizations: Hokkaido University, Japan · RIKEN Center for Computational Science (R-CCS), Japan · Oak Ridge National Laboratory, USA · A*STAR, Singapore ·
Abstract
Self-supervised pre-training with Vision Transformers, including Masked Autoencoders (MAE), is difficult to apply to gigapixel scientific images. Random masking is poorly matched to the structured, multi-scale morphology of scientific data, while uniform tokenization produces prohibitively long sequences that make attention impractical. We propose SGMA, a structure-guided masked autoencoding framework for ultra-high-resolution scientific images. SGMA couples two components: a content-adaptive quadtree tokenizer that compresses gigapixel images into a fixed-length sequence, and a structure-conditioned masking process that biases reconstruction toward spatially informative regions. To stabilize this process across scales, we introduce Damped Accumulation (DA), which aggregates signal-dependent responses across the tree into a structure canvas used to guide masking. The resulting pre-training task preserves fine microstructure while remaining compatible with standard ViT encoders and MAE-style reconstruction. Across electron microscopy, whole-slide optical microscopy, and X-ray CT datasets, SGMA consistently outperforms MAE baselines. It achieves 95.68% Dice on the 8K x 8K x 28K SpringXCT dataset, improving over the same-architecture MAE baseline by +13.00 points, and 83.21% Dice on the 32K^2 WSI PAIP dataset, improving by +16.84 points, while providing up to a 24.8x inference speedup.
Figures & tables
| Dataset | Model | Patch Size | Sequence Length | Dice Score (%) | Performance Improvement |
| HydrogelTEM-1K | SAM 2 [ 44 ] | 8 | 16384 | 69.87 | - |
| UNet [ 46 ] | - | - | 71.03 | - | |
| UNETR [ 20 ] | 16 | 4096 | 70.59 | - | |
| FT-MAE-SAM | 8 | 16384 | 72.31 | (Baseline) | |
| FT-MAE-SAM 2 | 8 | 16384 | 73.12 | (Baseline) | |
| FT-MAE-UNETR | 16 | 4096 | 74.56 | (Baseline) |
| Datasets | GPUs | Model | Time (s/img) | Seq. Len. | Dice (%) | Speedup ( ) |
| HydrogelTEM-1K | 4 | MAE-SAM-8 [ 22 , 31 ] | 0.38261 | 16384 | 72.31 | 1 |
| 4 | SGMA-SAM (ours) | 0.09913 | 8194 | 72.56 | 3.86 | |
| SpringXCT-8K | 128 | MAE-SAM-128 [ 22 , 31 ] | 2.5168 | 4096 | 82.68 | 1 |
| 128 | SGMA-SAM (ours) | 0.3512 | 1024 | 89.37 | 7.17 | |
| PAIP-32K | 512 | MAE-SAM-1024 [ 22 , 31 ] | 8.9812 | 16384 | 62.34 | 1 |
| 512 | SGMA-SAM (ours) | 0.3663 | 2048 | 76.08 | 24.8 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Masked Autoencoders
Masked autoencoders learn representations by hiding parts of an input and training a model to reconstruct what is missing.
See all 101 papers