Contrastive Video-Language Segmentation

Chen Liang, Yawei Luo, Yu Wu, Yi YangarXiv 2021

Abstract

Video-Language Segmentation (VLS) is the challenging task of generating pixel-level masks for objects in video sequences based on natural language descriptions. Traditional approaches typically rely on implicit feature fusion, which often struggles to differentiate between the target object and semantically similar distractors in complex scenes. We introduce Contrastive Video-Language Segmentation (CVLS), a framework that shifts from implicit fusion to explicit cross-modal alignment. By incorporating contrastive learning and hard-instance mining, CVLS achieves state-of-the-art results on major benchmarks, demonstrating superior discriminative power and segmentation precision.

Introduction

The goal of Video-Language Segmentation is to bridge the gap between vision and language by identifying and masking specific actors or objects described in a query (e.g., "the man in the red shirt jumping"). Most existing methods utilize implicit fusion, where visual and linguistic features are combined through simple concatenation or attention mechanisms. However, this approach often acts as a generic saliency detector, failing when multiple similar objects are present. For instance, in a video with two people, a model might struggle to isolate the one "rolling on the mat" if it hasn't explicitly learned to separate referred objects from unreferred ones.

Methodology

CVLS addresses the limitations of implicit fusion through three core innovations designed for explicit cross-modal alignment:

  1. Contrastive Cross-modal Learning Module (CCLM): Unlike traditional mixing, CCLM employs a contrastive loss function. It maps the referred object and the linguistic query into a shared embedding space as a "positive pair," while treating background regions and other objects as "negative pairs." This forces the model to pull relevant features together and push irrelevant ones away.
  2. Language-relevant Channel Filter (LCF): To handle visual clutter, LCF uses linguistic features to dynamically weight visual channels. This process suppresses noise (like background textures) and highlights features critical for identifying the specific object described in the query.
  3. Relative Hard Instance Construction (RHIC): Contrastive learning can be ineffective if negative samples are too easy to distinguish (e.g., comparing a person to a clear sky). RHIC identifies "hard" pixels—those the model is currently misclassifying with high confidence—and prioritizes them during training to refine decision boundaries.
Overview of the CVLS framework highlighting the instance-level feature pool and contrastive learning mechanism.

Additionally, a Spatial Encoding Module (SEM) is used to inject 8-D coordinate features into visual maps, providing the model with a better understanding of spatial relationships.

Experimental Results

The CVLS model was evaluated on two primary benchmarks: A2D Sentences and J-HMDB Sentences.

On the A2D Sentences dataset, CVLS achieved an Overall IoU of 68.3%, surpassing the previous state-of-the-art (66.2%). Notably, the model showed a 27% relative improvement in high-precision metrics ([email protected]), indicating much sharper and more accurate mask boundaries. On the J-HMDB Sentences dataset, CVLS reached 66.1% Overall IoU, a significant increase over the previous best of 59.8%.

Qualitative comparison showing how CVLS (right) avoids the mask "bleeding" seen in traditional implicit fusion (left).

Qualitative analysis confirms that CVLS maintains clean, accurate masks on the referred target, whereas baseline models often "bleed" masks onto nearby similar objects. This success is attributed to the model's ability to explicitly discriminate between the target and distractors.

Conclusion

By moving from implicit feature fusion to explicit contrastive learning, CVLS sets a new standard for Video-Language Segmentation. The combination of contrastive alignment, linguistic filtering, and hard-instance mining allows the model to handle complex, crowded scenes with high precision. Future work may focus on reducing the computational overhead of hard-instance mining and improving temporal consistency for extremely long video sequences.

Summary updated

BibTeX
@misc{liang2021contrastive,
  author = {Chen Liang and Yawei Luo and Yu Wu and Yi Yang},
  title = {{Contrastive Video-Language Segmentation}},
  year = {2021},
  eprint = {2109.14131},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.14131},
}
Figure