Bootstrap Your Object Detector via Mixed Training

Mengde Xu, Zheng Zhang, Fangyun Wei, Yutong Lin, Yue Cao, Stephen Lin, Han Hu, Xiang Bai

TL;DR

The authors introduce MixTraining, a novel training paradigm for object detection that boosts performance without adding any computational overhead during inference. By using a bootstrapped teacher model to dynamically correct noisy human annotations and selectively apply strong data augmentations only to "easy" targets, MixTraining achieves a solid ~2 mAP improvement across popular architectures like Faster R-CNN and Cascade R-CNN.

What Problem Does This Paper Address?

Standard object detection models are typically trained using a static paradigm (which the authors call SiTraining): a single data augmentation strategy is applied uniformly across the dataset, and human-annotated bounding boxes are treated as absolute ground truth.

This approach has two major flaws:

  1. Annotation Noise: Human labelers are imperfect. Datasets often contain missing labels (unannotated objects) or inaccurate bounding boxes (poor localization due to occlusion or subjectivity). Treating these as perfect ground truth harms model training.
  2. Augmentation Pitfalls: Strong data augmentation is great for preventing overfitting, but applying it uniformly can be detrimental. If an image or object is already difficult to detect, applying a strong geometric or color distortion might make it completely unrecognizable, forcing the model to learn incongruous, confusing features.

Methods

MixTraining Pipeline

To solve these issues, MixTraining introduces two key mechanisms, both powered by an Exponential Moving Average (EMA) version of the detector being trained. This EMA model acts as a stable "teacher" to guide the training process via bootstrapping.

  1. Mixed Training Targets: The EMA model generates high-confidence pseudo-boxes (foreground score > 0.9) to correct human errors.
  2. Missing Labels: If a pseudo-box has a low overlap (IoU < 0.5) with any ground-truth box, it is assumed to be a missing annotation and is added to the training targets.
  3. Localization Noise: If a pseudo-box highly overlaps (IoU > 0.5) with a ground-truth box, the model trusts its own pseudo-box over the human annotation and replaces it.
  4. Mixed Data Augmentation: During training, images are randomly subjected to either normal or strong augmentation. However, to prevent strong augmentations from ruining hard examples, the EMA model evaluates the difficulty of each target. If a target is "easy" (score > 0.9), the model computes the loss for it normally. If a target is "hard," the model assigns it a weight of 0, effectively ignoring it during the strong augmentation pass so the network isn't penalized for failing to recognize heavily distorted, difficult objects.

Datasets

The method is evaluated on the standard COCO2017 dataset (118k training images, 5k validation, 20k test-dev). No new datasets are introduced, making the results directly comparable to existing baselines.

Key Insights and Ideas

  • Strong augmentation isn't universally good: The paper highlights that the magnitude of augmentation should be inversely proportional to the inherent difficulty of the sample. By dynamically filtering out hard targets during strong augmentation, models can reap the regularization benefits of heavy distortion without the penalty of learning garbage features.
  • Models can correct their human teachers: Deep neural networks are surprisingly robust to label noise. By utilizing an EMA model, the network can reliably identify where human annotators got lazy (loose bounding boxes) or missed objects entirely, and fix the dataset on the fly.
  • Unlocking longer training schedules: Standard training often overfits if trained for too long (e.g., performance drops when extending from 360k to 720k iterations). Because MixTraining constantly injects dynamic pseudo-labels and mixed augmentations, it prevents overfitting and actually benefits from much longer training schedules.

Key Results

MixTraining provides consistent, "free" performance boosts across different detectors and backbones on the COCO validation set:

  • Faster R-CNN (ResNet-50): Improved from 41.7 mAP to 44.0 mAP (+2.3).
  • Faster R-CNN (Swin-Small): Improved from 48.7 mAP to 50.3 mAP (+1.6).
  • Cascade R-CNN (Swin-Small): Improved from 50.9 mAP to 52.8 mAP (+1.9).
  • Ablation: Breaking down the improvements on Faster R-CNN (ResNet-50), the mixed data augmentation strategy alone contributed a +0.8 mAP boost, while the mixed training targets (pseudo-boxes) provided an additional +1.5 mAP.

Limitations and Future Work

While the authors do not dedicate a specific section to limitations, a few constraints are apparent from the experiments. First, MixTraining requires significantly longer training schedules (e.g., 720k iterations compared to the standard 360k) to fully realize its performance gains. Second, maintaining an EMA model and generating pseudo-boxes on the fly introduces extra memory and computational overhead during training. However, it is important to note that once training is complete, the resulting model architecture is unchanged, meaning inference is completely free of any extra cost. Future work could easily extend this bootstrapping paradigm to related tasks like instance segmentation or 3D object detection.

Summary updated

BibTeX
@inproceedings{xu2021bootstrap,
  author = {Mengde Xu and Zheng Zhang and Fangyun Wei and Yutong Lin and Yue Cao and Stephen Lin and Han Hu and Xiang Bai},
  title = {{Bootstrap Your Object Detector via Mixed Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=B9yXBaZDUxp},
}
Figure