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

SeqFormer: Sequential Transformer for Video Instance Segmentation

Junfeng Wu, Yi Jiang, Song Bai, Wenqing Zhang, Xiang Bai

Introduction

Video Instance Segmentation (VIS) is a demanding computer vision task that requires a model to simultaneously detect, classify, segment, and track every object within a video sequence. Unlike static image segmentation, VIS must maintain consistent object identities across frames, even amidst motion blur, shape changes, or temporary occlusions.

Existing approaches typically follow two paradigms: tracking-by-detection, which links independent frame segmentations using separate logic, or clip-level transformer methods like VisTR. However, these often struggle with temporal consistency or information dilution caused by flattening spatial and temporal dimensions into a single vector. SeqFormer addresses these challenges by treating VIS as a sequence-to-sequence problem, utilizing a unified transformer architecture to track and segment objects naturally.

Methodology: Query Decomposition

The primary innovation of SeqFormer is the Query Decompose Transformer Decoder, which effectively separates spatial and temporal processing while maintaining a global object identity.

Architecture Overview

The framework begins with a standard backbone (e.g., ResNet or Swin Transformer) to extract features, followed by a Transformer Encoder that applies deformable attention to each frame independently. This preserves the distinct characteristics of 2D space and 1D time.

The SeqFormer architecture features a Query Decompose Transformer Decoder that processes frame-specific box queries derived from a global instance query.

The Query Decomposition Mechanism

Instead of using static queries for the entire video or independent queries per frame, SeqFormer introduces a hierarchical approach:

  1. Instance Query: A single query representing the global identity of an object across the entire video.
  2. Box Queries: The Instance Query is "decomposed" into $T$ Box Queries, one for each frame. These act as spatial anchors that are iteratively refined across decoder layers to "follow" the object's movement.
  3. Temporal Aggregation: Features from all box queries are aggregated back into the global Instance Query via a learned weighted sum, creating a robust video-level representation.

Output Heads

The model employs three specialized heads: a Class Head for video-level categorization, a Box Head for bounding box sequences, and a Mask Head that uses dynamic weights from the Instance Query to generate frame-specific segmentation masks.

Experimental Results

SeqFormer was evaluated on the YouTube-VIS 2019 and 2021 benchmarks, as well as COCO for pre-training and synthetic data augmentation.

Performance and Efficiency

SeqFormer achieves state-of-the-art accuracy across various backbones. On YouTube-VIS 2019, it reached 47.4 AP with a ResNet-50 backbone and a remarkable 59.3 AP with a Swin-Large backbone.

Performance comparison on YouTube-VIS 2019 showing SeqFormer's superior accuracy-to-parameter ratio compared to other VIS methods.

Beyond accuracy, SeqFormer is highly efficient. It achieves an inference speed of 72.3 FPS on an NVIDIA V100 GPU, significantly outperforming many contemporary models in speed while maintaining higher precision. The model's ability to leverage global context leads to more stable mask sequences, particularly in complex scenes with significant motion.

Conclusion

SeqFormer provides a "neat and efficient" end-to-end baseline for Video Instance Segmentation. By decomposing instance queries into frame-specific box queries, it integrates tracking directly into the detection process. While the model benefits from pre-training on synthetic "pseudo-videos," its performance and speed set a new standard for the field. Future work may extend this architecture to related tasks such as Video Object Segmentation (VOS) or multi-object tracking and segmentation (MOTS).

Summary updated

BibTeX
@inproceedings{wu2022seqformer,
  author = {Junfeng Wu and Yi Jiang and Song Bai and Wenqing Zhang and Xiang Bai},
  title = {{SeqFormer: Sequential Transformer for Video Instance Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19815-1\_32},
}
Figure