[论文解读] Optimizing the Trade-off between Single-Stage and Two-Stage Object Detectors using Image Difficulty Prediction
本文提出了一种动态推理框架,通过图像难度预测器将测试图像路由至快速的一阶段检测器(如 MobileNet-SSD)或更准确的两阶段检测器(如 Faster R-CNN),具体依据预测的图像难度。与随机划分策略相比,该方法在准确率与速度之间实现了更优的权衡,处理时间最多减少 69%,同时 mAP 保持在独立使用 Faster R-CNN 的 4% 以内。
There are mainly two types of state-of-the-art object detectors. On one hand, we have two-stage detectors, such as Faster R-CNN (Region-based Convolutional Neural Networks) or Mask R-CNN, that (i) use a Region Proposal Network to generate regions of interests in the first stage and (ii) send the region proposals down the pipeline for object classification and bounding-box regression. Such models reach the highest accuracy rates, but are typically slower. On the other hand, we have single-stage detectors, such as YOLO (You Only Look Once) and SSD (Singe Shot MultiBox Detector), that treat object detection as a simple regression problem by taking an input image and learning the class probabilities and bounding box coordinates. Such models reach lower accuracy rates, but are much faster than two-stage object detectors. In this paper, we propose to use an image difficulty predictor to achieve an optimal trade-off between accuracy and speed in object detection. The image difficulty predictor is applied on the test images to split them into easy versus hard images. Once separated, the easy images are sent to the faster single-stage detector, while the hard images are sent to the more accurate two-stage detector. Our experiments on PASCAL VOC 2007 show that using image difficulty compares favorably to a random split of the images. Our method is flexible, in that it allows to choose a desired threshold for splitting the images into easy versus hard.
研究动机与目标
- 解决深度目标检测器中推理速度与检测准确率之间的权衡问题。
- 探究图像难度是否可作为可靠依据,用于动态选择一阶段与两阶段检测器。
- 设计一种灵活的框架,允许用户通过连续的分割阈值设置期望的准确率-速度权衡。
- 在速度和平均平均精度(mAP)方面超越随机图像划分策略。
提出的方法
- 训练一个深度神经网络,基于人工标注的难度标签预测图像难度分数。
- 使用训练好的难度预测器将每张测试图像分类为简单或复杂。
- 将简单图像路由至快速的一阶段检测器(如 MobileNet-SSD),将复杂图像路由至更准确的两阶段检测器(如 Faster R-CNN)。
- 在推理时应用该路由策略,实现无需修改底层检测器的动态选择。
- 调整分割比例(如 25%-75%、50%-50%),以控制速度与准确率之间的权衡。
- 在 PASCAL VOC 2007 数据集上,使用 mAP 和处理时间评估性能。
实验结果
研究问题
- RQ1图像难度预测是否能有效指导一阶段与两阶段目标检测器的选择,以优化准确率-速度权衡?
- RQ2基于难度的路由策略在 mAP 和推理时间方面与随机图像划分相比表现如何?
- RQ3所提出的框架在多大程度上可减少处理时间,同时保持高检测准确率?
- RQ4基于难度的策略性能增益是否因检测器组合的不同而变化(例如,MobileNet-SSD 与 SSD300)?
主要发现
- 在 50%-50% 分割下,使用 MobileNet-SSD 处理简单图像、Faster R-CNN 处理复杂图像时,基于难度的分割策略相比随机划分使 mAP 提升了 3.0%。
- 在 50%-50% 分割下,处理时间相比在整个测试集上使用 Faster R-CNN 减少了近 47%。
- 在 75%-25% 分割下,处理时间减少了 69%,同时 mAP 与独立使用 Faster R-CNN 的差距在 4.06% 以内。
- 图像难度预测器每张图像仅增加 0.05 秒的延迟,占 50%-50% MobileNet-SSD/Faster R-CNN 配置下总处理时间的 1%。
- 当使用 SSD300 处理简单图像、Faster R-CNN 处理复杂图像时,相比随机划分,mAP 提升了 3.35%。
- 性能增益归因于:一阶段检测器在简单图像上表现接近两阶段检测器,但在复杂图像上表现显著更差。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。