Why Invariance is Not Enough for Biomedical Domain Generalization and How to Fix It
Sebastian Diaz, Polina Golland, Elfar Adalsteinsson, Neel Dey
NeurIPS 2026
TL;DR. MaskGen is a simple and theoretically-grounded method that makes 3D biomedical segmentation models more robust to real-world domain shifts, improving performance without overly complex training routines.
Abstract. We present MaskGen, a theoretically grounded and deliberately simple approach for domain generalization in 3D biomedical image segmentation. Modern segmentation models degrade sharply under shifts in modality, disease severity, clinical sites, and more, limiting their reliable adoption. Existing generalization methods address this using extreme augmentations, hand-engineered domain statistics mixing, or architectural redesigns that add significant implementation overhead while yielding inconsistent performance across biomedical settings. MaskGen instead presents a principled learning strategy with marginal overhead that utilizes both source-domain image intensities and domain-stable foundation model representations to train robust segmentation models. As a result, MaskGen achieves strong gains in both fully supervised and few-shot segmentation across broad clinical shifts in biomedical studies. Unlike prior approaches, MaskGen is architecture- and loss-agnostic, compatible with standard augmentation pipelines, easy to implement, and tackles arbitrary anatomical regions.
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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This manuscript got very diverse reviews: two acceptances (score 5) and one rejection (score 2). While reviewers agreed that the proposed MaskGen tackles a highly relevant domain generalization problem with a simple, well-motivated concatenation-and-masking strategy that yields strong empirical gains—particularly in few-shot regimes—one reviewer also raised serious concerns about the paper's originality and soundness: (1) the method primarily combines standard components without offering novel algorithmic insight beyond a practical engineering solution; (2) the theoretical analysis relies on strong, unverified assumptions about stable/unstable representations and mismatches the implemented channel-wise masking, functioning more as intuition than rigorous justification; (3) critical ablations are missing—including validation of the masking-ratio selection protocol, comparison with matched dropout baselines, and analysis of failure modes when foundation-model features are poorly aligned. Addressing these would require controlled ablation isolating regularization effects, clearer alignment between theory and implementation, and explicit discussion of limitations under representation mismatch.
Final justification
This paper got very diverse ratings: 2, 5, and 5. Reviewer zNWS gave a rating of 2 and didn't respond to the rebuttal even after a reminder from the AC. The authors pointed out that review from zNWS might be generated by AI. I agree. Ignoring the review from zNWS, I would like to recommend accepting this paper.
Read meta-review
Meta-review
This manuscript got very diverse reviews: two acceptances (score 5) and one rejection (score 2). While reviewers agreed that the proposed MaskGen tackles a highly relevant domain generalization problem with a simple, well-motivated concatenation-and-masking strategy that yields strong empirical gains—particularly in few-shot regimes—one reviewer also raised serious concerns about the paper's originality and soundness: (1) the method primarily combines standard components without offering novel algorithmic insight beyond a practical engineering solution; (2) the theoretical analysis relies on strong, unverified assumptions about stable/unstable representations and mismatches the implemented channel-wise masking, functioning more as intuition than rigorous justification; (3) critical ablations are missing—including validation of the masking-ratio selection protocol, comparison with matched dropout baselines, and analysis of failure modes when foundation-model features are poorly aligned. Addressing these would require controlled ablation isolating regularization effects, clearer alignment between theory and implementation, and explicit discussion of limitations under representation mismatch.
Final justification
This paper got very diverse ratings: 2, 5, and 5. Reviewer zNWS gave a rating of 2 and didn't respond to the rebuttal even after a reminder from the AC. The authors pointed out that review from zNWS might be generated by AI. I agree. Ignoring the review from zNWS, I would like to recommend accepting this paper.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/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
The authors present an approach (MASKGEN) for domain generalization in the task of medical image segmentation. The underlying idea is to not only train on imaging data, but on concatenated image + foundation-model-feature representations to utilize both in-domain specific information as well as domain-stable representations. Here, the authors also propose a regularization mechanism for training (randomly masking different channels in the concatenated feature representation) to jointly exploit both information sources and avoid over-reliance on the in-domain part. In contrast to prior test-time-adaptation work that combines stable and unstable representations and requires access to test-data by design, the proposed domain generalization method trains robust segmentation models by combining in-domain (in-domain images) and domain-invariant representations (extracted by frozen foundation models), without needing any test-time adaptation. Extensive experiments on 6 datasets spanning 5 clinical domain shifts show improved (or at least comparable) performance compared to previous state-of-the-art domain generalization and also methods that do adapt to unlabeled test data.
Strengths and weaknesses
Strengths
- Addresses a highly relevant and practically important problem: domain generalization for medical image segmentation.
- Clear and intuitive core idea of combining in-domain image information with domain-stable foundation-model representations.
- Well written and generally easy to follow.
- Clear technical contribution with a simple method that appears easy to implement and reproduce.
- Convincing empirical results across multiple datasets and clinical domain shifts.
- Extensive evaluation including comparisons against both domain-generalization and test-time-adaptation approaches.
- Useful ablation studies and few-shot analyses.
Weaknesses
- Some aspects of the method description could be clarified further.
- The mechanism/effect of the proposed masking strategy are not fully disentangled experimentally.
- Presentation could be improved with more intuitive visualizations of the method.
Questions
-
Clarify the practical masking mechanism versus the theoretical analysis. Section 3.1 initially suggests masking individual channels of the concatenated representation z=(xu,xs), while the theoretical analysis later models only three masking cases: keeping both inputs, keeping only xu, or keeping only xs. Based on the pytorch-code in Figure 2, I guess the authors use channel-wise dropout on the concatenated representation. Please clarify explicitly whether the practical implementation masks individual channels independently and whether the three-mask formulation is solely a simplifying assumption for the theoretical analysis. A brief clarification in Section 3.1 would significantly improve clarity.
-
Better isolate the source of the masking benefit. The ablation on masking rates demonstrates that view masking improves performance. However, it remains unclear whether the gain primarily arises from: (i) reducing reliance on image-specific shortcuts and encouraging the use of foundation-model features, or (ii) acting as a more general channel-level regularizer. An additional experiment applying the same masking rates to the representation-only setting (without image channels) would help disentangle these effects and provide stronger evidence for the proposed mechanism.
-
Explain/discuss the AMOS behavior in the masking ablation. In the masking analysis, the manuscript states that models without masking strongly depend on the image channel because removing it causes substantial performance degradation. However, for AMOS, performance appears to improve when the image channel is removed. Could the authors discuss this result and provide intuition for why this happens?
-
Improve method presentation. The inclusion of PyTorch-style pseudocode is appreciated, but I found the method somewhat difficult to visualize/understand initially. A graphical overview illustrating the flow from image input → foundation-model features → concatenation → masking → segmentation network would make the approach more accessible (in addition to the pytorch-code). Also the probabilistic graphical model on the right hand side of Figure 2 is not linked explicitly in the text and did not help me to understand the proposed method.
-
Please revise Figure 1, which is currently quite confusing, e.g. ERM never explained, visualization of 3 random channels can be extremely misleading. At first, when I skimmed through the article, Figure 1 confused me rather than helping me.
-
Clarify scope and generality claims. The paper states that the approach is fully generic with respect to target applications. While broadly applicable, the method still depends on the availability and choice of a suitable foundation model. It would be helpful to discuss the sensitivity of the approach to the selected foundation model.
-
Optional: Additional comparisons with other SOTA-foundation models like DINOv2 would be interesting to add, but I understand that time&ressources in the rebuttal are limited, so I would at least add this missing comparison to other SOTA-foundation-models to the limitations.
Limitations
The only discussed limitation is computational ressources. I think it would be nice to also discuss cases/scenarios where the method fails or does not perform as expected. A more comprehensive limitations-section would further increase the value of the paper.
Final justification
I thank the authors for the clear and detailed response and additional experiments. Based on this and strong empirical results, I keep my score "accept". I look forward to also see the promised revisions/improvements in the final version of the manuscript.
Formatting concerns
2 comments
Author response to Reviewer trL4 (part 2 of 2)
”Method difficult to understand initially. A graphical overview would make it more accessible. The probabilistic graphical model in Fig 2 is not linked in the text and did not help … Revise Fig 1, eg ERM never explained, visualization of 3 random channels can be extremely misleading.”
We agree with all of the presentation suggestions, and will revise Figure 1 to make the method visually obvious, explain the ERM acronym, replace the 3 random channels, and more. We’ll also explicitly reference the probabilistic graphical model in the revised text
”The paper states that the approach is fully generic with respect to target applications. While broadly applicable, the method still depends on the availability and choice of a suitable foundation model. It would be helpful to discuss the sensitivity to the selected foundation model.”
We agree that these claims need to be more careful. To clarify, the sensitivity of the approach to the selected foundation model is what Section 4.3, "Changing the Representation Extractor” (L270, Table 3), is designed to study.
This analysis swaps the foundation model used in the main experiments (anatomix) for a different one (nnInteractive), and finds that anatomix is better suited as a feature extractor for MaskGen for 4/6 domain generalization benchmark datasets. This sensitivity is expected, as our theory shows that the feature extractor needs to be domain stable for high performance across domains. In App. B.1 / Figure 6, we show that anatomix features are more stable to domain shifts than nnInteractive features.
Moreover, we agree that “fully generic” is too broad, and we will remove this claim. E.g., MaskGen will likely not generalize across drastic changes in label topology, like training on normal abdominal MRI and testing on pregnant abdomens. We will also add a limitation that our work pertains to commonly encountered biomedical domain shifts and does not cover the entire open set of possible domain shifts.
”Optional: Comparisons vs. SOTA-foundation models like DINOv2 would be interesting, but I understand that time&ressources in the rebuttal are limited, so I would add .. to the limitations.”
We agree that other SOTA-foundation models like DINOv2 are interesting and appreciate the reviewer’s consideration of this being a non-trivial experiment for the short rebuttal window. Specifically, DINOv2 is 2D-only, produces low-resolution patch-level features, and outputs 768-dimensional features. Integrating it into MaskGen would require:
- Online dimensionality reduction (otherwise, it would require training on 192x192x192x(1+768) inputs, well beyond most single-GPU setups).
- Feature upsampling of the DINOv2 features to match the input images (eg, with FeatUp).
- Adaptation of 2D slice-level features into a 3D setting.
While these are all doable, they would require more than the discussion period and several modifications to the foundational DINOv2 features for tractable use in 3D biomedical imaging. which is at odds with our goal of using features off-the-shelf without modification. We will add it as a limitation and an opportunity for future work integrating 2D natural vision models into the 3D biomedical setting. Thank you for suggesting it.
Appendix: Full table for Fig. 4 (bottom)
As mentioned above, we present the corrected results corresponding to the Fig. 4 (bottom) ablation “Sensitivity to Masked Images or Representations” below, with the new results in bold.
| Dataset | Run | Image-removal 0% MR | Image-removal 25% MR | Image-removal 50% MR | Image-removal 75% MR | Reps.-removal 0% MR | Reps.-removal 25% MR | Reps.-removal 50% MR | Reps.-removal 75% MR |
|---|---|---|---|---|---|---|---|---|---|
| AMOS | Before | 1.912 | 0.578 | 0.193 | −0.003 | −0.068 | 0.071 | 0.040 | 0.048 |
| AMOS | After | 0.245 | 0.238 | 0.119 | −0.087 | −0.006 | 0.056 | 0.029 | 0.014 |
| BraTS | Before | −4.257 | −0.751 | 0.141 | −0.040 | −0.222 | 0.029 | 0.042 | −0.011 |
| BraTS | After | −1.977 | −0.481 | −0.377 | −0.195 | −0.058 | −0.013 | 0.049 | 0.008 |
| CoW | Before | −0.239 | −0.063 | 0.005 | −0.036 | −0.484 | −0.006 | 0.058 | 0.052 |
| CoW | After | −0.234 | 0.081 | 0.041 | −0.042 | −0.226 | 0.150 | 0.141 | 0.012 |
| HVSMR | Before | −9.966 | −0.168 | 0.086 | 0.109 | −0.100 | 0.049 | 0.018 | 0.039 |
| HVSMR | After | −4.480 | −0.124 | 0.169 | −0.056 | −0.180 | 0.007 | 0.023 | 0.040 |
| PanDG | Before | −16.204 | −0.603 | −0.144 | −0.002 | −0.054 | 0.049 | 0.037 | 0.021 |
| PanDG | After | −11.347 | −0.770 | −0.319 | 0.033 | −0.499 | 0.037 | 0.047 | 0.029 |
| Prostate | Before | −1.264 | 0.054 | 0.044 | −0.005 | −0.193 | −0.016 | −0.008 | −0.013 |
| Prostate | After | −2.337 | −0.010 | −0.160 | −0.011 | −0.331 | −0.005 | −0.011 | −0.002 |
- Rating
- 2/6
- Confidence
- 5/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents MASKGEN, a domain generalization method for 3D biomedical image segmentation. The method is motivated by the observation that frozen foundation-model representations can provide more domain-stable features under shifts in scanner, modality, site, or acquisition protocol, but using only these representations may discard task-relevant information available in the raw image.
MASKGEN therefore concatenates raw image intensities with frozen foundation-model embeddings and trains a segmentation model on this combined input. To prevent the model from relying too heavily on unstable raw-image cues, the authors apply stochastic channel/view masking during training. This regularization is intended to encourage the model to use both the stable representation features and the complementary information in the original image. The paper provides theoretical motivation for this design and evaluates the method across several 3D biomedical segmentation datasets and domain shifts, reporting strong results in both full-data and few-shot settings.
Strengths and weaknesses
Strengths
-
The paper targets an important problem in biomedical segmentation. Models trained on one clinical distribution often fail under shifts in modality, acquisition sequence, disease severity, imaging phase, or site. The proposed method, MASKGEN, concatenates raw image intensities with frozen foundation-model representations and applies stochastic masking during training. This avoids domain labels, target-domain adaptation, adversarial training, and major architectural changes.
-
The empirical evaluation is reasonably broad. The authors test across six datasets and multiple clinically meaningful domain shifts, and the method performs strongly in both all-data and few-shot regimes. The few-shot results are particularly encouraging, with MASKGEN improving substantially over several baselines. The ablations also support the core intuition that using stable representations alone is insufficient, while naïve concatenation can still lead to over-reliance on raw image features.
-
The paper is generally clear. The motivation, algorithm, and high-level training procedure are easy to follow, and Figures 1–2 effectively communicate the main idea.
Weaknesses
-
My main concern is limited originality. The proposed algorithm is largely a combination of frozen feature extraction, feature concatenation, and input/channel masking. These are standard components, and while their combination is useful in this application, the paper does not establish a sufficiently novel methodological contribution for a top-tier venue. The conceptual framing around stable and unstable features is interesting, but the actual algorithmic mechanism remains close to a straightforward regularization strategy.
-
A second major concern is that the theoretical analysis does not tightly match the implemented method. The theory studies source-level masking over stable and unstable views, while the implementation applies stochastic channel masking to the concatenated tensor. The propositions also rely on strong assumptions about stable representations, complementary unstable information, and non-conflicting gradients. These assumptions are difficult to verify in realistic biomedical settings, so the theory functions more as intuition than as a convincing guarantee.
-
The experimental ablations do not fully isolate the source of improvement. Table 5 compares MASKGEN to generic channel dropout applied throughout the predictor, but a more direct comparison would include input-layer dropout on image-only models, dropout on concatenated image-plus-feature inputs under matched masking schedules, and explicit source-level masking versus per-channel masking. Without these controls, it remains hard to separate the value of foundation-model features from the value of regularization itself.
-
The method depends heavily on the quality of the frozen representation extractor. The paper mainly relies on anatomix, and although nnInteractive is tested, performance varies across datasets. This raises concerns about generality: if the extractor is poorly matched to the anatomy, modality, resolution, or target shift, MASKGEN may degrade substantially. The paper does not sufficiently characterize such failure modes.
-
The claims about broad or arbitrary domain generalization are stronger than the evidence supports. The experiments are useful, but all remain within 3D biomedical segmentation and rely on suitable pretrained representations. The paper would be stronger with more careful language, stronger ablations, and clearer analysis of when the approach fails.
-
There are also practical deployment concerns. MASKGEN requires an additional frozen 3D foundation-model forward pass. Even if the reported runtime overhead is moderate, the paper does not provide enough detail on memory footprint, feature precomputation, or deployment feasibility in low-resource clinical settings.
Questions
-
Can the authors provide more direct ablations to isolate the source of the gains? In particular, I would like to see: image-only input-layer dropout, concatenated image-plus-representation inputs with a matched dropout schedule, and explicit source-level masking compared to the current per-channel masking. This would clarify whether the improvement comes from the foundation-model features, the masking regularizer, or their specific interaction.
-
Can the authors better reconcile the theory with the implementation? The theoretical analysis treats masking as source-level masking over stable and unstable views, while the implemented method uses stochastic channel masking on the concatenated tensor. A theorem or careful argument for the implemented masking scheme, or an empirical comparison showing that source-level and channel-level masking behave similarly, would strengthen the paper.
-
How sensitive is MASKGEN to the choice and quality of the frozen representation extractor? The paper includes anatomix and nnInteractive, but it would be useful to see a clearer failure-mode analysis, for example using weaker layers, degraded features, random features, or an extractor less aligned with the target anatomy/modality. This would test whether MASKGEN is a general framework or primarily works when a very strong and well-matched extractor is available.
-
How should the mask rate be selected in a realistic domain-generalization setting? Since the paper tunes the mask rate using validation data, the result may depend on how representative the validation domains are of unseen test shifts. A small experiment reporting fixed-mask-rate performance across all datasets, or a clearer validation protocol, would help assess deployability.
-
Can the authors provide more practical deployment details? Specifically, what are the GPU memory requirements at inference, can the frozen representations be precomputed, and how does the method scale to large 3D volumes or low-resource clinical environments?
Limitations
yes
Final justification
I thank the authors for the detailed rebuttal. The paper presents strong empirical results, and several of my original concerns were addressed. In particular, the authors clarified the extension from source-level to channel-wise masking and added relevant ablations.
However, I remain unconvinced that the method contribution goes beyond combining frozen feature extraction, feature concatenation, and channel dropout. Although the resulting method seems effective, I do not find that it provides sufficient conceptual insight for the community.
I also retain concerns about the theoretical justification. Under strong assumptions, the analysis shows that the model cannot completely ignore the stable features, but it does not guarantee improved generalization risk or an appropriate balance between stable and unstable information. The additional ablations do not fully determine whether the gains arise from the proposed stable–unstable feature mechanism or from applying regularization to strong pretrained representations.
Finally, I retain my concern about representation-stability. CKA similarity and qualitative feature visualizations do not establish the conditional invariance assumed by the theory. They also do not characterize stability across the broader range of domain shifts and feature extractors motivating the method.
Overall, I find this submission empirically useful, and I appreciate the authors’ substantial effort during the rebuttal. Nevertheless, the remaining concerns regarding methodological novelty and the limited explanatory scope of the theory outweigh these strengths. I therefore maintain my score of 2.
Formatting concerns
no
3 comments
Author response to Reviewer zNWS (part 1 of 3)
We thank the reviewer for their detailed feedback. We’re excited to see that they found the work to yield strong results across clinically meaningful domains, with encouraging few-shot results.
”It is largely a combination of … standard components, and while useful…, the paper isn’t sufficiently novel for a top-tier venue. The framing around stable and unstable features is interesting, but method is a straightforward regularizer.”
We respectfully disagree. Simple, theoretically grounded methods that yield SOTA results and simplify an entire subfield are exactly the contributions expected at top-tier venues.
Our single-parameter, principled, 5-line method consistently outperforms existing baselines with novel architectural components. Also, to our knowledge, our masking-based stable and unstable representation combination for domain generalization is novel and beats prior source combination methods that require separately trained predictors and calibration steps [11, 23]
We agree that the individual primitives are not new. This is intentional, as we seek to avoid “domain labels, adaptation, adversarial training, and major architectural changes," which the reviewer raised as a strength. We will clarify that our contribution is a simple, principled regularizer enabled by foundation models, rather than new architectural components.
“The theory studies source-level masking over stable and unstable views, while the implementation applies stochastic channel masking to the concatenated tensor.”
The proof can be trivially extended to match the practical implementation exactly.
Here, is the masking probability, is the number of feature channels, and are the unstable and stable sources, is a training sample, is a predictor with parameters , is the loss, its associated generalized entropy, and denotes the predictor's first-layer weights of the stable channels.
Let , , and As the raw image has one channel, the masking event removes it. The inputs in the masked implementation are thus: where and are the unstable and stable masks, and is a dropout rescale.
Proposition 1 (L179--184) states that no stationary point can ignore . It's proof in App. A has four steps, and we describe the changes in each step below.
Step 1 changes (channel-masked decomposition).
The per-channel masked loss is .
Conditioning on gives where and
Here, is conditioned on (raw image removed), whereas is conditioned on (raw image retained). Thus, stationarity w.r.t. requires
Step 2 changes (unstable-only events).
The unstable-only event is contained in . When , the forward pass is independent of , so its gradient with respect to is zero. All other masks contribute to the expected image-on gradient.
Step 3 changes (image-off risk is suboptimal).
Suppose that ignores the stable channels, meaning that is invariant to . Assume , Bayes predictor realizability from , and no suboptimal stationary points of with respect to . Strict propriety gives Therefore,
Step 4 changes (contradiction). Let$g_{\mathrm{on}}:=\nabla_{W_s}R_{\mathrm{on}}^r(\theta^\star).$ The implementation-matched version of Condition~1 is . Hence, contradicting stationarity.
Thus, per-channel masking also prevents a stationary point from ignoring stable channels. We will revise the proof to match the per-channel implementation
Author response to Reviewer zNWS (part 2 of 3)
“Theory relies on assumptions re: (1) stable representations, (2) complementary unstable information, and (3) non-conflicting gradients. These assumptions are difficult to verify in real biomedical settings.”
(1) and (3) have empirical support in the paper and (2) is well justified in real settings.
(1) Stable representations:
Representation stability to common clinical domain shifts is empirically verified in App. B1 L601 and Figs. 5 and 6, analyzing both sequence and modality shifts.
(2) Complementary unstable information
This is a mild assumption in real settings. It only requires the raw image from a specific domain to contain task-relevant information beyond the domain-stable representations. E.g., when the absolute intensity of a voxel is relevant, a domain-stable representation may remove that, whereas the raw image retains it and is thus complementary.
(3) Non-conflicting gradients
This is empirically verified in App. B2 (L628) and Fig 8 where we find no conflicting gradients.
”Ablations do not fully isolate the source of improvement. … Need (1) image-only input-layer dropout, (2) concatenated image-representation inputs with a matched dropout schedule, and (3) explicit source-level masking vs. current per-channel masking.”
The suggested ablations will strengthen the revision. We perform them on 4/6 datasets for time.
(1) Image-only input-layer dropout
We now train networks that only take the image as input and apply dropout only on the input layer’s activation. We find MaskGen outperforms <Image-only input-layer dropout> on the test split of every dataset evaluated, as shown below. The ablation’s masking rates were tuned on the separate validation split.
| Method | AMOS | BraTS | CoW | PanDG |
|---|---|---|---|---|
| Image-only input-layer dropout | 65.8 (1.4) | 42.9 (1.5) | 27.0 (1.9) | 33.8 (2.4) |
| Ours | 67.5 (0.9) | 46.2 (1.6) | 47.8 (1.3) | 46.0 (1.9) |
(2) Concatenated image-plus-representation inputs with a matched dropout schedule
We are unsure of what the reviewer meant, as concatenating the image with the domain-stable representation and applying dropout (view masking) is our method. Performance as a function of masking/channel dropout rate is presented in Figure 4 (top), L259, and in Tab 3.
(3) Explicit source-level masking vs. the current per-channel masking
We now mask either the raw input image or all representation channels at once in the table below. We train 5 new models for 2 representative datasets, where:
- Binary: Either the image channel is masked or all the feature channels are masked (3 runs with masking rates of 25%, 50%, 75%)
- Ternary: Where both sources are unmasked for 2 runs where 25% and 33% of iterations contain both sources, with the remaining splitting image-only and feature-only equally.
| Dataset | Binary (img=25%, reps.=75%) | Binary (img=50%, reps.=50%) | Binary (img=75%. reps.=25%) | Ternary (both=25%, img=37.5%,reps.=37.5%) | Ternary (both=33%,img=33%,reps.=33%) | Ours |
|---|---|---|---|---|---|---|
| AMOS | 65.4 (1.2) | 66.9 (1.1) | 66.0 (1.1) | 66.8 (1.1) | 66.2 (1.2) | 67.5 (0.9) |
| BRATS | 38.9 (1.7) | 36.0 (1.6) | 37.6 (1.8) | 39.3 (1.8) | 37.0 (1.6) | 46.2 (1.6) |
While the ablation of our method with per-source masking lags behind the per-channel masked runs implemented in practice, we clarify that:
- The original theoretical analysis of source-level masking instead of channel-level masking was a simplifying abstraction, presented to provide intuition.
- The extension of the theory to the practically implemented per-channel masking is trivial and provided above.
- The extended proof above closes the gap between theory and practice entirely and explains the improved performance of per-channel masking.
”... Useful to see clear failure-mode analysis, eg, using degraded features, weaker layers, random features …”
- The degraded features experiment is provided in App. B7 and Fig. 9, where the model weights are corrupted with increasing Gaussian noise (bottom) and the inputs to the trained models are degraded with synthetic corruptions. In most settings, MaskGen remains more performant vs. baselines.
- We are unsure of what the reviewer means by weaker layers, as we use foundation model outputs off-the-shelf. Training MaskGen for every layer of a foundation model to find the weakest layer is combinatorially intractable.
- Random features are incompatible with MaskGen, as it requires domain-stable features, and randomly initialized feature extractors are not domain stable.
"An experiment reporting fixed-mask-rate performance across all dataset would help assess deployability.”
This exact experiment is presented in App.B6. In Tables 11 & 12, we use r=0.5 blindly across all datasets without any tuning. MaskGen without any tuning still obtains state-of-the-art performance vs. baselines (tuned in AppB5).
Author response to Reviewer zNWS (part 3 of 3)
”The method depends heavily on the quality of the frozen representation extractor. The paper mainly relies on anatomix, and although nnInteractive is tested, performance varies across datasets. This raises concerns about generality: if the extractor is poorly matched to the anatomy, modality, resolution, or target shift, MASKGEN may degrade substantially. The paper does not sufficiently characterize such failure modes.”
(1) Generality of evaluation
As the reviewer noted as a strength, our evaluations are broad, with experiments spanning 5 different anatomical regions/targets and 4 domain shifts in both fully supervised and few-shot settings, with two foundation models. While not exhaustive, these benchmarks are representative of a wide breadth of biomedical contexts.
(2) Generality of extractor/backbone
MaskGen requires a domain-stable feature extractor, which is consistent with other work [11, 23]. We chose anatomix [9] for this purpose, as
- It was trained for domain stability across strong shifts in modality, resolution, and anatomy;
- It is unbiased towards any specific target application, as it was trained on entirely random shapes and intensities.
Using this existing and readily available foundation model, MaskGen achieves broad gains in domain generalization across six datasets, four domain shifts, and two label availability settings.
(3) Analyzing failure modes of the extractor
We perform this exact failure analysis on L270 and Table 3, where we change anatomix to nnInteractive. As nnInteractive is not domain stable, it is incompatible with MaskGen. For easier comparison, we add MaskGen with nnInteractive as an extractor to Table 1’s results below (with ranks recomputed) with only the top-performing baselines shown.
| Method | AMOS | BraTS | CoW | HVSMR | PanDG | Prostate | Avg. Rank |
|---|---|---|---|---|---|---|---|
| MaskGen (anatomix) | 67.5 (0.9) | 46.2 (1.6) | 47.8 (1.3) | 65.8 (3.4) | 46.0 (1.9) | 84.7 (0.5) | 1.67 |
| GIN+IPA[35] | 66.5 (0.8) | 44.7 (1.6) | 37.6 (1.9) | 64.7 (2.6) | 50.3 (1.4) | 84.1 (0.6) | 2.83 |
| MaskGen (nnInteractive) | 65.6 (0.9) | 40.4 (1.8) | 47.2 (1.5) | 66.2 (2.8) | 33.9 (2.3) | 83.2 (0.7) | 4.08 |
| RSC[17] | 60.8 (1.3) | 42.1 (1.6) | 26.0 (1.9) | 66.2 (2.9) | 28.2 (2.4) | 83.4 (0.6) | 5.00 |
Despite its instability, MaskGen+nnInteractive still achieves the 3rd-best avg. rank behind MaskGen+anatomix (ours) and GIN+IPA. I.e., even when the extractor is mismatched with the task, MaskGen is competitive. In practice, we use anatomix for optimal performance enabled by domain stability.
”Paper would be stronger with careful language, stronger ablations, and clearer analysis of failures.”
More careful language: We will explicitly limit claims to 3D biomedical segmentation under commonly encountered biomedical domain shifts and clarify that we do not cover all possible domain shifts.Stronger ablations: We have added the requested ablations above and will include them in the revised paper.Clearer analysis of when the approach fails: We agree and clarify that the method is limited to the types of domain shifts that a foundation model can remain stable against.
”What are (1) GPU memory requirements at inference, (2) can frozen representations be precomputed, and (3) how does method scale to large 3D volumes or low-resource clinical environments?”
(1) GPU memory at inference / (3) low-resource clinical environments
We ran inference on MaskGen and a standard UNet on BraTS over 96 volumes with a sliding window crop size of 128x128x128. We saw a peak usage of 0.93GB (MaskGen) vs. 0.41GB (UNet) for batch size=4 and 0.50GB (MaskGen) vs 0.36GB (UNet) for batch size=1, both at bf16 precision. Both values fit comfortably within many years-old entry-level GPUs and edge devices.
(2) Precomputation
Yes, they can be precomputed. However, we do not precompute because we apply online augmentations in training to ensure optimal performance for all methods, and online augmentation is incompatible with feature precomputation.
(3) Scaling to large 3D volumes?
MaskGen scales well to large 3D volumes, as it adds minimal vRAM overhead (described above). We train using large 3D crop sizes such as 192 × 192 × 128 (App. C, Tab 16). At inference, we use sliding window inference (similar to popular frameworks like nnUNet).
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/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 presents a method, called MaskGen, to train robust 3D biomedical segmentation models by leveraging domain-invariant representations coming from foundation models and domain-specific image features. The authors show that leveraging both sources of information requires performing a training-time masking to avoid ignoring stable features from foundation models. The method is validated on a diverse set of supervised segmentation datasets and also on a more challenging few-shot setting. The conducted experiments validate the impact of both sources of information and the interest of the dropout strategy.
Strengths and weaknesses
Strengths:
- S1. The related work and context of the work are clearly presented, highlighting the limitations of previous work and how the proposed method addresses them.
- S2. The introduced method is clearly presented.
- S3. The method is simple to implement and leads to notable improvements both in supervised and few-shot settings.
Weaknesses:
-
W1. [Major] Validation of masking ratio hyperparameter in Tables 1 and 2: As shown in Figure 4, the masking ratio hyperparameter has an important impact on performance. It should thus be made clear how such a masking ratio was validated before reporting performance on the test set in Tables 1 and 2. Was such a choice of hyperparameter performed on an external validation set or directly on the test set?
-
W2. [Major] Insights on performance improvement on AMOS dataset when not doing any view masking. The author should elaborate on why they think view masking has a negative impact on performance on the AMOS dataset. Could this mean that view masking is not always beneficial?
-
W3. [Major] Missing Image Only setting with the nnInteract foundation model: Could the authors add the performance of the Image Only setting in Table 3 as done for the other (anatomix) foundation model? This would strengthen the conclusions we can draw from Table 3.
-
W4. [Minor] “ We extract representations from its penultimate layer and assume no prompts as inputs.” (L277-278). Could the authors comment on the potential impact of tuning specific prompts? Could this even boost performance?
-
W5. [Minor] To the best of my knowledge, Figure 3 is not referenced in the text.
-
W6. [Minor] The caption of Figure 1 is hard to follow when discovering the paper. Additionally, the term “ERM” is employed without being properly introduced.
Questions
The following questions are related to the listed major weaknesses:
- Q1 (W1): When reporting test performance in Tables 1 and 2, was the choice of the masking ratio hyperparameter performed on an external validation set or directly on the test set?
- Q2 (W2): Why do the authors think view masking has a negative impact on performance on the AMOS dataset? Could this mean that view masking is not always beneficial?
- Q3 (W3): Could the authors add the performance of the Image Only setting in Table 3, as done for the other (anatomix) foundation model?
Limitations
yes
Final justification
I thank the authors for the additional clarifications provided in their rebuttal, and that should be integrated into a revised version of the paper. I thus maintain my "Accept" score.
Formatting concerns
No paper formatting concern.
2 comments
Author response to Reviewer VQod
Thank you for the detailed feedback and your time in reviewing this paper. We are glad that the reviewer found the work both simple to implement and led to notable improvements in both supervised and few-shot settings.
“Q1 (W1): When reporting test performance in Tables 1 and 2, was the choice of the masking ratio hyperparameter performed on an external validation set or directly on the test set?”
We thank the reviewer for pointing out this ambiguity. To clarify,
- The masking ratio choice was selected via an external validation set (Appendix B.6., Line 669) and the test sets were never used to prototype or for model selection across all methods.
- For optimal performance across all baselines and our method, we tuned each method's hyperparameters on the validation set (Sec. 4 and App. B5).
- Crucially, MaskGen does not even require tuning its sole hyperparameter in order to obtain state-of-the-art performance. In App. B6 (Tables 11 & 12), we select a masking rate of r = 0.5, which is an intuitive value as it corresponds to masking half the inputs, and find that it still obtains state-of-the-art performance vs. current methods (that are tuned), albeit with smaller margins.
We will clarify and re-emphasize this in the revised text.
“Q2 (W2): Why do the authors think view masking has a negative impact on performance on the AMOS dataset? Could this mean that view masking is not always beneficial?”
We believe there is a miscommunication caused by unclear presentation on our part. View masking does not negatively impact performance on AMOS and in fact improves it on every tested masking ratio (MR). In the left-most barplot in Fig. 4/“Image and Representations Ablations" (top), adding view masking (MR > 0) improves performance on AMOS (top, left) at every MR.
”Q3 (W3): Could the authors add the performance of the Image Only setting in Table 3, as done for the other (anatomix) foundation model?”
The “Image Only” setting is just the baseline standard UNet acting on the domain-shifted inputs directly, which is already presented and denoted as “ERM” in the results Tables 1 and 2 and Figure 3. In other words, the values from “Image Only” in Figure 4 would be identical if placed in Table 3.
We agree that this was confusing, and we will add the “Image Only” setting to this table and clarify its intent for completeness. Thank you for bringing it to our attention.
“W4. [Minor] “ We extract representations from its penultimate layer and assume no prompts as inputs.” (L277-278). Could the authors comment on the potential impact of tuning specific prompts? Could this even boost performance?”
To clarify, nnInteractive [19] is an interactive 3D biomedical image segmentation model that takes user inputs such as clicks, scribbles, and more. Tuning a prompt for nnInteractive does not apply to our domain-generalization (DG) setting. The DG field’s segmentation experiments generally assume no user input at inference, and this is the case for all of our baselines [6,8,17,18,35,55].
Instead, we use nnInteractive in this experiment as a feature extractor to obtain foundation model features for MaskGen as an alternative to the anatomix model used in the main results. We chose nnInteractive for this experiment, as it is trained on many dozens of real biomedical datasets and extracts semantically aware features that are not stable to domain shifts (Appendix Section B, Figure 5), giving us an ideal model to empirically verify the need for a domain stable foundation model.
This aspect will be more clearly presented in the revision; thank you for raising it.
“W5. [Minor] To my knowledge, Fig3 is not referenced in the text.”
Thank you for the catch. We will explicitly reference it in the results in the revision.
”W6. [Minor] Figure 1 caption is hard to follow … “ERM” term is employed without being introduced.”
We agree. In the revision, we will both edit Fig. 1’s caption for clarity and spell out the ERM term as the intended “Empirical Risk Minimization."
I have read the answers from the authors to my raised concerns and thank them for the additional clarifications that should be integrated in a revised version of the paper.
Comments on the paper
1 comment
General Response
We thank the AC and all reviewers for their insightful feedback and constructive suggestions. Their comments and suggestions have significantly strengthened the clarity and contribution of our paper. We are excited to see that the reviewers found the method to be simple to implement [VQod, trL4], leading to notable improvements in both few-shot and fully supervised settings [all], with a broad evaluation suite [zNWS, trL4], including useful ablations [trL4].
As the author discussion period is drawing to a close, we would like to summarize our responses. To the reviewer points that the AC specifically highlighted, we clarify the following in the individual responses below:
- (1) Our work does not present new deep learning components/operations but rather develops a theoretically grounded and simple-to-implement input featurization strategy that outperforms all baselines for this problem. The algorithm itself is novel.
- (2) The assumptions regarding stable representations are verified in the appendix. We also now present both a simple extension of the theory to account for channel-wise masking and also include empirical ablations isolating this effect.
- (3) All of the requested ablations have been provided and/or clarified in the rebuttal.
To summarize the responses to individual reviewer feedback:
Reviewer VQod: We have clarified that we do use separate validation sets and will incorporate their suggestions to present the results and methodology more clearly.Reviewer zNWS: We have clarified the novel contribution of the paper, extended the theory to include per-channel masking, provided all requested ablations, clarified that the assumptions are empirically verified in the appendix or are well-justified on real datasets, analyzed failure modes, and clarified that resource requirements are minimal.Reviewer trL4: We have provided the requested ablations and clarified the original differences between the theory and implementation, the masking ablation results, and the method’s sensitivity to the chosen foundation model.
All other points are addressed in the individual responses below, and all feedback will be incorporated in the revision. Again, we deeply appreciate the feedback and thank the reviewers for improving the paper.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Author response to Reviewer trL4 (part 1 of 2)
We thank the reviewer for their careful, detailed read and for their helpful suggestions. They have improved the paper significantly. Further, we are happy that they found the work to present a simple, easy-to-implement method with convincing empirical results across multiple datasets and clinical domain shifts.
We agree that this could have been clearer. The reviewer is correct: the source-level masking analyzed in the submission was solely a simplifying assumption for the theoretical analysis and to provide reader intuition. This is mentioned in Sec 3.1 on L129, but it will be made much more upfront in the revision.
If the reviewer is curious, for completeness, we also present a straightforward extension of the theory from per-source masking to per-channel masking in the response to
Reviewer zNWSand study its empirical impact. For brevity, we refer the reviewer to the full response there. To summarize,We agree; thank you for the suggestion. We present the requested experiment on a subset of datasets in the table below. The test set results are reported using the masking rate with the best validation set performance. We find that masking only the representation channels performs well, but our full method remains consistently the best across all three datasets.
We thank the reviewer for bringing this point up. Based on their comment, we double-checked this subablation result in the rebuttal period and found a subtle filepath bug in the checkpoint selection code used to programmatically generate the bar charts in Figure 4 (bottom).
To summarize,
In the table below, we present the corrected values (“After”), with the original submission’s numbers attached (“Before”), for the image-channel removal experiment (MR=0%).
The other values in the subablation barplots of Fig. 4 (bottom) are also different, but the changes are small and within ~0.5 Dice, with the median change being 0.053 Dice. We provide the full table corresponding to all changes to this ablation presented in Fig 4 (bottom) at the bottom of the author response for completeness.
We emphasize that this bug only affected Figure 4 (bottom) and that we carefully double-checked all other results in the paper to ensure their correctness. We apologize for the confusion and thank the reviewer again for bringing it to our attention. The original point regarding unintuitive AMOS performance increases is resolved.