CAT-SAM: Conditional Tuning for Few-Shot Adaptation of Segment Anything Model

Aoran Xiao, Weihao Xuan, Heli Qi, Yun Xing, Ruijie Ren +3 more
2/14/2026

No official code found. Best implementation: weihao1115/cat-sam (138 stars, MIT, last commit 2024-09-01).

Abstract

The recent Segment Anything Model (SAM) has demonstrated remarkable zero-shot capability and flexible geometric prompting in general image segmentation. However, SAM often struggles when handling various unconventional images, such as aerial, medical, and non-RGB images. This paper presents CAT-SAM, a ConditionAl Tuning network that adapts SAM toward various unconventional target tasks with just few-shot target samples. CAT-SAM freezes the entire SAM and adapts its mask decoder and image encoder simultaneously with a small number of learnable parameters. The core design is a prompt bridge structure that enables decoder-conditioned joint tuning of the heavyweight image encoder and the lightweight mask decoder. The bridging maps the prompt token of the mask decoder to the image encoder, fostering synergic adaptation of the encoder and the decoder with mutual benefits. We develop two representative tuning strategies for the image encoder which leads to two CAT-SAM variants: one injecting learnable prompt tokens in the input space and the other inserting lightweight adapter networks. Extensive experiments over 11 unconventional tasks show that both CAT-SAM variants achieve superior target segmentation performance consistently even under the very challenging one-shot adaptation setup. Project page: https://xiaoaoran.github.io/projects/CAT-SAM

View on arXivView PDF

Code Implementations(1)

weihao1115/cat-samCommunity100%
MIT

[ECCV 2024 Oral] The official implementation of "CAT-SAM: Conditional Tuning for Few-Shot Adaptation of Segment Anything Model".

13811PythonFeb 7, 20242 years agoMIT

Similar Papers

Cite this paper

@article{xiao2026catsam,
  title  = {CAT-SAM: Conditional Tuning for Few-Shot Adaptation of Segment Anything Model},
  author = {Aoran Xiao and Weihao Xuan and Heli Qi and Yun Xing and Ruijie Ren and Xiaoqin Zhang and Ling Shao and Shijian Lu},
  year   = {2026},
  eprint = {2402.03631},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.03631},
  journal = {ECCV 2024 2024}
}

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/2402.03631.svg)](https://codeofpaper.com/paper/2402.03631)

Discussion