Training Region-based Object Detectors with Online Hard Example Mining
Abhinav Shrivastava, Abhinav Gupta, Ross Girshick
TL;DR
This work tackles the training inefficiency caused by extreme background-object imbalance in region-based detectors. It introduces Online Hard Example Mining (OHEM), an online, loss-driven sampling strategy that selects the hardest RoIs within each image for backpropagation, replacing several manual heuristics. OHEM yields consistent, substantial improvements on standard benchmarks (VOC07/12 and COCO) and is complementary to other advances like multi-scale training and iterative bounding-box regression, achieving state-of-the-art results on VOC07 with extra data. The approach is simple to integrate with existing region-based detectors and scales well to large datasets, making it practically impactful for improving detection accuracy without extensive hyperparameter tuning.
Abstract
The field of object detection has made significant advances riding on the wave of region-based ConvNets, but their training procedure still includes many heuristics and hyperparameters that are costly to tune. We present a simple yet surprisingly effective online hard example mining (OHEM) algorithm for training region-based ConvNet detectors. Our motivation is the same as it has always been -- detection datasets contain an overwhelming number of easy examples and a small number of hard examples. Automatic selection of these hard examples can make training more effective and efficient. OHEM is a simple and intuitive algorithm that eliminates several heuristics and hyperparameters in common use. But more importantly, it yields consistent and significant boosts in detection performance on benchmarks like PASCAL VOC 2007 and 2012. Its effectiveness increases as datasets become larger and more difficult, as demonstrated by the results on the MS COCO dataset. Moreover, combined with complementary advances in the field, OHEM leads to state-of-the-art results of 78.9% and 76.3% mAP on PASCAL VOC 2007 and 2012 respectively.
