用于密集目标检测的焦点损失

Focal Loss for Dense Object Detection

林宗毅 Tsung-Yi Lin · Meta AI · 2017-08-07 · arXiv:1708.02002 ↗ · 被引 3335

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

迄今为止,最高精度的目标检测器基于 R-CNN 推广的两阶段方法,其中分类器应用于稀疏的候选目标位置。相比之下,在可能的物体位置上进行规则、密集采样的单阶段检测器具有更快、更简单的潜力,但迄今为止其精度落后于两阶段检测器。在本文中,我们研究了这一现象的原因。我们发现,密集检测器训练过程中遇到的极端前景-背景类别不平衡是核心原因。我们提出通过重塑标准交叉熵损失来解决这种类别不平衡,即降低对分类良好的样本的损失权重。我们新颖的焦点损失专注于训练稀疏的困难样本,并防止大量简单负样本在训练过程中压倒检测器。为了评估我们损失的有效性,我们设计并训练了一个简单的密集检测器,称为 RetinaNet。我们的结果表明,当使用焦点损失训练时,RetinaNet 能够匹配先前单阶段检测器的速度,同时超越所有现有最先进的两阶段检测器的精度。代码地址:https://github.com/facebookresearch/Detectron。

The highest accuracy object detectors to date are based on a two-stage approach popularized by R-CNN, where a classifier is applied to a sparse set of candidate object locations. In contrast, one-stage detectors that are applied over a regular, dense sampling of possible object locations have the potential to be faster and simpler, but have trailed the accuracy of two-stage detectors thus far. In this paper, we investigate why this is the case. We discover that the extreme foreground-background class imbalance encountered during training of dense detectors is the central cause. We propose to address this class imbalance by reshaping the standard cross entropy loss such that it down-weights the loss assigned to well-classified examples. Our novel Focal Loss focuses training on a sparse set of hard examples and prevents the vast number of easy negatives from overwhelming the detector during training. To evaluate the effectiveness of our loss, we design and train a simple dense detector we call RetinaNet. Our results show that when trained with the focal loss, RetinaNet is able to match the speed of previous one-stage detectors while surpassing the accuracy of all existing state-of-the-art two-stage detectors. Code is at: https://github.com/facebookresearch/Detectron.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 17)

阅读逐段中英对照全文 →