Skip to main content
QUICK REVIEW

[Paper Review] Loss Rank Mining: A General Hard Example Mining Method for Real-time Detectors

Hao Yu, Zhaoning Zhang|arXiv (Cornell University)|Apr 10, 2018
Advanced Neural Network ApplicationsComputer Science7 citations
TL;DR

This paper proposes Loss Rank Mining (LRM), a general hard example mining method for real-time object detectors that selects hard examples based on loss ranking from the final feature map, without requiring region proposals or loss function modifications. LRM boosts YOLOv2's mAP by over 5% on KITTI and 2% on PASCAL VOC by focusing training on foreground objects, which are otherwise overwhelmed by backgrounds.

ABSTRACT

Modern object detectors usually suffer from low accuracy issues, as foregrounds always drown in tons of backgrounds and become hard examples during training. Compared with those proposal-based ones, real-time detectors are in far more serious trouble since they renounce the use of region-proposing stage which is used to filter a majority of backgrounds for achieving real-time rates. Though foregrounds as hard examples are in urgent need of being mined from tons of backgrounds, a considerable number of state-of-the-art real-time detectors, like YOLO series, have yet to profit from existing hard example mining methods, as using these methods need detectors fit series of prerequisites. In this paper, we propose a general hard example mining method named Loss Rank Mining (LRM) to fill the gap. LRM is a general method for real-time detectors, as it utilizes the final feature map which exists in all real-time detectors to mine hard examples. By using LRM, some elements representing easy examples in final feature map are filtered and detectors are forced to concentrate on hard examples during training. Extensive experiments validate the effectiveness of our method. With our method, the improvements of YOLOv2 detector on auto-driving related dataset KITTI and more general dataset PASCAL VOC are over 5% and 2% mAP, respectively. In addition, LRM is the first hard example mining strategy which could fit YOLOv2 perfectly and make it better applied in series of real scenarios where both real-time rates and accurate detection are strongly demanded.

Motivation & Objective

  • To address the lack of general hard example mining methods for real-time object detectors that do not rely on region proposals or specific loss functions.
  • To improve detection accuracy in real-time detectors like YOLOv2, which suffer from foreground-background class imbalance despite being widely used in real-world applications.
  • To develop a method that can be directly applied to existing real-time detectors without architectural or loss function modifications.
  • To demonstrate that loss ranking from the final feature map can effectively identify and prioritize hard examples, especially foreground objects, during training.

Proposed method

  • LRM selects hard examples by ranking all predictions in the final feature map based on their loss values in descending order.
  • Only the top N predictions with the highest losses are retained for backpropagation, effectively filtering out easy examples (mostly backgrounds).
  • The method operates directly on the final detection head output, making it applicable to all real-time detectors that produce a final feature map.
  • It does not require region proposals or changes to the loss function, enabling direct integration into existing models like YOLOv2.
  • The number of selected hard examples (N) is a hyperparameter tuned for optimal performance on different datasets and NMS settings.
  • LRM implicitly emphasizes foreground objects by focusing training on predictions with high loss, which are typically misclassified or poorly localized foregrounds.

Experimental results

Research questions

  • RQ1Can a general hard example mining method be developed for real-time detectors that does not depend on region proposals or specific loss functions?
  • RQ2How effective is loss ranking from the final feature map in improving detection accuracy for real-time detectors like YOLOv2?
  • RQ3Can LRM outperform existing methods like Focal Loss on YOLOv2 without modifying its original loss function?
  • RQ4What is the optimal number of hard examples (N) to select for backpropagation across different datasets and NMS thresholds?
  • RQ5Does filtering easy examples through LRM lead to better generalization or potential information loss?

Key findings

  • LRM improves YOLOv2’s mAP by 5.05% on the KITTI dataset, a significant gain for real-time autonomous driving applications.
  • On the more general PASCAL VOC dataset, LRM boosts YOLOv2’s mAP by 2.27% compared to the original model, achieving 77.40% mAP.
  • When compared to Focal Loss, LRM achieves better performance without requiring changes to YOLOv2’s original loss function, which is a major advantage for model compatibility.
  • The optimal number of hard examples (N) varies with NMS threshold: 128 is best at 0.5 and 1.0, but 256 is optimal at 0.7 due to retained redundant information.
  • For class-specific performance, LRM causes a moderate drop in mAP for 'cat' (around 3%) but a significant drop for 'dog', suggesting class-specific sensitivity to hard example selection.
  • Experiments show that LRM is the first general hard example mining method that can be directly applied to YOLOv2, significantly improving its accuracy where prior methods failed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.