SAM-IF: Leveraging SAM for Incremental Few-Shot Instance Segmentation
Xudong Zhou, Wenhao He
TL;DR
SAM-IF presents a novel approach to class-agnostic instance segmentation by fine-tuning SAM2 with a multi-class background-aware classifier and a cosine-similarity-based head for few-shot adaptation. It enables incremental learning by updating only classifier weights for novel categories, avoiding decoder retraining. Evaluated on COCO2014 with a 60/20 base/novel split in a 1-shot setting, the method achieves competitive generalization relative to prior FSIS approaches, while addressing background suppression and foreground focus through erosion and targeted sampling. The work demonstrates practical implications for dynamic environments where new object categories must be incorporated with minimal labeled data and computational overhead. Future work targets richer prompts, optimized classifier training, and reduced reliance on SAM embeddings to further boost robustness and accuracy in challenging scenes.
Abstract
We propose SAM-IF, a novel method for incremental few-shot instance segmentation leveraging the Segment Anything Model (SAM). SAM-IF addresses the challenges of class-agnostic instance segmentation by introducing a multi-class classifier and fine-tuning SAM to focus on specific target objects. To enhance few-shot learning capabilities, SAM-IF employs a cosine-similarity-based classifier, enabling efficient adaptation to novel classes with minimal data. Additionally, SAM-IF supports incremental learning by updating classifier weights without retraining the decoder. Our method achieves competitive but more reasonable results compared to existing approaches, particularly in scenarios requiring specific object segmentation with limited labeled data.
