TL;DR
This paper introduces SDG-DiffDet, a novel diffusion-based framework for single-domain generalized object detection. It tackles the challenge of domain shift by explicitly modeling feature augmentation and target-to-source distribution transfer, achieving state-of-the-art performance on challenging benchmarks.
What Problem Does This Paper Address?
Training object detectors on large, labeled datasets yields impressive results. However, deploying these detectors in real-world scenarios often leads to a significant performance drop due to domain shifts – variations in lighting, weather, or camera perspectives. Domain adaptation (DA) methods aim to bridge this gap but typically require unlabeled target data during training, which is often impractical. Domain generalization (DG) offers a more practical solution by training a model on one or more source domains to generalize to unseen target domains. While existing DG methods often rely on data augmentation to increase diversity or feature disentanglement to separate domain-specific information, they struggle with two key issues: 1) predefined augmentations may not cover the full spectrum of target domain variations, and 2) training on multiple augmented domains can overlook discrepancies between these augmented domains. This paper specifically addresses single-domain generalized object detection, where the model is trained on a single source domain and must generalize to multiple unseen target domains, a more challenging and realistic scenario.
Methods
The core innovation of SDG-DiffDet lies in its use of diffusion models to explicitly handle domain shift. The framework comprises two main modules:
- Memory-guided Diffusion Module: This module aims to generate diverse, augmented source features that mimic unseen domains. Instead of relying on predefined augmentations, it uses feature statistics memories (mean and standard deviation) learned from local parts across the entire dataset. These statistics are then used with Adaptive Instance Normalization (AdaIN) to transfer diverse styles to source features. These augmented features are then used as "noise" in the diffusion process's forward step, guiding the model to capture distribution differences. This approach is novel in its use of learned feature statistics for augmentation within a diffusion framework.
- Source-guided Denoising Module: This module handles the crucial task of transferring the distribution of augmented (or unseen target) features back to the source domain during the reverse diffusion process. Since source information is unavailable during inference, the module uses text-guided conditions. A pretrained CLIP text encoder generates embeddings from source-domain style prompts (e.g., "in a daytime clear scene") and class names. These embeddings interact with the augmented features via a cross-attention mechanism to create conditions that align with the source domain's style while preserving semantic content. This allows the diffusion model to denoise and reconstruct features in a source-consistent manner.
The overall training objective combines the supervised detection loss with losses for diversity, reconstruction, and pixel-text matching.
Datasets
The paper evaluates SDG-DiffDet on two benchmark datasets:
- Urban Scene Dataset: This dataset comprises images captured under various weather conditions (Daytime Clear, Night Clear, Night Rainy, Dusk Rainy, Daytime Foggy), sourced from BDD-100k, FoggyCityscapes, and AdverseWeather. For experiments, Daytime Clear is used as the source domain, and the other conditions serve as unseen target domains.
- Real to Artistic Dataset: This dataset consists of four domains: Pascal VOC (real images), Clipart1k, Watercolor2k, and Comic2k (artistic images). Pascal VOC is used as the source domain, and the artistic datasets are treated as unseen target domains.
Key Insights and Ideas
- Diffusion Models as Domain Adapters: The paper demonstrates that diffusion models can be effectively repurposed not just for generation but also for sophisticated domain adaptation tasks, specifically for transferring distributions in feature space.
- Learned Feature Statistics for Augmentation: Moving beyond predefined augmentations, using learned feature statistics from memory modules allows for more targeted and diverse style augmentation, better mimicking unseen domains.
- Textual Guidance for Source-Style Reconstruction: Leveraging CLIP's multimodal understanding to generate text prompts that guide the diffusion model back to the source domain's style is a clever way to overcome the lack of direct source information during inference.
- Source-Biased Detector Advantage: The core idea of training a "source-biased" detector (one that prefers source-style features) is shown to be more robust to domain shifts than aiming for purely domain-invariant features, especially in single-domain generalization.
Key Results
- State-of-the-Art Performance: SDG-DiffDet achieves state-of-the-art results on both the Urban Scene dataset (37.1% mAP on unseen domains) and the Real to Artistic dataset (45.1% mAP on unseen domains).
- Significant Improvements: The method shows substantial gains over baseline methods, with improvements of up to 6.9% mAP on the Urban Scene dataset when both proposed modules are integrated.
- CLIP Initialization Benefits: Using CLIP-initialized feature encoders further boosts performance by an additional 1.8% mAP on the Urban Scene dataset.
- Qualitative Improvements: Visualizations show that SDG-DiffDet better distinguishes foreground and background regions and reduces false positives, leading to more accurate object classifications, especially in challenging conditions like night scenes. t-SNE visualizations confirm that the proposed method achieves better class separation and feature alignment compared to augmentation-only baselines.
Limitations and Future Work
- Inference Speed: The paper acknowledges that the iterative nature of diffusion models leads to slower inference times (198 ms per image at T=10) compared to standard detectors like Faster R-CNN.
- Increased Model Complexity: SDG-DiffDet introduces approximately 7.8 million additional parameters for the diffusion and conditioning modules.
Future work could focus on developing more efficient diffusion-based techniques to reduce inference time and model complexity while maintaining performance. Exploring more advanced conditioning mechanisms or alternative diffusion architectures could also be promising directions.
Summary updated