Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

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

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

  • 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
What we show
Paper info and commentary

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}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up