PGP-SAM: Prototype-Guided Prompt Learning for Efficient Few-Shot Medical Image Segmentation

Zhonghao Yan, Zijin Yin, Tianyu Lin, Xiangzhu Zeng, Kongming Liang +1 more
1/12/2025
cs.CVcs.AI

No official code found. Best implementation: PRIS-CV/PGP-SAM (4 stars, Apache-2.0, last commit 2026-03-20).

Abstract

The Segment Anything Model (SAM) has demonstrated strong and versatile segmentation capabilities, along with intuitive prompt-based interactions. However, customizing SAM for medical image segmentation requires massive amounts of pixel-level annotations and precise point- or box-based prompt designs. To address these challenges, we introduce PGP-SAM, a novel prototype-based few-shot tuning approach that uses limited samples to replace tedious manual prompts. Our key idea is to leverage inter- and intra-class prototypes to capture class-specific knowledge and relationships. We propose two main components: (1) a plug-and-play contextual modulation module that integrates multi-scale information, and (2) a class-guided cross-attention mechanism that fuses prototypes and features for automatic prompt generation. Experiments on a public multi-organ dataset and a private ventricle dataset demonstrate that PGP-SAM achieves superior mean Dice scores compared with existing prompt-free SAM variants, while using only 10\% of the 2D slices.

View on arXivView PDF

Code Implementations(1)

PRIS-CV/PGP-SAMCommunity75%
Apache-2.0

[ISBI 2025] The official code for "PGP-SAM: Prototype-Guided Prompt Learning for Efficient Few-Shot Medical Image Segmentation"

41Shell, PythonJan 23, 20257 months agoApache-2.0

Similar Papers

Cite this paper

@article{yan2025pgpsam,
  title  = {PGP-SAM: Prototype-Guided Prompt Learning for Efficient Few-Shot Medical Image Segmentation},
  author = {Zhonghao Yan and Zijin Yin and Tianyu Lin and Xiangzhu Zeng and Kongming Liang and Zhanyu Ma},
  year   = {2025},
  eprint = {2501.06692},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.06692v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.06692.svg)](https://codeofpaper.com/paper/2501.06692)

Discussion