Skip to main content
QUICK REVIEW

[Paper Review] Mask Scoring R-CNN

Zhaojin Huang, Lichao Huang|arXiv (Cornell University)|Mar 1, 2019
Machine Learning and Data ClassificationComputer Science5 citations
TL;DR

Mask Scoring R-CNN proposes a novel head, MaskIoU head, that predicts the Intersection-over-Union (IoU) between predicted and ground truth masks to improve instance segmentation scoring. By regressing mask quality directly from features and combining it with classification scores, the method achieves consistent AP gains of ~1.5% over Mask R-CNN across multiple backbones, aligning mask scores with actual mask quality.

ABSTRACT

Letting a deep network be aware of the quality of its own predictions is an interesting yet important problem. In the task of instance segmentation, the confidence of instance classification is used as mask quality score in most instance segmentation frameworks. However, the mask quality, quantified as the IoU between the instance mask and its ground truth, is usually not well correlated with classification score. In this paper, we study this problem and propose Mask Scoring R-CNN which contains a network block to learn the quality of the predicted instance masks. The proposed network block takes the instance feature and the corresponding predicted mask together to regress the mask IoU. The mask scoring strategy calibrates the misalignment between mask quality and mask score, and improves instance segmentation performance by prioritizing more accurate mask predictions during COCO AP evaluation. By extensive evaluations on the COCO dataset, Mask Scoring R-CNN brings consistent and noticeable gain with different models, and outperforms the state-of-the-art Mask R-CNN. We hope our simple and effective approach will provide a new direction for improving instance segmentation. The source code of our method is available at \url{https://github.com/zjhuang22/maskscoring_rcnn}.

Motivation & Objective

  • Address the misalignment between classification confidence and actual mask quality in instance segmentation.
  • Improve instance segmentation performance by learning a more accurate mask scoring mechanism.
  • Calibrate mask scores using a learned mask quality predictor to better reflect actual mask IoU with ground truth.
  • Provide a simple yet effective method to enhance evaluation metrics like COCO AP by refining hypothesis scoring.
  • Enable better generalization across different backbone networks by decoupling mask quality estimation from classification.

Proposed method

  • Introduce a MaskIoU head that takes RoI features and predicted mask as input to regress the IoU between the predicted mask and its ground truth.
  • Train the MaskIoU head using a simple L1 regression loss on the ground-truth IoU of each instance.
  • Combine the predicted MaskIoU with the original classification score to form a refined mask score: final_score = classification_score × predicted_MaskIoU.
  • Integrate the MaskIoU head into the Mask R-CNN framework without modifying the backbone or detection head.
  • Use SoftNMS to rank proposals and select top 100 for evaluation, ensuring consistent scoring across inference.
  • Train the MaskIoU head on all training samples, including low-IoU ones, to improve generalization and correlation with ground truth.

Experimental results

Research questions

  • RQ1Can a learned mask quality predictor improve instance segmentation performance when used to reweight mask scores?
  • RQ2How does the correlation between predicted MaskIoU and ground-truth IoU vary across different backbone networks?
  • RQ3What is the impact of using ground-truth IoU as an upper bound for mask scoring in instance segmentation?
  • RQ4Does the proposed method consistently improve performance across different backbone architectures and model scales?
  • RQ5What is the computational cost of adding the MaskIoU head, and does it remain negligible in practice?

Key findings

  • The MaskIoU head achieves a correlation coefficient of ~0.74 between predicted and ground-truth IoU on COCO 2017 validation set, indicating strong predictive capability.
  • Using all training samples (including low-IoU ones) for MaskIoU head training yields the best performance, outperforming threshold-based sampling.
  • Mask Scoring R-CNN improves COCO AP by 1.6 percentage points over Mask R-CNN when using ResNet-18 FPN, and by 1.4 points with ResNet-101 DCN+FPN.
  • The ideal case of perfect MaskIoU prediction (replacing predicted IoU with ground truth) would yield an additional 2.2 and 2.6 AP gain for ResNet-18 FPN and ResNet-101 DCN+FPN, respectively.
  • The computational cost of the MaskIoU head is negligible, adding only ~0.39G FLOPs per proposal, with inference speed nearly identical to Mask R-CNN on TITAN V.
  • The method consistently improves performance across different backbones, demonstrating generalization and robustness to architecture changes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.