Deeply Interleaved Two-Stream Encoder for Referring Video Segmentation

Guang Feng, Lihe Zhang, Zhiwei Hu, Huchuan LuarXiv 2022 · DOI

Abstract

Referring Video Segmentation (RVS) involves identifying and masking specific objects in video sequences based on natural language queries. Traditional methods often struggle with modality consistency and temporal coherence. We present a novel architecture featuring a Deeply Interleaved Two-Stream Encoder that facilitates bidirectional communication between linguistic and visual features. By employing Vision-Language Mutual Guidance (VLMG) and Language-Guided Multi-Scale Dynamic Filtering (LMDF), our model achieves state-of-the-art performance across major benchmarks, including A2D Sentences and Refer-YouTube-VOS.

Introduction

The task of Referring Video Segmentation requires a model to solve two primary challenges simultaneously: mapping abstract linguistic descriptions to specific pixels (Modality Consistency) and maintaining mask accuracy as objects move or occlusions occur (Temporal Coherence). Existing approaches typically fuse language at the decoder stage or provide only unidirectional guidance from language to vision, often failing to capture the hierarchical alignment between visual textures and linguistic concepts.

Methodology

Our proposed framework addresses these challenges through a deeply interleaved encoding process. The architecture consists of two core components:

Vision-Language Mutual Guidance (VLMG)

Unlike standard models that treat language as a static input, the VLMG module enables bidirectional communication. Utilizing a Transformer-based linguistic encoder and a CNN-based visual encoder, the system allows visual features to guide linguistic focus at multiple stages. These updated linguistic features are then projected back to refine visual representations. This iterative interleaving ensures that both modalities are aligned at every level of abstraction, from low-level edges to high-level semantic concepts.

Language-Guided Multi-Scale Dynamic Filtering (LMDF)

To ensure temporal coherence, the LMDF module uses the language query to generate position-specific, multi-scale dynamic filters. Rather than relying on query-agnostic temporal matching, the text query actively dictates which spatial-temporal features are prioritized. This allows the model to "filter" the current frame's features based on a reference frame more effectively, maintaining a stable mask even during complex object interactions.

The proposed architecture integrates Vision-Language Mutual Guidance (VLMG) and Language-Guided Multi-Scale Dynamic Filtering (LMDF) for robust referring video segmentation.

Experiments and Results

The model was evaluated on four primary RVS benchmarks: A2D Sentences, J-HMDB Sentences, Refer-DAVIS2017, and Refer-YouTube-VOS.

Quantitative Performance

On the A2D Sentences dataset, the model achieved an average absolute gain of over 5.5% across all metrics. Notably, at the strictest accuracy threshold ([email protected]), it improved performance from 9.8% to 15.1%. On Refer-DAVIS2017, the model reached a $\mathcal{J} \& \mathcal{F}$ score of 50.02, a significant improvement over the previous state-of-the-art of 44.12.

Qualitative Analysis

Visual results demonstrate the model's superior ability to maintain clean masks on objects during partial occlusions and when processing complex linguistic queries, such as identifying a specific person based on their attire and actions.

Qualitative results demonstrating the model's ability to maintain precise masks across video frames compared to ground truth (GT).

Key Insights

  • Hierarchical Alignment: By fusing modalities at multiple stages, the model captures fine-grained details that late-fusion models typically miss.
  • Language as a Temporal Anchor: The language query serves as a guide for temporal consistency, ensuring the model tracks the correct object rather than just matching pixels.
  • Computational Efficiency: The VLMG module calculates affinity between pixels and words ($HW \times T$), which is significantly more efficient than standard global pixel-to-pixel attention ($HW \times HW$).

Conclusion and Future Work

The Deeply Interleaved Two-Stream Encoder sets a new standard for Referring Video Segmentation by treating language and vision as mutually informative streams. While the model demonstrates high accuracy using backbones like ResNeSt, future work will focus on optimizing these interleaved modules for real-time performance on edge devices and robotics platforms.

Summary updated

BibTeX
@misc{feng2022deeply,
  author = {Guang Feng and Lihe Zhang and Zhiwei Hu and Huchuan Lu},
  title = {{Deeply Interleaved Two-Stream Encoder for Referring Video Segmentation}},
  year = {2022},
  eprint = {2203.15969},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.15969},
}
Figure