Introduction
Object detection models have achieved remarkable success in controlled environments, yet they often struggle when deployed in the real world where environmental conditions vary significantly from training data. This challenge is formalized as Single-Source Domain Generalized Object Detection (SDGOD). In SDGOD, a model is trained on a single "source" domain (e.g., clear weather) and must generalize to multiple unseen "target" domains (e.g., fog, rain, or night) without further fine-tuning.
The primary obstacle in SDGOD is "shortcut learning," where models rely on spurious correlations—non-causal associations such as linking specific background colors or lighting conditions to object classes. For instance, if a training set primarily features white trucks, a model may learn that "whiteness" is a defining characteristic of a truck, leading to misclassifications when encountering white buses or trucks of different colors in a new environment. This paper introduces Cauvis (Causal Visual Prompts), a framework designed to mitigate these correlations by leveraging causal inference and frequency-based feature extraction.
Methodology
Cauvis addresses domain shift by integrating causal mechanisms into the visual prompting process. The framework is built upon a frozen DINOv2 backbone, utilizing its robust foundational representations while introducing two specialized architectural components.
1. Cross-Attention as Causal Intervention
Traditional visual prompting often involves prepending learnable tokens to the input sequence. Cauvis instead employs a cross-attention mechanism to integrate prompts. The authors provide a mathematical foundation for this approach, demonstrating that the cross-attention operation is equivalent to a "backdoor adjustment" in causal inference. By treating prompts as pseudo-modal signals, the model performs a soft-thresholding on the attention matrix. This effectively allows the model to "intervene" on the input data, de-emphasizing non-causal features (noise) and focusing on invariant semantic features (signal).
2. Dual-Branch Adapter Architecture
To further decouple invariant features from domain-specific noise, Cauvis utilizes a dual-branch adapter structure:
- Causal Branch: This branch focuses on local spatial patterns and the underlying semantics of the objects, ensuring the model retains a strong understanding of "what" an object is regardless of its surroundings.
- Auxiliary Fourier Branch: Recognizing that object shape is more stable across domains than color or lighting, this branch operates in the frequency domain. By applying Fourier Transforms, it extracts high-frequency components (edges and contours) while suppressing low-frequency components (global color casts or illumination styles). This forces the model to prioritize structural information over volatile environmental cues.
Experimental Evaluation
The efficacy of Cauvis was evaluated across several rigorous benchmarks designed to test robustness and generalization:
- SDGOD Benchmark: The model was trained on the Cityscapes "Day-Clear" dataset and tested on four challenging unseen domains: Day-Foggy, Dusk-Rainy, Night-Rainy, and Night-Clear.
- Corruption Benchmarks: To test general robustness, the authors utilized Cityscapes-C and BDD100K-C, which include 15 types of synthetic and real-world corruptions such as motion blur, snow, and digital noise.
Results and Discussion
Cauvis established a new state-of-the-art (SOTA) for single-source generalization, demonstrating significant performance margins over existing methods:
- Generalization Gains: The framework outperformed previous methods by 15.9% to 31.4% mAP across the SDGOD test suites.
- Extreme Weather Resilience: In the highly challenging "Dusk-Rainy" scenario, Cauvis achieved a staggering 31.4 mAP improvement over the previous best-performing models.
- Robustness to Corruption: On the Cityscapes-C benchmark, Cauvis showed a 13.8% improvement in mean Performance under Corruption (mPC), indicating that the model's improvements are not limited to specific weather types but represent a broader increase in visual robustness.
These results highlight the power of combining foundation models like DINOv2 with targeted causal interventions. By freezing the backbone and only tuning the Cauvis modules, the authors achieved superior performance with manageable training overhead.
Conclusion and Future Work
Cauvis represents a significant step toward robust autonomous vision by shifting the focus from simple data augmentation to causal feature alignment. By mathematically linking visual prompts to backdoor adjustments and utilizing frequency-domain filtering, the model successfully ignores environmental "shortcuts."
Despite these gains, challenges remain. Real-world spurious correlations are often more complex than simple color biases, and the computational cost of training—requiring significant GPU resources—remains a barrier for edge deployment. Future research will focus on making these causal prompts more lightweight and improving the interpretability of the learned tokens to better understand the semantic roles they play in the detection process.
Summary updated