Abstract
Domain shift is a major challenge for object detectors to generalize well to real world applications. Emerging techniques of domain adaptation for two-stage detectors help to tackle this problem. However, two-stage detectors are not the first choice for industrial applications due to its long time consumption. In this paper, a novel Domain Adaptive YOLO (DA-YOLO) is proposed to improve cross-domain performance for one-stage detectors. Image level features alignment is used to strictly match for local features like texture, and loosely match for global features like illumination. Multi-scale instance level features alignment is presented to reduce instance domain shift effectively, such as variations in object appearance and viewpoint. A consensus regularization to these domain classifiers is employed to help the network generate domain-invariant detections. We evaluate our proposed method on popular datasets like Cityscapes, KITTI, SIM10K and etc. The results demonstrate significant improvement when tested under different cross-domain scenarios.
Introduction
Deep learning models often suffer from "domain shift," where a mismatch between training data (source domain) and deployment data (target domain) leads to a significant drop in performance. For instance, an object detector trained on clear, sunny images may fail in foggy or rainy conditions. While Domain Adaptation (DA) techniques have been developed to mitigate this, they primarily focus on two-stage detectors like Faster R-CNN. These models, while accurate, are often too slow for real-time industrial applications such as autonomous driving.
One-stage detectors like YOLO are the industry standard for speed, but they lack the explicit region proposals that traditional DA methods rely on to align object-level features. DA-YOLO bridges this gap by introducing a robust framework for one-stage cross-domain detection.
Methodology
DA-YOLO augments the standard YOLOv3 architecture with three specialized modules designed to align features across domains while maintaining real-time performance.
1. Regressive Image Alignment (RIA)
This module aligns global image features such as lighting and weather. It employs a regressive weighting strategy: strictly aligning local features (textures) in early layers while loosely aligning global features in deeper layers. This approach prevents "negative transfer," where forcing two fundamentally different scenes to appear identical can degrade performance.
2. Multi-Scale Instance Alignment (MSIA)
Since YOLO lacks a Region Proposal Network (RPN), DA-YOLO utilizes the detector's own multi-scale headers to identify potential objects. ROI (Region of Interest) Pooling is then used to extract features for these specific instances, allowing for effective alignment of object appearance and viewpoint across domains.
3. Multi-Level Consensus Regularization (MLCR)
MLCR serves as a consistency check between image-level and instance-level domain classifiers. By forcing these classifiers to agree, the network is encouraged to learn truly domain-invariant features that are robust at every scale.
These modules utilize adversarial training with Gradient Reversal Layers (GRL), effectively training the network to produce features that a domain classifier cannot distinguish as belonging to either the source or target domain.
Experimental Evaluation
The researchers evaluated DA-YOLO across several challenging cross-domain scenarios, including weather changes (Cityscapes to Foggy Cityscapes), geographic shifts (KITTI to Cityscapes), and synthetic-to-real transitions (SIM10K to Cityscapes).
Key Results
DA-YOLO demonstrated substantial improvements over the standard YOLOv3 baseline:
- KITTI → Cityscapes: The model achieved a 54.0% Average Precision (AP) for cars, a 17.6% improvement over the baseline YOLOv3 (36.4%).
- Cityscapes → Foggy Cityscapes: The Mean Average Precision (mAP) improved from 32.5% to 36.1%, showcasing increased robustness to adverse weather.
- SIM10K → Cityscapes: On the synthetic-to-real task, it reached 50.9% AP, proving that models trained on synthetic data (e.g., GTA V) can be effectively adapted to real-world street scenes.
Discussion and Conclusion
DA-YOLO successfully brings robust domain adaptation to one-stage detectors. Key insights include the importance of varying alignment strength across network depths and the efficacy of using detection headers as pseudo-proposals for instance alignment.
While the results are promising, future work could explore the computational overhead of these modules during training and their integration with more recent YOLO versions (e.g., YOLOv8). Additionally, addressing "category-level" domain shifts remains an open area for further research. Nonetheless, DA-YOLO represents a significant step toward deploying reliable, real-time object detection in diverse real-world environments.
Summary updated