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

Soft-NMS -- Improving Object Detection With One Line of Code

Soft-NMS keeps overlapping detection boxes by lowering their scores instead of deleting them

  • Problem Greedy NMS deletes every box that overlaps the top-scoring box beyond a threshold, so a real object hidden in that overlap is missed.
  • Method Soft-NMS keeps the greedy NMS loop but lowers the scores of overlapping boxes by a function of their overlap with the top box, instead of deleting them.
  • Results On MS-COCO test-dev, Gaussian Soft-NMS raised R-FCN AP 0.5:0.95 from 31.1 to 32.4, without retraining the detector.

Why hard suppression loses true objects

Greedy NMS works on a list sorted by score. It takes the box M with the highest score, moves it to the final detections, and removes every remaining box whose overlap with M is greater than the threshold Nt. Removed boxes receive no further consideration, so the decision made at the top-scoring box is final for everything it overlaps.

That deletion is the weak point. A removed box gets a score of zero, so if it covers a different object that happens to overlap M, that object is missed and average precision drops.

The cost is sharper under the evaluation used for these detectors. AP is averaged over overlap thresholds Ot ranging from 0.5 to 0.95, and at a high Ot a box that barely escaped suppression can still be a true positive. A low Nt therefore increases the miss rate, while a high Nt keeps more near-duplicates and adds false positives at a low Ot.

Decaying scores instead of deleting boxes

Soft-NMS keeps the greedy loop of NMS: it picks the box M with the maximum current score and moves it to the final set D. The change is in what happens to the other boxes. Their scores are rescored by a function of their overlap with M, so every box stays in the list with a score that reflects how much it duplicates M.

The linear variant leaves a box's score unchanged when its overlap with M is below Nt, and otherwise scales the score by one minus that overlap. \[ s_i = s_i\,\bigl(1-\mathrm{iou}(M,b_i)\bigr) \quad \text{for } \mathrm{iou}(M,b_i)\ge N_t \] Because the penalty jumps when the overlap reaches Nt, the authors note that this rule is not continuous in the overlap.

The Gaussian variant applies a continuous penalty. Boxes with little overlap with M are barely changed, boxes that overlap M strongly are penalised most, and the width of the penalty is set by σ. \[ s_i = s_i\, e^{-\mathrm{iou}(M,b_i)^2/\sigma}, \quad \forall\, b_i \notin D \] This update is applied in every iteration to all boxes that remain, not only to those that overlap the newest M.

After each iteration, detections whose scores fall below a small threshold are discarded, which keeps the number of boxes that need rescoring small. The authors also note that Soft-NMS is a generalised form of NMS, and hard NMS is the special case with a discontinuous binary weighting.

Each step costs O(N) for N detection boxes, and the full procedure costs O(N^2), the same as greedy NMS. Because the rescoring step does not change the number of boxes handled per step beyond the pruning, the authors conclude it does not slow current detectors noticeably.

Since the method only replaces the post-processing step, it needs no extra training of the detector and can be added to an existing pipeline in place of NMS.

Datasets, detectors and run-time settings

PASCAL VOC has 20 object categories and MS-COCO has 80. Performance on PASCAL VOC is measured on the VOC 2007 test partition, and the MS-COCO test-dev partition contains 20,288 images. The sensitivity analysis uses the publicly available minival set of 5,000 images from MS-COCO.

Three detectors were tested: Faster-RCNN, R-FCN and Deformable-RFCN. For PASCAL VOC the pre-trained models were the publicly released ones, with Faster-RCNN trained on VOC 2007 train and R-FCN on VOC 2007 and 2012.

Both detectors use a default NMS threshold of 0.3, and the authors' R-FCN reaches 1.9% better accuracy than the value reported in the R-FCN paper, without multi-scale training or testing. Deformable R-FCN was trained with the same settings.

Evaluation keeps up to 400 detections per image on MS-COCO, and the evaluation server then selects the top 100 detections per class. Limiting the output to 100 maximum detections reduces the coco-style AP by 0.1. At a threshold of 10e-4 with 4 CPU threads, the run time is 0.01s per image for 80 classes, and at 10e-2 it is 0.005 seconds on a single core.

Benchmark gains over NMS

On the PASCAL VOC 2007 test set, using COCO-style evaluation, Soft-NMS raised the coco-style mAP of both R-FCN and Faster-RCNN by 1.7%.

On MS-COCO test-dev, Gaussian Soft-NMS moved R-FCN AP 0.5:0.95 from 31.1 to 32.4 and Faster-RCNN from 24.4 to 25.5. The text reports these as improvements of 1.3% for R-FCN and 1.1% for Faster-RCNN. The linear variant reached 32.2 for R-FCN and 25.5 for Faster-RCNN, so both weightings beat NMS in these rows.

Without multi-scale testing, Deformable-RFCN with Gaussian Soft-NMS moved from 37.4 to 38.4 AP 0.5:0.95 on test-dev. With multi-scale testing, the single Deformable-RFCN model rose from 39.8 to 40.9 AP 0.5:0.95 on MS-COCO test-dev.

How the threshold and σ affect AP

The sensitivity analysis varies the NMS threshold Nt for NMS and σ for Soft-NMS with R-FCN on the minival set, and reports AP at overlap thresholds from 0.5 to 0.8. For NMS, AP stays between Nt 0.3 and 0.6 with a variation of about 0.25%, and drops markedly outside that range.

At Ot 0.5, NMS reaches 0.5238 at Nt 0.4 and falls to 0.4323 at Nt 0.8. A higher Nt helps only slightly at a large Ot, but at a lower Ot it costs AP, so the gain from a high Nt does not carry over when AP is averaged across thresholds.

At Ot 0.5, Soft-NMS gives between 0.5136 and 0.5293 across σ from 0.1 to 1.1. The authors report that Soft-NMS performs about 2% better than NMS at higher Ot regardless of the NMS threshold chosen, and that the best AP for each Ot is higher for Soft-NMS. Soft-NMS is better than NMS over a range of σ from 0.1 to 0.7 and is stable from 0.4 to 0.7.

The experiments use σ 0.5, although σ 0.6 gave slightly better AP on the minival set; the authors judged the 0.1 difference not significant and kept 0.5.

Where the gains appear in precision and by class

The precision-recall curves for R-FCN at Ot 0.6, 0.7 and 0.8 compare NMS with Soft-NMS. Soft-NMS does not raise precision at low recall, since it only lowers scores, but its gains grow as Ot and recall increase.

The authors explain this by NMS giving zero score to every box above Nt, so many true boxes are lost and precision stops rising at high recall. Soft-NMS keeps those neighbouring boxes with reduced scores, which lifts precision at high recall.

On R-FCN, Soft-NMS improves per-class AP by more than 3% for animals that appear in herds, such as zebra, giraffe, sheep, elephant and horse, and by 3 to 6% for these classes. Classes such as toaster, sports ball and hair drier gain little, which the authors link to these objects being less likely to appear together in one image.

Limitations

For the non-proposal detectors SSD and YOLOv2, the linear function gave Soft-NMS an improvement of only 0.5%. The authors attribute this to proposal-based detectors having higher recall, which gives Soft-NMS more room to improve recall at a higher Ot.

Soft-NMS is still a greedy algorithm and does not find the globally optimal re-scoring of the boxes. The authors choose σ 0.5 for all reported experiments, which was not tuned on the test set.

The per-class and precision-recall analyses cover R-FCN only. Only the Gaussian Soft-NMS is used for the per-class and sensitivity results after the comparison tables. The Gompertz function and other rescoring functions with more parameters were not evaluated, and the authors note they would add hyper-parameters.

Paper info

Authors
Bodla, Navaneeth, Singh, Bharat, Chellappa, Rama, Davis, Larry S.
Venue
arXiv · Preprint
First published
2017-4-14
Added
2026-11-12
Updated
2017-8-8
Version
v2
arXiv
1704.04503
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

Bodla, Navaneeth, Singh, Bharat, Chellappa, Rama, Davis, Larry S. (2017). Soft-NMS -- Improving Object Detection With One Line of Code. arXiv:1704.04503v2. https://arxiv.org/abs/1704.04503v2

BibTeX
@misc{navaneeth2017soft,
  title = {{Soft-NMS -- Improving Object Detection With One Line of Code}},
  author = {Bodla, Navaneeth and Singh, Bharat and Chellappa, Rama and Davis, Larry S.},
  year = {2017},
  eprint = {1704.04503},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.04503v2}
}

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