TL;DR
VFM$^4$SDG introduces a novel dual-prior learning framework that leverages frozen Vision Foundation Models (VFMs) to prevent object detectors from failing in unseen environments. By identifying that domain shifts cause objects to blend into the background (object-to-background collapse), the method distills stable relational structures into the encoder and enhances decoder queries with semantic-contextual priors, achieving state-of-the-art generalization across adverse weather and lighting conditions.
What Problem Does This Paper Address?
Object detection models typically perform well when the deployment environment matches the training data. However, in real-world scenarios, changes in weather, lighting, and imaging conditions cause severe performance drops. This challenge is studied under Single-Domain Generalized Object Detection (SDGOD), where a model is trained on a single source domain (e.g., clear daytime) and must generalize to unseen target domains (e.g., foggy, rainy, or nighttime conditions) without any target-domain data during training.
While traditional approaches rely heavily on data augmentation or domain-invariant feature learning, they often overlook how domain shifts disrupt a detector's internal prediction stability. The authors discover that in Transformer-based (DETR-style) detectors, domain shift primarily leads to a massive spike in missed detections (false negatives) rather than classification errors. They term this phenomenon object-to-background collapse, where the detector's encoder fails to separate foreground objects from the background, ultimately destabilizing the decoder's query-object binding process.
Methods
To combat this collapse, the authors propose VFM$^4$SDG, a framework that uses a frozen Vision Foundation Model (specifically DINOv3) as a reliable cross-domain stability prior. The framework consists of two core components integrated into the detector's encoding and decoding stages:
-
Cross-domain Stable Relational Prior Distillation (CSRPD): During the encoding stage, token-wise relation matrices are extracted from the frozen VFM. Because VFMs maintain stable object-background boundaries even under severe noise, these matrices serve as a structural blueprint. The framework distills these stable relations into the detector's multi-scale encoder feature maps using a Smooth-$\ell_1$ loss, forcing the detector to maintain sharp object-background separation.
-
Semantic-Contextual Prior-based Query Enhancement (SCPQE): In the decoding stage, the framework stabilizes the object queries before they enter the decoder layers. It injects two types of priors via cross-attention:
-
Semantic Identity-Guided Attention (SIGA): Injects precomputed category prototypes derived from source-domain VFM features to anchor query semantics.
- Contextual Spatial Grounding Attention (CSGA): Interacts with global VFM feature tokens to provide spatially aware context, ensuring stable query-object localization.
Datasets
The authors evaluate their method on the standard SDGOD benchmark, which is derived from autonomous driving datasets and split into five distinct environmental conditions:
- Source Domain (Training & Testing): Daytime-Clear (19,395 training images, 8,313 testing images).
- Unseen Target Domains (Testing Only): Daytime-Foggy (3,775 images), Dusk-Rainy (3,501 images), Night-Clear (26,158 images), and Night-Rainy (2,494 images).
Performance is measured using mean Average Precision at a 50% IoU threshold (mAP@50).
Key Insights and Ideas
- Missed Detections over Misclassification: The primary failure mode under domain shift isn't category confusion (e.g., mistaking a car for a truck), but rather the complete disappearance of foreground activation, causing objects to be treated as background.
- VFMs as Structural Anchors: While standard detector backbones suffer severe feature distortion under rain or darkness, self-supervised VFMs like DINOv3 retain remarkably stable internal relational structures and object boundaries across domains.
- Relational Distillation beats Absolute Semantics: The authors show that distilling token-to-token relationships (structural geometry) is far more effective for generalization than distilling absolute semantic feature values, which can inadvertently lock in source-domain biases.
Key Results
VFM$^4$SDG was validated across two mainstream DETR-based detection frameworks: DINO and Co-DETR.
- Quantitative Performance: Built on Co-DETR, VFM$^4$SDG achieved the highest overall average performance of 50.8% mAP, outperforming the baseline by +6.6% mAP. Under the DINO framework, it delivered an +8.0% mAP improvement.
- Hardest Scenarios: The gains were most pronounced in the most severe environments. In the compounded Night-Rainy scenario, VFM$^4$SDG boosted Co-DETR performance from 18.3% to 29.0% mAP (+10.7%).
- Qualitative Robustness: Visualizations confirm that the model successfully mitigates object-to-background collapse, accurately detecting small, distant, or partially occluded objects where baseline models fail entirely.
Limitations and Future Work
The primary limitation of VFM$^4$SDG is its computational overhead. Incorporating a large foundation model like DINOv3 introduces a massive number of total parameters during training. Although the VFM is frozen and only learnable modules are optimized, the inference speed drops (e.g., Co-DETR drops from 10.49 FPS to 4.05 FPS).
The authors note that future research should focus on developing lightweight, real-time generalized detection frameworks that can maintain this cross-domain robustness without sacrificing inference efficiency.
Summary updated