Skip to main content
QUICK REVIEW

[Paper Review] RefSAM: Efficiently Adapting Segmenting Anything Model for Referring Video Object Segmentation

Yonglin Li, Jing Zhang|arXiv (Cornell University)|Jul 3, 2023
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

This paper proposes RefSAM, the first end-to-end, SAM-based framework for referring video object segmentation (RVOS), which efficiently adapts the Segment Anything Model by integrating multi-modal (vision-language) and temporal (frame-wise) information through a lightweight Cross-Modal MLP, hierarchical dense attention, and an implicit tracking module. RefSAM achieves state-of-the-art performance on Ref-Youtube-VOS and Ref-DAVIS17, with 74.1% mIoU and 72.8% oIoU, while maintaining high inference speed (9.5 FPS with ViT-B).

ABSTRACT

The Segment Anything Model (SAM) has gained significant attention for its impressive performance in image segmentation. However, it lacks proficiency in referring video object segmentation (RVOS) due to the need for precise user-interactive prompts and a limited understanding of different modalities, such as language and vision. This paper presents the RefSAM model, which explores the potential of SAM for RVOS by incorporating multi-view information from diverse modalities and successive frames at different timestamps in an online manner. Our proposed approach adapts the original SAM model to enhance cross-modality learning by employing a lightweight Cross-Modal MLP that projects the text embedding of the referring expression into sparse and dense embeddings, serving as user-interactive prompts. Additionally, we have introduced the hierarchical dense attention module to fuse hierarchical visual semantic information with sparse embeddings to obtain fine-grained dense embeddings, and an implicit tracking module to generate a tracking token and provide historical information for the mask decoder. Furthermore, we employ a parameter-efficient tuning strategy to align and fuse the language and vision features effectively. Through comprehensive ablation studies, we demonstrate our model's practical and effective design choices. Extensive experiments conducted on Refer-Youtube-VOS, Ref-DAVIS17, and three referring image segmentation datasets validate the superiority and effectiveness of our RefSAM model over existing methods.

Motivation & Objective

  • To address the challenge of adapting the Segment Anything Model (SAM) to referring video object segmentation (RVOS), which requires zero-shot, end-to-end alignment between language and visual modalities without ground-truth masks in the first frame.
  • To overcome the limitations of existing SAM-based methods that rely on external object detectors (e.g., Grounding DINO) for first-frame bounding boxes, which introduce pipeline errors and reduce end-to-end capability.
  • To enable effective cross-modal understanding between language and vision in video by fusing hierarchical visual features with sparse text-guided prompts in a parameter-efficient manner.
  • To design a lightweight, efficient architecture that maintains high inference speed while achieving state-of-the-art performance on RVOS benchmarks.

Proposed method

  • Introduces a lightweight Cross-Modal MLP that projects text embeddings from a T5-3b encoder into sparse and dense prompts, replacing traditional point/bounding box prompts for language-guided segmentation.
  • Proposes a hierarchical dense attention module that fuses multi-scale visual features with sparse text-guided embeddings to generate fine-grained dense embeddings for accurate mask prediction.
  • Designs an implicit tracking module that generates a track token from the previous frame’s mask prediction to provide historical context for the mask decoder, enabling temporal consistency.
  • Employs a parameter-efficient tuning strategy (e.g., LoRA-style adaptation) to fine-tune only a small number of parameters, preserving SAM’s generalization while enabling cross-modal alignment.
  • Adapts the original SAM architecture by modifying the prompt encoder and mask decoder to accept both visual and language embeddings in an online, frame-by-frame inference setting.
  • Uses a ViT-based visual encoder (ViT-B/L/H) and a T5-3b text encoder, with joint training on video and referring image segmentation datasets to enhance zero-shot generalization.

Experimental results

Research questions

  • RQ1Can the Segment Anything Model (SAM) be effectively adapted to referring video object segmentation (RVOS) in an end-to-end, zero-shot manner without relying on external object detectors?
  • RQ2How can cross-modal alignment between language and visual features be enhanced in video segmentation when ground-truth masks are unavailable in the first frame?
  • RQ3What architectural components are most effective for fusing multi-scale visual features with language-guided sparse prompts to improve mask accuracy?
  • RQ4Can an implicit tracking mechanism improve temporal consistency and reduce error accumulation across video frames in an online segmentation setting?
  • RQ5To what extent does parameter-efficient fine-tuning preserve SAM’s generalization while enabling effective adaptation to RVOS?

Key findings

  • RefSAM achieves 74.1% mIoU on Ref-Youtube-VOS and 72.8% oIoU on Ref-DAVIS17, setting new state-of-the-art results on both benchmarks.
  • On referring image segmentation datasets (RefCOCO, RefCOCO+, G-Ref), RefSAM achieves 76.77% mIoU on RefCOCO and 70.14% on G-Ref, outperforming prior methods like LAVT and RefTR.
  • With a ViT-B backbone, RefSAM achieves 9.5 FPS inference speed, outperforming SAM-Track (1.5 FPS) and PerSAM (4.0 FPS), demonstrating high efficiency despite its enhanced capabilities.
  • The ablation study confirms that the hierarchical dense attention and implicit tracking modules each contribute significantly to performance, with the Cross-Modal MLP being essential for effective language prompting.
  • RefSAM uses only 6.7M parameters (with ViT-H), a fraction of the original SAM (641.1M), due to parameter-efficient tuning, proving its efficiency and scalability.
  • The model generalizes well to referring image segmentation tasks, achieving SOTA results on three standard datasets, demonstrating its versatility beyond video.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.