[Paper Review] RetinaMask: Learning to predict masks improves state-of-the-art single-shot detection for free
RetinaMask trains RetinaNet with an added instance mask head, an adaptive self-adjusting Smooth L1 loss, and harder-example sampling, boosting detection accuracy without increasing inference cost.
Recently two-stage detectors have surged ahead of single-shot detectors in the accuracy-vs-speed trade-off. Nevertheless single-shot detectors are immensely popular in embedded vision applications. This paper brings single-shot detectors up to the same level as current two-stage techniques. We do this by improving training for the state-of-the-art single-shot detector, RetinaNet, in three ways: integrating instance mask prediction for the first time, making the loss function adaptive and more stable, and including additional hard examples in training. We call the resulting augmented network RetinaMask. The detection component of RetinaMask has the same computational cost as the original RetinaNet, but is more accurate. COCO test-dev results are up to 41.4 mAP for RetinaMask-101 vs 39.1mAP for RetinaNet-101, while the runtime is the same during evaluation. Adding Group Normalization increases the performance of RetinaMask-101 to 41.7 mAP. Code is at:https://github.com/chengyangfu/retinamask
Motivation & Objective
- Increase single-shot detector accuracy while keeping inference cost constant
Proposed method
- Add an instance mask prediction head to RetinaNet during training
- Introduce a Self-Adjusting Smooth L1 loss that adapts using running mean/variance
- Adopt a Best Matching Policy that relaxes the IOU threshold to assign positive anchors
- Distribute mask proposals to appropriate FPN layers and apply ROI-Align for mask prediction
- Train with multi-scale schedules and extended iterations for the mask module
- Compare RetinaMask against RetinaNet and Mask R-CNN on COCO
Experimental results
Research questions
- RQ1Does adding a mask prediction task during training improve single-shot detector accuracy without changing test-time cost?
- RQ2Do adaptive loss and expanded positive-anchor sampling improve training stability and final performance?
- RQ3How does RetinaMask compare to RetinaNet and Mask R-CNN on COCO in both bounding-box and mask accuracy?
Key findings
- RetinaMask-101 with GN achieves 41.7 bbox AP and 52.8 mask AP on COCO test-dev, outperforming RetinaNet-101 by a notable margin
- ResNeXt-101-FPN-GN based RetinaMask reaches 42.6 bbox AP and 53.8 mask AP, indicating further gains with stronger backbones
- Mask prediction head improves detection performance when trained with 1.5x schedule and appropriate feature assignments (P2–P5 for masks)
- Self-Adjusting Smooth L1 loss provides robust bounding-box regression performance across settings and outperforms fixed beta configurations
- Best Matching Policy (relaxing IOU for best matching anchors) yields higher accuracy and reduces duplicate detections
- Compared to Mask R-CNN, RetinaMask shows competitive bbox performance and slightly lower mask performance in the reported settings
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.