Robust Online Video Instance Segmentation with Track Queries

Zitong Zhan, Daniel McKee, Svetlana LazebnikarXiv 2022

Abstract

Recently, transformer-based methods have achieved impressive results on Video Instance Segmentation (VIS). However, most of these top-performing methods run in an offline manner by processing the entire video clip at once to predict instance mask volumes. This makes them incapable of handling the long videos that appear in challenging new video instance segmentation datasets like UVO and OVIS. We propose a fully online transformer-based video instance segmentation model that performs comparably to top offline methods on the YouTube-VIS 2019 benchmark and considerably outperforms them on UVO and OVIS. This method, called Robust Online Video Segmentation (ROVIS), augments the Mask2Former image instance segmentation model with track queries, a lightweight mechanism for carrying track information from frame to frame, originally introduced by the TrackFormer method for multi-object tracking. We show that, when combined with a strong enough image segmentation architecture, track queries can exhibit impressive accuracy while not being constrained to short videos.

Introduction

Video Instance Segmentation (VIS) is a complex task requiring the simultaneous detection, segmentation, and tracking of object instances across video sequences. While the field has seen significant progress, it is currently dominated by "offline" methods. These models process an entire video clip as a single volume to predict masks. While effective for short, curated clips like those in the YouTube-VIS 2019 dataset, offline methods face critical limitations:

  1. Memory Constraints: Processing all frames simultaneously leads to massive GPU memory consumption, typically limiting these models to clips of approximately 50 frames.
  2. Latency: Offline models require the entire video to be available before processing, making them unsuitable for real-time applications like robotics or live monitoring.

To address these issues, we introduce ROVIS (Robust Online Video Segmentation), an online model designed to handle long-duration videos, heavy occlusions, and crowded scenes found in modern benchmarks like OVIS and UVO.

Methods: The ROVIS Architecture

ROVIS builds upon the state-of-the-art Mask2Former image segmentation framework. The primary innovation is the introduction of a unified tracking mechanism using track queries.

The ROVIS architecture utilizes track queries to propagate instance information from Frame 0 to subsequent frames (Frame t) within a transformer decoder.

Track Queries and Static Queries

In a standard transformer-based detector, "static queries" are learned embeddings used to identify objects in a single image. ROVIS employs these static queries to detect new objects entering a scene. Once an object is identified, its specific embedding is carried forward to the next frame as a "track query." This allows the model to follow specific instances across time without needing a separate, computationally expensive association step like Re-ID or IoU matching.

Robust Training and Inactivity Tolerance

To ensure the tracker is resilient to real-world challenges, the authors utilize "query augmentation" during training. By randomly dropping track queries or injecting "false positives," the model learns to recover from missed detections. Furthermore, to handle temporary occlusions, ROVIS maintains track queries for up to 9 frames after an object disappears, allowing the model to re-identify the instance if it reappears.

Experimental Setup and Datasets

The model was rigorously evaluated on three distinct benchmarks:

  • YouTube-VIS 2019: A baseline benchmark with short videos (avg. 27 frames) and simple motion.
  • OVIS (Occluded Video Instance Segmentation): A challenging dataset featuring long videos (up to 500 frames) and frequent, heavy occlusions.
  • UVO (Unidentified Video Objects): An open-world dataset with crowded scenes and a diverse range of object categories.

Key Results

ROVIS demonstrates that a strong image segmentation base combined with a simple tracking mechanism can outperform complex offline systems on difficult datasets.

Qualitative results on the OVIS dataset show ROVIS successfully tracking and segmenting multiple cats in a crowded, occluded environment.

Performance Highlights

  • Long Video Dominance: On OVIS, ROVIS achieved 30.2 AP with a ResNet50 backbone and 41.6 AP with a Swin-L backbone, setting a new standard for online methods.
  • Open-World Success: On the UVO dense-val split, ROVIS reached 32.7 AP, a significant improvement over the previous state-of-the-art of 27.3 AP.
  • Competitive Efficiency: Despite being an online model, ROVIS remains competitive on YouTube-VIS 2019, scoring 45.5 AP—within 1 point of the best offline Mask2Former variant.
  • Inference Speed: ROVIS operates at 12 FPS (ResNet50) and 5 FPS (Swin-L) on an NVIDIA A40 GPU, offering a practical balance between accuracy and speed.

Discussion and Future Work

The success of ROVIS highlights the "Stronger Base" hypothesis: the limitation of previous track-query methods was not the tracking mechanism itself, but the underlying image segmenter. By leveraging Mask2Former, ROVIS achieves state-of-the-art results with a remarkably simple architecture.

However, limitations remain. The model still benefits from Non-Maximum Suppression (NMS) to reach peak accuracy, and while 12 FPS is efficient, it does not yet meet the 30+ FPS threshold required for true real-time high-resolution video processing. Future research will focus on further optimizing the backbone and exploring more flexible query mechanisms for "unknown" object categories in open-world settings.

Summary updated

BibTeX
@misc{zhan2022robust,
  author = {Zitong Zhan and Daniel McKee and Svetlana Lazebnik},
  title = {{Robust Online Video Instance Segmentation with Track Queries}},
  year = {2022},
  eprint = {2211.09108},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.09108},
}
Figure