Improving Single Domain-Generalized Object Detection: A Focus on Diversification and Alignment

Muhammad Sohail Danish, Muhammad Haris Khan, Muhammad Akhtar Munir, M. Saquib Sarfraz, Mohsen Ali · DOI

Introduction

Standard object detection models often suffer from significant performance degradation when deployed in environments different from their training data, a challenge known as domain shift. While Domain Generalization (DG) techniques aim to mitigate this, most existing methods require multiple source domains to learn domain-invariant features. In practice, however, researchers often have access to only a single high-quality labeled dataset. This paper addresses the challenge of Single Domain-Generalized Object Detection (Single-DGOD), proposing a framework to enhance model robustness using only one training environment.

The DivAlign Framework

The authors introduce DivAlign, a two-pronged strategy focusing on image diversification and feature alignment to improve generalization.

Diversification

To simulate various out-of-distribution scenarios, the framework employs a comprehensive pool of 22 visual corruptions, including blur, noise, digital effects, and Fourier-based transforms. This prevents the model from overfitting to the specific textures and lighting conditions of the source domain.

Alignment and Consistency

Simply training on augmented data is insufficient for robust generalization. DivAlign introduces two consistency losses to ensure stable predictions across clean and corrupted views of the same image:

  • Classification Alignment ($L_{cal}$): Encourages the model to produce consistent class probabilities regardless of image corruption.
  • Localization Alignment ($L_{ral}$): Ensures that predicted bounding box coordinates remain stable across different views.

To implement this in two-stage detectors like Faster R-CNN, the authors utilize a "1-1 correspondence" mechanism. Proposals generated from the original image are applied to the features of the augmented image, ensuring the model compares identical object instances across both views.

The DivAlign architecture illustrating the dual-path forward pass and alignment losses.

Experimental Evaluation

The model was rigorously tested across three domain-shift scenarios: Real-to-Artistic (Pascal VOC to Clipart/Watercolor/Comic), Urban Scenes (Daytime Sunny to Night/Fog/Rain), and Medical Imaging (cross-microscope generalization).

Key Results and Insights

The proposed method consistently outperformed state-of-the-art DG methods. On the Real-to-Artistic benchmark, DivAlign achieved significant improvements in mean Average Precision (mAP) over the baseline: +13.2% on Clipart, +12.9% on Watercolor, and +14.3% on Comic datasets.

Beyond accuracy, DivAlign significantly improves model calibration. By reducing overconfidence in incorrect predictions, the model achieves a lower Detection Expected Calibration Error (D-ECE), making its confidence scores more reliable for safety-critical applications like autonomous driving.

Performance (mAP%) and calibration (D-ECE%) results across artistic domains, comparing DivAlign to various baselines.

Discussion and Limitations

The study highlights that strong augmentation combined with consistency alignment can serve as a powerful baseline for Single-DGOD. The approach is detector-agnostic, showing success with both Faster R-CNN and FCOS architectures.

However, some limitations remain. The method introduces computational overhead due to the dual-image processing required for alignment losses. Additionally, performance is sensitive to the selection of hyperparameters ($\alpha$ and $\beta$) and the specific composition of the augmentation pool. Future work may focus on automating the selection of optimal augmentations for specific target domains.

Summary updated

BibTeX
@inproceedings{danish2024improving,
  author = {Muhammad Sohail Danish and Muhammad Haris Khan and Muhammad Akhtar Munir and M. Saquib Sarfraz and Mohsen Ali},
  title = {{Improving Single Domain-Generalized Object Detection: A Focus on Diversification and Alignment}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.01679},
}
Figure