MaskRNN: Instance Level Video Object Segmentation

Yuan-Ting Hu, Jia-Bin Huang, Alexander G. Schwing

Introduction

Video object segmentation (VOS) is a notoriously difficult task because objects in motion frequently deform, change scale, and disappear behind one another. While early deep learning methods successfully segmented objects on a frame-by-frame basis, they often struggled with "temporal coherence." Without a strong memory of what an object looked like a few frames prior, masks tend to flicker or jump erroneously to different objects.

Furthermore, most existing methods have historically focused on simple foreground-background separation. MaskRNN tackles the much harder problem of instance-level segmentation. This requires the model to distinguish between different individuals of the same class (e.g., tracking "Penguin A" separately from "Penguin B") and maintain those distinct identities throughout the entire video sequence. To achieve this, MaskRNN utilizes a recurrent neural network framework that fuses a binary segmentation network with a bounding box tracker, achieving state-of-the-art temporal consistency.

The MaskRNN Architecture

MaskRNN employs a "bottom-up" approach, processing each object instance individually before merging the results into a final cohesive frame. The architecture relies on three main pillars:

MaskRNN Architecture Overview
  1. The Binary Segmentation Net: This is a two-stream network combining an Appearance Stream (processing the current RGB frame) and a Flow Stream (processing optical flow magnitude). To maintain continuity, the network takes the segmentation mask from the previous frame, "warps" it using optical flow to estimate its new position, and feeds it in as an additional input.
  2. The Object Localization Net: Acting as a "location prior," this component performs bounding box regression to predict where the object is likely to be. This step is crucial for rejecting outliers—it essentially instructs the segmentation net to ignore pixels that might look like the target object but are located too far away from its last known trajectory.
  3. Recurrent Temporal Modeling: Unlike methods that only look at the immediate previous frame, MaskRNN is trained as a Recurrent Neural Network (RNN). By using back-propagation through time (BPTT) over sequences of frames, the model learns long-term temporal structures rather than just short-term frame-to-frame changes.

Finally, the individual masks generated for all objects are combined using an argmax operation, ensuring that each pixel is assigned to only one object instance or the background.

Key Insights

  • Bounding Boxes as Filters: A major insight of MaskRNN is using the localization net not just to find the object, but to restrict the segmentation space. By discarding segmentation results outside the predicted bounding box, the model effectively ignores "distractor" objects that share similar visual features.
  • The Power of Optical Flow: The Flow Stream provides highly complementary information to the Appearance Stream. While the appearance stream might get confused by a cluttered, static background, the flow stream easily identifies motion boundaries, making moving objects pop against complex backdrops.
  • Long-term vs. Short-term Memory: By utilizing an RNN structure, MaskRNN produces significantly more consistent masks over time because it is optimized to understand the entire trajectory of the object, rather than just reacting to the previous frame.

Results and Performance

The model was evaluated on three major benchmarks: DAVIS-2016 (single-object), DAVIS-2017 (multi-object with occlusions), and Segtrack v2. The authors pre-trained the appearance networks on the training sets and performed "online finetuning" on the first frame of each test video to adapt to specific object appearances.

Qualitative Results on Benchmark Datasets

MaskRNN achieved state-of-the-art performance across all tested datasets at the time of publication:

  • DAVIS-2017: Achieved a Mean IoU (Jaccard Index) of 60.5%, significantly outperforming the previous state-of-the-art (OFL at 54.9%).
  • DAVIS-2016: Reached 80.4% Mean IoU.
  • Segtrack v2: Reached 72.1% Mean IoU.

Ablation studies confirmed that both the RNN component and the Localization Net were critical to this success. For instance, on the challenging DAVIS-2017 dataset, enabling the RNN boosted the IoU from 56.12% to 60.51%.

Limitations and Future Work

While highly effective, the authors noted two primary failure modes. First, when two visually similar objects cross paths, the model can sometimes lose track or swap their identities. Second, extreme variations—such as large, sudden changes in scale or viewpoint—can cause the localization net to fail, subsequently causing the segmentation net to lose the object entirely.

Future work points toward improving the robustness of the localization component and finding more memory-efficient ways to train RNNs on extended video sequences.

Summary updated

BibTeX
@inproceedings{hu2017maskrnn,
  author = {Yuan-Ting Hu and Jia-Bin Huang and Alexander G. Schwing},
  title = {{MaskRNN: Instance Level Video Object Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=BJW928W_-S},
}
Figure