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

Soft-NMS: 제거 대신 점수를 낮춰 겹친 객체 살리기

Bodla, Navaneeth, Singh, Bharat, Chellappa, Rama, Davis, Larry S. · arXiv · 2017년 4월 14일

- **연구 문제** 기존 NMS는 최고 점수 박스와 겹치는 이웃의 점수를 0으로 만듭니다. 겹쳐 있던 실제 객체도 함께 사라집니다.
- **연구 방법** Soft-NMS는 이웃 박스를 지우지 않고 최고 점수 박스와 겹치는 정도에 따라 점수를 깎습니다. 겹침이 클수록 많이 깎습니다.
- **주요 결과** MS-COCO에서 R-FCN은 AP가 1.3%, Faster-RCNN은 1.1% 올랐고, PASCAL VOC 2007에서는 두 검출기 모두 1.7% 올랐습니다.

## NMS가 이웃 박스를 지우는 문제

객체 검출기는 하나의 객체에 대해 여러 개의 박스를 만들기 때문에 후처리에서 중복을 정리해야 합니다. 전통적인 greedy NMS는 최고 점수 박스 M을 고른 뒤, M과의 overlap이 임계값 Nt를 넘는 이웃 박스를 제거합니다. 이 방식은 이웃 박스의 점수를 0으로 만들기 때문에, 실제로 다른 객체가 그 겹침 영역 안에 있었다면 그 객체는 검출 목록에서 완전히 사라집니다. 임계값을 낮추면 누락이 늘고, 높이면 거짓 양성이 늘어 어느 쪽이든 여러 overlap 기준에 걸친 평균 정밀도가 떨어질 수 있습니다. 이 논문은 이 후처리 단계만 바꿔 이 문제를 줄이려 합니다.

## 점수를 감쇠하는 Soft-NMS

Soft-NMS는 greedy NMS의 흐름을 유지하면서 제거 대신 점수 감쇠를 사용합니다. 최고 점수 박스 M을 최종 집합 D에 옮긴 뒤, 나머지 박스 bi의 점수 si를 iou(M,bi)에 따라 낮춥니다. 논문은 선형 가중치와 Gaussian 가중치를 제시하며, 실험에서는 Gaussian 가중치를 기본으로 사용했습니다. Gaussian 갱신은 si를 exp(−iou(M,bi)^2/σ)로 곱하는 형태이므로, overlap이 낮으면 점수가 거의 줄지 않고 overlap이 1에 가까워질수록 큰 감점이 적용됩니다. 이 갱신은 매 반복마다 남은 모든 박스에 적용됩니다. 저자들은 이 방식이 겹친 이웃의 점수를 낮춰 순위 목록에는 남기되 가능성을 줄이는 구조라고 설명합니다.

## 계산 비용과 greedy 한계

Soft-NMS의 각 단계는 모든 검출 박스의 점수를 갱신하므로 한 단계의 비용은 O(N)입니다. N개 박스 전체에서는 O(N^2)이며, 이는 전통적인 greedy NMS와 같습니다. 다만 Soft-NMS도 greedy 알고리즘이어서 박스 점수의 전역 최적 재스코어링을 보장하지 않습니다. 논문은 이 점을 방법의 한계로 명시합니다.

## MS-COCO와 PASCAL VOC에서의 AP 비교

검증은 MS-COCO test-dev와 PASCAL VOC 2007 test 세트에서 R-FCN과 Faster-RCNN을 대상으로 NMS와 Soft-NMS를 비교하는 방식입니다. MS-COCO에서 Soft-NMS는 R-FCN의 AP를 1.3%, Faster-RCNN의 AP를 1.1% 높였습니다. PASCAL VOC 2007에서는 두 검출기 모두 1.7%의 향상을 기록했습니다. 이 수치들은 여러 overlap threshold에서 평균한 COCO 스타일 AP이며, 검출기 구조와 NMS 설정은 바꾸지 않았습니다. Deformable-RFCN에서는 MST를 포함한 단일 모델 설정에서 39.8%에서 40.9%로 올랐습니다.

## 임계값과 σ에 대한 민감도

민감도 분석은 MS-COCO minival에서 R-FCN을 기준으로 NMS의 Nt와 Soft-NMS의 σ를 바꿔 AP를 측정했습니다. NMS의 AP는 Nt 0.3부터 0.6 사이에서 안정적이었고, 그 밖에서는 크게 떨어졌습니다. Soft-NMS는 약 0.1부터 0.7 범위에서 NMS보다 나은 AP를 보였고, 0.4부터 0.7 구간에서 안정적이었습니다. 실험에서는 σ를 0.5로 고정했습니다. σ 0.6이 coco-minival에서 더 높은 성능을 보였지만, 민감도 분석이 뒤에 수행되었고 차이가 0.1%로 크지 않다고 판단했습니다.

## 높은 overlap 기준에서의 정밀도

높은 overlap threshold에서 NMS는 이웃 박스를 0점으로 만들어 실제 객체가 있는 박스까지 버리므로 높은 recall 구간의 정밀도가 오르지 않습니다. Soft-NMS는 이웃 박스를 재점수화해 남기므로 높은 recall 구간에서 정밀도 향상이 나타났습니다.

## 논문 정보

- **저자**: Bodla, Navaneeth, Singh, Bharat, Chellappa, Rama, Davis, Larry S.
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2017년 4월 14일
- **등록일**: 2026년 11월 12일
- **수정일**: 2017년 8월 8일
- **버전**: v2
- **arXiv**: 1704.04503
- **분류**: cs.CV
- **원문 이용 조건**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **제공 범위**: 논문 정보, 해설

[논문 원문 ↗](https://arxiv.org/abs/1704.04503v2) · [원문 PDF ↗](https://arxiv.org/pdf/1704.04503v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 원문 인용

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

## 이 논문의 용어

- [IoU](https://refivu.com/terms/49f3d09602a9-iou)
- [average precision](https://refivu.com/terms/1764eaa249a6-average-precision)
- [Non-Maximum Suppression](https://refivu.com/terms/a710b7d63bcd-non-maximum-suppression)
- [MS-COCO](https://refivu.com/terms/3c7d75a4a2eb-ms-coco)
- [Object detection](https://refivu.com/terms/113bfdb14049-object-detection)
- [Faster-RCNN](https://refivu.com/terms/7399dfe3365a-faster-rcnn)
- [R-FCN](https://refivu.com/terms/7bbaf3ca2a0f-r-fcn)
- [Soft-NMS](https://refivu.com/terms/2394dbd2b1ba-soft-nms)

## 다른 논문 해설

- [Identifying the Best Machine Learning Algorithms for Brain Tumor Segmentation, Progression Assessment, and Overall Survival Prediction in the BRATS Challenge](https://refivu.com/papers/a75a6487-afcf-4dd0-8b85-09a24d21da45-identifying-the-best-machine-learning-algorithms-for-brain.md)
- [Deep Learning for Person Re-identification: A Survey and Outlook](https://refivu.com/papers/d4bdc05a-ddac-43ad-93f5-95986e1858a4-deep-learning-for-person-re-identification-a-survey.md)
- [EMNIST: an extension of MNIST to handwritten letters](https://refivu.com/papers/c0f15d57-13ab-41d2-b5f0-6b120e9504c7-emnist-an-extension-of-mnist-to-handwritten-letters.md)
- [PV-RCNN: Point-Voxel Feature Set Abstraction for 3D Object Detection](https://refivu.com/papers/698bbbfa-a9d9-4163-aa75-907d42df6ab3-pv-rcnn-point-voxel-feature-set-abstraction-for.md)
- [Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Books](https://refivu.com/papers/323226d2-ee36-4f99-996b-0fa1ffc4b7d8-aligning-books-and-movies-towards-story-like-visual.md)
- [TPH-YOLOv5: Improved YOLOv5 Based on Transformer Prediction Head for Object Detection on Drone-captured Scenarios](https://refivu.com/papers/7b9d05fd-dda5-4960-b0c6-089e3a595e15-tph-yolov5-improved-yolov5-based-on-transformer-prediction.md)
- [SeqGAN: Sequence Generative Adversarial Nets with Policy Gradient](https://refivu.com/papers/29153239-a1df-4102-9df1-abd1ba2a9c96-seqgan-sequence-generative-adversarial-nets-with-policy.md)
- [Qwen2.5-Coder Technical Report](https://refivu.com/papers/8282ea88-f013-4a5f-832a-687a740c2ff3-qwen2-5-coder-technical-report.md)
- [Generating Sentences from a Continuous Space](https://refivu.com/papers/921b1922-5f2e-49a8-80cd-9df917da7fe7-generating-sentences-from-a-continuous-space.md)
- [PoseCNN: A Convolutional Neural Network for 6D Object Pose Estimation in Cluttered Scenes](https://refivu.com/papers/66e8eadd-21d7-4e03-a7bb-1fbeda963ac8-posecnn-a-convolutional-neural-network-for-6d-object.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/d6a13a67-cb33-4ee3-8420-05da2f2b5960-soft-nms-improving-object-detection-with-one-line)
