TL;DR
While vision foundation models excel at zero-shot classification, fine-tuning them for dense prediction tasks like semantic segmentation often degrades their robustness under domain shifts. This paper introduces Domino, a domain-aware fine-tuning strategy that automatically extracts domain textual embeddings using CLIP and modulates both diffusion prompts and decoder feature normalizations. By deliberately subtracting domain cues during fine-tuning, the method enforces domain-invariant representations, significantly improving generalization to unseen adverse weather conditions.
What Problem Does This Paper Address?
Foundation models (FMs) pre-trained on web-scale data possess rich, generalizable representations. However, directly applying them to dense downstream tasks like semantic segmentation requires fine-tuning task-specific decoders or backbone weights. This adaptation often induces catastrophic forgetting: a model fine-tuned on clear-day driving footage frequently fails when faced with adverse weather (e.g., rain, fog, snow, or nighttime).
The authors tackle the challenge of zero-shot domain adaptation for semantic segmentation—ensuring a model trained strictly on a source domain can generalize to target domains without seeing any target-domain images during training.
Methods
The authors adopt VPD (Visual Perception with Diffusion), which leverages a pre-trained Stable Diffusion (SD) UNet backbone alongside a lightweight segmentation decoder. Around this framework, they introduce two core ideas:
[Input Image] ───► [CLIP Image Encoder] ─┐
├─► Softmax Sim. ─► Domain Embedding (W)
[Domain Texts] ──► [CLIP Text Encoder] ──┘ │
├──► Prompt Subtraction: (Class Prompt - W)
└──► Domino Normalization: γ(W) · f_norm + μ(W)
- Automatic Domain Embedding Extraction: Rather than relying on discrete, manual domain tags, the framework uses CLIP to dynamically characterize image style. A bank of text descriptions (e.g., weather conditions, time of day) is embedded via the CLIP text encoder. An input image is embedded via the CLIP image encoder, and a soft-weighted average across all text embeddings produces a continuous image-specific domain embedding $W$.
- Domain-Aware Prompt Manipulation: The domain embedding $W$ is combined with class prompt embeddings before feeding into the cross-attention layers of the SD UNet. The authors test both addition (injecting domain context) and subtraction (filtering out domain-specific cues to enforce domain invariance).
-
Domino (Domain Adaptive Normalization): In the segmentation decoder, intermediate feature maps $f$ undergo adaptive normalization inspired by SPADE: $$\hat{f} = \frac{f - \mu_f}{\sigma_f} \cdot \gamma(W) + \mu(W)$$ where $\gamma(\cdot)$ and $\mu(\cdot)$ are learned MLP projections conditioned on the domain embedding $W$.
-
Synthetic Data Augmentation: To expose the model to broader visual variations, the authors synthesize diverse weather scenes using an autoregressive layout-to-image diffusion model (ALDM) conditioned on source segmentation masks.
Datasets
- Source Domain (Training): Cityscapes, containing urban street scenes collected primarily across German cities during daytime and clear weather.
- Target Domain (Zero-Shot Evaluation): ACDC (Adverse Conditions Dataset with Correspondences), featuring identical semantic categories captured under four adverse visual conditions: fog, nighttime, rain, and snow.
- Synthetic Benchmark: Images generated via ALDM using Cityscapes semantic masks guided by domain-varying textual prompts.
Key Insights and Ideas
- Generative pretraining beats contrastive/self-supervised pretraining for transfer robustness: Among evaluated backbones (DINOv2, CLIP ViT/ResNet, supervised ResNetRS), Stable Diffusion demonstrated superior resilience to out-of-domain degradation. Contrastive models suffered more severe catastrophic forgetting during full fine-tuning.
- Subtraction enforces domain invariance: Subtracting the domain embedding from prompt embeddings (
Domino-Sub) delivered substantially better out-of-domain performance than adding it (Domino-Add). Removing domain-specific information forces the network to rely on structural and semantic primitives rather than environmental textures. - Adding domain cues helps in-domain accuracy: While subtraction aids generalization to unseen domains, adding domain context (
Domino-Add) improved source-domain (Cityscapes) mIoU, indicating that explicit domain cues help when test conditions match training conditions. - Synthetic data requires real anchoring: Synthetic data improved robustness when mixed 50/50 with real data, but training purely on synthetic data led to severe drops in both domains due to synthetic artifacts and quality gaps.
Key Results
- Backbone Comparison: On Cityscapes $\rightarrow$ ACDC zero-shot transfer, the diffusion-based VPD baseline outperformed all alternatives, achieving 62.50% mIoU on ACDC (retaining 81.36% of its 76.82% Cityscapes mIoU), compared to CLIP ViT-B/16 (36.98% mIoU, 50.31% retention) and ResNetRS-420 (50.85% mIoU, 68.96% retention).
- Domino Generalization:
- Baseline VPD: 76.87% (Cityscapes) / 62.61% (ACDC) / 81.45% retention.
- Domino-Sub: Reached 65.00% mIoU on ACDC (85.38% retention) with 76.13% on Cityscapes.
- Domino-Add: Achieved the highest in-domain score of 77.20% mIoU on Cityscapes and 63.53% on ACDC.
- Synthetic Data Mixing: An even 50/50 split of real and ALDM-generated synthetic data boosted baseline VPD from 62.61% to 64.49% mIoU on ACDC (83.68% retention).
Limitations and Future Work
- Predefined Domain Taxonomy: The automated extraction process relies on predefined prompt concepts (e.g., weather, lighting). If an unseen domain exhibits shifts outside the predefined textual vocabulary, the extracted embedding quality may degrade.
- Computational Cost: Fine-tuning an entire Stable Diffusion UNet backbone is computationally heavy compared to lightweight vision transformers or convolutional nets.
- Training Dynamics for ViTs: Models like DINOv2 severely underperformed under the fixed 80k-iteration schedule due to slower convergence, suggesting that fair comparison across vastly different model families under equal iteration budgets remains challenging.
Summary updated