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

InstanceFormer: An Online Video Instance Segmentation Framework

Rajat Koner, Tanveer Hannan, Suprosanna Shit, Sahand Sharifzadeh, Matthias Schubert, Thomas Seidl, Volker Tresp

Introduction

Video Instance Segmentation (VIS) requires a system to simultaneously detect, segment, and track every object in a video. Traditionally, this is approached via two paradigms: Offline Methods, which process the entire video at once for high accuracy but at the cost of high memory usage, and Online Methods, which process frames sequentially. While online methods are suitable for real-time applications, they often struggle with long-term dependencies and occlusions.

Comparison of offline and online VIS architectures. InstanceFormer introduces a memory-based online approach.

InstanceFormer aims to close this performance gap by introducing a single-stage transformer framework that handles long-range dependencies without the computational overhead of dense spatio-temporal attention.

Methods

InstanceFormer is built upon the Deformable-DETR architecture, enhanced with three temporal components:

  1. Prior Propagation Module: Propagates instance representations (queries), spatial locations (reference points), and class scores from the previous frame. This provides a strong short-term inductive bias for tracking.
  2. Memory Cross-Attention: Utilizes a "working memory" queue of salient instances from past frames. This allows the decoder to "recollect" object identities after brief occlusions.
  3. Temporal Contrastive Loss (TCL): A training objective that ensures object representations remain consistent over time while staying distinct from other instances.

By storing only high-level instance tokens in memory rather than full frames, InstanceFormer maintains long-term context with minimal memory usage, eliminating the need for separate tracking heads or complex data association during inference.

Key Results

InstanceFormer achieves state-of-the-art performance across major VIS benchmarks, particularly excelling in challenging scenarios.

Performance comparison on YTVIS-21. InstanceFormer (Ours) achieves high AP with competitive parameter counts.
  • OVIS Dataset: Achieved 20.0 AP, outperforming the previous best online method (CMaskTrack) by 4.6 points and even surpassing several complex offline methods.
  • YTVIS-21: Reached 40.8 AP, a 4% improvement over VISOLO and slightly better than the offline Mask2Former (40.6 AP).
  • Efficiency: Maintains a real-time speed of 25.0 FPS on an RTX 2080 Ti.

Conclusion

InstanceFormer demonstrates that online video instance segmentation can match or exceed the performance of offline methods by effectively leveraging sparse temporal priors and a compact working memory. Future work may involve more sophisticated memory management to handle even longer video sequences.

Summary updated

BibTeX
@inproceedings{koner2023instanceformer,
  author = {Rajat Koner and Tanveer Hannan and Suprosanna Shit and Sahand Sharifzadeh and Matthias Schubert and Thomas Seidl and Volker Tresp},
  title = {{InstanceFormer: An Online Video Instance Segmentation Framework}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25201},
}
Figure