mlsanityData to 7 Oct 2026

Prompt-Tuning SAM: From Generalist to Specialist with only 2048 Parameters and 16 Training Images

arXiv 2504.16739 ↗First posted 23 Apr 2025cs.CVcited by 3

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  7. 2023GPT-4 Technical Reportcited by 18,132
  8. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  9. 2023Segment Anythingcited by 8,158
  10. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  11. 2017Mask R-CNNcited by 7,259
  12. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
32 more
  1. 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,845
  2. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  3. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  4. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  5. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  6. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
  7. 2022Visual Prompt Tuningcited by 1,674
  8. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  9. 2024Depth Anything: Unleashing the Power of Large-Scale Unlabeled Datacited by 1,346
  10. 2021UNETR: Transformers for 3D Medical Image Segmentationcited by 954
  11. 2022Swin UNETR: Swin Transformers for Semantic Segmentation of Brain Tumors in MRI Imagescited by 823
  12. 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 723
  13. 2024Parameter-Efficient Fine-Tuning for Large Models: A Comprehensive Surveycited by 641
  14. 2019Kvasir-SEG: A Segmented Polyp Datasetcited by 588
  15. 2013DeCAF: A Deep Convolutional Activation Feature for Generic Visual Recognitioncited by 422
  16. 2018nnU-Net: Self-adapting Framework for U-Net-Based Medical Image Segmentationcited by 291
  17. 2023Customized Segment Anything Model for Medical Image Segmentationcited by 277
  18. 2023Parameter-Efficient Fine-Tuning Methods for Pretrained Language Models: A Critical Review and Assessmentcited by 227
  19. 2023Segment Anything in Medical Imagescited by 226
  20. 2020AdapterDrop: On the Efficiency of Adapters in Transformerscited by 223
  21. 2023Segment Anything Model (SAM) for Digital Pathology: Assess Zero-shot Segmentation on Whole Slide Imagingcited by 161
  22. 2020Exploring Versatile Generative Language Model Via Parameter-Efficient Transfer Learningcited by 139
  23. 2023Segment Anything Is Not Always Perfect: An Investigation of SAM on Different Real-world Applicationscited by 121
  24. 2022Three things everyone should know about Vision Transformerscited by 90
  25. 2023UniverSeg: Universal Medical Image Segmentationcited by 90
  26. 2023How to Efficiently Adapt Large Segmentation Model(SAM) to Medical Imagescited by 53
  27. 2023Strong Baselines for Parameter Efficient Few-Shot Fine-tuningcited by 36
  28. 2023Self-Prompting Large Vision Models for Few-Shot Medical Image Segmentationcited by 35
  29. 2020TinyTL: Reduce Activations, Not Trainable Parameters for Efficient On-Device Learningcited by 32
  30. 2024Segment Any Cell: A SAM-based Auto-prompting Fine-tuning Framework for Nuclei Segmentationcited by 24
  31. 2024CellSeg1: Robust Cell Segmentation with One Training Imagecited by 6
  32. 2024Going Beyond U-Net: Assessing Vision Transformers for Semantic Segmentation in Microscopy Image Analysiscited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.