CLIP-VIS: Adapting CLIP for Open-Vocabulary Video Instance Segmentation

Wenqi Zhu, Jiale Cao, Jin Xie, Shuangming Yang, Yanwei Pang

Here is a concise, engaging summary of the paper "CLIP-VIS: Adapting CLIP for Open-Vocabulary Video Instance Segmentation".

TL;DR

CLIP-VIS adapts the frozen Contrastive Language-Image Pre-training (CLIP) model for open-vocabulary video instance segmentation (VIS) without requiring category or identity annotations during training. By introducing class-agnostic mask generation, a novel temporal topK-enhanced matching strategy, and a weighted classification mechanism, it achieves state-of-the-art performance on novel object categories while maintaining real-time inference speeds.

What Problem Does This Paper Address?

Traditional Video Instance Segmentation (VIS) algorithms are designed for a "closed-world" assumption: they can only detect, segment, and track object categories that were explicitly present in their training data. This severely limits their utility in real-world, dynamic environments filled with unseen objects.

To achieve "open-vocabulary" VIS, recent methods have tried incorporating vision-language models like CLIP. However, existing approaches suffer from two main flaws:

  1. Overfitting & Redundancy: Some methods (like OV2Seg) map trainable network features directly to frozen CLIP text embeddings, causing the model to overfit the training categories and lose zero-shot generalization. Others (like OpenVIS) use two entirely separate, redundant networks for mask generation and classification.
  2. Suboptimal Tracking: Tracking objects across frames typically relies on either matching only the adjacent previous frame (which easily propagates errors if an object is briefly occluded) or matching against all historical frames (which accumulates noise and slows down inference).

Methods

CLIP-VIS introduces a simple, online encoder-decoder architecture based on Mask2Former, but replaces the standard backbone with a single frozen CLIP image encoder (with the final pooling layer removed to preserve spatial resolution).

Comparisons of open-vocabulary VIS pipelines.

As illustrated in the overall architecture below, the framework relies on three novel modules:

  1. Class-Agnostic Mask Generation: Utilizing the frozen CLIP backbone, a pixel decoder, and a transformer decoder, this module predicts candidate masks, objectness scores, and mask IoU (Intersection over Union) scores. Crucially, it requires no category labels during training.
  2. Temporal TopK-Enhanced Matching: To track instances robustly, CLIP-VIS maintains a short-term memory bank of the last $T$ frames. It computes a frame-level matching cost, selects the $K$ most reliable historical frames, and performs bipartite matching. This selectively filters out noisy frames while handling temporary occlusions.
  3. Weighted Open-Vocabulary Classification: The model performs mask pooling on the feature maps of the frozen CLIP encoder to extract instance-level visual features. It then computes the cosine similarity between these features and the CLIP text embeddings of target categories. To ensure that high-quality masks are prioritized, the final classification score is weighted by the predicted object score and mask IoU score.

Datasets

The model is trained on standard image datasets (LVIS and COCO) and fine-tuned on YTVIS2019 without category/identity annotations. It is evaluated across several diverse benchmarks:

  • LV-VIS: A large-scale open-vocabulary video dataset featuring 1,196 categories.
  • YTVIS 2019 / 2021: Standard video instance segmentation datasets.
  • OVIS: A highly challenging dataset specifically focused on severe object occlusions.
  • BURST: A benchmark designed for tracking a massive variety of common and uncommon object classes.

Key Insights and Ideas

  • Dual-Use of Frozen Backbones: Instead of training a new backbone or using separate networks, CLIP-VIS proves that a single frozen CLIP image encoder can simultaneously generate high-quality class-agnostic masks and provide robust open-vocabulary features. This prevents the model from forgetting zero-shot capabilities.
  • Selective Tracking Memory: Tracking shouldn't be short-sighted (adjacent frame) or a hoarder (all past frames). Dynamically selecting the $K$ best-matching historical frames provides the optimal balance for re-identifying objects after occlusions without getting bogged down by background noise.
  • Calibration via Mask Quality: Open-vocabulary classifiers can easily misclassify poor mask proposals. Multiplying the CLIP text-image similarity score by the mask's geometric quality (IoU and objectness) acts as a vital calibration step.

Key Results

CLIP-VIS achieves significant performance leaps over previous state-of-the-art methods, particularly on novel (unseen) categories:

  • LV-VIS Benchmark: When using a ConvNeXt-B backbone, CLIP-VIS achieves an Average Precision (AP) of 32.2% and a novel category AP ($AP_n$) of 40.2% on the validation set, outperforming the baseline OV2Seg by 11.1% and 23.9% respectively.
  • Robustness to Occlusion: On the heavily occluded OVIS dataset, it beats competing open-vocabulary methods, demonstrating the power of the TopK matching strategy.
  • Efficiency: Despite the accuracy gains, CLIP-VIS operates at 31.4 FPS (with an R50 backbone), making it roughly 1.2× faster than OV2Seg due to its streamlined single-backbone design.

Limitations and Future Work

The authors point out a fundamental discrepancy in the current setup: CLIP was originally pre-trained on whole images (image-level classification), but VIS requires it to classify cropped, masked regions (instance-level classification). This image-to-instance domain gap can sometimes lead to suboptimal alignment. The authors plan to explore methods to bridge this representation gap in future work.

Summary updated

BibTeX
@article{zhu2025clip,
  author = {Wenqi Zhu and Jiale Cao and Jin Xie and Shuangming Yang and Yanwei Pang},
  title = {{CLIP-VIS: Adapting CLIP for Open-Vocabulary Video Instance Segmentation}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2025},
  url = {https://openreview.net/forum?id=ORJfXw68fc},
}
Figure