# Cascade R-CNN: High Quality Object Detection and Instance Segmentation

Cascade of detectors trained at rising IoU thresholds yields higher-quality object boxes

Zhaowei Cai, Nuno Vasconcelos · arXiv · 2019-6-24

- **Problem** Detectors trained at a high IoU threshold often lose accuracy, because positive training samples become scarce and overfit. Raising the threshold also mismatches the boxes the detector meets at inference.
- **Method** Cascade R-CNN chains three detection heads trained at IoU thresholds 0.5, 0.6 and 0.7. Each stage trains on the boxes regressed by the previous one, and the same cascade runs at inference.
- **Results** The single ResNet-101 model reaches 42.8 AP on COCO test-dev. With a ResNeXt-152 backbone and enhancements, it reaches 50.9 AP.

## Why stricter thresholds do not simply give better detectors

A candidate box counts as positive when its IoU with a ground-truth box reaches a threshold, and that threshold is what separates the positives from the close false positives. The common threshold of 0.5 accepts many boxes that a human would reject as close misses, so detectors trained with it frequently output noisy boxes.

The obvious remedy is to train with a higher threshold, but the reported results show that detection accuracy can fall when the threshold is raised. In the authors' experiment, the detector trained at 0.7 reached AP 0.319, below the 0.349 of the 0.5 detector and the 0.354 of the 0.6 detector, measured in the detection plot of Fig. 2.

The authors trace this to two causes: proposals are dominated by low-quality boxes, so high thresholds leave few positives and invite overfitting, and the detector meets lower-quality hypotheses at inference than it was trained for.

## How the cascade of detection stages is built

Cascade R-CNN keeps the two-stage R-CNN layout, with a proposal sub-network followed by region-wise detection heads, and adds more heads in sequence. The default setting uses one RPN and three detection heads trained at IoU thresholds 0.5, 0.6 and 0.7.

Each head is trained on the boxes that the previous head regressed, so the training samples of a later head come from a distribution already shifted toward the ground truth. This works because a trained regressor usually returns boxes with higher IoU than the boxes it received, so the output of one stage is a good hypothesis set for training the next, higher-threshold stage.

This resampling is not hard negative mining, because its purpose is to produce close false positives of rising quality rather than to pick the hardest background examples.

## Box regression targets and the per-stage loss

A regressor f(x, b) maps a candidate box b to the ground-truth box g of an image patch x, and its loss is a smooth L1 penalty summed over the four coordinates. The targets are offsets relative to the candidate box, \\(\\delta\_x=(g\_x-b\_x)/b\_w\\) and \\(\\delta\_w=\\log(g\_w/b\_w)\\), with the y and h terms defined the same way, so the loss is roughly invariant to box scale and location.

Because these offsets are often small compared with the classification loss, each offset is normalized by subtracting its mean and dividing by its corresponding sigma, as in \\(\\delta'\_x=(\\delta\_x-\\mu\_x)/\\sigma\_x\\) in the paper's notation. The statistics are computed after outliers are removed at each stage, and they differ by stage; for the x offset the sigma is 0.1234 in the first stage and 0.0391 in the third.

Each stage t has a classifier h\_t and a regressor f\_t tuned to its own IoU threshold, and the stage loss adds the cross-entropy term to the regression term, with the regression applied only to positive boxes. The loss is written as \\(L(x\_t,g)=L\_{cls}(h\_t(x\_t),y\_t)+\\lambda\[y\_t\\ge 1\]L\_{loc}(f\_t(x\_t,b\_t),g)\\) with \\(\\lambda=1\\), and the same IoU threshold controls both the classification label and the regression samples.

## Running the cascade at inference

Hypotheses thereby improve from stage to stage, and each detection head sees the quality of hypotheses it was trained for.

Outlier boxes that cannot meet the stricter IoU of a later stage are dropped, which the authors note improves the learning of the later regressors.

## How the cascade differs from iterative box regression and integral loss

Iterative bounding box regression applies one regressor repeatedly at inference, and training is the same as a standard two-stage detector trained at IoU 0.5.

The cascade instead uses cascaded regression as a resampling mechanism during training and inference, and each stage has its own specialized regressor, so training and inference see the same distributions. Integral loss trains heads at several IoU thresholds but keeps the hypothesis distribution fixed, whereas the cascade changes that distribution from stage to stage.

## Testing the quality mismatch with ground-truth and cascade proposals

Three detectors were trained individually at thresholds 0.5, 0.6 and 0.7 and evaluated over IoU thresholds from 0.5 to 0.95. With their own proposals, the 0.5 detector beats the 0.6 detector at low IoU and loses at higher IoU, and the 0.7 detector underperforms both overall, with AP 0.349, 0.354 and 0.319 at the three thresholds in Fig. 2(c).

When ground-truth boxes were added to the proposals as a diagnostic, all three detectors improved, and the 0.7 detector gained the most, reaching AP 0.495 against 0.457 for the 0.6 detector and 0.394 for the 0.5 detector.

Feeding the 0.6 and 0.7 detectors with proposals from the 2nd and 3rd cascade stages raised their performance, and at the first stage the 0.7 detector scored 0.256 AP while at the third stage it scored 0.383. The jointly trained detectors also beat the individually trained ones even when given the same proposals, which the authors take as evidence that training inside the cascade is better.

## COCO detection results against the state of the art

On the val split, the FPN+ detector with a ResNet-101 backbone reaches 38.5 AP, and adding the cascade gives 42.7 AP under the same backbone. The authors summarize the FPN+ to Cascade R-CNN step as an improvement of about 4 points.

On COCO test-dev the single-model Cascade R-CNN with a ResNet-101 backbone reaches 42.8 AP, and with a ResNeXt-152 backbone and enhancements at training and inference it reaches 50.9 AP. The authors report that the vanilla ResNet-101 version outperformed almost all of the single-model detectors listed in their comparison table, and that it is 7.1 points above AttractioNet.

The authors note that several listed detectors use training or inference enhancements, which makes the comparison unfair in those cases.

## Gains across detector baselines and codebases

Across these baselines the authors report gains of 2 to 4 points, which they take as showing the gain does not depend on how strong the baseline is.

The cascade adds parameters linearly with the number of stages, in proportion to the detector head, and its extra computation is small because the head is much cheaper than the backbone. For FPN+ with ResNet-101, the per-image training time went from 0.38s to 0.41s and the test time from 0.115s to 0.14s, with the model size growing from 238M to 345M, all measured on a single Titan Xp GPU.

On Detectron with the FPN detector, the cascade gave consistent gains of 3 to 4 points across backbones, and it also held with group normalization, for example ResNet-50-GN rising from 38.4 to 42.2 AP.

## Choosing the number of stages

The ablation in Table 4 compares cascades with different numbers of stages, and the authors state that overall AP falls as stages are added while the four-stage cascade is best at high IoU levels. The authors judge the three-stage cascade to offer the best trade-off between cost and AP, and they use it for the rest of the experiments.

## Proposal recall at each cascade stage

With an FPN detector and ResNet-50 backbone, the first cascade stage has recall close to the FPN baseline, so the first stage adds little to proposal quality. The second stage raises AP1k recall from 59.1 to 70.7 and AP1kl recall from 68.4 to 88.1, which is close to 20 points.

The third stage adds a smaller further gain, reaching 71.4 at AP1k, and the authors take this recall as supporting the later high-quality detection stages.

## Adding mask branches to the cascade

Mask R-CNN adds a segmentation branch in parallel with the detection branch during training, and the Cascade Mask R-CNN has several detection branches, so the segmentation branch can be placed in different ways. Strategy (b) puts one mask head at the first stage, strategy (c) at the last stage, and strategy (d) adds a mask head to every stage, and at inference the masks are predicted on the boxes from the final detection stage.

All three strategies beat the Mask R-CNN baseline, which has AP90 8.3, and the AP90 values are 9.3 for (b), 10.1 for (c) and 10.0 for (d). The authors note that the gains are smaller than for detection, with an AP90 gain of 1.8 points for segmentation against 8.7 points for object detection.

The authors observe that (c) outperforms (b) because (b) trains the mask head at the first stage but tests after the last stage, a mismatch that (c) reduces, and they note that (d) gives no clear benefit over (c) at a higher cost. Strategy (b) is still used in the remaining experiments because it gives the best trade-off between cost and AP.

With the ResNeXt-152 backbone, training augmentation and a 1.44x schedule, the Cascade Mask R-CNN gains 2.9 points in detection and 1.0 point in instance segmentation, and with inference enhancements the gains are 2.1 and 0.8 points.

## Datasets, baselines and training settings

The bulk of the experiments use MS-COCO 2017, trained on about 118k training images, validated on 5k images and evaluated on about 20k test-dev images without public annotations. The average precision measure averages AP over IoU thresholds from 0.5 to 0.95 in steps of 0.05, which weights high-quality detection, and additional experiments cover Pascal VOC, KITTI, CityPersons and WiderFace.

The VOC experiments train on VOC2007 and VOC2012 trainval, with 16,551 images, and test on VOC2007 test, with 4,952 images. All cascade regressors are class agnostic, every cascade stage uses the same head as the baseline detector, and the only augmentation is horizontal flipping.

For the FPN+ baseline, the learning rate was 0.005 for 120k iterations and then 0.0005 for the next 60k iterations, on 8 GPUs.

## Limitations

Many of the listed state-of-the-art detectors are trained at IoU 0.5 and use multi-scale training, Soft NMS or other enhancements, so their comparison with the vanilla cascade is not controlled. The comparison with the enhanced cascade uses multi-scale training and inference, a stronger backbone and mask supervision, which are separate from the vanilla setting.

The paper states that other proposal mechanisms should be possible, but the experiments described here use only the RPN for proposals. Instance segmentation gains are smaller than detection gains, especially at high quality, and the extra mask heads in strategy (d) cost more without a clear benefit.

The parameter count grows linearly with the number of stages, and the four-stage cascade has lower overall AP than the three-stage one. The iterative BBox baseline was implemented by applying the FPN+ head three times at inference, so it is a reimplementation under the authors' settings.

## Paper info

- **Authors**: Zhaowei Cai, Nuno Vasconcelos
- **Venue**: arXiv · Preprint
- **First published**: 2019-6-24
- **Added**: 2026-11-12
- **Updated**: 2019-6-24
- **Version**: v1
- **arXiv**: 1906.09756
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1906.09756v1) · [PDF ↗](https://arxiv.org/pdf/1906.09756v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Zhaowei Cai, Nuno Vasconcelos (2019). Cascade R-CNN: High Quality Object Detection and Instance Segmentation. arXiv:1906.09756v1. https://arxiv.org/abs/1906.09756v1

**BibTeX**

```
@misc{cai2019cascade,
  title = {{Cascade R-CNN: High Quality Object Detection and Instance Segmentation}},
  author = {Zhaowei Cai and Nuno Vasconcelos},
  year = {2019},
  eprint = {1906.09756},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.09756v1}
}
```

## Other paper commentary

- [DSSD : Deconvolutional Single Shot Detector](https://refivu.com/en/papers/800d2066-c083-45ac-bb3d-507e72445f62-dssd-deconvolutional-single-shot-detector.md)
- [Activation Functions: Comparison of trends in Practice and Research for Deep Learning](https://refivu.com/en/papers/b7691c32-6640-47d3-9dda-c4586bd48272-activation-functions-comparison-of-trends-in-practice-and.md)
- [Deep Learning for Sensor-based Activity Recognition: A Survey](https://refivu.com/en/papers/2047ba14-2bcc-42f2-a0fe-57280553acee-deep-learning-for-sensor-based-activity-recognition-a.md)
- [Deep Learning for Image Super-resolution: A Survey](https://refivu.com/en/papers/32a6ff3a-537c-439a-86c3-7db381a355bd-deep-learning-for-image-super-resolution-a-survey.md)
- [Structure-measure: A New Way to Evaluate Foreground Maps](https://refivu.com/en/papers/66f23442-e0d8-4496-ab4e-14cc3ce84c90-structure-measure-a-new-way-to-evaluate-foreground.md)
- [Deep Learning for Anomaly Detection: A Survey](https://refivu.com/en/papers/f19cac5f-c77b-441b-b92c-d53cb0d82935-deep-learning-for-anomaly-detection-a-survey.md)
- [Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models](https://refivu.com/en/papers/d7cee9c8-e38d-4e30-b35b-f069db83f282-qwen3-embedding-advancing-text-embedding-and-reranking.md)
- [Stacked Attention Networks for Image Question Answering](https://refivu.com/en/papers/aa94a5f2-b4fb-441a-af4b-22eda9ad2985-stacked-attention-networks-for-image-question-answering.md)
- [A guide to convolution arithmetic for deep learning](https://refivu.com/en/papers/7690e8f8-368e-4a59-a827-7093c4415777-a-guide-to-convolution-arithmetic-for-deep-learning.md)
- [Semantic Similarity in a Taxonomy: An Information-Based Measure and its Application to Problems of Ambiguity in Natural Language](https://refivu.com/en/papers/2aedc905-eee8-4237-bf2e-929c6d3718a0-semantic-similarity-in-a-taxonomy-an-information-based.md)
- [Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Models](https://refivu.com/en/papers/6bd22a78-4fb3-465f-b297-2113b18ee3f2-explainable-artificial-intelligence-understanding.md)
- [Learning Hand-Eye Coordination for Robotic Grasping with Deep Learning and Large-Scale Data Collection](https://refivu.com/en/papers/7027eeb7-fc1d-48f5-a7af-9efbaa9ad813-learning-hand-eye-coordination-for-robotic-grasping-with.md)

## Terms in this paper

- [Faster R-CNN](https://refivu.com/en/terms/6a6dc13482bb-faster-r-cnn)
- [Mask R-CNN](https://refivu.com/en/terms/6da881f24c0c-mask-r-cnn)
- [IoU](https://refivu.com/en/terms/49f3d09602a9-iou)
- [Average Precision](https://refivu.com/en/terms/1764eaa249a6-average-precision)
- [KITTI](https://refivu.com/en/terms/300e3e1e2f51-kitti)
- [MS-COCO](https://refivu.com/en/terms/3c7d75a4a2eb-ms-coco)
- [PASCAL VOC](https://refivu.com/en/terms/f661ede6fa9d-pascal-voc)
- [Fast R-CNN](https://refivu.com/en/terms/ed8daa4558be-fast-r-cnn)
- [R-FCN](https://refivu.com/en/terms/7bbaf3ca2a0f-r-fcn)
- [Region Proposal Network](https://refivu.com/en/terms/1d7cd1c08ddf-region-proposal-network)
- [intersection over union](https://refivu.com/en/terms/6378daf802a9-intersection-over-union)
- [Cascade Mask R-CNN](https://refivu.com/en/terms/91bd24b3f04f-cascade-mask-r-cnn)
- [Cascade R-CNN](https://refivu.com/en/terms/7ba6343d646c-cascade-r-cnn)
- [group normalization](https://refivu.com/en/terms/511e11b5ba5a-group-normalization)
- [cascaded bounding box regression](https://refivu.com/en/terms/df34537dd9f5-cascaded-bounding-box-regression)
- [Cascaded Detection](https://refivu.com/en/terms/4ead8ce25507-cascaded-detection)
- [FPN+](https://refivu.com/en/terms/66d88c04cd85-fpn)
- [integral loss](https://refivu.com/en/terms/b4b52986579a-integral-loss)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/484c94a6-ca7a-4e4d-a933-9ea5ec919a68-cascade-r-cnn-high-quality-object-detection-and)
