potentialpaper

Structure-Guided Masked Autoencoders for Ultra-High Resolution Scientific Image Understanding

Enzhi Zhang, Du Wu, Rui Zhong, Cong Ma, Isaac Lyngaas, Amir Koushyar Ziabari, Xiao Wang, Peng Chen, Tao Luo, Toshio Endo, Fumiyoshi Shoji, Kento Sato, Kentaro Uesugi, Takayuki Nonoyama, Ryuji Kiyama, Masahiro Yoshida, Tezuka Masaru, Tetsuya Ishikawa, Satoshi Matsuoka, Masaharu Munetomo, Mohamed Wahib

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. A Structure-Guided Pretraining framework for Giga-Pixel Scientific Image.

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 O(N2)O(N^2) attention impractical. We propose \method{}, a structure-guided masked autoencoding framework for ultra-high-resolution scientific images. \method{} 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, \method{} consistently outperforms MAE baselines. It achieves 95.68% Dice on the 8K${\times}8K8K{\times}$28K SpringXCT dataset, improving over the strongest MAE baseline by +9.70 points, and 83.21% Dice on the 32K232\text{K}^2 WSI PAIP dataset, improving by +16.84 points, while providing up to a 24.8×24.8\times inference speedup

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
21 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper extends MAE-style pretraining to ultra-high-resolution scientific images via a structure-guided quadtree tokenizer and structure-conditioned masking, evaluated on TEM, X-ray CT, and pathology data. Reviewers agree the direction is practical and the multi-modality results are convincing; scores range from borderline reject to accept. Yet, the paper needs some clarification. The main issues concern what the empirical gains actually isolate and whether the method is described clearly enough to interpret.

Please prioritize the rebuttal as follows:

  1. Disentangle the Table 1 comparison (vxc3, rEBm). Gains are confounded by tokenization, effective patch size, sequence length, and token budget, so it is unclear how much comes from SGMA itself. Please provide the controlled ablations vxc3 requests: SGFT with random masking, SGFT without DA, adaptive tokenization without SGMA pretraining, uniform tiling at the same token budget, and clarify exactly what Table 1 holds fixed against the MAE baseline.

  2. Clarify the method (gyZu, vxc3). Explain in the methodology, not just figures/abstract, how Canny edges guide decomposition, the scoring criterion V(n_j), the scale-dependent Gaussian noise and its role, and structure-conditioned masking and Damped Accumulation. Also address the variable-size quadtree implementation: token embedding, positional encoding, reconstruction target, and depatching to full resolution. Reconcile the multiple uses of "noise" (lines 64/157/178) and whether the noise serves as the mask.

  3. Correct the contribution claim (rEBm). The +16.84 Dice (Table 1, accuracy setting) and 24.8× speedup (Table 2, speed setting) come from different configurations; the introduction should not imply one model achieves both.

  4. Evaluation details (vxc3, rEBm). Confirm whether SpringXCT Dice is on real labeled data or synthetic volumes, comment on robustness when Canny edges are unreliable, and add seed/variance information.

Minor: accuracy-speed trade-off curve and alternative complexity measures such as wavelets (rEBm), and the Figure 1 typo. I am not requiring new datasets or new backbones.

Final justification

The authors addressed all five points raised. An extended exchange with one reviewer clarified the method description, and the requested seed variance, salience-criterion study, and trade-off curve were supplied. All three reviewers ended on the positive side, with two raising their scores after the discussion. Provided the promised clarifications to the methodology section and the reworded claims appear in the camera-ready version, the paper is a solid contribution.

Area Chair SDeo · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper extends MAE-style pretraining to ultra-high-resolution scientific images via a structure-guided quadtree tokenizer and structure-conditioned masking, evaluated on TEM, X-ray CT, and pathology data. Reviewers agree the direction is practical and the multi-modality results are convincing; scores range from borderline reject to accept. Yet, the paper needs some clarification. The main issues concern what the empirical gains actually isolate and whether the method is described clearly enough to interpret.

Please prioritize the rebuttal as follows:

  1. Disentangle the Table 1 comparison (vxc3, rEBm). Gains are confounded by tokenization, effective patch size, sequence length, and token budget, so it is unclear how much comes from SGMA itself. Please provide the controlled ablations vxc3 requests: SGFT with random masking, SGFT without DA, adaptive tokenization without SGMA pretraining, uniform tiling at the same token budget, and clarify exactly what Table 1 holds fixed against the MAE baseline.

  2. Clarify the method (gyZu, vxc3). Explain in the methodology, not just figures/abstract, how Canny edges guide decomposition, the scoring criterion V(n_j), the scale-dependent Gaussian noise and its role, and structure-conditioned masking and Damped Accumulation. Also address the variable-size quadtree implementation: token embedding, positional encoding, reconstruction target, and depatching to full resolution. Reconcile the multiple uses of "noise" (lines 64/157/178) and whether the noise serves as the mask.

  3. Correct the contribution claim (rEBm). The +16.84 Dice (Table 1, accuracy setting) and 24.8× speedup (Table 2, speed setting) come from different configurations; the introduction should not imply one model achieves both.

  4. Evaluation details (vxc3, rEBm). Confirm whether SpringXCT Dice is on real labeled data or synthetic volumes, comment on robustness when Canny edges are unreliable, and add seed/variance information.

Minor: accuracy-speed trade-off curve and alternative complexity measures such as wavelets (rEBm), and the Figure 1 typo. I am not requiring new datasets or new backbones.

Final justification

The authors addressed all five points raised. An extended exchange with one reviewer clarified the method description, and the requested seed variance, salience-criterion study, and trade-off curve were supplied. All three reviewers ended on the positive side, with two raising their scores after the discussion. Provided the promised clarifications to the methodology section and the reworded claims appear in the camera-ready version, the paper is a solid contribution.

Reviewer rEBmOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposed a method to improve the mask auto-encoding framework customized for the ultra-high resolution images by wisely determining the spatial correspondence of a token to pixel regions. More specifically, it uses a content-adaptive quadratry tokenizer and allocates tokens based on the spatial complexity that is derived from the Canny edge detector. Using this kind of spatial-aware tokenization, it is able to control the number of tokens and control the budget for the MAE training pipeline.

It has been evaluated on several datasets and a specific downstream task about thematic segmentation. The improvement in the segmentation accuracy, the granularity of the segmentation, and the inference speed form a good support for the effectiveness of the method proposed.

Strengths and weaknesses

The strongest part of the paper is that it proposes a practical way to scale MAE-style representation learning to ultra-high-resolution images. By using adaptive token construction, the method gives explicit control over the token budget while still keeping fine image structures in the representation. The efficiency comparison under the fixed-compute setting is also convincing, and the experiments show clear gains in both accuracy and runtime. Overall, these results support the paper's main message that adaptive tokenization is a useful way to extend MAE to ultra-high-resolution scientific images.

My main concern is the clarity of the comparison in Table 1. Table 2 is easier to interpret because it has a clear fixed-compute setting. In contrast, Table 1 changes several factors at the same time, including patch size, sequence length, etc. The caption says the comparison is made against the corresponding MAE baseline, but it does not clearly explain what is actually controlled. As a result, the reported accuracy gains are strong, but it is hard to tell how much of the gain comes from SGMA itself versus the smaller effective patch size or larger adaptive token budget.

Another important clarity issue is the second contribution statement in the introduction. The +16.84 Dice improvement on PAIP-32K comes from the best-accuracy setting in Table 1, while the 24.8x speedup comes from the speed-oriented setting in Table 2. These are different experiment configurations, so the current wording makes it sound as if both improvements are achieved by the same model setting. This should be rewritten to make clear that the accuracy gain and the speedup come from separate configurations.

A smaller concern is reproducibility. The paper includes many useful implementation details, but I am not fully sure that all the information needed to reproduce the main results is present. In particular, the paper would be stronger with clearer seed counts, variance, or error bars, full configuration details, and more explicit pseudo-code or code release information. And there is a typo in Figure 1.

Questions

Q1. in the paper, the accuracy and speed trade-off is briefly discussed. While we understand that with fewer tokens the quality decreases, the inference cost is also reduced. It would be great if you could have an explicit accuracy-speed curve or a detailed description that helps find out the best or a sweet spot setting to balance the accuracy and efficiency.

Q2. In the paper, the Limitation part, you clearly discuss the usage of a canning edge detector for the tokenization for adaptive tokenization. Have you considered using other types of complexity measurement for image regions, such as wavelets? Well, this choice of complexity measurement method affects the quality and effectiveness of your method. It would be great if you can also provide the result, a failure case of using Canny.

Q3. This question is related to the weaknesses mentioned above. Can you clarify the contribution, parts improvement, and speedup number across the abstract and also the contribution bullets? The depth improvement comes from Table 1. While the speedup came from a separate speed-optimized table, we need to be clear about whether the configuration is the same or different.

Limitations

yes

Final justification

The authors have properly addressed my review questions and I will keep my positive decision.

Formatting concerns
2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank Reviewer rEBm for the positive assessment and for finding the fixed-compute efficiency comparison convincing. The requested clarifications are all actionable, and we address each below.


W1 — Table 1 is confounded (patch size, sequence length); what is actually controlled?

We agree the original Table 1 caption did not state what is held fixed. We have run a controlled ablation on SpringXCT-8K that fixes the backbone, downstream head, pre-training schedule, and — for the first four rows — the token budget (N=4096) and the same dense decoder, changing one factor per row:

Row Tokenizer Decoder N Pretrain masking Dice (%) Isolated factor (Δ)
A Uniform-128 dense 4096 random 85.98 ± 0.43 baseline (uniform tiling, same budget)
B SGFT dense 4096 random (NoDA) 86.47 ± 0.31 A→B: adaptive tokenization (+0.49)
C SGFT dense 4096 structure (NoDA) 89.49 ± 0.32 B→C: structure-guided masking (+3.02)
D SGFT dense 4096 structure (DA) 90.06 ± 0.42 C→D: Damped Accumulation (+0.57)
E SGFT depatch 4096 structure (DA) 88.53 ± 0.36 D→E: dense→depatch (−1.53, −40% mem)
F SGFT depatch 16384 structure (DA) 95.68 E→F: sequence-length scaling (+7.15)

At identical budget and decoder (A→D) SGMA already improves by +4.08, so the gain is not merely from a finer patch size or a larger token budget. We will add this table and a clarified caption stating exactly what each row controls. (Full discussion in our response to Reviewer vxc3.)


W2 / Q3 — The +16.84 Dice and 24.8× speedup come from different configurations

Correct — and we will rewrite the introduction/abstract to make this explicit. Concretely:

  • +16.84 Dice is the best-accuracy operating point on PAIP-32K (Table 1, N=16384).
  • 24.8× speedup is the fixed-compute operating point on PAIP-32K (Table 2, N=2048).

These are two different N settings of the same method, not one model achieving both. We will revise the contribution and abstract so the accuracy gain and the speedup are attributed to their respective configurations.


Q1: Accuracy–speed trade-off curve / sweet spot

We will add an explicit accuracy–speed Pareto curve on PAIP-32K and SpringXCT-8K, sweeping the SGFT token budget N ∈ {1024, 2048, 4096, 8192, 16384} and plotting Dice vs. inference time (and vs. MAE at its feasible operating points). This exposes the sweet spot directly: accuracy rises steeply up to a per-dataset N and then saturates, so the recommended setting is the smallest N past the saturation knee. The curve makes the "fewer tokens → faster but lower Dice" trade-off explicit and shows SGMA lies on a strictly better frontier than MAE at every point.


Q2 — Alternative complexity measures (e.g., wavelets); Canny failure case

We add a salience-criterion study on SpringXCT-8K instantiating V(n_j) as Canny / pixel-intensity / variance / entropy / wavelet-energy / random (tokenization MSE ×10⁻³ at N=4096, 3 seeds: 3.29 / 2.45 / 2.84 / 2.12 / 2.87 / 16.07). Wavelet-energy and the other continuous measures are drop-in and comparable to Canny, while random splitting is ~5–8× worse, so the framework is criterion-agnostic and not tied to Canny.

Salience criterion V(n_j) Tokenization MSE ×10⁻³ (N=4096) (N=16384)
Canny-edge (default) 3.29 ± 0.43 1.83 ± 0.36
Pixel-intensity 2.45 ± 0.34 1.63 ± 0.33
Local-variance 2.84 ± 0.38 1.56 ± 0.35
Entropy 2.12 ± 0.35 1.45 ± 0.33
Wavelet-energy 2.87 ± 0.38 1.57 ± 0.34
Random split (non-informative) 16.07 ± 0.57 11.90 ± 0.83

For the Canny failure case: under edge-poor content (low contrast, noise, texture-defined regions, weak boundaries) the salience flattens and the tokenizer reverts toward uniform tiling (worst case = the MAE baseline), so a continuous criterion is preferable there and the framework accommodates it at no architectural change.


W3: Reproducibility (seeds, variance, configs, pseudo-code, Fig. 1 typo)

  • Seeds / variance: we will report mean ± std over k=3 seeds on the controlled ablation (SpringXCT-8K, N=4096) ; the full-resolution SpringXCT-8K (N=16384) and PAIP-32K runs are single-seed, as each occupies 128–512 GCDs and multi-seed sweeps are prohibitively expensive. The ablation std is well below the reported gaps, so the conclusions are robust.
  • Full configuration: the complete hyperparameter set (masking ratio, N per dataset, backbone, optimizer, schedule) is in Appendix B; we will consolidate it into a single reproducibility table and add pseudo-code for the SGFT tokenizer and the structure-conditioned masking/denoising step.
  • Code release: we will release the tokenizer and pre-training/fine-tuning code upon acceptance.
  • Figure 1 typo: fixed.

We thank the reviewer again for the constructive and positive feedback, and for highlighting the fixed-compute comparison as a strength. We believe the added ablation, the Pareto curve, and the reworded contribution statement address all raised points, and we are happy to provide any further detail during the discussion period.

Reviewer rEBm · CommentOpenReview ↗

Rebuttal

The authors have properly addressed my review questions and I will keep my positive decision.

Reviewer gyZuOpenReview ↗
Rating
5/6
Confidence
5/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors proposed a pre-training framework especially for ultra-high resolution scientific images, and has outperformed MAE in pre-training models for various downstream models, attaining improved accuracy while at the same time saving computational resources.

In this method, a quadtree is first built guided by the structure of the image. This step is vaguely discussed in the method. Our interpretation is that such structural guidance is through the scoring criterion, which determines the sampling probability that a child node in the tree to be a parent node for lower levels in the quadtree. During the sampling process, a Gaussian noise is superimposed. Structure-conditioned masking and Damped Accumulation are also used in the pre-training framework. The pre-training framework is tested with down stream tasks including segmentation and classification, and has been tested on various datasets, outperforming pre-training frameworks like MAE and methods like SAM and UNet.

In general, the method is reasonably designed targeting the properties of UHR images. The experiment is also comprehensive and is adequately showing the effectiveness of the proposed method. At the same time, some modifications may be necessary to improve the presentation of the method.

Strengths and weaknesses

This paper presents a method that uses the structure to guide hierarchical sampling of patches to be tokenized for MAE pre-training. The pre-trained model is then adapted and fine-tuned for downstream segmentation tasks. The proposed hierarchical framework extracts information from multiple resolutions of the image through a structural-guided quadtree decomposition. Such strategy reasonably utilizes the properties of ultra-high resolution images, saving computation cost and at the same time retrieving local detailed information at some regions. Besides framework design, the proposed method is also tested on various datasets and various tasks against various methods, including methods with and without pre-training.

At the same time, the presentation of their method needs some refinement. For example, Figure 1 shows that Canny Edge is used for guiding the quadtree decomposition, yet the details on how Canny Edge information is utilized in the method is not discussed in their Methodology section. Further, Figure 1 caption mention "superimposing scale-dependent Gaussian noise", which is also not explicitly explained in methodology. The "structure-conditioned masking" and "Damped Accumulation" mentioned in the abstract should also be explicitly explained in methodology. Besides, there are several "noise" in the manuscript, like the one in line 64, 157 and 178, and they may be referring to different noises or the same noise. Clarification is needed here.

Questions
  1. Figure 1 shows that Canny Edge is used for guiding the quadtree decomposition. Can the authors explain how Canny Edge information is utilized in the method in their Methodology section? Can the authors also explain the scoring criterion V(n_j) used in their method?
  2. Figure 1 caption mention "superimposing scale-dependent Gaussian noise". Can the authors explain more explicitly how this is implemented in their Methodology section? Further, can the authors explain the role of this Gaussian noise in the sampling process or the reconstruction process.
  3. "Structure-conditioned masking" and "Damped Accumulation" are mentioned in the abstract. Can the authors explicitly explain them in their Methodology section?
  4. "The decode ... and is tasked with reconstructing the original, clean version of only the noised patches." Does it mean that the noise is the mask? Specifically, is it that the authors did not use a MAE-style mask token, but rather use the noised patches as masked patches? Is the "noised" here the same noise as the noise in "scale-dependent Gaussian noise"? Can the authors explicitly explain them in their Methodology section?
Limitations

Yes.

Final justification

Given that the clarification-related issues have been adequately addressed, I have decided to increase my final rating for this paper.

Formatting concerns

N/A

8 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank Reviewer gyZu for the careful reading and for pinpointing exactly where the Methodology is under-explained. Below we answer the four questions directly and describe the corresponding edits.


Q1 — How are Canny edges used, and what is the scoring criterion V(n_j)?

The Canny edge map is used as a criterion to expand the tree at regions of more detail, i.e., the salience source for the quadtree, and this is exactly what V(n_j) encodes:

  • V(n_j) is the summed Canny-edge response over the pixel support of node n_j (i.e., how much structure a node contains).
  • The tree is built by probabilistic splitting (Eq. 2): at each step a node is drawn with probability π(n_j) = softmax(V(n_j)/τ) and split into its 4 children. High-V (structure-rich) nodes are therefore more likely to be subdivided, so tokens concentrate where edges/structure are dense and stay coarse in flat regions. The deterministic argmax split is the τ→0 limit; the softmax form is what makes the tokenizer batchable/parallel.

We will add this definition of V(n_j), the split rule, and a short pseudocode block to the Methodology, and label Fig. 1 accordingly so the "Canny → quadtree" path is explicit in the text, not only the figure.


Q2 — How is the "scale-dependent Gaussian noise" implemented, and what is its role?

This is the Damped Accumulation (DA) signal. As the quadtree grows, each newly created child node contributes a localized Gaussian component with a depth-damped variance Var(ε) = σ²_T(c)/√(j+1), where σ²_T(c) is the child's local target statistic and j its depth; along any root-to-leaf path the variances sum sub-linearly (the √(j+1) damping, Eq. 3–6), which prevents variance explosion across scales.

Its role is a denoising signal. The DA noise is added onto the masked region as a scale-dependent corruption, and the model is trained to recover the clean patch. This makes the masked-region reconstruction simultaneously a denoising task, which pushes the encoder to represent high-frequency, multi-scale structure — the component that flat inpainting alone does not force it to learn. In our ablation, adding DA on top of structure-guided masking contributes +0.57 Dice on SpringXCT-8K.

We ran a controlled ablation on SpringXCT-8K holding token budget (N=4096), backbone, pre-training schedule, and (Rows A–C) the same dense decoder fixed, changing one factor per row — matching your request for same sequence length, same effective budget, same decoder:

All six rows use the same backbone and downstream head and change one factor per row:

Row Tokenizer Decoder N Pretrain masking Dice (%) Isolated factor (Δ)
A Uniform-128 dense 4096 random 85.98 ± 0.43 baseline (uniform tiling, same budget)
B SGFT dense 4096 random (NoDA) 86.47 ± 0.31 A→B: adaptive tokenization (+0.49)
C SGFT dense 4096 structure (NoDA) 89.49 ± 0.32 B→C: structure-guided masking (+3.02)
D SGFT dense 4096 structure (DA) 90.06 ± 0.42 C→D: Damped Accumulation (+0.57)
E SGFT depatch 4096 structure (DA) 88.53 ± 0.36 D→E: dense→depatch (−1.53, −40% mem)
F SGFT depatch 16384 structure (DA) 95.68 E→F: sequence-length scaling (+7.15)

Q3 — Please define "structure-conditioned masking" and "Damped Accumulation" in the Methodology.

We will state both explicitly (they currently appear mainly in the abstract/figures), and — importantly — as two separate components that our ablation isolates:

  • Structure-guided masking (where to mask). The masked set follows the quadtree's spatial structure rather than a uniform random draw, so the mask layout is aligned with the tokenizer and pre-training/fine-tuning are spatially consistent. (Row B→C, +3.02 Dice.)
  • Damped Accumulation (what is added). On top of masking, the scale-dependent DA Gaussian noise (Q2) is added to the masked region and denoised, guiding high-frequency structure learning. (Row C→D, +0.57 Dice.)

We will also align the abstract wording so DA is described as this additive denoising signal, not loosely as "guiding masking."


Q4 — "Is the noise the mask?" (reconstructing "the clean version of only the noised patches")

They are two combined components, unified by a single head — this is the crux we will make explicit.

  1. There is a real MAE mask: a subset of patches is masked (structure-guided, Q3), and the model reconstructs their clean content from the visible context — standard masked inpainting.
  2. On the masked region we additionally add the DA scale-dependent Gaussian noise (Fig. 2, "Structure-Guided Mask": the red patches carry the structure noise). The reconstruction target is still the clean patch, so recovering it is simultaneously a denoising task.
  3. A single reconstruction head performs both (inpainting + denoising) under one MSE loss. This is exactly why the sentence reads "reconstruct the clean version of the noised patches," and why Eq. 8 is a single term — it is intentional: one head, one unified objective over the masked-and-noised patches, with the clean patch as target.

So the noise is not the mask itself; it is an additional structure-conditioned corruption placed on the masked region, and the unified head recovers the clean signal. To remove the ambiguity, we will rewrite this paragraph and annotate Eq. 8 so that the reconstruction input at masked positions is written explicitly as the DA-noised patch p̃_i and the target as the clean p_i.


On the three uses of "noise" (lines 64 / 157 / 178)

The reviewer is right that these refer to different things, and we will disambiguate the terminology:

  • Line 64 — the method's DA structure noise: the scale-dependent Gaussian signal added to the masked region and denoised (Q2/Q4). We will consistently call this "structure noise (DA)."
  • Lines 157 / 178 — acquisition/degradation noise (Poisson/Gaussian) in the XCT simulation pipeline used to synthesize training data; this is a data-generation detail, entirely separate from the method. We will label it "acquisition noise" and cross-reference it clearly.

We are grateful for these precise questions — they map directly onto the edits needed to raise the clarity of Sec. 3. The revised Methodology will make explicit the Canny→quadtree path, the DA structure-noise construction, the separation of structure-guided masking (where) from DA denoising (what is added), and the fact that a single head jointly performs inpainting and denoising under one loss (Eq. 8). We are happy to share the revised section during the discussion period.

Reviewer gyZu · CommentOpenReview ↗

Request for clarification on masking and DA

May I confirm that structure-guided masking means that the masking probability is dependent on the quad-tree depth? Seems that your paper did not give a specification on how masking is dependent on the quad-tree structure. It is best that you provide equations for this.

May I also confirm that DA is applied to all tokens, including those that are masked and that are not masked? Specifically, can you explain the composition of 1. clean unmasked patches, 2. noised unmasked patches, and 3. masked patches?

Further, may I confirm that the the whole procedure is like this:

  1. Use Canny Edge information to compute criterion for building the quad-tree.
  2. Using the quad-tree, determine the patches to be tokenized. While going down the quad-tree, add noise on the patches to be tokenized. This noise is carried to the lower level, so it is "accumulated".
  3. After obtaining the whole patch sequence, sample patches to be masked. This sample probability is depth-dependent.
Authors · CommentOpenReview ↗

Clarifying structure-guided masking, Damped Accumulation and Procedure.

Thank you for laying out the procedure so precisely — your three-step summary captures the pipeline well, and framing it through the "clean / noised / masked" categories is exactly the right lens. Most of your reading is correct; below we first confirm the points you have right, then refine two small details and give the equations you asked for.

What you have exactly right

  • ✔ "Use Canny Edge information to compute [the] criterion for building the quad-tree." Yes, precisely: the Canny response gives the salience V(n_j), which drives the (softmax) split, so the tree refines detail-rich regions.

  • ✔ The noise "is carried to the lower level, so it is 'accumulated'." Yes — exactly as you say. Along each leaf-to-root path the components accumulate,

    N_i = Σ_{j=0}^{d_i} ε_j,  ε_j ~ N(0, σ²_T(j)/√(j+1)),  Var(N_i) = Σ_{j=0}^{d_i} σ²_T(j)/√(j+1)   (Eq. 3–6),
    

with the damping preventing variance explosion across scales.

  • ✔ "After obtaining the whole patch sequence, sample patches to be masked." Yes — masking is a separate step after tokenization, just as you describe.

Two small refinements

(a) Where the accumulated noise lives. The accumulation is maintained as a global canvas built during construction; it is not added onto the patches being tokenized — the patches themselves stay clean, and only the canvas carries N_i. (This is the one adjustment to your step 2: "add noise on the patches" → "accumulate the noise on the canvas.")

(b) The mask-sampling rule. Your intuition that depth matters is correct — but the depth-dependence lives in the tokenizer, not in the mask probability. The masked set M is drawn uniformly at random over the leaves, independent of depth.

Because leaf size is already depth/salience-adaptive (deeper, smaller leaves in detail-rich regions), a uniform draw over leaves automatically places proportionally more masked units where structure is dense — so the mask distribution over the image follows the quad-tree, while the per-leaf rule stays unbiased. In other words, the "structure" enters through the adaptive leaf sizes, not through a depth-weighted masking probability.

Your three categories (Q-B)

Given the above, DA is not applied to all tokens; the canvas is only "cashed in" on the masked leaves. So:

  1. Clean unmasked patches — yes: the visible patches fed to the encoder are clean.

  2. Noised unmasked patches — do not exist: unmasked patches are never noised.

  3. Masked patches — the only place DA acts: each masked leaf takes its input from the canvas at the same spatial position (N_i) — i.e., the masked position is filled with the accumulated DA noise in place of a plain mask token — and the model must (i) remove that noise and (ii) reconstruct the clean patch p_i, under a single MSE loss:

    L = Σ_{i∈M} ‖ g_φ(f_θ(P_visible), i) − p_i ‖².

A single head performs denoising and inpainting jointly, which is why Eq. 8 is a single term; we will annotate the masked input explicitly as the DA-noised p̃_i (drawn from the canvas at the leaf's position) and the target as the clean p_i.

We will add the two equations above and this three-category description to Sec. 3 so the specification is explicit in the text. We will also revise Figure 1 to make the flow explicit — separating (i) Canny→quad-tree construction, (ii) the DA noise accumulated on the canvas, and (iii) the uniform masking over leaves, so that the distinction between the noising (DA canvas) and the masking (leaf selection), and how they meet only at the masked positions, is clear at a glance. Thank you again for the careful and precise reading — it maps directly onto the clarifications we will make.

Reviewer vxc3OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work addresses the challenge of applying MAE/ViT-style self-supervised learning to ultra-high-resolution scientific images, where uniform tokenization creates extremely long sequences and random masking may miss fine microstructures. The paper proposes SGMA, which combines a content-adaptive quadtree tokenizer, SGFT, with a structure-guided masking strategy based on Damped Accumulation. The resulting variable-scale token sequence is used for MAE-style pretraining and downstream segmentation. Experiments are reported on TEM, X-ray CT, and whole-slide pathology datasets, with large Dice improvements and speedups over MAE/SAM and related baselines.

Strengths and weaknesses

(+) The core idea is practical: using adaptive tokenization to preserve fine structures while keeping a fixed ViT-compatible sequence length is a useful direction. (+) The method is relatively simple and architecture-compatible. SGMA mostly changes the input tokenization and masking strategy rather than requiring a new attention kernel or custom transformer backbone. (+) The experiments cover multiple imaging modalities: HydrogelTEM, SpringXCT, and PAIP WSI, rather than focusing on a single dataset. The reported gains on SpringXCT and PAIP are substantial. (-) The main empirical comparison is heavily confounded by tokenization, patch size, and effective resolution. In Table 1, SGMA often uses much finer effective patch sizes and much longer or different token sequences than the MAE baselines. It is unclear whether the improvement comes from structure-guided MAE pretraining, adaptive tokenization, higher spatial resolution, or simply giving the downstream model access to much finer image detail. (-) Thus, the paper needs stronger ablations. The most important missing controls are SGFT with random MAE masking, SGFT without DA, random/quadtree tokenization without Canny guidance, Canny/adaptive tokenization without SGMA pretraining, uniform tiling with the same token budget, and comparisons to adaptive patching or SHF-style methods under the same downstream setting. (-) The method details are not sufficiently clear. Variable-size quadtree patches raise important implementation questions: how are patches embedded into fixed-dimensional ViT tokens, how are positional encodings assigned, how is the reconstruction target defined for variable-size patches, and how does depatching produce full-resolution masks?

Questions
  1. Can the authors compare SGMA against MAE using the same sequence length, same effective spatial resolution, and same downstream decoder?
  2. How much of the gain comes from SGFT tokenization versus DA masking versus smaller patch size?
  3. For SpringXCT, are the reported Dice scores evaluated on real manually labeled XCT data or synthetic volumes from the simulation pipeline?
  4. How robust is SGMA when Canny edges are unreliable, for example under low contrast, noise, texture-defined regions, or weak boundaries?
Limitations

The authors include a limitations section, discussing sequence-length sensitivity and Canny-edge dependence. It should also address the confounding between SGMA and higher effective resolution, the fairness of MAE/SAM baseline comparisons, and preprocessing cost at gigapixel scale.

Final justification

Based on the author's responses that sound technically right and another reviewer's discussion, I decided to raise my rating to "Borderline Accept"

Formatting concerns

NA

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

**We thank Reviewer vxc3 for the detailed and constructive review, and we have run the controlled ablations list and clarified the method below:


Q1: Why MAE cannot follow SGMA to N=16384 (same-hardware fairness)

The only architectural difference between FT-MAE and FT-SGMA is depatching (introduced in SHF [zhang2025shf]); both use the same ViT encoder with gradient checkpointing, so the encoder cost is identical and is not the differentiator. The difference lies in how the full-resolution mask is produced. FT-MAE relies on a dense decoder that must reconstruct the entire 8192² (and 32768²) mask — a cost that grows with the output resolution and is especially heavy at 8K/32K. On our hardware (single AMD MI250 GCD, 64 GB, fp32 for scientific precision), recovering an 8K mask alone consumes ~28 GB, which caps FT-MAE at N=4096 at 8K resolution. FT-SGMA instead uses depatching: per-token [N,2,2] predictions are scattered directly to full resolution (<1 GB), a cost that is independent of image resolution and is not paid during training. This is why SGMA can afford N=16384 at every resolution (1K/8K/32K), whereas MAE's dense reconstruction becomes the binding constraint at 8K and above. Measured single-GCD peaks:

Config N Fits 64 GB
MAE-dense 4096 60.4 ✓
SGMA-depatch 16384 62.8 ✓
MAE-dense 16384 OOM

W1 / Q1 / Q2 : Isolating the source of the gain

We ran a controlled ablation on SpringXCT-8K holding token budget (N=4096), backbone, pre-training schedule, and (Rows A–C) the same dense decoder fixed, changing one factor per row — matching your request for same sequence length, same effective budget, same decoder:

All six rows use the same backbone and downstream head and change one factor per row:

Row Tokenizer Decoder N Pretrain masking Dice (%) Isolated factor (Δ)
A Uniform-128 dense 4096 random 85.98 ± 0.43 baseline (uniform tiling, same budget)
B SGFT dense 4096 random (NoDA) 86.47 ± 0.31 A→B: adaptive tokenization (+0.49)
C SGFT dense 4096 structure (NoDA) 89.49 ± 0.32 B→C: structure-guided masking (+3.02)
D SGFT dense 4096 structure (DA) 90.06 ± 0.42 C→D: Damped Accumulation (+0.57)
E SGFT depatch 4096 structure (DA) 88.53 ± 0.36 D→E: dense→depatch (−1.53, −40% mem)
F SGFT depatch 16384 structure (DA) 95.68 E→F: sequence-length scaling (+7.15)

We read each step as follows:

  • A→B (+0.39) — adaptive tokenization. Replacing uniform tiling with SGFT places tokens on a finer, content-adaptive grid, giving a small gain at the same budget.
  • B→C (+3.02) — structure-guided masking. Pre-training with structure-guided (rather than random) masking aligns the masking layout with the tokenizer's spatial structure, so pre-training and fine-tuning are spatially consistent. This is the single largest masking-side contribution.
  • C→D (+0.57) — Damped Accumulation. Adding the structure-dependent Gaussian noise on top of structure-guided masking further refines fine detail.
  • D→E (−1.53) — dense→depatch head. The linear depatch head trades a small accuracy drop for a ~40% memory saving. Note dense@16384 is infeasible (OOM, the ~28 GB decoder wall), so this trade is what makes the next step possible.
  • E→F (+7.15) — full sequence length. With depatch's memory headroom, SGMA scales to the full N=16384, which the dense decoder cannot reach.

At identical budget (N=4096) and dense decoder (A→D), SGMA already improves by +4.08, so the gain is not an artifact of a larger budget, longer sequence, or finer uniform patches. Net A→F = +9.70, matching our reported improvement over the strongest MAE baseline (85.98).

Mapping to your requested controls (all addressed):

  • SGFT + random MAE masking → Row B (SGFT tokens masked uniformly at random, no structure, no DA).
  • SGFT without DA → Row C (structure-guided masking with DA removed); Row B further removes structure masking as well, so B/C together bracket the effect.
  • Uniform tiling at the same token budget → Row A.
  • Adaptive tokenization without SGMA pretraining → SHF-ViT (same tokenizer, no SGMA pretraining), reported in Appendix Table 5; we add the SpringXCT counterpart.
  • Comparison to AP / SHF-style under the same downstream → SHF-ViT (Table 5) and AP [zhang2024adaptive] (App. Fig. 12), both under our segmentation setting.
  • Quadtree tokenization without Canny guidance → salience-criterion study on SpringXCT-8K (V(n_j) = Canny / pixel-intensity / variance / entropy / wavelet-energy / random): the informative criteria are all comparable (tokenization MSE 2.12–3.29 ×10⁻³ at N=4096, 3 seeds), while random (non-informative) splitting is ~5–8× worse (16.07), isolating the value of informative guidance and confirming the framework is not tied to Canny.

W2 / Q1 — Method clarity (variable-size patches)

We will move these into the Methodology: (i) each quadtree leaf, regardless of spatial size, is resized to a fixed p×p and linearly embedded to the ViT width, so all tokens are dimension-matched; (ii) positional encoding uses the leaf's normalized center coordinates and depth as a continuous (Fourier) embedding, not a fixed grid index; (iii) the reconstruction/segmentation target for token i is the tree-pooled label over its pixel support, T_tree(Y)_i; (iv) depatching inverts the tokenizer — per-token [p,p] predictions are scattered back to their pixel supports to form the full-resolution mask (no dense decoder), following SHF [zhang2025shf], now described in full.


Q3: SpringXCT: real or synthetic labels?

Table 1 Dice is on the held-out test split of our simulated volumes — the only source with dense ground truth at this resolution. Real SPring-8 samples are evaluated zero-shot / qualitatively (no labels available; App. Figs.). We will state this real-vs-synthetic distinction explicitly in the caption and text.


Q4 — Robustness when Canny edges are unreliable

The framework addresses this by design: the salience score V(n_j) is a plug-in, so SGFT is criterion-agnostic. On SpringXCT-8K we compare V(n_j) on tokenization MSE (mean-color quadtree reconstruction; lower = better; mean ± std over 3 seeds × 64 held-out slices):

Salience criterion V(n_j) Tokenization MSE ×10⁻³ (N=4096) (N=16384)
Canny-edge (default) 3.29 ± 0.43 1.83 ± 0.36
Pixel-intensity 2.45 ± 0.34 1.63 ± 0.33
Local-variance 2.84 ± 0.38 1.56 ± 0.35
Entropy 2.12 ± 0.35 1.45 ± 0.33
Wavelet-energy 2.87 ± 0.38 1.57 ± 0.34
Random split (non-informative) 16.07 ± 0.57 11.90 ± 0.83

The informative criteria are all comparable (2.12–3.29 at N=4096, within ~1.6×), while random (non-informative) splitting is ~5× worse than Canny and ~7.5× worse than the best informative criterion (16.07), so the gain comes from informative allocation, not the Canny operator specifically. For the regimes raised — low contrast, noise, texture-defined regions, weak boundaries — the continuous criteria (variance/entropy/wavelet) are drop-in replacements that do not rely on a binary edge decision. Crucially, SGFT also degrades gracefully: when few/no reliable edges are present, the salience becomes near-uniform and the quadtree reverts to ~uniform tiling — i.e., the worst case is the standard MAE baseline, not a pathological failure. We acknowledge edge-criterion dependence as a limitation and provide these alternatives.


Limitations

We will extend the Limitations to explicitly discuss (a) the confounding between SGMA and higher effective resolution — now quantified by Rows A–D; (b) the fairness of the MAE/SAM comparison — now grounded in matched-budget / same-decoder Rows A–D and measured single-GCD memory; and (c) per-sample preprocessing cost at gigapixel scale (App. Table 4: <1 s/image via the softmax-batched SGFT tokenizer, up to 20× faster than the sequential argmax construction).


On originality

We would highlight that the contribution is the joint design — a softmax-batched, content-adaptive tokenizer (SGFT) coupled with structure-conditioned masking via Damped Accumulation — that remains a drop-in replacement for MAE on a standard ViT (no forked attention kernel or custom backbone), which the ablations above show yields independent, measurable gains. We are grateful for the suggestions and are glad to run any further control the reviewer finds most decisive.

Authors · CommentOpenReview ↗

We would be more than happy to answer any questions or inquires.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…