Skip to main content
QUICK REVIEW

[Paper Review] SeqFormer: Sequential Transformer for Video Instance Segmentation

Junfeng Wu, Yi Jiang|arXiv (Cornell University)|Dec 15, 2021
Video Analysis and SummarizationComputer Science6 citations
TL;DR

SeqFormer proposes a sequential Transformer architecture for video instance segmentation that uses frame-specific instance queries to attend to moving objects across time, enabling end-to-end mask and box prediction without tracking branches. It achieves 49.0 AP on YouTube-VIS with ResNet-101 and 59.3 AP with Swin Transformer, significantly outperforming prior methods.

ABSTRACT

In this work, we present SeqFormer for video instance segmentation. SeqFormer follows the principle of vision transformer that models instance relationships among video frames. Nevertheless, we observe that a stand-alone instance query suffices for capturing a time sequence of instances in a video, but attention mechanisms shall be done with each frame independently. To achieve this, SeqFormer locates an instance in each frame and aggregates temporal information to learn a powerful representation of a video-level instance, which is used to predict the mask sequences on each frame dynamically. Instance tracking is achieved naturally without tracking branches or post-processing. On YouTube-VIS, SeqFormer achieves 47.4 AP with a ResNet-50 backbone and 49.0 AP with a ResNet-101 backbone without bells and whistles. Such achievement significantly exceeds the previous state-of-the-art performance by 4.6 and 4.4, respectively. In addition, integrated with the recently-proposed Swin transformer, SeqFormer achieves a much higher AP of 59.3. We hope SeqFormer could be a strong baseline that fosters future research in video instance segmentation, and in the meantime, advances this field with a more robust, accurate, neat model. The code is available at https://github.com/wjf5203/SeqFormer.

Motivation & Objective

  • To develop a clean, end-to-end framework for video instance segmentation that avoids separate tracking branches or post-processing.
  • To model temporal relationships among video frames by decomposing a shared instance query into frame-level queries for independent attention per frame.
  • To learn robust, video-level instance representations through weighted aggregation of features across frames, improving tracking and segmentation accuracy.
  • To establish a strong, efficient, and generalizable baseline for future research in video instance segmentation.

Proposed method

  • Decomposes a single instance query into frame-level box queries to enable independent attention mechanisms per frame, aligning with object motion across time.
  • Uses a decoder with iterative refinement to predict and refine bounding box sequences in a coarse-to-fine manner, similar to Deformable DETR.
  • Aggregates features from aligned instance regions across frames using learnable weights derived from box embeddings, forming a unified video-level instance representation.
  • Generates dynamic convolutional weights for the mask head using the refined instance representation, enabling accurate mask prediction per frame.
  • Preserves full spatial-temporal feature dimensions and avoids flattening, which is shown to be critical for performance.
  • Employs a weighted-sum aggregation of features from different frames, with attention weights end-to-end learned from box embeddings to avoid information dilution.

Experimental results

Research questions

  • RQ1Can a single, shared instance query effectively model instance relationships across a long video sequence when attention is applied independently per frame?
  • RQ2How does preserving the full spatial-temporal feature dimensionality affect performance in video instance segmentation compared to flattened or multi-scale approaches?
  • RQ3Can end-to-end learned attention weights over frames improve instance representation and mask prediction compared to simple sum or average aggregation?
  • RQ4To what extent can a mask head trained on a limited number of frames generalize to unseen frames in a video?
  • RQ5Does the proposed query decomposition mechanism naturally enable instance tracking without explicit tracking branches or post-processing?

Key findings

  • SeqFormer achieves 47.4 AP on YouTube-VIS with a ResNet-50 backbone and 49.0 AP with ResNet-101, surpassing previous state-of-the-art by 4.6 and 4.4 AP respectively.
  • With a ResNeXt-101 backbone, SeqFormer achieves 51.2 AP, marking the first time an algorithm exceeds 50 AP on YouTube-VIS.
  • When integrated with the Swin Transformer, SeqFormer reaches 59.3 AP, demonstrating strong scalability and performance gains from advanced backbones.
  • Using only one frame to generate the instance representation yields 38.1 AP, and five frames yield 44.6 AP, showing strong generalization to unseen frames.
  • Preserving full spatial-temporal feature dimensions leads to a 7.4 AP gain over flattening, and multi-scale features add an additional 2.6 AP, proving the importance of temporal modeling.
  • The weighted-sum aggregation of features across frames yields 45.1 AP, outperforming sum (30.6 AP) and average (43.2 AP), confirming its effectiveness in preserving key instance cues.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.