[Paper Review] SCNet: Training Inference Sample Consistency for Instance Segmentation
SCNet proposes a sample consistency training strategy to align the IoU distribution between training and inference in instance segmentation, reducing discrepancy in detection head outputs. By using only the final detection head for mask prediction during both training and inference, combined with feature relay and global context modeling, SCNet improves mask AP by 2.3 points and box AP by 1.3 points over Cascade Mask R-CNN while achieving 38% faster inference speed.
Cascaded architectures have brought significant performance improvement in object detection and instance segmentation. However, there are lingering issues regarding the disparity in the Intersection-over-Union (IoU) distribution of the samples between training and inference. This disparity can potentially exacerbate detection accuracy. This paper proposes an architecture referred to as Sample Consistency Network (SCNet) to ensure that the IoU distribution of the samples at training time is close to that at inference time. Furthermore, SCNet incorporates feature relay and utilizes global contextual information to further reinforce the reciprocal relationships among classifying, detecting, and segmenting sub-tasks. Extensive experiments on the standard COCO dataset reveal the effectiveness of the proposed method over multiple evaluation metrics, including box AP, mask AP, and inference speed. In particular, while running 38\% faster, the proposed SCNet improves the AP of the box and mask predictions by respectively 1.3 and 2.3 points compared to the strong Cascade Mask R-CNN baseline. Code is available at \url{https://github.com/thangvubk/SCNet}.
Motivation & Objective
- To address the mismatch in IoU distribution between training and inference in cascaded instance segmentation models.
- To improve generalization and detection accuracy by ensuring training samples reflect the same IoU distribution as inference.
- To strengthen task synergy between detection, classification, and segmentation through explicit feature flow and global context modeling.
- To achieve higher accuracy and faster inference speed without increasing model complexity.
Proposed method
- Introduces sample consistency by using only the final detection head's output for mask prediction during both training and inference, aligning the IoU distribution with inference.
- Employs feature relay to explicitly transfer refined box features to the mask branch, enhancing feature-level interaction.
- Incorporates a global context branch that provides long-range contextual features to improve mask prediction robustness.
- Uses a learnable loss weight for the global context branch to balance local and global supervision.
- Applies RoIAlign with shared features across stages to reduce redundancy and accelerate inference.
- Designs a unified network where all components are jointly trained to optimize instance segmentation performance.
Experimental results
Research questions
- RQ1How does the discrepancy in IoU distribution between training and inference affect instance segmentation performance?
- RQ2Can aligning the IoU distribution during training improve generalization and inference accuracy?
- RQ3What is the impact of explicit feature flow between detection and segmentation heads on segmentation quality?
- RQ4How does global context modeling improve mask prediction for ambiguous or occluded objects?
- RQ5Can sample consistency and architectural enhancements jointly improve both accuracy and inference speed?
Key findings
- SCNet improves mask AP by 2.3 points (from 37.4 to 39.8) and box AP by 1.3 points (from 43.3 to 33.6) compared to Cascade Mask R-CNN.
- The model runs 38% faster than the baseline, achieving 6.5 fps inference speed with effective sample consistency.
- Feature relay improves mask AP by 0.6 points in Cascade Mask R-CNN with minimal computational overhead.
- Global context modeling with a loss weight of 3 yields the best performance, increasing mask AP by 0.8 points compared to no global context.
- Combining sample consistency with feature relay reduces the number of feature relay modules from 3 to 1, improving efficiency without sacrificing performance.
- The ablation study confirms that effective sample consistency is critical for both accuracy and speed gains, outperforming naive sample consistency.
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.