Abstract
Video Camouflaged Object Detection (VCOD) is a challenging task where objects blend seamlessly into their surroundings, often becoming visible only through motion. While the Segment Anything Model (SAM) has revolutionized general image segmentation, it struggles with VCOD due to boundary ambiguity and a lack of temporal consistency. We propose SAM-PM, which introduces a lightweight, trainable Propagation Module (PM) to adapt SAM for video. By training fewer than 1 million parameters (<1% of SAM's total), SAM-PM achieves new state-of-the-art results on major benchmarks, effectively leveraging spatio-temporal cues to "break" camouflage.
Introduction
Camouflage is a sophisticated visual defense mechanism designed to deceive perception by matching the texture, color, and pattern of the background. In computer vision, VCOD aims to identify these hidden objects across video frames. Despite the success of foundation models like SAM, they face significant hurdles in this domain:
- Boundary Ambiguity: SAM is optimized for clear object boundaries, whereas camouflaged objects feature intentionally indistinct edges.
- Temporal Isolation: SAM processes frames independently, failing to capture the motion cues essential for detecting moving camouflaged animals.
- Texture Mimicry: High false-positive rates occur when static analysis cannot distinguish foreground from background textures.
Previous specialized architectures like SLT-Net attempted to address these issues but were often computationally expensive and difficult to optimize. SAM-PM addresses these gaps by using a parameter-efficient adapter approach.
The SAM-PM Framework
Instead of fine-tuning the massive SAM architecture, SAM-PM keeps the original weights frozen and inserts a specialized Propagation Module (PM). This module is designed to handle the temporal dynamics of video sequences while maintaining the spatial precision of the foundation model.
The Propagation Module consists of two core components:
- Temporal Fusion Mask Module (TFMM): This utilizes spatio-temporal cross-attention to compare the current frame's embedding against a memory bank of previous frames and their predicted masks. This mechanism allows the model to detect subtle pixel movements over time.
- Memory Prior Affinity Module (MPAM): This component refines the features generated by the TFMM, using memory priors to ensure that the predicted masks remain spatially and temporally logical across the sequence.
By focusing training only on these modules, the researchers achieved a highly efficient training process requiring less than 1% of the total network parameters.
Experimental Evaluation
Datasets and Benchmarks
The model was rigorously evaluated on three primary benchmarks:
- COD10K: 10,000 static camouflaged images used for initial pre-training.
- MoCA-Mask (Moving Camouflaged Animal): The primary VCOD benchmark featuring 87 video sequences with pixel-wise ground truth.
- CAD (Camouflaged Animal Dataset): 9 video sequences used for additional validation of robustness.
Key Results
SAM-PM significantly outperformed previous state-of-the-art (SOTA) models, including SLT-Net and the base SAM model. On the MoCA-Mask dataset, SAM-PM achieved an 82.31% gain in Weighted F-measure ($F_\beta^w$) and an 84.55% gain in mean IoU compared to SLT-Net. Similar improvements were observed on the CAD dataset, where it surpassed the previous SOTA by over 25% in $F_\beta^w$.
Discussion and Future Work
The success of SAM-PM highlights the potential of using foundation models as "frozen" backbones for niche tasks. By adding a specialized temporal adapter, the model can capture motion cues that are invisible to static analysis.
However, limitations remain. The reliance on the massive SAM image encoder introduces a computational bottleneck that limits real-time throughput. Additionally, the model occasionally struggles with very small targets. Future research may explore more sophisticated memory update strategies, such as contrastive learning, to improve performance in long-duration or highly complex video sequences.
Summary updated