DeVIS: Making Deformable Transformers Work for Video Instance Segmentation

Adrià Caelles, Tim Meinhardt, Guillem Brasó, Laura Leal-TaixéarXiv 2022 · DOI

Abstract

Video Instance Segmentation (VIS) requires simultaneous detection, segmentation, and tracking across video sequences. While Transformer-based models have simplified this into a set-prediction problem, they often suffer from quadratic complexity, limiting their use of high-resolution features. We present DeVIS, a highly efficient architecture that extends deformable attention into the temporal domain. By incorporating Temporal Multi-Scale Deformable Attention (TMSDA), instance-aware object queries, and a multi-scale mask head, DeVIS achieves state-of-the-art results on benchmarks like OVIS and YouTube-VIS while significantly reducing training time and memory overhead.

Introduction

Video Instance Segmentation (VIS) is a challenging task that demands a model to identify and track object instances across video frames. Recent "Transformer-based" methods, such as VisTR, have successfully modeled VIS as a single set-prediction problem. However, these models typically rely on "full attention," where every pixel in every frame attends to every other pixel. This leads to quadratic complexity, making them memory-intensive and slow to train. Consequently, previous researchers were forced to use low-resolution, single-scale feature maps, which compromised the segmentation of small objects and performance in complex scenes.

DeVIS addresses these limitations by bringing the efficiency of Deformable Transformers to the video domain. Unlike standard Transformers, Deformable Transformers only attend to a small, learned subset of "key" pixels, enabling the use of high-resolution, multi-scale feature maps.

Methodology

The DeVIS architecture is built around novel components that adapt deformable attention for video sequences:

  1. Temporal Multi-Scale Deformable Attention (TMSDA): This mechanism extends standard deformable attention so that a query from one frame can sample pixels from multiple scales and multiple other frames in a video clip. This allows the model to reason about object motion and appearance changes over time without the massive overhead of full attention.
  2. Instance-Aware Object Queries: Standard deformable models often use fixed or globally learned reference points. DeVIS introduces a mechanism where queries adapt their sampling locations based on the predicted bounding boxes of specific object instances. This ensures the model remains focused on the object as it moves.
  3. Multi-Scale Mask Head: DeVIS utilizes a head that leverages encoded multi-scale features and Modulated Deformable Convolutions (MDC). A "positive matches only" training strategy speeds up training by 4x by calculating masks only for queries that match ground-truth objects.
  4. Multi-Cue Clip Tracking: For long videos, DeVIS processes short clips and stitches them together using a near-online tracker that considers mask overlap (IoU), category consistency, and detection confidence.
Overview of the DeVIS architecture, featuring Temporal Multi-Scale Deformable Attention and the multi-scale mask head.

Key Insights

A critical finding of this work is that a naïve application of deformable attention to video actually degrades performance. Effective tracking requires explicit temporal connections and instance-aware alignment. By moving to deformable attention, the authors were able to utilize four different scales of feature maps (from ResNet levels 1 to 4), which is the primary driver for the significant jump in segmentation quality.

Visualization of the instance-aware sampling locations across multiple frames, demonstrating how the model tracks objects through time.

Experimental Results

DeVIS was evaluated on several major benchmarks, including YouTube-VIS 2019/2021 and the challenging OVIS (Occluded Video Instance Segmentation) dataset.

  • State-of-the-Art Performance: DeVIS achieved 43.1 AP on YouTube-VIS 2021 with a ResNet-50 backbone and 54.4 AP with a Swin-L backbone.
  • Robustness to Occlusion: On the OVIS dataset, DeVIS outperformed the previous best method by 5.7 points (23.8 AP vs 18.1 AP), demonstrating its effectiveness in crowded and occluded scenes.
  • Efficiency: The model is significantly faster to train, requiring only 120 GPU hours on YouTube-VIS compared to 350 GPU hours for VisTR.
  • Static Image Performance: Validated on COCO, the DeVIS mask head outperformed the original DETR mask head by nearly 5 points.

Conclusion

DeVIS demonstrates that deformable attention can be successfully extended to the video domain, providing a unified, end-to-end Transformer architecture for VIS. While the local nature of deformable sampling might pose challenges for extremely fast-moving objects in very long clips, the current clip-stitching approach effectively mitigates this. The efficiency of DeVIS paves the way for applying Transformers to higher-resolution video tasks and real-time applications.

Summary updated

BibTeX
@misc{caelles2022devis,
  author = {Adrià Caelles and Tim Meinhardt and Guillem Brasó and Laura Leal-Taixé},
  title = {{DeVIS: Making Deformable Transformers Work for Video Instance Segmentation}},
  year = {2022},
  eprint = {2207.11103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.11103},
}
Figure