NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Gradient-Map-Guided Adaptive Domain Generalization for Cross Modality MRI Segmentation

Bingnan Li, Zhitong Gao, Xuming He

TL;DR

Researchers have developed a new framework for MRI segmentation that can train on one type of MRI (like T2) and accurately segment another (like T1) without seeing the target data beforehand. By combining a learning-free "Gradient-Map Representation" to handle global style differences and a "Prior-Informed Test-Time Adaptation" to fix local errors on the fly, the method achieves state-of-the-art results even when training data is extremely scarce.

The Challenge of Domain Shift in MRI

In medical imaging, Magnetic Resonance Imaging (MRI) acts like a chameleon. Depending on the machine settings, the same anatomy can look vastly different across various modalities (e.g., T1, T2, FLAIR). A deep learning model trained to find a heart in a T2 scan often fails miserably when presented with a T1 scan because the "style" or intensity distribution has shifted. This discrepancy is known as the domain gap.

Visualizing the domain gap across MRI modalities and the effectiveness of gradient maps.

Existing solutions for "Single Domain Generalization" (SDG) usually try to learn a "style-invariant" feature space during training. However, these methods have two major flaws:

  1. Data Hunger: They require massive amounts of training data to learn invariance.
  2. Local Sensitivity: They struggle with local variations, such as how a lesion might appear bright in one modality but dark in another, even if the overall image structure is the same.

Proposed Methodology

To bridge this gap, the authors propose a two-stage approach that separates the domain shift problem into global and local scales.

The proposed framework featuring Gradient-Map Representation during training and Prior-Informed Test-Time Adaptation during inference.

1. Gradient-Map Representation (GMR)

Instead of feeding raw pixel intensities into a U-Net, the authors convert images into gradient maps. Their reasoning is intuitive: while the brightness of tissues changes between modalities, the boundaries (gradients) between organs remain relatively consistent. They use a learning-free operator (Sobel-like filters followed by histogram equalization) to extract structural information. This effectively "neutralizes" the global style of the MRI before the neural network even sees it, bypassing the need to learn style invariance from thousands of examples.

2. Prior-Informed Test-Time Adaptation (PITTA)

Even with gradient maps, local discrepancies exist. To fix this, the authors introduce an adaptation step that happens during inference. When a new, unlabeled image arrives:

  • Test-Time Augmentation: The model evaluates the image alongside augmented versions, enforcing consistent predictions across variations.
  • Class-Prior Weighting: A major risk in self-training is that the model might ignore small classes (like tumors) in favor of the background. PITTA uses a "class prior"—an estimate of how much of each tissue type should be present—to re-weight the model's confidence and prevent it from collapsing into a "background-only" prediction.
  • Iterative Refinement: The model generates "pseudo-labels" for the new image and performs a quick mini-update to its own weights to better fit the specific characteristics of that patient's scan.

Datasets and Evaluation

The method was validated on two major multi-modal benchmarks:

  • MS-CMRSeg2019: Cardiac MRIs (35 patients) featuring three modalities: bSSFP, LGE, and T2. The task was to segment the myocardium and ventricles.
  • BraTS2018: Brain tumor scans (285 patients) with four modalities: T1, T2, T1ce, and FLAIR. The focus was on segmenting the "Whole Tumor" region.

Key Results

  • Massive Gains in Tough Tasks: On the cardiac dataset (bSSFP → T2), the baseline "Source Only" model achieved a dismal 4.9% average Dice score. The proposed method skyrocketed this to 85.4%, outperforming the previous state-of-the-art (GINIPA) by over 5%.
  • Robustness to Small Data: In a stress test, the researchers reduced the training set from 35 patients to just 15. While competing methods saw their performance drop significantly (nearly 3%), the proposed method's performance remained highly stable, dropping by only 0.44%.
  • Brain Tumor Success: On the BraTS dataset, the method consistently outperformed all baselines across four different cross-modality tasks (e.g., training on T2 and testing on T1).

Limitations and Future Work

  • Inference Latency: Because the model performs Test-Time Adaptation (fine-tuning the weights for every new image), it is inherently slower during the prediction phase than a standard static model. This might be a hurdle for real-time applications.
  • Class Prior Dependency: The method relies on an accurate initial estimate of class distributions. If a patient has an unusually large or small anatomy that deviates wildly from the "prior," the re-weighting strategy might be less effective.
  • Future Directions: The authors suggest exploring more complex structural representations beyond simple gradients to further improve the initial "style-neutral" input.

Summary updated

BibTeX
@inproceedings{li2023gradient,
  author = {Bingnan Li and Zhitong Gao and Xuming He},
  title = {{Gradient-Map-Guided Adaptive Domain Generalization for Cross Modality MRI Segmentation}},
  booktitle = {ML4H @ NeurIPS},
  year = {2023},
}
Figure