Video Instance Segmentation via Multi-Scale Spatio-Temporal Split Attention Transformer

Omkar Thawakar, Sanath Narayan, Jiale Cao, Hisham Cholakkal, Rao Muhammad Anwer, Muhammad Haris Khan, Salman Khan, Michael Felsberg, Fahad Shahbaz Khan

Abstract

State-of-the-art transformer-based video instance segmentation (VIS) approaches typically utilize either single-scale spatio-temporal features or per-frame multi-scale features during the attention computations. We argue that such an attention computation ignores the multi-scale spatio-temporal feature relationships that are crucial to tackle target appearance deformations in videos. To address this issue, we propose a transformer-based VIS framework, named MS-STS VIS, that comprises a novel multi-scale spatio-temporal split (MS-STS) attention module in the encoder. The proposed MS-STS module effectively captures spatio-temporal feature relationships at multiple scales across frames in a video. We further introduce an attention block in the decoder to enhance the temporal consistency of the detected instances in different frames of a video. Moreover, an auxiliary discriminator is introduced during training to ensure better foreground-background separability within the multi-scale spatio-temporal feature space. We conduct extensive experiments on two benchmarks: Youtube-VIS (2019 and 2021). Our MS-STS VIS achieves state-of-the-art performance on both benchmarks. When using the ResNet50 backbone, our MS-STS achieves a mask AP of 50.1%, outperforming the best reported results in literature by 2.7% and by 4.8% at higher overlap threshold of AP75, while being comparable in model size and speed on Youtube-VIS 2019 val. set. When using the Swin Transformer backbone, MS-STS VIS achieves mask AP of 61.0% on Youtube-VIS 2019 val. set.

Introduction

Video Instance Segmentation (VIS) is the dual task of detecting, segmenting, and tracking all object instances in a video. It is significantly harder than image segmentation because objects change size, rotate, move quickly, or become partially occluded over time. Current transformer-based VIS models typically process features either at a single spatio-temporal scale or use multi-scale features only on a per-frame basis. This "siloed" approach ignores the multi-scale spatio-temporal relationships—how a small detail in one frame might relate to a larger structure in the next. Without capturing these relationships, models struggle with "appearance deformations," such as a rabbit stretching as it runs or a car shrinking as it drives away.

Proposed Method

The MS-STS VIS framework is built upon the SeqFormer baseline and introduces three key innovations to address these challenges.

Overall architecture of MS-STS VIS featuring the Multi-Scale Spatio-Temporal Split Attention Module.

1. Multi-Scale Spatio-Temporal Split (MS-STS) Attention

This core contribution, located in the encoder, consists of two parts:

  • Intra-scale Temporal Attention: The model looks at features across different frames but stays within the same spatial resolution (scale).
  • Inter-scale Temporal Attention: The model progressively attends to neighboring spatial scales across frames, allowing information to flow between high-resolution details and low-resolution global contexts over time.

2. Temporal Consistency in the Decoder

A temporal attention block is added to the decoder to ensure that "object queries" (the model's internal representation of an object) remain consistent across the entire video sequence, leading to more stable tracking.

3. Adversarial Learning for FG-BG Separability

To help the model distinguish objects from cluttered backgrounds, an auxiliary discriminator is introduced during training. This discriminator tries to tell the difference between ground-truth masks and predicted masks, forcing the encoder to produce cleaner, more distinct foreground features.

Experimental Results

MS-STS VIS set new performance records on both YouTube-VIS benchmarks.

Qualitative comparison and performance-to-parameter trade-off against state-of-the-art methods.
  • YouTube-VIS 2019: Using a standard ResNet50 backbone, it achieved a mask AP of 50.1%, a 2.7% absolute improvement over the previous best (SeqFormer). The gains were even more pronounced at stricter overlap thresholds (+4.8% at AP75), indicating much higher mask quality.
  • Backbone Scaling: When using the more powerful Swin-L Transformer backbone, the model reached a massive 61.0% mask AP.
  • Efficiency: Despite the added complexity, the model remains competitive in speed, running at 10 FPS with a similar parameter count (~50M) to its predecessors.

Key Insights and Conclusion

The success of MS-STS VIS stems from its ability to link spatial scales across time, naturally learning to track objects as they grow or shrink. By splitting attention into intra-scale and inter-scale components, the model captures complex motion and deformation without the massive computational cost of a dense 3D attention mechanism. While the model handles deformations well, extending this to handle extremely long video sequences without losing temporal context remains a challenge for future research.

Summary updated

BibTeX
@inproceedings{thawakar2022video,
  author = {Omkar Thawakar and Sanath Narayan and Jiale Cao and Hisham Cholakkal and Rao Muhammad Anwer and Muhammad Haris Khan and Salman Khan and Michael Felsberg and Fahad Shahbaz Khan},
  title = {{Video Instance Segmentation via Multi-Scale Spatio-Temporal Split Attention Transformer}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=t7_u2MbCIve},
}
Figure