Learning Video Instance Segmentation with Recurrent Graph Neural Networks

Joakim Johnander, Emil Brissman, Martin Danelljan, Michael FelsbergarXiv 2020

Abstract

Most existing approaches to video instance segmentation comprise multiple modules that are heuristically combined to produce the final output. Formulating a purely learning-based method instead, which models both the temporal aspect as well as a generic track management required to solve the video instance segmentation task, is a highly challenging problem. In this work, we propose a novel learning formulation, where the entire video instance segmentation problem is modelled jointly. We fit a flexible model to our formulation that, with the help of a graph neural network, processes all available new information in each frame. Past information is considered and processed via a recurrent connection. We demonstrate the effectiveness of the proposed approach in comprehensive experiments. Our approach, operating at over 25 FPS, outperforms previous video real-time methods. We further conduct detailed ablative experiments that validate the different aspects of our approach.

Introduction

Video Instance Segmentation (VIS) is a complex task requiring simultaneous detection, segmentation, and tracking of object instances across video sequences. Traditionally, this has been approached via "tracking-by-detection" pipelines. These methods typically employ an image-based segmenter for per-frame detection, followed by hand-crafted heuristics—such as the Hungarian algorithm or distance thresholds—to link objects temporally.

However, these heuristic-heavy pipelines suffer from two primary limitations. First, they lack flexibility, often failing to reason globally about all detections or effectively utilize long-term temporal context. Second, a significant training-inference gap exists; while models are trained on frame pairs, they must manage complex track lifecycles (initialization, updates, and termination) during inference—tasks they were never explicitly trained to perform.

Methodology

The proposed framework addresses these issues by modeling the VIS problem jointly through a unified learning-based architecture. The model is built upon three core pillars:

  1. Graph Neural Network (GNN) for Association: Rather than isolated pair-wise comparisons, the model constructs a graph where nodes represent existing tracks ($\tau$) and new detections ($\delta$). The GNN facilitates information flow across all nodes, enabling global spatial reasoning. This context allows the model to resolve ambiguities, such as distinguishing between similar-looking objects by considering the entire scene's configuration.
  2. Recurrent Gating: To maintain temporal memory, the architecture incorporates a recurrent connection. The GNN's output is integrated into an LSTM-like gating mechanism. This allows the model to selectively retain historical information and incorporate new data, ensuring stability and preventing gradient issues common in recurrent networks.
  3. Probabilistic Appearance Modeling: Object appearance is represented as a Gaussian distribution rather than a static feature vector. As new detections are matched, the distribution's mean and covariance are updated via a Bayesian approach (normal-inverse-chi-square prior). This probabilistic representation enhances robustness against appearance changes caused by lighting variations or rotations.
Overview of the proposed recurrent graph neural network architecture for joint detection and tracking.

Experimental Setup

The model was primarily evaluated on the YouTubeVIS benchmark, which includes 40 object categories across nearly 3,000 videos. To ensure a robust underlying instance segmentation module, the authors utilized OpenImages for diverse static image training. The base detector used in the experiments was YOLACT.

Results and Discussion

The model demonstrates state-of-the-art real-time performance. With a ResNet50 backbone, it achieves 35.3 mAP at 30 FPS. Upgrading to a ResNet101 backbone yields 37.7 mAP at 25 FPS.

Key Insights

  • Global Reasoning: Ablation studies revealed that restricting the GNN's global view resulted in a 6.7% mAP drop, confirming that holistic scene context is vital for resolving tracking ambiguities.
  • Learned Track Lifecycle: Unlike heuristic methods, the model learns to predict the probability of a detection initializing a new track, bridging the training-inference gap.
  • Stability and Robustness: The integration of LSTM-like gating was crucial for stabilizing the recurrent GNN against detection noise. Furthermore, the Bayesian appearance updates allow the tracker to re-identify objects effectively after occlusions.
Qualitative results showing track confidence scores over time across different challenging scenarios.

Limitations

Despite its success, the model's performance remains tied to the quality of the base segmenter. If the initial detector fails to identify an object, the GNN lacks the necessary node for tracking. Additionally, while real-time, the computational cost of GNNs may scale poorly in extremely crowded environments, suggesting a need for future research into efficient graph pruning or tighter feature integration.

Conclusion

By replacing heuristic pipelines with a joint learning formulation using recurrent GNNs, this work provides a flexible and efficient solution for Video Instance Segmentation. The model's ability to reason globally and maintain stable temporal memory allows it to achieve high accuracy while maintaining real-time processing speeds.

Summary updated

BibTeX
@misc{johnander2020learning,
  author = {Joakim Johnander and Emil Brissman and Martin Danelljan and Michael Felsberg},
  title = {{Learning Video Instance Segmentation with Recurrent Graph Neural Networks}},
  year = {2020},
  eprint = {2012.03911},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.03911},
}
Figure