Abstract
In recent years, object detection has shown impressive results using supervised deep learning, but it remains challenging in a cross-domain environment. The variations of illumination, style, scale, and appearance in different domains can seriously affect the performance of detection models. Previous works use adversarial training to align global features across the domain shift and to achieve image information transfer. However, such methods do not effectively match the distribution of local features, resulting in limited improvement in cross-domain object detection. To solve this problem, we propose a multi-level domain adaptive model to simultaneously align the distributions of local-level features and global-level features. We evaluate our method with multiple experiments, including adverse weather adaptation, synthetic data adaptation, and cross camera adaptation. In most object categories, the proposed method achieves superior performance against state-of-the-art techniques, which demonstrates the effectiveness and robustness of our method.
Introduction
Object detection models often suffer from a significant drop in performance when deployed in environments different from their training data—a phenomenon known as domain shift. For instance, a model trained on clear, sunny images may fail to detect vehicles in foggy or rainy conditions. While existing solutions leverage adversarial training to align global image features, they often overlook local-level variations such as texture and patterns, which are highly sensitive to environmental changes.
Methodology
The proposed framework addresses domain shift by aligning features at multiple levels of the network hierarchy. Building upon the Faster R-CNN architecture, the authors introduce Multi-level Patch-based Adaptation.
Multi-level Classifiers and Patch-based Loss
Instead of a single global domain classifier, multiple classifiers are attached to intermediate layers of the convolutional backbone. These classifiers operate on local "patches" of the feature maps, forcing the network to learn domain-invariant local textures.
Adversarial Learning and Consistency
The model utilizes Gradient Reversal Layers (GRL) to facilitate adversarial training. As the domain classifiers improve at identifying the source of a feature, the GRL encourages the backbone to produce features that confuse the classifiers. Furthermore, a consistency regularization term ensures that local patch-level predictions align with global image-level predictions, providing a unified domain alignment.
Experimental Results
The method was evaluated across three scenarios:
- Adverse Weather: Cityscapes (clear) to Foggy Cityscapes.
- Synthetic to Real: SIM 10k (GTA V) to Cityscapes.
- Cross-Camera: Cityscapes to KITTI.
Feature Alignment Visualization
The effectiveness of the multi-level approach is evident in t-SNE visualizations. Unlike standard domain adaptation (DA) which may align domains but merge distinct object categories, the proposed method maintains category separation while achieving better domain overlap.
Quantitative Performance
On the Foggy Cityscapes dataset, the model achieved a 36.0 mAP, significantly outperforming the baseline (22.8 mAP) and previous state-of-the-art domain adaptation methods (30.1 mAP). For synthetic-to-real adaptation, the model reached 42.8 AP for the car category. Notably, the domain classifiers are only required during training, resulting in no additional computational overhead during inference.
Conclusion
The multi-level domain adaptive model demonstrates that simultaneous alignment of local and global features is crucial for robust cross-domain object detection. By focusing on local textures through patch-based classifiers and maintaining consistency with global semantics, the framework achieves superior performance across various challenging domain shifts. Future work will focus on stabilizing adversarial training and addressing category imbalance.
Reference: Xie, R., Yu, F., Wang, J., Wang, Y., & Zhang, L. (2019). Multi-level Domain Adaptive learning for Cross-Domain Detection. arXiv:1907.11484v2 [cs.CV].
Summary updated