Abstract
SAMWISE is a lightweight adapter-based framework that enables the Segment Anything Model 2 (SAM2) to perform high-performance Referring Video Object Segmentation (RVOS). By introducing fewer than 5 million trainable parameters, SAMWISE addresses SAM2's inherent limitations in text grounding and tracking bias. This allows for dynamic target switching and sophisticated motion reasoning in a streaming fashion, achieving state-of-the-art results across major benchmarks.
Introduction
Referring Video Object Segmentation (RVOS) is the task of tracking and segmenting a specific object in a video based on a natural language description, such as "the cyclist in red that overtakes others." While the Segment Anything Model 2 (SAM2) has set new standards for video tracking, it lacks native support for semantic language prompts and suffers from a "tracking bias." Once SAM2 begins tracking an object, its temporal memory makes it "stubborn," often refusing to switch focus even if a better match for the text query appears later in the sequence.
The Challenge: Overcoming Tracking Bias
Existing RVOS solutions often rely on "offline" processing, which examines the entire video at once. This approach is computationally expensive and unsuitable for real-time applications. SAMWISE aims to maintain SAM2's efficient, streaming-capable architecture while infusing it with the "wisdom" to understand text and correct its own tracking errors.
As shown in the figure above, SAMWISE can identify when a target is initially absent and then dynamically switch focus ("learnable correction") once the correct object—matching both the visual description and the motion reasoning—enters the frame.
Methodology: CMT and CME
The SAMWISE architecture keeps the massive SAM2 and Text Encoder weights frozen, adding only a small set of trainable modules:
- Cross-Modal Temporal (CMT) Adapter: Injected into every layer of the encoders, these adapters use Hierarchical Selective Attention (HSA) to model local spatio-temporal pixel movement and align visual features with the text query.
- Conditional Memory Encoder (CME): This is the core "wisdom" component. It acts as a sanity check, comparing the currently tracked object against memory-less features of the current frame. If a new object matches the text query significantly better, the CME triggers a "refocus," breaking the model's tracking bias.
- Prompting Strategy: SAMWISE projects both contextual (subject-related) and motion-related (verb-related) cues into the SAM2 mask decoder, enhancing its ability to follow complex instructions.
Experimental Results
SAMWISE was evaluated on three major RVOS benchmarks: MeViS (complex motion), Ref-Youtube-VOS (standard large-scale), and Ref-DAVIS17 (high-quality generalization).
The model achieved state-of-the-art (SOTA) results, notably outperforming much larger Large Vision-Language Models (LVLMs):
- MeViS: 49.5 J&F
- Ref-Youtube-VOS: 69.2 J&F
- Ref-DAVIS17: 70.6 J&F
Remarkably, SAMWISE achieves these results by training only ~2% of the total parameters (less than 5M), making it significantly more efficient than previous SOTA models like DsHmp.
Conclusion
SAMWISE demonstrates that high-performance RVOS does not require fine-tuning multi-billion parameter models. By strategically adding lightweight adapters to SAM2, researchers can overcome tracking bias and provide the model with the semantic grounding necessary for complex, text-driven video tasks. Future work will look toward integrating deeper world knowledge to handle even more abstract reasoning queries.
Summary updated