NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CTVIS: Consistent Training for Online Video Instance Segmentation

Kaining Ying, Qing Zhong, Weian Mao, Zhenhua Wang, Hao Chen, Lin Yuanbo Wu, Yifan Liu, Chengxiang Fan, Yunzhi Zhuge, Chunhua Shen

Abstract

Online Video Instance Segmentation (VIS) aims to classify, segment, and track objects frame-by-frame in real-time. Despite advancements, a significant performance gap remains due to the discrepancy between training protocols and inference procedures. This paper introduces CTVIS (Consistent Training for Online VIS), a framework that aligns training with inference by utilizing long-term memory banks, noise injection, and a novel pseudo-video generation technique. CTVIS achieves state-of-the-art results, notably improving performance by +5.0 AP on major benchmarks like OVIS and YouTube-VIS.

1. Introduction

Video Instance Segmentation (VIS) is a fundamental task in computer vision, requiring the simultaneous classification, segmentation, and tracking of multiple objects across video sequences. Online VIS methods are particularly critical for real-time applications, such as autonomous driving and robotics, where processing must occur as frames arrive. However, existing online methods often struggle with long-term consistency and error recovery. This paper identifies a core "training-inference inconsistency" and proposes a training strategy that mirrors the operational environment of the model during deployment.

2. The Training-Inference Inconsistency

In current online VIS frameworks, models utilize a "memory bank" during inference to store historical object features (embeddings), which aids in tracking objects over time. However, these models are typically trained using only pairs of adjacent frames. This creates a mismatch: the model is never supervised on how to interact with long-term memory or how to recover from tracking errors—such as identity (ID) switches—that naturally occur in extended video sequences. Consequently, the model's ability to maintain temporal consistency is limited by its training protocol rather than its architecture.

3. Methodology

CTVIS addresses these limitations by making the training environment look exactly like the inference environment. Built upon the Mask2Former architecture, the framework introduces three primary components:

3.1 Consistent Training with Memory Banks

Instead of the standard two-frame training, CTVIS processes longer sequences (8-10 frames) during the training phase. It maintains a memory bank of Momentum-Averaged (MA) embeddings. These embeddings provide a stable, smoothed representation of an object’s history, serving as a robust target for contrastive learning and ensuring the model learns to leverage temporal context effectively.

3.2 Noise Injection for Robustness

To simulate real-world tracking failures, CTVIS employs a noise injection strategy. During training, embeddings from different objects are deliberately introduced into the memory bank. This "stress test" forces the model to become more discriminative, teaching it to re-identify the correct object even after a temporary tracking glitch or occlusion. This mechanism significantly improves the model's robustness against ID switches.

3.3 Pseudo-Video Generation

To overcome the high cost of video annotation, the authors developed a pipeline to transform static images (e.g., from the MS COCO dataset) into synthetic "pseudo-videos." By applying random rotations, crops, and "copy-paste" augmentations, the pipeline generates realistic motion and occlusion patterns. This allows the model to learn complex temporal dynamics from diverse image data, mitigating the scarcity of large-scale annotated video datasets.

4. Experiments and Results

CTVIS was evaluated on three major benchmarks: YouTube-VIS 2019, YouTube-VIS 2021, and the highly challenging OVIS (Occluded Video Instance Segmentation) dataset.

4.1 Performance Gains

CTVIS established a new state-of-the-art for online VIS, outperforming previous leaders like IDOL and VITA by approximately 5.0 AP points across various metrics.

  • YouTube-VIS 2019: Achieved 55.1% AP with a ResNet-50 backbone and 65.6% AP with Swin-L.
  • YouTube-VIS 2021: Reached 50.1% AP using ResNet-50.
  • OVIS: Achieved 35.5% AP with ResNet-50, representing a significant leap in performance for this difficult, occlusion-heavy dataset.

4.2 Data Efficiency

One of the most striking findings was the model's data efficiency. Using only 10% of the original video training data supplemented with pseudo-videos, CTVIS achieved results comparable to models trained on 100% of the video data. This suggests that the diversity of object appearances in static image datasets can be more valuable than the specific motion patterns found in current video datasets.

5. Discussion and Conclusion

The success of CTVIS highlights that the training protocol is as critical as the model architecture. By aligning the training phase with the inference phase, CTVIS naturally learns to handle long-term temporal dependencies.

While the pseudo-video generation is highly effective, it currently relies on geometric transformations that do not fully capture non-rigid deformations (e.g., a person running). Future work will explore more sophisticated motion modeling and the application of "consistent training" to other video-based tasks like multi-object tracking (MOT). Ultimately, CTVIS provides a powerful and efficient framework for robust, real-time video instance segmentation.

Summary updated

BibTeX
@inproceedings{ying2023ctvis,
  author = {Kaining Ying and Qing Zhong and Weian Mao and Zhenhua Wang and Hao Chen and Lin Yuanbo Wu and Yifan Liu and Chengxiang Fan and Yunzhi Zhuge and Chunhua Shen},
  title = {{CTVIS: Consistent Training for Online Video Instance Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure