TL;DR
This paper introduces the Cascade R-CNN, a novel multi-stage object detection architecture designed to overcome the "paradox of high-quality detection." By training a sequence of detectors with progressively increasing Intersection over Union (IoU) thresholds, Cascade R-CNN effectively addresses overfitting and inference-time quality mismatches, leading to state-of-the-art performance on challenging datasets.
What Problem Does This Paper Address?
Object detection systems typically use a threshold on the Intersection over Union (IoU) metric to distinguish between correct detections (positives) and incorrect ones (negatives). A common threshold of 0.5 is used, which allows for "noisy" or low-quality bounding boxes. While increasing this threshold (e.g., to 0.7) aims for higher quality detections, it leads to a paradox: performance often degrades. This degradation stems from two main issues:
- Overfitting: As the IoU threshold increases, the number of positive training samples drastically decreases, making it difficult to train robust detectors without overfitting.
- Quality Mismatch: Detectors trained with a specific IoU threshold are often optimized for hypotheses of that quality. At inference, when the generated object proposals (hypotheses) are of lower quality than the training threshold, the detector's performance suffers.
The paper aims to resolve this paradox and enable the training of detectors that consistently produce high-quality detections.
Methods
The core innovation is the Cascade R-CNN architecture, which extends the standard two-stage R-CNN framework by introducing a sequence of detectors, or "stages."
- Cascaded Bounding Box Regression: Instead of a single bounding box regressor, Cascade R-CNN employs a series of regressors. Each regressor is trained on the output of the previous one, progressively refining the bounding box predictions. This is crucial because a regressor optimized for one IoU threshold is not optimal for others. By cascading, each stage learns to improve the quality of hypotheses from the previous stage.
- Cascaded Detection: The entire detection pipeline is structured as a cascade. Each stage consists of a detector (classifier and regressor) trained with an increasing IoU threshold. The output of one stage serves as the input (resampled hypotheses) for the next. This sequential training ensures that each detector is optimized for the quality of hypotheses it receives, and it guarantees a sufficient number of positive samples at each stage, mitigating overfitting.
- Inference Strategy: The same cascaded structure is used during inference. This ensures that the quality of hypotheses progressively increases, matching the increasing selectivity of the detector stages, thereby eliminating the quality mismatch.
- Instance Segmentation Extension: The Cascade R-CNN framework is also extended to instance segmentation by adding a segmentation branch to the cascade, termed Cascade Mask R-CNN.
Datasets
The paper uses several standard datasets for evaluation:
- MS-COCO: Used extensively for both object detection and instance segmentation, including its stricter evaluation metrics.
- PASCAL VOC: Used for evaluating object detection.
- KITTI: Used for evaluating object detection, particularly for autonomous driving scenarios.
- CityPerson: Used for pedestrian detection.
- WiderFace: Used for face detection.
No new datasets were introduced.
Key Insights and Ideas
- The "Paradox of High-Quality Detection" is real: The paper clearly demonstrates that simply increasing the IoU threshold for training does not automatically lead to better high-quality detections due to overfitting and quality mismatches.
- Cascading is key: A sequential, cascaded approach to both bounding box regression and detection is highly effective. Each stage builds upon the previous, progressively improving hypothesis quality and detector selectivity.
- Training and Inference Alignment: The Cascade R-CNN's strength lies in aligning the training and inference processes. By using the same cascaded structure, the quality of hypotheses at inference matches the quality the detectors are trained for.
- Generalizability: The Cascade R-CNN architecture is shown to be robust and applicable to various baseline detectors (Faster R-CNN, FPN, R-FCN) and backbones (VGG, ResNet, ResNeXt), indicating its broad utility.
- Instance Segmentation Benefits: Extending the cascade to instance segmentation also yields significant improvements over standard methods like Mask R-CNN.
Key Results
- State-of-the-Art Performance: The Cascade R-CNN achieved state-of-the-art results on the challenging MS-COCO dataset with a simple implementation, outperforming many existing single-model detectors.
- Significant Gains in High-Quality Metrics: The method showed substantial improvements in higher IoU metrics (e.g., AP75, AP80, AP90), demonstrating its effectiveness in achieving precise detections. For instance, gains of up to 6.1 for AP80 and 8.7 for AP90 were observed compared to baselines.
- Improved Localization: The cascaded regression approach significantly improved localization accuracy compared to iterative bounding box regression methods.
- Instance Segmentation Improvements: The Cascade Mask R-CNN demonstrated nontrivial improvements over the Mask R-CNN for instance segmentation.
- Robustness: The Cascade R-CNN consistently improved performance across various datasets, detector architectures, and backbone networks.
Limitations and Future Work
- Computational Overhead: While the paper states the overhead is small, increasing the number of stages does linearly increase the number of parameters and computation. The authors explored the trade-off between the number of stages and performance, suggesting a three-stage cascade offers a good balance.
- Further Enhancements: The paper mentions that the Cascade R-CNN can be combined with other complementary enhancements (e.g., Group Normalization, multi-scale training/inference), suggesting future work could explore these integrations for even greater gains.
- Instance Segmentation Strategies: While three strategies for integrating segmentation branches were explored, the paper notes that strategy (d) (segmentation at each stage) requires more computation and memory, implying further optimization might be possible.
The authors have released their code to facilitate future research.
Summary updated