Scale-Aware Automatic Augmentation for Object Detection

Yukang Chen, Yanwei Li, Tao Kong, Lu Qi, Ruihang Chu, Lei Li, Jiaya Jia

Introduction

Object detection remains a fundamental challenge in computer vision, primarily due to the vast variance in object scales. A tiny bird in the distance requires significantly different processing than a car in the foreground. While data augmentation techniques like flipping, cropping, and color jittering are standard, most strategies are either hand-crafted or borrowed from image classification, failing to address the specific scale-related needs of detection tasks.

Researchers from CUHK and ByteDance have introduced Scale-aware AutoAug (SA-AutoAug), an automated framework designed to learn data augmentation policies tailored for object detection. By optimizing for scale invariance at both the image and individual bounding-box levels, SA-AutoAug achieves performance gains of up to +3.1% AP while reducing computational search costs by 40x compared to previous state-of-the-art methods.

Scale-Aware Search Space

Existing automated augmentation tools often ignore how transformations affect objects of different sizes. SA-AutoAug addresses this through a dual-level search space:

Image-level Augmentation

The framework learns optimal probabilities and ratios for "zoom-in" and "zoom-out" operations. Zooming out is particularly effective as it helps the detector process more small objects, which are typically the most difficult to identify.

Image-level augmentation search space showing zoom-in and zoom-out operations with associated probability and magnitude parameters.

Box-level Augmentation

Transformations like color changes or rotations are applied to specific object boxes. To prevent the model from over-fitting to artificial rectangular edges, the authors introduced Gaussian-based blending to smooth the boundaries of augmented boxes. Additionally, an area ratio parameter allows augmentation intensity to adapt based on whether an object is small, medium, or large.

Pareto Scale Balance

Traditional automated augmentation search is computationally expensive because it often requires training a model to completion for every candidate policy. SA-AutoAug introduces the Pareto Scale Balance metric to streamline this process.

Instead of relying solely on overall validation accuracy, this metric evaluates how a policy affects performance balance across different scales. Using the principle of Pareto Optimality, it penalizes policies that improve one scale (e.g., large objects) at the expense of another (e.g., small objects). This allows the search to converge much faster on policies that provide universal improvements. Furthermore, the search is accelerated by fine-tuning a pre-trained model for just a few iterations rather than training from scratch.

Performance and Efficiency

The results of SA-AutoAug are consistent across various architectures, including RetinaNet, Faster R-CNN, Mask R-CNN, and FCOS. On a standard RetinaNet (ResNet-50), the method improved Average Precision (AP) from 38.2% to 41.3%.

Performance comparison of SA-AutoAug against baseline and other augmentation methods, showing superior AP across various inference times.

Beyond accuracy, the efficiency gains are staggering. The search process for SA-AutoAug requires only 20 GPU days, a 40x reduction compared to the 800 TPU days required by previous methods like AutoAug-det. The learned policies also demonstrate high transferability, showing gains on Pascal VOC and even improving performance in related tasks like instance segmentation and keypoint estimation.

Conclusion

Scale-aware AutoAug represents a significant step forward in making automated data augmentation practical for object detection. By focusing on scale-specific challenges and introducing an efficient search metric, the authors have provided a tool that is both more effective and significantly more accessible to the broader research community. Future work may expand this search space to include more complex generative or "cut-and-paste" augmentations.

Summary updated

BibTeX
@inproceedings{chen2021scale,
  author = {Yukang Chen and Yanwei Li and Tao Kong and Lu Qi and Ruihang Chu and Lei Li and Jiaya Jia},
  title = {{Scale-Aware Automatic Augmentation for Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00944},
}
Figure