Learning Data Augmentation Strategies for Object Detection
Barret Zoph, Ekin D. Cubuk, Golnaz Ghiasi, Tsung-Yi Lin, Jonathon Shlens, Quoc V. Le
TL;DR
This work introduces a reinforcement-learning-based search to automatically discover data augmentation policies tailored for object detection, incorporating bounding-box–aware transformations. The learned policies significantly improve mAP on COCO (up to +2.3 mAP) and even push a single model to state-of-the-art performance (50.7 mAP) with larger input sizes and anchors, while transferring effectively to other datasets like PASCAL VOC and across different backbones and detectors. The results show that color, geometric, and bbox-specific augmentations collectively drive the gains, especially on small datasets and small objects, and that the learned policy provides regularization without relying on other regularizers. Overall, the approach reduces the need for additional labeled data and demonstrates broad applicability across detection settings.
Abstract
Data augmentation is a critical component of training deep learning models. Although data augmentation has been shown to significantly improve image classification, its potential has not been thoroughly investigated for object detection. Given the additional cost for annotating images for object detection, data augmentation may be of even greater importance for this computer vision task. In this work, we study the impact of data augmentation on object detection. We first demonstrate that data augmentation operations borrowed from image classification may be helpful for training detection models, but the improvement is limited. Thus, we investigate how learned, specialized data augmentation policies improve generalization performance for detection models. Importantly, these augmentation policies only affect training and leave a trained model unchanged during evaluation. Experiments on the COCO dataset indicate that an optimized data augmentation policy improves detection accuracy by more than +2.3 mAP, and allow a single inference model to achieve a state-of-the-art accuracy of 50.7 mAP. Importantly, the best policy found on COCO may be transferred unchanged to other detection datasets and models to improve predictive accuracy. For example, the best augmentation policy identified with COCO improves a strong baseline on PASCAL-VOC by +2.7 mAP. Our results also reveal that a learned augmentation policy is superior to state-of-the-art architecture regularization methods for object detection, even when considering strong baselines. Code for training with the learned policy is available online at https://github.com/tensorflow/tpu/tree/master/models/official/detection
