Research map / Architectures and efficiency / Attention and transformers
Structure-Guided Masked Autoencoders for Ultra-High Resolution Scientific Image Understanding
Enzhi Zhang, Du Wu, Rui Zhong, Cong Ma, Isaac Lyngaas, Amir K Ziabari, Xiao Wang, Peng Chen, Tao Luo, Toshio Endo, Fumiyoshi Shoji, Kento Sato and 9 more
Hokkaido University · RIKEN · Oak Ridge National Laboratory · Oak Ridge National Lab · A*STAR · Institute of Science Tokyo
Read the paperPlace an idea next to itCheck your own paper ↗
Proposes SGMA, a structure-guided MAE pre-training framework for gigapixel scientific images that pairs a content-adaptive quadtree tokenizer (SGFT) with structure-conditioned masking (Damped Accumulation), reporting large Dice gains over MAE baselines on TEM, XCT and WSI segmentation with up to 24.8x inference speedup.
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Problem
Masked autoencoder pre-training and ViT inference are impractical for gigapixel scientific images: random masking ignores multi-scale microstructure, and uniform tokenization yields sequences too long for O(N^2) attention.
Approach
Replace uniform patching with a probabilistic, softmax-sampled content-adaptive quadtree that yields a fixed-length token sequence, and build the MAE masking distribution from a Gaussian-noise canvas accumulated across tree levels (Damped Accumulation), so masks concentrate on structurally informative regions.
Key results
- On SpringXCT-8K, FT-SGMA-SAM reaches 95.68% Dice vs 82.68% for FT-MAE-SAM (+13.00).
- On PAIP-32K, FT-SGMA-SAM2 reaches 83.21% Dice, +16.84 over FT-MAE-SAM2 (66.37%).
- Inference speedup up to 24.8x over MAE-SAM on PAIP-32K (0.3663 s vs 8.9812 s per image), though with a shorter sequence length for SGMA.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| pre-train with SGMA instead of MAE | SAM · SpringXCT-8K | Dice (%): 82.68 -> 95.68 (+13.00) | Improved |
| pre-train with SGMA instead of MAE | SAM 2 · PAIP-32K | Dice (%): 66.37 -> 83.21 (+16.84) | Improved |
| pre-train with SGMA instead of MAE | UNETR · HydrogelTEM-1K | Dice (%): 74.56 -> 75.33 (+0.77) | Improved |
| pre-train with SGMA instead of MAE | UNETR · PAIP-32K | Dice (%): 77.24 -> 81.23 (+3.99) | Improved |
| pre-train with SGMA instead of MAE | SAM 2 · SpringXCT-8K | Dice (%): 85.98 -> 93.77 (+7.79) | Improved |
| SGMA with shorter sequence (N=2048) instead of MAE at max sequence | SAM · PAIP-32K | Dice (%): 62.34 -> 76.08 (+13.7) | Improved |
| SGMA with shorter sequence instead of MAE at max sequence | SAM · PAIP-32K | inference speedup: 1x -> 24.8x | Improved |
| SGMA-SAM 2 instead of SAM 2 on 3D BTCV | SAM 2 · BTCV | speedup: 7.15x faster | Improved |
| SGMA-SAM 2 instead of SAM 2 on 3D KiTS19 | SAM 2 · KiTS19 | speedup: 2.58x faster | Improved |
| add Damped Accumulation (ablation) | SGMA-ViT-2 · PAIP-16K classification | Top-1 accuracy (%): +0.88 | No clear effect |
| add Damped Accumulation (ablation) | SGMA-ViT-2 · PAIP-16K segmentation | Dice (%): +3.00 | Improved |
| SGFT softmax-batched tokenizer instead of heap argmax | tokenizer · 4,096^2 image, N=1,024,000 | construction time: 26.81 s -> 1.31 s (20x) | Improved |
Surprising findings
- The paper's own table shows FT-MAE-UNETR (86.12%) outperforming FT-SGMA-UNETR (91.93%) only in the wrong direction; baseline strength varies widely across architectures, and the reported MAE-SAM2 improvement baseline is inconsistent (66.37 vs 85.98 used at different points).
- DA ablation shows near-zero gain for classification (+0.88 top-1 without DA) but +3.00 Dice for segmentation.
Limitations
- Performance depends on Canny edge maps for salience; weak-gradient or texture-defined regions may be poorly tokenized.
- Fixed sequence length N must be tuned per dataset; too small N degrades Dice on heterogeneous inputs (e.g. PAIP-32K with N=1024).
- Speedup comparison uses a deliberately shorter SGMA sequence and different sequence lengths than MAE, so speedup numbers are not strictly matched-compute comparisons.
Open problems this paper states
- “Fixed sequence length N must be tuned per dataset; too small N degrades Dice on heterogeneous inputs (e.g. PAIP-32K with N=1024).” → Token counts, ratios and thresholds are set by hand per dataset. (an open problem in token merging and masked pretraining)
Open problems in token merging and masked pretraining
Do token merging and masked pretraining for ViTs keep their gains beyond small models and the tested domains?
- Token counts, ratios and thresholds are set by hand per dataset. · 7 papers state it
- Gains over the strongest baselines are small. · 7 papers state it
- Other domains and tasks such as detection and generation are untested. · 6 papers state it
Experimental setup
Datasets: HydrogelTEM-1K SpringXCT-8K PAIP-32K BTCV KiTS19
Benchmarks: HydrogelTEM-1K SpringXCT-8K PAIP-32K BTCV KiTS19 PAIP-16K classification
Metrics: Dice score Top-1 accuracy inference time per image speedup
Baselines: MAE-SAM MAE-SAM2 MAE-UNETR UNETR U-Net SAM 2 Swin-UNETR HIPT SHF-ViT ViT
Builds on: Masked Autoencoders Segment Anything Model UNETR Adaptive Patching SHF
Closest papers by meaning
- Masked Autoencoders for Microscopy are Scalable Learners of Cellular Biology (CVPR 2024 · similarity 0.87)
- Extending Video Masked Autoencoders to 128 frames (NeurIPS 2024 · similarity 0.87)
- ChA-MAEViT: Unifying Channel-Aware Masked Autoencoders and Multi-Channel Vision Transformers for Improved Cross-Channel Learning (NeurIPS 2025 · similarity 0.87)
- Reconstruction Target Matters in Masked Image Modeling for Cross-Domain Few-Shot Learning (AAAI 2025 · similarity 0.87)
- Self-Guided Masked Autoencoders for Domain-Agnostic Self-Supervised Learning (ICLR 2024 · similarity 0.86)
- R-MAE: Regions Meet Masked Autoencoders (ICLR 2024 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.