[Paper Review] CAT-SAM: Conditional Tuning for Few-Shot Adaptation of Segment Anything Model
CAT-SAM introduces a conditional tuning network that enables few-shot adaptation of the Segment Anything Model (SAM) to unconventional image domains—such as medical, aerial, and non-RGB images—by jointly fine-tuning SAM’s image encoder and mask decoder via a prompt bridge structure. The method achieves state-of-the-art performance on 11 diverse datasets even with only one-shot annotations, significantly improving segmentation accuracy while preserving SAM’s zero-shot capabilities.
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
Motivation & Objective
- To address SAM’s poor performance on unconventional images such as medical, aerial, X-ray, SAR, and Sonar images due to distribution shift.
- To enable effective and data-efficient adaptation of SAM using only a few annotated target samples, especially in one-shot scenarios.
- To mitigate tuning imbalance between SAM’s heavy image encoder and lightweight mask decoder during fine-tuning.
- To preserve SAM’s zero-shot generalization while enhancing domain-specific segmentation performance through conditional joint tuning.
- To develop a plug-and-play adaptation framework compatible with multiple tuning strategies for broad applicability.
Proposed method
- Introduces a prompt bridge structure that maps the mask decoder’s prompt tokens to the image encoder, enabling decoder-conditioned joint tuning.
- Freezes the entire original SAM and adds only a small number of learnable parameters to both the image encoder and mask decoder.
- Develops two variants: CAT-SAM-T (prompt tuning with learnable input tokens) and CAT-SAM-A (adapter-based tuning with lightweight networks).
- Uses the prompt bridge to enable mutual adaptation between the image encoder and mask decoder, improving feature alignment and performance.
- Applies the same geometric prompts (points, boxes, masks) as SAM, preserving its flexible prompting interface.
- Employs a lightweight MLP head and prompt injection mechanism to adapt the mask decoder while keeping the original architecture intact.
Experimental results
Research questions
- RQ1Can a conditional tuning mechanism effectively mitigate the tuning imbalance between SAM’s heavy image encoder and lightweight mask decoder in few-shot adaptation?
- RQ2Does joint tuning via a prompt bridge lead to improved segmentation performance on unconventional image domains such as medical and SAR images?
- RQ3How does CAT-SAM perform under extreme data scarcity, such as one-shot adaptation, across diverse segmentation tasks?
- RQ4Can the prompt bridge structure be effectively integrated into both prompt-tuning and adapter-based tuning strategies?
- RQ5To what extent does CAT-SAM preserve SAM’s zero-shot generalization while adapting to new domains?
Key findings
- CAT-SAM achieves superior segmentation performance on 11 unconventional datasets, including aerial, medical, X-ray, SAR, and Sonar images, even with only one-shot training data.
- Both CAT-SAM variants (CAT-SAM-T and CAT-SAM-A) consistently outperform standard SAM and prior fine-tuning baselines across all evaluated tasks.
- On the JSRT dataset (X-ray chest organs), CAT-SAM achieves a 1.4% and 2.0% improvement with one-shot and full-shot adaptation, respectively.
- In ship instance segmentation on HRSID (SAR images), CAT-SAM significantly outperforms SAM, demonstrating effectiveness on small-object and low-contrast domains.
- On the challenging FLS dataset (Sonar marine debris), performance gains are lower due to high class diversity and object size variation, highlighting domain-specific adaptation limits.
- Visual comparisons show CAT-SAM produces higher-quality masks than SAM, even when prompted with a single point, confirming robustness and generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.