Abstract
Recent advances in generative AI have produced powerful image diffusion models. This research explores their utility as "zero-shot" engines for Video Object Segmentation (VOS). By identifying optimal layers and timesteps for feature extraction and introducing a motion-based Magnitude Filter (MAG-Filter), the proposed framework achieves state-of-the-art zero-shot performance on DAVIS-17 and MOSE benchmarks without any video-specific training or segmentation labels.
Introduction
Video Object Segmentation (VOS) involves tracking and masking objects throughout a video sequence, typically starting from a user-provided mask in the first frame. Traditional supervised methods rely on expensive, manually annotated datasets. This paper investigates whether the deep semantic understanding inherent in pre-trained diffusion models, such as Stable Diffusion and the Ablated Diffusion Model (ADM), can be leveraged for precise pixel-level tracking in a zero-shot manner. The authors tackle the challenge of identifying which internal layers to tap into and how to ensure the model remains robust against background noise.
Methodology
The framework treats a pre-trained diffusion model as a frozen feature extractor. The core approach consists of three main pillars: feature selection, motion filtering, and prompt optimization.
Feature Extraction and Selection
The authors conducted a systematic study to determine the most effective internal representations for tracking. They found that features from the later decoder layers of the U-Net, extracted at low noise levels (e.g., $t=100$ or $200$), provide the best balance of semantic richness and spatial precision. Adding a small amount of noise helps the model "activate" its most useful internal representations for tracking.
MAG-Filter (Magnitude Filter)
To address erroneous pixel correspondences—where a foreground pixel is incorrectly matched to a distant background area—the researchers introduced the MAG-Filter. This filter discards matches that result in high-magnitude motion vectors, adhering to the physical constraint that objects generally move smoothly between frames. This simple heuristic significantly improves the accuracy of mask propagation.
Prompt Learning
For text-conditioned models like Stable Diffusion, the authors developed a prompt-learning strategy. Instead of using natural language descriptions, they optimize a "learnable token" (embedding) such that the model's internal cross-attention maps align with the initial object mask. This process "specializes" the frozen model to the specific object of interest in the first frame.
Experimental Results
The method was evaluated on the DAVIS-17 and MOSE datasets, comparing models pre-trained on ImageNet (ADM) versus those trained on LAION-5B (Stable Diffusion).
Key Findings
- Model Comparison: Surprisingly, the ADM model (trained on ImageNet) outperformed the larger Stable Diffusion. This suggests that the object-centric bias of ImageNet is more beneficial for segmentation than the broader, noisier LAION dataset.
- Performance: The ADM + MAG-Filter configuration achieved a 76.8% $\mathcal{J}\&\mathcal{F}$ score on DAVIS-17, setting a new state-of-the-art for zero-shot diffusion-based methods.
- Robustness: On the challenging MOSE dataset, which features heavy occlusions and complex scenes, the method reached 34.9% $\mathcal{J}\&\mathcal{F}$.
- Prompt Impact: Prompt learning improved Stable Diffusion 2.1's performance from 69.8% to 70.5%, demonstrating the value of object-specific tuning.
Conclusion and Future Work
This study demonstrates that diffusion models are potent zero-shot feature extractors for VOS, performing on par with models trained on specialized segmentation datasets. While the current approach achieves high accuracy, it faces challenges regarding inference speed due to the large U-Net architecture and the latency of test-time prompt optimization. Future work will focus on integrating more sophisticated temporal memory mechanisms and improving the efficiency of the optimization process.
Summary updated