RefineVIS: Video Instance Segmentation with Temporal Attention Refinement

Andre Abrantes, Jiang Wang, Peng Chu, Quanzeng You, Zicheng LiuarXiv 2023 · DOI

Introduction

Video Instance Segmentation (VIS) is a complex computer vision task that requires models to simultaneously detect, segment, and track every object within a video sequence. Unlike static image segmentation, VIS must contend with temporal challenges such as severe occlusion, rapid motion blur, and significant changes in object orientation.

Existing VIS frameworks often struggle with a fundamental trade-off: the features required for stable object association across frames (tracking) are often at odds with the high-resolution, context-sensitive features needed for precise mask generation. RefineVIS addresses this by decoupling the tracking and refinement processes, introducing a novel temporal module to enhance segmentation quality.

Methodology

RefineVIS employs a modular three-stage pipeline designed to optimize both tracking consistency and mask accuracy:

  1. Frame-Level Module: Utilizing an off-the-shelf image segmenter (e.g., MaskDINO), the system generates initial bounding boxes, masks, and instance embeddings for each frame independently.
  2. Association Module: This stage links independent detections into continuous "tracklets" using contrastive learning. By ensuring embeddings for the same object remain similar over time, the model maintains identity even through visual noise.
  3. Temporal Refinement Module (TAR): The core innovation of RefineVIS, the TAR module, processes the sequence of embeddings for a tracklet through a Multi-head Self-Attention (MSA) layer. This allows the model to aggregate information across the entire timeline, using clear frames to "fix" masks in frames where the object is blurry or partially hidden.
The RefineVIS architecture: Frame-level detection, Association, and Temporal Refinement modules.

To further improve robustness, the authors implemented Temporal Contrastive Denoising (CDN). This training strategy introduces controlled noise to ground-truth data, teaching the temporal module to reconstruct accurate masks from imperfect or corrupted inputs.

Temporal Attention Refinement and Recovery

A standout capability of RefineVIS is its "Zero-Embedding" recovery. In instances where the initial frame-level detector fails to detect an object due to extreme occlusion, the TAR module can still generate a mask. By inputting a "zero" embedding for the missing frame, the attention mechanism pulls visual context from adjacent frames where the object was visible to reconstruct the missing segmentation.

Experimental Results

RefineVIS was evaluated on three major benchmarks: YouTube-VIS 2019, YouTube-VIS 2021, and the challenging OVIS (Occluded Video Instance Segmentation) dataset. The model achieved state-of-the-art (SOTA) results across the board:

  • YouTube-VIS 2021: Achieved 61.4 AP using a Swin-L backbone.
  • OVIS: Reached 46.1 AP, significantly outperforming previous leading models like IDOL (42.6 AP).

Qualitative analysis confirms that the TAR module effectively maintains mask consistency and recovers objects that other models lose entirely during heavy occlusion.

RefineVIS recovering a mask for a heavily occluded elephant that the base detector missed.

Conclusion

RefineVIS demonstrates that decoupling object association from mask refinement is a powerful strategy for video instance segmentation. By leveraging temporal attention, the framework can synthesize information across time to overcome local visual failures. Future work will focus on reducing the memory footprint of long-sequence training and narrowing the performance gap between online and offline inference modes.

Summary updated

BibTeX
@misc{abrantes2023refinevis,
  author = {Andre Abrantes and Jiang Wang and Peng Chu and Quanzeng You and Zicheng Liu},
  title = {{RefineVIS: Video Instance Segmentation with Temporal Attention Refinement}},
  year = {2023},
  eprint = {2306.04774},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.04774},
}
Figure