Curriculum Prompting Foundation Models for Medical Image Segmentation

Xiuqi Zheng, Yuhang Zhang, Haoran Zhang, Hongrui Liang, Xueqi Bao, Zhuqing Jiang, Qicheng Lao

Introduction

The Segment Anything Model (SAM) has revolutionized computer vision by providing a robust foundation for interactive object segmentation. However, its application in the medical domain is hindered by two primary challenges: the significant domain gap between natural and medical images (such as Ultrasounds, X-rays, and Endoscopy) and the reliance on manual prompting. In clinical settings, manual prompt engineering—providing the model with precise bounding boxes or points—is labor-intensive, subjective, and creates a bottleneck for large-scale diagnostic workflows.

To address these limitations, researchers have introduced Curriculum Prompting, a coarse-to-fine strategy designed to automate and optimize SAM for medical image segmentation. This approach eliminates the need for human intervention while resolving internal conflicts that often arise when combining different prompt types.

The Problem: Prompt Conflict and Manual Bottlenecks

While SAM allows for various prompt types, simply "stacking" them (e.g., providing both a box and a point) does not always lead to better results. Researchers observed a "Prompt Conflict Paradox," where multi-modal prompts can actually degrade performance. This is likely due to how SAM’s prompt encoder processes sparse embeddings, leading to interference between different signals. Furthermore, the requirement for high-quality manual prompts makes standard SAM difficult to deploy in high-throughput medical environments.

Methodology: Curriculum Prompting

The proposed framework mimics human learning by progressing from simple, coarse tasks to complex, fine-grained refinements. The pipeline consists of three core components:

1. Automated Prompt Generation

Instead of relying on human clicks, the system employs specialized, pre-trained models to generate initial prompts:

  • Coarse Stage: An object detection model (such as Grounding DINO or GLIP) identifies the target lesion and generates a bounding box.
  • Fine Stage: A keypoint detection network (such as HRNet or ViTPose) identifies specific points along the edges of the target to guide boundary refinement.

2. The "Mask-as-a-Bridge" Strategy

To solve the Prompt Conflict Paradox, the authors developed a bridging mechanism. Rather than feeding boxes and points into SAM simultaneously, the automated box prompt is first used to generate a "noisy" coarse mask. This mask is then converted into a dense Mask Prompt. By using the mask as a foundation, the model can then incorporate fine-grained point prompts without the signals interfering with one another.

3. Negative Point Refinement

During the fine-grained stage, the researchers discovered that "negative points"—points explicitly labeled as not belonging to the target—were more effective than positive points for edge delineation. This provides the model with clear guidance on where the lesion ends, resulting in smoother and more accurate boundaries.

Experimental Results

The Curriculum Prompting method was evaluated on three public datasets representing different medical modalities:

  • TN3K (Ultrasound): For thyroid nodule segmentation, the method achieved an 84.43% mDice score, a dramatic improvement over the vanilla fine-tuned SAM's 50.79%.
  • Kvasir (Endoscopy): For polyp segmentation, the model reached 93.67% mDice, outperforming Grounded SAM (93.34%).
  • QaTa-COV19 (Chest X-ray): For pneumonia lesion segmentation, it achieved 79.82% mDice, surpassing other specialized foundation models like SAM-Med2D (76.43%).

Qualitatively, the curriculum approach significantly reduced artifacts and "isolated dots" often seen in standard SAM outputs, providing much cleaner segmentation masks suitable for clinical review.

Discussion and Limitations

Curriculum Prompting demonstrates that automated, specialized "prompt-generator" models can be more consistent and accurate than manual human labeling. However, the approach does introduce some trade-offs:

  • Computational Complexity: The pipeline requires running multiple models (detector, keypoint network, and SAM), which increases inference time compared to single end-to-end networks.
  • Detection Dependency: The success of the segmentation is heavily reliant on the initial detection stage. If the detection model fails to locate the lesion, the subsequent curriculum stages cannot proceed.

Conclusion

Curriculum Prompting provides a scalable solution for adapting large-scale foundation models to specialized domains. By automating the prompting process and resolving the conflicts between prompt types through a coarse-to-fine "bridge" strategy, this method brings SAM closer to practical, high-performance use in medical imaging. Future work may extend this curriculum logic to other specialized fields, such as satellite imagery or industrial inspection.

Summary updated

BibTeX
@inproceedings{zheng2024curriculum,
  author = {Xiuqi Zheng and Yuhang Zhang and Haoran Zhang and Hongrui Liang and Xueqi Bao and Zhuqing Jiang and Qicheng Lao},
  title = {{Curriculum Prompting Foundation Models for Medical Image Segmentation}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2024},
  doi = {10.1007/978-3-031-72390-2\_46},
}
Figure