Exploring Pre-trained Text-to-Video Diffusion Models for Referring Video Object Segmentation

Zixin Zhu, Xuelu Feng, Dongdong Chen, Junsong Yuan, Chunming Qiao, Gang Hua

Introduction

Referring Video Object Segmentation (R-VOS) is a challenging task that requires identifying and segmenting a specific object throughout a video sequence based on a natural language description. The primary difficulties involve maintaining temporal consistency—ensuring the segmentation mask remains stable despite changes in lighting, occlusion, or camera angles—and achieving precise semantic alignment between the visual features and the linguistic cues.

Traditional R-VOS frameworks typically rely on discriminative backbones, such as Video Swin Transformers, which are pre-trained on classification tasks. However, these models often suffer from temporal jitter, as their internal representations can fluctuate significantly between consecutive frames. This paper introduces VD-IT, a novel framework that repurposes pre-trained text-to-video (T2V) diffusion models as powerful feature extractors, leveraging their inherent "video priors" to achieve superior temporal coherence and semantic understanding.

Methodology: The VD-IT Framework

VD-IT is built upon a frozen, pre-trained ModelScopeT2V diffusion model. The core idea is that a model capable of generating high-quality, temporally consistent videos must already possess a deep understanding of video structure and semantics. To adapt this generative power for the discriminative task of segmentation, the authors introduced three critical components:

The VD-IT architecture integrates a frozen T2V diffusion UNet with text-guided projection and a mask prediction head.
  1. Text-Guided Image Projection: Instead of simple concatenation, VD-IT employs a cross-attention mechanism where the referring text serves as a "query" to interact with visual tokens from video frames. This creates a hybrid prompt that focuses the model on the target object while preserving fine-grained spatial details.
  2. Video-Specific Noise Prediction: To maintain feature fidelity during the diffusion process, VD-IT replaces standard Gaussian noise with a module that predicts "video-correlated" noise, reducing the blurring effect typically associated with pure denoising.
  3. Mask Prediction Head: Features extracted from the diffusion U-Net are processed by a Deformable Transformer encoder-decoder, which generates instance queries and fuses them with visual features to produce high-resolution segmentation masks.

Key Insights: Generative vs. Discriminative Priors

A central finding of this research is that generative features are significantly more stable over time than their discriminative counterparts. By applying K-Means clustering to the extracted features, the authors demonstrated that VD-IT's representations remain consistent across frames even under varying environmental conditions.

Visualization of feature stability: VD-IT maintains consistent semantic regions across frames compared to the fluctuating features of Video Swin Transformers.

The study also highlights the importance of the "Text-Guided" aspect. While using only image tokens (VD-I) provides detail but loses the specific object, and using only text (VD-T) identifies the object but lacks spatial precision, the combined VD-IT approach achieves the optimal balance of accuracy and detail. Furthermore, because diffusion models are trained to denoise, they exhibit inherent robustness to motion blur and illumination shifts.

Experimental Results

VD-IT was evaluated on four major R-VOS benchmarks, achieving state-of-the-art performance:

  • Ref-Youtube-VOS: Achieved a 64.8 $\mathcal{J}\&\mathcal{F}$ score, outperforming previous leaders like SgMg. With RefCOCO pre-training, this improved to 66.5.
  • Ref-DAVIS17: Reached 69.4 $\mathcal{J}\&\mathcal{F}$ (with pre-training), marking a significant advancement.
  • A2D-Sentences: Attained 61.4 mAP, surpassing the previous state-of-the-art by 2.9 points.

Qualitative results confirm that VD-IT handles complex scenarios—such as multiple similar objects or rapid motion—with much smoother temporal transitions and sharper boundaries than traditional methods.

Conclusion and Future Work

VD-IT demonstrates that the knowledge embedded in generative text-to-video models can be effectively "probed" for complex video understanding tasks. While the current implementation runs at 21 FPS (slower than some purely discriminative models), the gains in accuracy and temporal stability are substantial. Future research may explore parameter-efficient fine-tuning (PEFT) of the diffusion backbone or extending this generative-prior approach to other domains like action recognition and depth estimation.

Summary updated

BibTeX
@inproceedings{zhu2024exploring,
  author = {Zixin Zhu and Xuelu Feng and Dongdong Chen and Junsong Yuan and Chunming Qiao and Gang Hua},
  title = {{Exploring Pre-trained Text-to-Video Diffusion Models for Referring Video Object Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73254-6\_26},
}
Figure