NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Object-Aware Domain Generalization for Object Detection

Wooju Lee, Dasol Hong, Hyungtae Lim, Hyun Myung

Introduction

Deep learning models for object detection often suffer from Domain Shift, where a model trained in one environment (e.g., sunny weather) fails when deployed in another (e.g., heavy snow or digital noise). While Domain Generalization (DG) techniques have been developed to address this, they are primarily designed for image classification. When applied to object detection, these methods often inadvertently damage the semantic features of small or low-contrast objects through aggressive augmentation, or they fail to properly distinguish objects from complex, unseen backgrounds.

Object detection challenges in corrupted domains: small and low-contrast objects are easily lost during standard augmentation.

To bridge this gap, the authors propose OA-DG (Object-Aware Domain Generalization). This framework introduces "object-aware" data augmentation and loss functions to preserve critical semantic information and improve the model's ability to differentiate foreground objects from diverse background environments.

Methodology

The OA-DG framework consists of two core components designed to make the training process sensitive to object-level semantics.

OA-Mix (Object-Aware Mixing)

Standard augmentations like AugMix apply transformations uniformly across an image. OA-Mix improves upon this by using a Multi-Level Transformation strategy that applies different operations to foreground objects, backgrounds, and random regions. Crucially, it employs Saliency-Based Mixing. By calculating a saliency score for each object, the system identifies "weak" features that are prone to being lost. For low-saliency objects, OA-Mix prioritizes original, clean pixels during the mixing process, ensuring the model retains a clear representation of difficult-to-detect objects.

OA-Loss (Object-Aware Loss)

Existing contrastive learning methods often treat the background as a single, uniform class. OA-Loss introduces Contrastive Learning for Backgrounds, treating distinct patches of the background as "negative pairs" to one another. This forces the model to learn a nuanced representation of the environment, making it more robust at identifying "object-ness" in novel domains.

Visualization of the OA-Loss contrastive strategy, where background patches (stars) are treated as distinct entities to improve feature discrimination.

Additionally, a Consistency Loss based on Jensen-Shannon divergence is used to ensure that the model’s predictions remain stable across both original and augmented versions of the input data.

Experimental Evaluation

The researchers evaluated OA-DG on two major benchmarks: Cityscapes-C (synthetic corruptions) and the Diverse Weather Dataset (DWD) (real-world weather shifts).

  • Cityscapes-C: OA-DG achieved a 21.8 mPC (mean Performance under Corruption), significantly outperforming the baseline (15.4) and previous state-of-the-art methods like FSCE (21.0).
  • Diverse Weather Dataset: The method reached 31.8 mPC, a notable improvement over the baseline (26.2) and specialized DG methods like CDSD (28.7).

Qualitative results confirm that OA-DG maintains high localization accuracy for small objects even under severe noise conditions where baseline models typically fail.

Conclusion

OA-DG demonstrates that making domain generalization "object-aware" is critical for robust object detection. By tailoring augmentations to object saliency and treating the background as a diverse entity, the framework achieves state-of-the-art performance across various corruption and weather benchmarks. Future work may involve integrating vision-language models to further enhance semantic robustness through textual category cues.

Summary updated

BibTeX
@inproceedings{lee2024object,
  author = {Wooju Lee and Dasol Hong and Hyungtae Lim and Hyun Myung},
  title = {{Object-Aware Domain Generalization for Object Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i4.28076},
}
Figure