Learnable Prompting SAM-Induced Knowledge Distillation for Semi-Supervised Medical Image Segmentation

Kaiwen Huang, Tao Zhou, Huazhu Fu, Yizhe Zhang, Yi Zhou, Chen Gong, Dong Liang

TL;DR

This paper introduces KnowSAM, a novel framework for semi-supervised medical image segmentation that leverages the powerful Segment Anything Model (SAM) through knowledge distillation. By combining a multi-view co-training strategy with a learnable prompting mechanism for SAM, KnowSAM significantly improves segmentation accuracy, especially in low-data regimes, while also being adaptable to existing semi-supervised methods.

What Problem Does This Paper Address?

Medical image segmentation is crucial for diagnosis and treatment planning, but acquiring large, pixel-level annotated datasets is prohibitively expensive and time-consuming. This scarcity of labeled data necessitates the use of semi-supervised learning (SSL) techniques, which aim to leverage abundant unlabeled data. While recent foundation models like SAM show impressive general segmentation capabilities, they often struggle when directly applied to specialized medical domains, exhibiting performance degradation. This paper addresses the challenge of effectively adapting SAM's generalization power to medical image segmentation within an SSL framework, aiming to achieve high accuracy with limited labeled data.

Methods

KnowSAM introduces several key innovations:

  • Multi-view Co-training (MC): Two distinct sub-networks are trained in a co-teaching paradigm. They mutually correct each other, and a Hybrid Aggregation Module (HAM) is used to fuse their outputs with uncertainty maps (entropy) and dissimilarity maps. This helps to reduce discordant predictions and leverage insights from areas of disagreement.
  • Learnable Prompt Strategy (LPS): Instead of relying on sparse, potentially inaccurate point or box prompts for SAM, LPS generates dense, learnable feature prompts. This is achieved by a lightweight network that refines SAM's image encoder features. This strategy aims to prevent performance degradation caused by incorrect hard coordinates.
  • SAM-induced Knowledge Distillation (SKD): Knowledge from SAM (acting as a teacher) is distilled into the two student sub-networks. This helps the sub-networks learn from SAM's robust predictions and mitigates the impact of noisy pseudo-labels generated during training.
  • Uncertainty-Guided Data Augmentation (UGDA): This technique enhances model robustness by generating new training samples. It uses uncertainty maps derived from the model's predictions to guide a copy-paste operation between labeled and unlabeled data, creating hybrid images.

Datasets

The proposed method was evaluated on a diverse set of medical imaging datasets:

  • Colonoscopy Datasets: A combination of ETIS, CVC-ClinicDB, CVC-ColonDB, CVC-300, and Kvasir.
  • Ultrasound Thyroid Nodule Datasets: TN3K, TG3K, and DDTI.
  • ISIC Dataset: ISIC-2018 for skin lesion segmentation.
  • ACDC Dataset: For multi-class cardiac segmentation.
  • BCSS Dataset: For breast cancer semantic segmentation.

The paper does not mention any newly introduced benchmarks.

Key Insights and Ideas

  • SAM's Generalization is Valuable, but Needs Adaptation: While SAM is powerful, directly applying it to medical images leads to performance drops. KnowSAM demonstrates that by carefully distilling its knowledge and adapting its input mechanism (prompts), its generalization power can be effectively harnessed.
  • Dense Prompts Outperform Sparse Prompts for SAM: The paper argues that using specific points or bounding boxes (sparse prompts) can be detrimental if incorrect. Their learnable, dense feature prompts are more robust and lead to better SAM performance in medical tasks.
  • Uncertainty and Dissimilarity are Key to Co-training: The HAM module's ability to fuse not just predictions but also uncertainty and dissimilarity maps from sub-networks is crucial for improving co-training, allowing the model to address its own limitations.
  • Knowledge Distillation Bridges the Gap: SKD is essential for transferring SAM's learned representations to the student models, helping them overcome the challenges of limited labeled data and noisy pseudo-labels.

Key Results

KnowSAM consistently outperforms state-of-the-art semi-supervised segmentation methods across various medical imaging tasks, including colonoscopy, ultrasound, skin lesion, cardiac, and pathology segmentation. For instance, on the ACDC dataset with only 30% labeled data, KnowSAM achieved a Dice coefficient of 91.13%, significantly improving upon other methods. The paper also highlights that the framework can be seamlessly integrated into other SSL methods to enhance their performance.

Limitations and Future Work

The authors acknowledge that KnowSAM still faces difficulties in accurately segmenting tumors in regions with ambiguity and complex backgrounds, particularly when there are indistinct boundaries or significant differences between training and unseen data distributions. Future work could focus on developing adaptive methods to enhance segmentation accuracy on unseen datasets and further exploring techniques to handle ambiguous areas more effectively.

Summary updated

BibTeX
@article{huang2025learnable,
  author = {Kaiwen Huang and Tao Zhou and Huazhu Fu and Yizhe Zhang and Yi Zhou and Chen Gong and Dong Liang},
  title = {{Learnable Prompting SAM-Induced Knowledge Distillation for Semi-Supervised Medical Image Segmentation}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2025},
  doi = {10.1109/tmi.2025.3530097},
}
Figure