Skip to main content
QUICK REVIEW

[论文解读] Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression

Hamid Rezatofighi, Nathan Tsoi|arXiv (Cornell University)|Feb 25, 2019
Advanced Neural Network ApplicationsComputer Science被引用 41
一句话总结

引入 Generalized IoU (GIoU) 作为边界框回归的度量和损失,解决 IoU 在非重叠时的瓶颈并提升在 VOC 和 COCO 上的检测器性能。

ABSTRACT

Intersection over Union (IoU) is the most popular evaluation metric used in the object detection benchmarks. However, there is a gap between optimizing the commonly used distance losses for regressing the parameters of a bounding box and maximizing this metric value. The optimal objective for a metric is the metric itself. In the case of axis-aligned 2D bounding boxes, it can be shown that $IoU$ can be directly used as a regression loss. However, $IoU$ has a plateau making it infeasible to optimize in the case of non-overlapping bounding boxes. In this paper, we address the weaknesses of $IoU$ by introducing a generalized version as both a new loss and a new metric. By incorporating this generalized $IoU$ ($GIoU$) as a loss into the state-of-the art object detection frameworks, we show a consistent improvement on their performance using both the standard, $IoU$ based, and new, $GIoU$ based, performance measures on popular object detection benchmarks such as PASCAL VOC and MS COCO.

研究动机与目标

  • Identify the gap between regressor losses and IoU optimization in bounding box regression.
  • Propose Generalized IoU (GIoU) to address non-overlapping cases while preserving IoU properties.
  • Derive an analytical GIoU solution for axis-aligned rectangles and integrate as a loss in leading detectors.
  • Empirically validate GIoU loss across Faster R-CNN, Mask R-CNN, and YOLO v3 on PASCAL VOC and MS COCO.
  • Demonstrate improved localization performance under both IoU-based and newly proposed GIoU-based evaluation metrics.

提出的方法

  • Define Generalized IoU (GIoU) as IoU minus a normalized empty-volume term using the smallest enclosing shape C.
  • Provide Algorithm 1 for computing GIoU between A and B and show it yields a metric with non-negativity, symmetry, triangle inequality, and scale invariance.
  • Specialize to 2D axis-aligned rectangles to obtain an analytic, backpropagatable loss L_GIoU for bounding box regression (Algorithm 2).
  • Show that GIoU loss has non-zero gradients even when boxes do not overlap, unlike IoU loss.
  • Demonstrate that GIoU is a tight lower bound to IoU and converges to IoU as shapes become similar.
  • Integrate L_GIoU into Faster R-CNN, Mask R-CNN, and YOLO v3 by replacing respective regression losses and optionally scaling to stabilize training.]

实验结果

研究问题

  • RQ1Can GIoU serve as a drop-in replacement for IoU as a regression loss for bounding boxes?
  • RQ2Does optimizing with GIoU loss improve localization accuracy on standard object detection benchmarks?
  • RQ3How does GIoU behave in non-overlapping cases and how does its gradient compare to IoU?
  • RQ4What empirical gains do state-of-the-art detectors exhibit when trained with GIoU across VOC and COCO datasets?
  • RQ5How does GIoU correlate with IoU, especially at high overlap?

主要发现

  • GIoU loss improves localization performance across detectors and datasets compared to IoU-based losses.
  • On PASCAL VOC 2007 with Faster R-CNN, GIoU yields AP 0.392 and AP75 0.395, versus IoU-based losses at AP 0.384/0.375 and baseline 0.370/0.358, respectively.
  • On MS COCO 2018 validation for Faster R-CNN, GIoU achieves AP 0.373 and AP75 0.404, versus IoU at 0.373/0.403 and baseline 0.364/0.392.
  • For Mask R-CNN on MS COCO 2018 validation, GIoU reaches AP 0.376 and AP75 0.395 compared with IoU 0.374/0.364 and baseline 0.366/0.356.
  • For YOLO v3 on PASCAL VOC 2007, GIoU improves AP from 0.461 to 0.477 and AP75 from 0.451 to 0.469.
  • On MS COCO 2014, YOLO v3 with GIoU achieves AP 0.335 and AP75 0.348 on 5K val set, outperforming MSE and IoU losses.
  • Overall, GIoU-based training yields consistent improvements in localization metrics (IoU- and GIoU-based AP) across major detectors and benchmarks.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。