Introduction
Object detection models deployed in autonomous driving systems often exhibit significant performance degradation when transitioning from training environments to unseen conditions. This phenomenon, known as the domain gap, is particularly acute in urban scenes where weather and lighting vary drastically. While training on massive, multi-domain datasets is a potential solution, the cost of labeling millions of images across every conceivable weather condition is prohibitive.
Researchers have turned to Single-Domain Generalization (S-DG), aiming to train models on a single labeled "source" domain (e.g., sunny weather) that can generalize to diverse "target" domains (e.g., rain, fog, night) without additional labeled data. Traditional methods like simple color jittering or basic style transfer often fail to capture the complex semantic textures of real-world weather or inadvertently corrupt object labels.
The GoDiff Framework
To address these challenges, we introduce GoDiff, a novel framework that leverages Latent Diffusion Models (LDMs) to bridge the weather gap. GoDiff operates through two primary mechanisms: image-level generation and feature-level normalization.
Pseudo Target Data Generation (PTDG)
Instead of applying simple filters, GoDiff utilizes a pre-trained LDM (specifically InstanceDiffusion) to synthesize "pseudo-target" images. Given a source image and its corresponding bounding boxes, the model "re-paints" the scene into target conditions like heavy rain or night while maintaining strict spatial consistency for the objects.
- Dual-Prompt Strategy: The generation process is guided by global prompts (e.g., "a cityscape at night") and object-specific prompts (e.g., "a black car") to ensure environmental and instance-level coherence.
- Quality Control: To maintain high training data standards, a CLIP-RBF kernel is employed to filter out "hallucinated" or low-quality generated objects, ensuring the detector learns from realistic representations.
Cross-Style Instance Normalization (CSN)
Beyond image generation, GoDiff introduces Cross-Style Instance Normalization (CSN) during detector training. By randomly swapping style statistics (mean and variance of feature maps) between source and pseudo-target images, the model's backbone is forced to learn style-invariant features. This encourages the detector to recognize objects based on structural properties rather than lighting-dependent textures.
Experimental Results
GoDiff was evaluated on two major benchmarks: the Diverse Weather Dataset (DWD) and Cityscapes-C.
On the DWD benchmark, GoDiff improved the baseline Faster R-CNN's mean performance (mPC) from 25.5% to 29.6%. The gains were most significant in extreme scenarios; for instance, in the "Night-Sunny" domain, mAP rose from 31.8% to 35.4%. On the Cityscapes-C robustness benchmark, GoDiff improved mPC from 15.4% to 20.3%. Furthermore, when integrated with existing state-of-the-art frameworks like OA-DG, it achieved a new benchmark of 22.8%.
Discussion and Conclusion
A key insight from this work is the effectiveness of diffusion models as "world simulators." Pre-trained LDMs contain vast prior knowledge of environmental variations, which, when fine-tuned on the source domain, can generate highly authentic training data. However, a limitation remains: GoDiff is less effective against purely digital corruptions (e.g., pixelated noise) because diffusion models are inherently biased toward generating natural image manifolds.
In conclusion, GoDiff demonstrates that combining high-fidelity diffusion-based data synthesis with feature-level style normalization significantly enhances the robustness of object detectors in the face of unpredictable urban environments.
Summary updated