Abstract
The recent progress in developing pre-trained models, trained on large-scale datasets, has highlighted the need for robust protocols to effectively adapt them to domain-specific data, especially when there is a limited amount of available data. Data augmentations can play a critical role in enabling data-efficient fine-tuning of pre-trained object detection models. Choosing the right augmentation policy for a given dataset is challenging and relies on knowledge about task-relevant invariances. In this work, we focus on an understudied aspect of this problem – can bounding box annotations be used to design more effective augmentation policies? Through InterAug, we make a critical finding that, we can leverage the annotations to infer the effective context for each object in a scene, as opposed to manipulating the entire scene or only within the pre-specified bounding boxes. Using a rigorous empirical study with multiple benchmarks and architectures, we demonstrate the efficacy of InterAug in improving robustness and handling data scarcity. Finally, InterAug can be used with any off-the-shelf policy, does not require any modification to the architecture, and significantly outperforms existing protocols.
Introduction
Deep learning models for object detection are notoriously data-hungry. While standard data augmentations like flipping, cropping, and color jittering are commonly used to expand small datasets, most current policies are designed for image classification and treat the entire image as a single unit (image-level augmentation).
When researchers attempt to apply these augmentations specifically to objects within an image (bbox-level augmentation), performance often drops. Bounding boxes are "noisy" labels; they are not pixel-perfect boundaries and often contain varying amounts of background. Naively manipulating only the pixels inside a box creates inconsistent decision rules that confuse the model. InterAug addresses this by using bounding box information to intelligently define an "effective context" for image manipulations, helping models learn better object-level invariances without expensive hyperparameter searches.
Methods: The InterAug Policy
InterAug is a "tuning-free" strategy that can be wrapped around any existing augmentation tool, such as TrivialAug. The core innovation is the concept of Effective Context (EC). Instead of augmenting just the area inside a single bounding box ($B_i$), InterAug leverages the relationship between objects in a scene.
The process involves:
- Pairing: For a target object $O_i$, another object $O_j$ in the same scene is randomly selected.
- Union and Subtraction: A "union box" encompassing both objects is calculated. The "Effective Context" is defined as the area of this union box minus the area of the second object's box ($B_j$).
- Augmentation: Random transformations (like blur, noise, or color changes) are applied only within this specific, irregularly shaped context.
By varying object pairings across training iterations, the context around an object constantly changes. This prevents the model from relying on background "shortcuts" and forces it to learn more robust features.
Experimental Evaluation
The researchers evaluated InterAug across three major architectures—Faster R-CNN, RetinaNet, and DETR—using two primary benchmarks:
- Pascal VOC: Used to test data efficiency by training on only 10% and 20% of the available data.
- DetectBench (BDD-100K): Used to test robustness against out-of-distribution (OOD) shifts in weather (clear vs. rainy), scene (city vs. rural), and time (day vs. night).
Key Results and Insights
InterAug demonstrates significant improvements in both robustness and data efficiency. On the BDD-100K benchmarks, it provided an average boost of ~7.8% mAP over bbox-level augmentation and ~3.9% over standard image-level augmentation across all architectures.
Data Efficiency and Error Reduction
When training data is scarce, InterAug provides a clear advantage. On 10% of Pascal VOC data, it outperformed image-level augmentation by 2.6% for Faster R-CNN and 3.1% for RetinaNet. Analysis using the TIDE framework shows that InterAug specifically excels at reducing localization and background errors, which are primary drivers of false positives.
The "Bbox-Level Trap" is confirmed: naively augmenting only inside bounding boxes is often worse than no augmentation at all, as it fails to teach the model how an object relates to its surroundings. By including a "buffer" of background pixels, InterAug provides necessary spatial cues, significantly reducing object "hallucinations" in the background.
Conclusion and Future Work
InterAug offers a practical, tuning-free wrapper for object detection augmentation. While highly effective, future work could explore more sophisticated object pairing strategies beyond random selection, such as those based on proximity or semantic category. Additionally, as a wrapper, its performance remains tied to the underlying base augmentation policy. Despite these areas for exploration, InterAug significantly outperforms existing protocols without requiring architectural modifications.
Summary updated