MaskPlus: Improving Mask Generation for Instance Segmentation

Shichao Xu, Shuyue Lan, Qi Zhu

TL;DR

MaskPlus is an extension of the popular Mask R-CNN framework that introduces five independent, plug-and-play techniques specifically designed to optimize the mask generation branch. By addressing issues like lost global context, blurry boundaries, and multi-task training conflicts, MaskPlus achieves significant accuracy gains on the COCO dataset. Crucially, several of these techniques improve performance without adding any computational overhead during inference.

What Problem Does This Paper Address?

In instance segmentation, models must not only detect objects in an image but also outline a precise pixel-level mask for each individual instance. State-of-the-art frameworks like Mask R-CNN typically split this challenge into two steps: an object detection component (which proposes bounding boxes) and a mask generation branch (which predicts the pixels inside those boxes).

However, most recent research has focused heavily on improving the detection side, leaving several critical limitations in the mask generation branch unaddressed:

  1. Loss of Global Context: Because the mask branch only looks at features cropped to a local Region of Interest (RoI), it loses broader semantic clues from the rest of the image.
  2. Coarse Mask Boundaries: Simple up-sampling architectures often produce blurry edges because the network's highest feature scores tend to concentrate at the center of an object rather than its boundaries.
  3. Multi-task Training Conflicts: Training a network to simultaneously classify, detect, and segment objects creates a tug-of-war. The mask branch and detection components learn at different paces, which can degrade overall performance early in the training cycle.

Methods

The authors introduce MaskPlus, which integrates five distinct techniques to overcome these bottlenecks:

Overview of the MaskPlus Framework
  • Contextual Fusion: To restore global awareness, this module creates a parallel branch that extracts features from the full image size using a newly designed RoIAlign layer. These global features are then fused back into the local RoI features, helping the network resolve ambiguous boundaries and fragmentary objects.
  • Deconvolutional Pyramid Module: Instead of simply passing features to a single up-sampling layer, this module reverses the standard Feature Pyramid Network (FPN) approach. It up-samples the features first to capture fine details, and then down-samples them to combine multi-level semantic meanings.
  • Improved Boundary Refinement: To sharpen blurry edges, the authors replace standard, shallow residual blocks with a densely connected stack of convolutional modules specifically dedicated to learning boundary deficiencies.
  • Quasi-multitask Learning: This technique uses multi-scale mask labels (0.5x and 2x sizes) as auxiliary targets during training to enhance the network's scale invariance. Most importantly, these auxiliary branches are completely discarded at test time, meaning zero extra computational cost during inference.
  • Biased Training: To mitigate multi-task training conflicts, the authors dynamically weight the mask loss ($\alpha$). By setting $\alpha = 1.5$ early on, they force the mask branch to converge faster, reducing its negative, disruptive influence on the early-stage detection training. The weight is later dropped back to $1.0$ for normal training.

Datasets

The framework was trained and evaluated entirely on the highly competitive Microsoft COCO dataset (using the standard train-2017, val-2017, and test-dev subsets). The dataset consists of 115k training images and 5k validation images spanning 80 object categories. No new benchmarks were introduced.

Key Insights and Ideas

  • Global Context Informs Local Details: Isolating an object into a bounding box strips away helpful semantic relationships (e.g., a car is highly likely to be on a road, not in the sky). Re-introducing full-image context directly improves local pixel classification.
  • The "Free Lunch" of Auxiliary Scales: Forcing a network to learn to predict masks at multiple resolutions simultaneously acts as an excellent regularizer. Because these scale-specific heads are removed before deployment, the model gains robustness against scale variations for free.
  • Loss Weighting as a Pacing Mechanism: Adjusting loss weights isn't just about balancing task importance; it can be used to align the convergence schedules of structurally different network heads, preventing one from sabotaging the other during early training epochs.

Key Results

Ablation studies on the COCO dataset demonstrate that each of the five proposed techniques independently boosts mask Average Precision (AP) over the standard Mask R-CNN baseline (35.1 AP):

  • Contextual Fusion: Boosts AP to 35.5 (with the best configuration being a [720, 512, 512, 256] filter stack).
  • Deconvolutional Pyramid Module: Boosts AP to 35.4.
  • Improved Boundary Refinement: Boosts AP to 35.5, showing major improvements on medium and large objects.
  • Quasi-multitask Learning: Boosts AP to 35.4 (using the 0.5x scale).
Visual comparison of Mask R-CNN vs MaskPlus improvements

When all optimal settings are combined into the final MaskPlus model, it achieves 38.1 AP on the COCO test-dev leaderboard, a clear step up from the baseline Mask R-CNN's 36.9 AP. An advanced variant utilizing a cascade architecture (MaskPlus+) pushes the performance further to 40.9 AP.

Limitations and Future Work

While techniques like quasi-multitask learning and biased training add no inference overhead, other modules—such as contextual fusion and the improved boundary refinement stack—introduce additional layers and parameters that may slightly impact test-time latency.

Furthermore, the authors note that they did not integrate several orthogonal, state-of-the-art engineering enhancements used by concurrent models, such as heavier ResNeXt-101 backbones, multi-GPU synchronized batch normalization, or Atrous Spatial Pyramid Pooling (ASPP). Combining MaskPlus with these techniques represents a promising direction for future performance gains.

Summary updated

BibTeX
@inproceedings{xu2020maskplus,
  author = {Shichao Xu and Shuyue Lan and Qi Zhu},
  title = {{MaskPlus: Improving Mask Generation for Instance Segmentation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2020},
  doi = {10.1109/wacv45572.2020.9093379},
}
Figure