Abstract
This study evaluates Meta’s Segment Anything Model 2 (SAM2) for the task of Video Semantic Segmentation (VSS). While SAM2 has established new benchmarks in class-agnostic Video Object Segmentation (VOS), its application to dense semantic labeling remains challenging. We investigate two integration strategies: utilizing SAM2 as a high-precision boundary refiner and as a standalone semantic segmentor. Our findings reveal that while SAM2’s internal features lack the category-specific discrimination required for standalone VSS, the model serves as an exceptional refiner, significantly boosting boundary accuracy and temporal consistency for existing semantic models.
Introduction
Video Semantic Segmentation (VSS) requires models to categorize every pixel in a video sequence while ensuring spatial precision and temporal coherence. Traditional VSS models often struggle with "bloppy" boundaries and flickering predictions across frames. Meta’s SAM2 offers powerful spatial and temporal priors, yet it is inherently class-agnostic—it identifies where an object is without knowing what it is. This research explores whether SAM2’s architectural strengths can be harvested to overcome the limitations of current VSS frameworks.
Methodology
SAM2 as a Refiner
The primary strategy involves using SAM2 to post-process the output of standard VSS models (e.g., CFFM or Segformer). In this pipeline, the VSS model generates initial semantic maps while SAM2 concurrently produces class-agnostic "masklets" based on objectness. An Aggregator module then performs a majority vote: for each masklet defined by SAM2, it assigns the semantic label most frequently predicted by the VSS model within that specific boundary. This process leverages SAM2’s superior edge detection to "snap" noisy semantic predictions to physical object limits.
SAM2 as a Standalone Segmentor (I-SAM2)
We also tested a standalone configuration where feature vectors are extracted from SAM2’s image encoder and fed into a simple Multi-Layer Perceptron (MLP) classifier. To handle background regions that SAM2 might overlook, a base model is integrated to provide a complete segmentation map.
Experimental Results
Quantitative Performance
The refinement approach yielded substantial improvements across multiple benchmarks, particularly in edge accuracy. On the VSPW dataset, adding SAM2 to the TV3S model (MiT-B5 backbone) increased the mean Boundary IoU (mBIoU) from 32.9 to 38.1. Temporal consistency, measured by mVC scores, also saw consistent gains, demonstrating the efficacy of SAM2’s 32-frame memory window.
The Semantic Gap
In contrast to the refiner's success, the standalone I-SAM2 model performed poorly, achieving an mIoU of only 18.03 on VSPW. This confirms that SAM2’s features are optimized for "objectness" and spatial coherence rather than the latent discriminative signals needed to distinguish between similar semantic categories like "road" and "sidewalk."
Discussion and Conclusion
SAM2 represents a significant advancement for VSS, not as a replacement for semantic encoders, but as a powerful geometric and temporal prior. Its ability to delineate complex boundaries and maintain object identity over time addresses two of the most persistent challenges in the field.
However, the computational cost remains a hurdle; the refinement process currently operates between 1.1 and 3.5 FPS, making it more suitable for high-quality offline processing than real-time use. Future research should focus on parameter-efficient fine-tuning (PEFT) to bridge the semantic gap within SAM2's encoder and developing learnable fusion modules to integrate spatial and semantic features more efficiently.
Summary updated