Prompt-Tuning SAM: From Generalist to Specialist with only 2048 Parameters and 16 Training Images
Not on the map. Why?
Abstract (arXiv)
The Segment Anything Model (SAM) is widely used for segmenting a diverse range of objects in natural images from simple user prompts like points or bounding boxes. However, SAM's performance decreases substantially when applied to non-natural domains like microscopic imaging. Furthermore, due to SAM's interactive design, it requires a precise prompt for each image and object, which is unfeasible in many automated biomedical applications. Previous solutions adapt SAM by training millions of parameters via fine-tuning large parts of the model or of adapter layers. In contrast, we show that as little as 2,048 additional parameters are sufficient for turning SAM into a use-case specialist for a certain downstream task. Our novel PTSAM (prompt-tuned SAM) method uses prompt-tuning, a parameter-efficient fine-tuning technique, to adapt SAM for a specific task. We validate the performance of our approach on multiple microscopic and one medical dataset. Our results show that prompt-tuning only SAM's mask decoder already leads to a performance on-par with state-of-the-art techniques while requiring roughly 2,000x less trainable parameters. For addressing domain gaps, we find that additionally prompt-tuning SAM's image encoder is beneficial, further improving segmentation accuracy by up to 18% over state-of-the-art results. Since PTSAM can be reliably trained with as little as 16 annotated images, we find it particularly helpful for applications with limited training data and domain shifts.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 44 of its 69 references that are in the map. First posted on arXiv 23 Apr 2025.
Builds on
44 of 69 references.
References · 44
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
- 2023GPT-4 Technical Reportcited by 18,132
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Segment Anythingcited by 8,158
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2017Mask R-CNNcited by 7,259
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
32 more
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2022Visual Prompt Tuningcited by 1,674
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2024Depth Anything: Unleashing the Power of Large-Scale Unlabeled Datacited by 1,346
- 2021UNETR: Transformers for 3D Medical Image Segmentationcited by 954
- 2022Swin UNETR: Swin Transformers for Semantic Segmentation of Brain Tumors in MRI Imagescited by 823
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 723
- 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
- 2019Kvasir-SEG: A Segmented Polyp Datasetcited by 588
- 2013DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognitioncited by 422
- 2018nnU-Net: Self-adapting Framework for U-Net-Based Medical Image Segmentationcited by 291
- 2023Customized Segment Anything Model for Medical Image Segmentationcited by 277
- 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 227
- 2023Segment Anything in Medical Imagescited by 226
- 2020AdapterDrop: On the Efficiency of Adapters in Transformerscited by 223
- 2023Segment Anything Model (SAM) for Digital Pathology: Assess Zero-shot Segmentation on Whole Slide Imagingcited by 161
- 2020Exploring Versatile Generative Language Model Via Parameter-Efficient Transfer Learningcited by 139
- 2023Segment Anything Is Not Always Perfect: An Investigation of SAM on Different Real-world Applicationscited by 121
- 2022Three things everyone should know about Vision Transformerscited by 90
- 2023UniverSeg: Universal Medical Image Segmentationcited by 90
- 2023How to Efficiently Adapt Large Segmentation Model(SAM) to Medical Imagescited by 53
- 2023Strong Baselines for Parameter Efficient Few-Shot Fine-tuningcited by 36
- 2023Self-Prompting Large Vision Models for Few-Shot Medical Image Segmentationcited by 35
- 2020TinyTL: Reduce Activations, Not Trainable Parameters for Efficient On-Device Learningcited by 32
- 2024Segment Any Cell: A SAM-based Auto-prompting Fine-tuning Framework for Nuclei Segmentationcited by 24
- 2024CellSeg1: Robust Cell Segmentation with One Training Imagecited by 6
- 2024Going Beyond U-Net: Assessing Vision Transformers for Semantic Segmentation in Microscopy Image Analysiscited by 1
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026When Adaptation Hurts: Connecting Representational Drift to OOD Failures in MedSAM Fine-Tuningcited by 1
- 2026From Boundaries to Semantics: Prompt-Guided Multi-Task Learning for Petrographic Thin-section Segmentationcited by 0
- 2026Evaluating Semantic and Spatial Guidance for Foundation Model Segmentation of Small-Scale PV in Remote Sensing Imagerycited by 0
- 2026When Adaptation Hurts: Connecting Representational Drift to OOD Failures in MedSAM Fine-Tuning21 Aug 2026
- 2026Evaluating Semantic and Spatial Guidance for Foundation Model Segmentation of Small-Scale PV in Remote Sensing Imagery11 Aug 2026
- 2026From Boundaries to Semantics: Prompt-Guided Multi-Task Learning for Petrographic Thin-section Segmentation16 Apr 2026