DG-DETR: Toward Domain Generalized Detection Transformer
Seongmin Hwang, Daeyoung Han, Moongu Jeon
TL;DR
DG-DETR addresses domain generalization for DETR-based object detection by introducing two key components: WaveNP, a wavelet-guided style augmentation that perturbs only low-frequency domain-specific features to preserve object semantics, and DAQS, a domain-agnostic query selection mechanism that orthogonally projects queries away from style-prefixed axes to reduce domain biases. Implemented as a plug-and-play enhancement to DETR-based detectors, the approach yields improved out-of-distribution robustness across adverse weather and corruption benchmarks, including Diverse Weather Dataset (DWD) and Cityscapes-C, with substantial gains over baselines. The method is validated through ablations showing the necessity and complementarity of WaveNP and DAQS, and demonstrates compatibility with multiple DETR variants such as RT-DETR and DINO. Overall, DG-DETR offers a practical, effective strategy to extend DETR performance to unseen domains, enhancing reliability in real-world deployment.
Abstract
End-to-end Transformer-based detectors (DETRs) have demonstrated strong detection performance. However, domain generalization (DG) research has primarily focused on convolutional neural network (CNN)-based detectors, while paying little attention to enhancing the robustness of DETRs. In this letter, we introduce a Domain Generalized DEtection TRansformer (DG-DETR), a simple, effective, and plug-and-play method that improves out-of-distribution (OOD) robustness for DETRs. Specifically, we propose a novel domain-agnostic query selection strategy that removes domain-induced biases from object queries via orthogonal projection onto the instance-specific style space. Additionally, we leverage a wavelet decomposition to disentangle features into domain-invariant and domain-specific components, enabling synthesis of diverse latent styles while preserving the semantic features of objects. Experimental results validate the effectiveness of DG-DETR. Our code is available at https://github.com/sminhwang/DG-DETR.
