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 · DOI

Abstract

Generalizable Tumor Segmentation (GTS) remains a significant challenge in medical imaging due to the extreme diversity of tumor morphologies and the limited generalizability of models across different organs and modalities. This paper introduces DiffuGTS, a novel framework that leverages frozen medical foundation diffusion models for zero-shot tumor segmentation. By utilizing Anomaly-Aware Open-Vocabulary Attention (AOVA) maps and a "pseudo-healthy" image inpainting strategy, DiffuGTS identifies tumors as anomalies relative to learned healthy anatomy. Experimental results across 3,933 scans demonstrate that DiffuGTS significantly outperforms existing state-of-the-art methods, achieving over a 12% improvement in Dice Similarity Coefficient (DSC) for unseen organs and over 21% in cross-modality tasks.

Introduction

Tumor segmentation is critical for clinical diagnosis and treatment planning. However, most existing deep learning models are "specialists," trained on specific organs and modalities (e.g., lung nodules in CT). These models often fail when applied to new domains due to the high variability of tumor appearances. Developing a "generalist" model is difficult because it is nearly impossible to curate or synthesize a dataset encompassing every possible pathological variation.

DiffuGTS addresses this by shifting the paradigm from learning what a tumor is to learning what a healthy organ should look like. By repurposing the internal anatomical knowledge of a frozen medical foundation diffusion model (MAISI), the framework identifies tumors as deviations from a synthesized "pseudo-healthy" baseline.

Methodology

The DiffuGTS framework operates through a multi-stage pipeline designed to localize and then refine tumor boundaries without requiring task-specific training.

1. Anomaly-Aware Open-Vocabulary Attention (AOVA) Maps

Instead of using fixed class labels, DiffuGTS employs open-vocabulary text prompts (e.g., "Normal: Lung in CT" vs. "Abnormal: Lung Tumor in CT"). The model extracts multi-layer image features from the diffusion model's encoder and uses cross-attention between these features and text embeddings to generate coarse attention maps. These AOVA maps provide an initial localization of potential anomalies based on the semantic description provided in the prompt.

2. Mask Refinement via "Pseudo-Healthy" Inpainting

The core innovation of DiffuGTS is the use of the frozen diffusion model to generate a "pseudo-healthy" equivalent of the diseased input. The initial coarse mask from the AOVA stage is used to define a region for latent space inpainting. The diffusion model is tasked with filling this region as if it were healthy anatomy, drawing upon its extensive pre-trained knowledge of medical structures.

The DiffuGTS architecture: From input image and text prompts to AOVA maps, pseudo-healthy inpainting, and final residual-based segmentation.

3. Pixel-Level and Feature-Level Residual Learning

Once the pseudo-healthy image is generated, the model compares it to the original diseased image. This comparison happens at two levels:

  • Pixel-Level Residuals: Identifying direct intensity differences between the diseased and healthy versions.
  • Feature-Level Residuals: Comparing latent representations to capture deeper semantic changes, which helps the model distinguish true pathological changes from imaging noise or lighting variations. An ensemble of these residuals produces the final high-precision segmentation mask.

Experiments and Results

The researchers evaluated DiffuGTS on a massive dataset of 3,933 scans, including the Medical Segmentation Decathlon (MSD), KiTS23, and BraTS23. These covered seven tumor categories across six organs (liver, pancreas, colon, lung, kidney, and brain).

Zero-Shot Generalization

In "leave-one-out" experiments—where the model is tested on an organ it never encountered during training—DiffuGTS established a new state-of-the-art. It achieved a minimum improvement of 12.84% in Dice Similarity Coefficient (DSC) over previous leading zero-shot methods.

Cross-Modality Performance

The model demonstrated remarkable robustness across imaging modalities. Despite being primarily trained on CT data, it outperformed competitors by over 21% DSC on MRI-based brain and liver tumor tasks. This suggests that the underlying anatomical knowledge captured by foundation diffusion models is highly transferable.

Qualitative results across various organs and modalities, showing text prompts, attention maps, and the refinement process compared to ground truth.

Discussion and Conclusion

DiffuGTS proves that extracting internal knowledge from foundation models is a more effective path toward generalizable AI than traditional synthetic data generation. By treating tumors as anomalies in a "healthy" world, the model achieves unprecedented zero-shot accuracy.

However, the framework faces challenges regarding computational efficiency. Running a full diffusion model for refinement is resource-intensive compared to standard encoder-decoder architectures. Future work will likely focus on "knowledge distillation," aiming to compress the capabilities of these large diffusion models into smaller, faster networks suitable for real-time clinical deployment. Despite these hurdles, DiffuGTS represents a significant step toward a truly universal medical image segmentation assistant.

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