Robust Polyp Detection and Diagnosis Through Compositional Prompt-Guided Diffusion Models

Jia Yu, Yan Zhu, Peiyao Fu, Tianyi Chen, Junbo Huang, Quanlin Li, Pinghong Zhou, Zhihua Wang, Fei Wu, Shuo Wang, Xian Yang

TL;DR

This paper introduces a novel method for generating realistic synthetic polyp images for medical training by using "compositional prompts" derived from diverse annotations (like segmentation masks, bounding boxes, and text reports). This approach significantly improves the performance of polyp detection, classification, and segmentation models, especially in challenging out-of-distribution scenarios.

What Problem Does This Paper Address?

Colorectal cancer (CRC) is a major global health concern, and early detection through screening is crucial for reducing mortality. While deep learning models have shown promise in polyp analysis, their performance often falters when faced with data from different clinical environments (out-of-distribution or OOD data). This is partly due to limitations in current data augmentation techniques, which often fail to capture the full complexity and variability of medical images. Existing methods for generating synthetic polyp images, like diffusion models, typically rely heavily on segmentation masks, neglecting other valuable clinical information such as textual descriptions from colonoscopy reports. This limits the diversity and clinical accuracy of the generated images, hindering robust model generalization.

Methods

The core innovation is the Progressive Spectrum Diffusion Model (PSDM), which leverages compositional prompts to guide the image generation process. Instead of relying solely on segmentation masks, PSDM integrates diverse annotations:

  • Segmentation Masks & Bounding Boxes: These are used as "coarse prompts" to capture the overall spatial layout and location of polyps.
  • Colonoscopy Reports: These are processed by a Large Language Model (LLM) to extract key attributes (size, type, pathology, texture, color, etc.) which form "fine prompts" providing detailed clinical context.
  • Prototype Images: Used for vague class annotations to guide generation.

These prompts are organized into a Prompt Spectrum, distinguishing between coarse (low-frequency) and fine (high-frequency) components. The PSDM then uses a progressive denoising process where coarse prompts influence the initial stages of image generation, and fine prompts refine the details as the process continues. This "coarse-to-fine" approach ensures both structural accuracy and detailed clinical realism. The authors also employ a rehearsal-based continual learning strategy to mitigate catastrophic forgetting when training with sequential or diverse annotation types.

Datasets

The paper utilizes several publicly available datasets for training and evaluation:

  • Segmentation: ETIS, CVC-ClinicDB (CVC-612), CVC-ColonDB, CVC-300, Kvasir, and PolypGen.
  • Detection: PolypGen (including sequence data).
  • Classification: A private dataset of 385 benign and 77 malignant polyp images.

Additionally, they introduce the Polyplus dataset, consisting of 100 representative polyp images from Kvasir and CVC-ClinicDB, annotated with detailed textual descriptions by expert colonoscopists. This dataset is designed to facilitate the integration of visual and textual modalities.

Key Insights and Ideas

  • Beyond Segmentation Masks: The paper strongly advocates for moving beyond segmentation masks as the sole conditioning input for generative models in medical imaging. Integrating textual and other contextual information is key to generating clinically relevant and diverse images.
  • Compositional Prompts for Richness: The idea of breaking down annotations into "coarse" and "fine" compositional prompts allows for a more nuanced and hierarchical control over image generation, mirroring how humans perceive and describe medical images.
  • Frequency-Based Refinement: The progressive denoising guided by a "Prompt Spectrum" that moves from low-frequency spatial information to high-frequency clinical details is a powerful way to build complex medical images.
  • Continual Learning for Robustness: Addressing catastrophic forgetting is crucial when dealing with diverse and evolving medical datasets, and their rehearsal-based approach is a practical solution.
  • OOD Generalization is Key: The primary motivation and demonstrated success of their method lie in improving model performance on unseen data distributions, which is paramount for real-world clinical deployment.

Key Results

  • Improved Downstream Task Performance: PSDM-augmented models significantly improved polyp detection, classification, and segmentation.
  • On the PolypGen dataset, PSDM increased F1 score by 2.12% and mean average precision by 3.09%.
  • For segmentation, PraNet's mDice improved from 74.27% (Baseline) to 76.70% (PSDMM).
  • Enhanced Generalization: The method showed superior performance on challenging and out-of-distribution datasets like PolypGen, particularly on subsets like dataC4 and dataC5.
  • Classification Improvement: For polyp classification, training with augmented balanced data (generated by PSDM) significantly improved accuracy and reduced false negatives for malignant polyps compared to using an imbalanced dataset.
  • Detection Boost: The PSDMM strategy for detection yielded the highest F1 score (73.91%) and mAP50-95 (60.83%) on the PolypGen dataset.
  • Qualitative Realism: Generated images were rated highly by an experienced gastroenterologist (mean realism scores above 4 out of 5).
  • Quality Metrics: PSDMM achieved the lowest FID score (111.52) and a competitive SSIM score (0.5839) compared to other generative models.

Limitations and Future Work

  • Slight In-Distribution Performance Drop: The paper notes a slight decrease in training-set performance (e.g., Polyp-CASCADE's mDice on Kvasir dropped from 93.09% to 92.01%). This suggests that while synthetic augmentation enhances robustness to unseen data, it can sometimes slightly impair performance on familiar data.
  • Failure Cases with Weak Prompts: The model struggles with underrepresented or weakly supported prompts (e.g., "yellow polyp" alone), sometimes leading to indiscriminate colorization or generation failure. This highlights the need for more explicit, compound prompts for rare scenarios.
  • Future Work: The authors suggest future research should focus on:
  • Developing robust evaluation frameworks for synthetic image quality and clinical relevance.
  • Creating dynamic strategies to balance domain-specific performance with cross-institutional generalization.
  • Exploring the broader applicability of PSDM beyond polyp detection to other medical imaging modalities and tasks.

Summary updated

BibTeX
@article{yu2025robust,
  author = {Jia Yu and Yan Zhu and Peiyao Fu and Tianyi Chen and Junbo Huang and Quanlin Li and Pinghong Zhou and Zhihua Wang and Fei Wu and Shuo Wang and Xian Yang},
  title = {{Robust Polyp Detection and Diagnosis Through Compositional Prompt-Guided Diffusion Models}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2025},
}
Figure