End-to-end video instance segmentation via spatial-temporal graph neural networks

Tao Wang, Ning Xu, Kean Chen, Weiyao LinICCV 2021

Abstract

Video Instance Segmentation (VIS) requires the simultaneous detection, segmentation, and tracking of object instances across video frames. Traditional approaches often treat these tasks as separate components, leading to fragmented architectures that fail to fully exploit cross-task synergies. This paper introduces a unified, end-to-end framework for VIS that leverages Spatial-Temporal Graph Neural Networks (GNNs). By modeling object instances as graph nodes and their cross-frame relationships as edges, the method jointly optimizes detection, segmentation, and tracking. The proposed framework achieves 36.5% AP on the YouTubeVIS benchmark at a near real-time speed of 22 FPS, demonstrating a superior balance of accuracy and efficiency.

Introduction

Video Instance Segmentation is a challenging task that combines object detection, instance segmentation, and multi-object tracking. A major limitation in existing methodologies is fragmentation; most methods treat tracking as a separate post-processing step (tracking-by-detection) or rely on simple mask propagation. This separation prevents the model from sharing useful information between subtasks. For example, temporal consistency from tracking should ideally inform the detector, especially in challenging scenarios like motion blur or occlusion.

Comparison between existing fragmented methods and the proposed unified GNN-based framework.

To address this, we propose a unified architecture that allows these tasks to communicate through shared spatial-temporal features, treating VIS as a graph inference problem.

Methodology

The core of the framework is a GNN-based architecture that builds a graph where nodes represent instance candidates and edges represent cross-frame relationships.

Graph Construction and Iterative Updates

For a pair of frames (reference and target), the model constructs a sparse graph where nodes are connected if they fall within a specific spatial window. The model then performs iterative message passing (typically 3 iterations). Node features are updated based on their connected edges, and edge features are updated based on their endpoints. This process allows temporal information from the reference frame to flow into and enhance the target frame's features.

Joint Prediction Heads

The updated features are fed into three joint prediction heads:

  1. Detection: An anchor-free head (inspired by CenterNet) predicts object centers and sizes using the updated node features.
  2. Segmentation: A dynamic filter head (inspired by CondInst) generates instance-sensitive filters to produce masks.
  3. Tracking: A binary classifier operates directly on the edge features to decide if two nodes across frames represent the same object.
Overview of the proposed architecture, highlighting the instance-level relation modeling and joint tracking/segmentation modules.

Mask Information Propagation

To improve mask consistency, the framework includes a module that uses deformable convolutions to warp the "shape" filters from the previous frame to the current one. This allows the model to maintain a stable "memory" of the object's geometry at the feature level, which is more computationally efficient than pixel-level warping.

Key Results

The method was evaluated on the YouTubeVIS dataset, which contains over 2,800 video clips. Using a ResNet-50 backbone, the model achieves 36.5% AP, outperforming MaskTrack R-CNN (30.3% AP) and the transformer-based VisTR (34.4% AP).

Beyond accuracy, the system is highly efficient, operating at 22 FPS. This is significantly faster than high-accuracy competitors like MaskProp (2 FPS), which rely on heavy post-processing. Qualitative results show the model handles occlusions well by maintaining a memory of unmatched instances for up to 7 frames, allowing the GNN to re-link objects that temporarily disappear.

Conclusion

This paper demonstrates that a unified GNN-based framework can effectively bridge the gap between detection, segmentation, and tracking in video. By embedding tracking logic directly into the graph as edge features, the entire pipeline becomes differentiable and mutually beneficial. Future work will explore scaling the GNN to handle longer-range temporal dependencies and more complex graph topologies for crowded scenes.

Summary updated

BibTeX
@inproceedings{wang2021end,
  author = {Tao Wang and Ning Xu and Kean Chen and Weiyao Lin},
  title = {{End-to-end video instance segmentation via spatial-temporal graph neural networks}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
}
Figure