Advancing Generalizable Tumor Segmentation with Anomaly-Aware Open-Vocabulary Attention Maps and Frozen Foundation Diffusion Models

Yankai Jiang, Peng Zhang, Donglin Yang, Yuan Tian, Hai Lin, Xiaosong Wang

Introduction

Tumor segmentation is a cornerstone of medical imaging analysis, yet developing models that generalize across diverse pathologies and modalities remains a significant challenge. Traditional deep learning approaches typically function as "specialists," requiring extensive manually labeled datasets for specific tumor types and imaging protocols. These models often fail when encountering novel anomalies or shifting from Computed Tomography (CT) to Magnetic Resonance Imaging (MRI).

While general-purpose foundation models like CLIP or SAM have demonstrated remarkable zero-shot capabilities in natural images, their application to medical imaging is hindered by the subtle and irregular nature of pathological features. To address these limitations, we present DiffuGTS, a framework that repurposes frozen medical foundation diffusion models to achieve state-of-the-art zero-shot tumor segmentation.

Methodology

The DiffuGTS architecture leverages the inherent anatomical knowledge of a frozen Medical Foundation Diffusion Model (MAISI). The pipeline consists of three primary components:

  1. Anomaly-Aware Open-Vocabulary Attention (AOVA) Maps: Instead of retraining the core model, DiffuGTS utilizes learnable adapters to extract multi-layer features. By processing text prompts such as "Abnormal: Lung Tumor in CT," the system generates attention maps that spatially correlate linguistic descriptions with visual anomalies, enabling localization without prior training on specific tumor classes.
  2. Mask Refinement via Latent Space Inpainting: This stage employs the diffusion model's generative capabilities to perform "pseudo-healthy" inpainting. By masking the suspected anomaly region identified by AOVA, the model synthesizes a version of the organ as it would appear if healthy.
  3. Pixel-Level and Feature-Level Residual Learning: The final segmentation is derived by calculating the difference (residual) between the original diseased image and the generated pseudo-healthy equivalent. This comparison occurs at both the raw pixel level and within deep semantic feature spaces to capture subtle textural deviations.
Figure 5: The DiffuGTS architecture, highlighting the integration of frozen diffusion models with AOVA maps and latent space inpainting for residual-based segmentation.

Experimental Results

The framework was evaluated across four major datasets (MSD, KiTS23, BraTS23, and an in-house MRI liver dataset) covering seven distinct tumor categories.

  • Zero-Shot Generalization: In "leave-one-out" cross-organ testing, DiffuGTS significantly outperformed existing zero-shot methods, achieving a 12.84% improvement in Dice Similarity Coefficient (DSC).
  • Cross-Modality Robustness: The model demonstrated exceptional performance when transitioning from CT-trained components to MRI data. On the BraTS23 brain tumor dataset, DiffuGTS surpassed the next best method by over 20% in DSC.
  • Refinement Impact: The mask refinement step (pseudo-healthy inpainting) improved the DSC for unseen liver tumors from approximately 60% to over 63%, validating the precision added by the generative component.
  • Qualitative Performance: As shown in Figure 1, the model accurately localizes and segments tumors across a wide variety of organs, including the lungs, kidneys, pancreas, brain, colon, and liver.
Figure 1: Qualitative results of DiffuGTS across multiple organs and modalities, showing text prompts, attention maps, synthetic pseudo-healthy images, and final segmentation masks compared to ground truth.

Discussion and Conclusion

The core insight of DiffuGTS is that medical foundation models are "latent experts" in healthy anatomy. Rather than attempting to model the infinite variety of diseases, DiffuGTS "synthesizes health" to identify pathology. This paradigm shift proves more effective for generalization than traditional synthesis-based training.

While the iterative nature of diffusion models introduces higher computational costs and slower inference times compared to standard U-Nets, the significant gains in generalizability offer a path forward for robust clinical AI. Future work will focus on knowledge distillation to transfer the performance of DiffuGTS into more efficient, real-time architectures.

Summary updated

BibTeX
@inproceedings{jiang2025advancing,
  author = {Yankai Jiang and Peng Zhang and Donglin Yang and Yuan Tian and Hai Lin and Xiaosong Wang},
  title = {{Advancing Generalizable Tumor Segmentation with Anomaly-Aware Open-Vocabulary Attention Maps and Frozen Foundation Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02419},
}
Figure