NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Domain-Aware Fine-Tuning of Foundation Models

Ugur Ali Kaplan, Margret Keuper, Anna Khoreva, Dan Zhang, Yumeng Li

Abstract

Foundation models (FMs) have revolutionized computer vision, enabling effective learning across different domains. However, their performance under domain shift is yet underexplored. This paper investigates the zero-shot domain adaptation potential of FMs by comparing different backbone architectures and introducing novel domain-aware components that leverage domain related textual embeddings. We propose domain adaptive normalization, termed as Domino, which explicitly leverages domain embeddings during fine-tuning, thus making the model domain aware. Ultimately, Domino enables more robust computer vision models that can adapt effectively to various unseen domains.

Introduction

While Foundation Models like CLIP or DINOv2 are powerful, they often struggle with domain shift. For instance, a semantic segmentation model trained on clear, sunny streets (e.g., the Cityscapes dataset) may fail when deployed in rainy or foggy environments (e.g., the ACDC dataset). Fine-tuning these large models for specific tasks often leads to "knowledge forgetting," where the model loses its general-purpose robustness. Furthermore, most models lack environmental awareness. This research explores whether the rich textual knowledge within foundation models can be used to adapt to unseen environments without requiring target-domain training data.

Methods

The proposed framework is built upon Visual Perception with Pre-trained Diffusion models (VPD), utilizing Stable Diffusion as a backbone. The core contribution, Domino (Domain Adaptive Normalization), consists of two primary components:

  1. Automatic Domain Embedding Extraction: Instead of manual labeling, the system uses CLIP to extract domain-specific textual embeddings. By comparing input images against a set of text descriptions (e.g., "sunny," "rainy," "night"), a weighted "domain embedding" ($W$) is generated to represent the visual context.
  2. Domain Adaptive Normalization: This embedding is fed into the model’s decoder to modulate features. The researchers explored two variants: Domino-Add (adding domain info) and Domino-Sub (subtracting domain info). Surprisingly, Domino-Sub performed better, as it encourages the model to learn domain-invariant features by effectively "subtracting" environmental noise to focus on core object structures.

Key Insights

  • Backbone Selection: Stable Diffusion proved to be a superior backbone for segmentation tasks compared to CLIP or DINOv2. Its generative training objective appears to make it more resilient to catastrophic forgetting during full fine-tuning.
  • The Power of Subtraction: Explicitly removing domain information (Domino-Sub) forces the model to identify structural elements that remain constant across different weather conditions, leading to better generalization.
  • Data Mixing: When augmenting training with synthetic data to simulate diverse environments, a 50/50 split between real and synthetic data yielded the best balance for generalization.

Key Results

The Stable Diffusion-based VPD model achieved a 62.50 mIoU on the unseen ACDC dataset, significantly outperforming DINOv2 (22.35) and CLIP-based methods (~36). Specifically, the addition of the Domino-Sub module improved the ACDC mIoU from a 62.61 baseline to 65.00.

Qualitative comparison of semantic segmentation in an unseen rainy domain: Unseen domain (top-left), Ground Truth (top-right), Baseline (bottom-left), and the proposed Domino method (bottom-right).

Beyond raw performance, the robustness metric (mIoU%—the ratio of performance on unseen vs. seen domains) increased from 81.45% to 85.38% with Domino-Sub, indicating significantly higher stability across environments.

Conclusion

Domino demonstrates that making foundation models "aware" of their environment through textual embeddings can significantly enhance their robustness to domain shift. While the current approach relies on pre-defined domain descriptions and carries the computational weight of Stable Diffusion, it opens new avenues for dense prediction tasks like depth estimation and instance segmentation in autonomous systems.

Summary updated

BibTeX
@inproceedings{kaplan2024domain,
  author = {Ugur Ali Kaplan and Margret Keuper and Anna Khoreva and Dan Zhang and Yumeng Li},
  title = {{Domain-Aware Fine-Tuning of Foundation Models}},
  booktitle = {FM-Wild @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=fIc8BXTKVc},
}
Figure