# Why Invariance is Not Enough for Biomedical Domain Generalization and How to Fix It

*Sebastian Diaz, Polina Golland, Elfar Adalsteinsson, Neel Dey*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150548) · [OpenReview](https://openreview.net/forum?id=hJjwD3TJXH) · [alphaXiv](https://www.alphaxiv.org/abs/2604.02564) · [Open on the map](../papers.html#p150548)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Medical Image Segmentation Methods](../pgroup/62.md) · Type: new method · Keywords: domain generalization, 3D biomedical image segmentation, clinical shift robustness, foundation model representations, architecture-agnostic learning

Areas: [Computer Vision & 3D](../areas/computer-vision.md) › Medical Visual Computing › Medical Image Segmentation

## Summary
MaskGen introduces a simple, theoretically grounded learning strategy that leverages source-domain image intensities and domain-stable foundation model representations to improve domain generalization in 3D biomedical image segmentation.

## Explained to a 5-year-old
Doctors take pictures inside people's bodies to see what's wrong. Sometimes the pictures look different depending on the hospital or the machine, and the computer gets confused. The researchers made a simple rule that helps the computer learn from both the picture details and a special kind of memory, so it can see correctly even when the pictures change. This makes the computer better at finding problems in new places. It works for many different body parts and doesn't need a lot of extra work.

## Explained to a 5-year-old, longer
Doctors often use special cameras to look inside a patient's body and find diseases. These pictures can look different if they come from different hospitals or different machines. When the pictures change, the computer programs that read them sometimes make mistakes. The researchers noticed that many existing tricks to fix this are complicated and hard to use. They thought of a new, easy idea that uses both the actual picture colors and a kind of memory that stays the same no matter the hospital. This memory helps the computer understand what the picture really shows, even if the colors change. The new idea adds only a tiny amount of extra work to the training process. Because it doesn't need to change the model's design or the way it learns, anyone can try it easily. It can be used for many different parts of the body, like the brain, lungs, or bones. The computer becomes much better at spotting problems when it sees new kinds of pictures. This helps doctors trust the computer more because it works reliably in many places. In the end, the simple rule makes the computer smarter and easier to use for everyone.

## For a technical reader
The paper identifies that standard segmentation models suffer performance drops when the imaging data distribution shifts across hospitals, scanners, or disease presentations. Existing domain generalization techniques rely on heavy data augmentations or custom architectural changes, which increase implementation complexity and often produce inconsistent results. The proposed learning strategy combines source-domain pixel intensities with stable representations from a foundation model, adding only a modest computational overhead. Because the method is architecture- and loss-agnostic, it can be dropped into existing pipelines without modifying the model or training loop. Empirical results show significant gains in both fully supervised and few-shot segmentation scenarios across diverse clinical shifts, enabling more reliable deployment in real-world medical imaging workflows.

## Problem
Domain generalization in biomedical image segmentation remains challenging because models degrade sharply under shifts in modality, disease severity, and clinical sites. Existing methods rely on heavy augmentations or architectural changes that are complex and often inconsistent.

## Method
The approach uses a principled learning strategy that combines source-domain image intensities with domain-stable foundation model representations, adding only marginal overhead. It is architecture- and loss-agnostic, works with standard augmentation pipelines, and can be applied to arbitrary anatomical regions.

## Results
The approach yields strong improvements in both fully supervised and few-shot segmentation across a range of clinical shifts.

## Contributions
It provides a theoretically grounded, simple learning strategy for domain generalization that is architecture- and loss-agnostic, easy to implement, and applicable to arbitrary anatomical regions. This approach addresses the inconsistency and overhead of prior methods.

## Practical relevance
It enables reliable deployment of segmentation models across diverse clinical settings with minimal implementation effort.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150548)
