Lune

ICML2025Top-tier venue

Unlocking the Power of SAM 2 for Few-Shot Segmentation

Qianxiong Xu, Lanyun Zhu, Xuanyi Liu, Guosheng Lin, Cheng Long, Ziyue Li, Rui Zhao

Abstract

Few-Shot Segmentation (FSS) aims to learn classagnostic segmentation on few classes to segment arbitrary classes, but at the risk of overfitting. To address this, some methods use the well-learned knowledge of foundation models (e.g., SAM) to simplify the learning process. Recently, SAM 2 has extended SAM by supporting video segmentation, whose class-agnostic matching ability is useful to FSS. A simple idea is to encode support foreground (FG) features as memory, with which query FG features are matched and fused. Unfortunately, the FG objects in different frames of SAM 2's video data are always the same identity, while those in FSS are different identities, i.e., the matching step is incompatible. Therefore, we design Pseudo Prompt Generator to encode pseudo query memory, matching with query features in a compatible way. However, the memories can never be as accurate as the real ones, i.e., they are likely to contain incomplete query FG, and some unexpected query background (BG) features, leading to wrong segmentation. Hence, we further design Iterative Memory Refinement to fuse more query FG features into the memory, and devise a Support-Calibrated Memory Attention to suppress the unexpected query BG features in memory. Extensive experiments have been conducted on PASCAL-5 i and COCO-20 i to validate the effectiveness of our design, e.g., the 1-shot mIoU can be 4.2% better than the best baseline.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Few-Shot Segmentation via Cycle-Consistent Transformer cites Pyramid Graph Networks With Connection Attentions for Region-Based One-Shot Semantic Segmentation
  • Few-Shot Segmentation via Cycle-Consistent Transformer cites PANet: Few-Shot Image Semantic Segmentation With Prototype Alignment
  • Few-Shot Segmentation via Cycle-Consistent Transformer cites Feature Weighting and Boosting for Few-Shot Segmentation
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on18

  1. Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
  2. PANet: Few-Shot Image Semantic Segmentation With Prototype AlignmentKaixin Wang, Jun Hao Liew, Yingtian Zou, Daquan Zhou et al.ICCV 2019 · 1,404 citations
  3. Feature Weighting and Boosting for Few-Shot SegmentationKhoi Nguyen, Sinisa TodorovicICCV 2019 · 402 citations
  4. Pyramid Graph Networks With Connection Attentions for Region-Based One-Shot Semantic SegmentationChi Zhang, Guosheng Lin, Fayao Liu, Jiushuang Guo et al.ICCV 2019 · 351 citations
  5. Few-Shot Segmentation via Cycle-Consistent TransformerGengwei Zhang, Guoliang Kang, Yi Yang, Yunchao WeiNeurIPS 2021 · 282 citations

Related papers

  1. Foreground-Covering Prototype Generation and Matching for SAM-Aided Few-Shot SegmentationSuho Park, SuBeen Lee, Hyun Seok Seong, Jaejoon Yoo et al.AAAI 2025 · 9 citations
  2. Self-Calibrated Cross Attention Network for Few-Shot SegmentationQianxiong Xu, Wenting Zhao, Guosheng Lin, Cheng LongICCV 2023 · 76 citations
  3. APSeg: Auto-Prompt Network for Cross-Domain Few-Shot Semantic SegmentationWeizhao He, Yang Zhang, Wei Zhuo, Linlin Shen et al.CVPR 2024
  4. MM-Prompt: Multi-modality and Multi-granularity Prompts for Few-Shot SegmentationHang Xiong, Runmin Cong, Jinpeng Chen, Chen Zhang et al.ACM MM 2025
  5. Learning Meta-class Memory for Few-Shot Semantic SegmentationZhonghua Wu, Xiangxi Shi, Guosheng Lin, Jianfei CaiICCV 2021 · 128 citations
Dusk over the sea between two cliffs drawn in fine vertical lines