Abstract: Vision Foundation Models (VFMs) excel in generalization due to large-scale pretraining, but fine-tuning them for Domain Generalized Semantic Segmentation (DGSS) while maintaining this ability remains challenging. Existing approaches either selectively fine-tune parameters or freeze the VFMs and update only the adapters, both of which may underutilize the VFMs' full potential in DGSS tasks. We observe that domain-sensitive parameters in VFMs, arising from task and distribution differences, can hinder generalization. To address this, we propose FisherTune, a robust fine-tuning method guided by the Domain-Related Fisher Information Matrix (DR-FIM). DR-FIM measures parameter sensitivity across tasks and domains, enabling selective updates that preserve generalization and enhance DGSS adaptability. FisherTune incorporates variational inference to stabilize DR-FIM estimation, treating parameters as Gaussian-distributed variables and leveraging pre-trained priors. Extensive experiments show that FisherTune achieves superior cross-domain segmentation while maintaining generalization, outperforming selective-parameter and adapter-based methods.
Introduction
Domain Generalized Semantic Segmentation (DGSS) presents a significant challenge in computer vision: training a model on a source domain (e.g., synthetic data from GTA5) such that it generalizes effectively to unseen, real-world target domains (e.g., Cityscapes, BDD100K) without additional training. Vision Foundation Models (VFMs) like DINOv2 and CLIP offer a powerful foundation due to their massive pre-training, yet adapting them for DGSS is non-trivial.
Standard adaptation strategies often fall short. Full fine-tuning frequently leads to "catastrophic forgetting," where the model's general-purpose features are overwritten by domain-specific noise. Conversely, parameter-efficient methods like adapters may fail to fully unlock the VFM's latent representational power. Existing selective tuning methods often focus on task importance but neglect the critical factor of domain sensitivity. FisherTune addresses this by identifying and updating only the specific internal parameters that are sensitive to distribution shifts.
Methodology
The core of FisherTune is the Domain-Related Fisher Information Matrix (DR-FIM). While standard Fisher Information identifies parameters crucial for a specific task, DR-FIM measures the sensitivity of parameters to domain shifts. This is achieved by calculating the divergence in Fisher Information between the source domain and a simulated "unseen" domain, created through feature perturbation techniques that mimic environmental noise.
To handle the computational complexity and potential instability of estimating FIM for models with hundreds of millions of parameters, FisherTune employs Variational Estimation. By treating model parameters as Gaussian-distributed random variables, the method provides a regularized and stable estimation of parameter sensitivity. The tuning process follows a dynamic schedule, gradually increasing the percentage of tuned parameters—starting with the most domain-sensitive—while keeping the "generalist" parameters frozen to preserve pre-trained knowledge.
Experimental Results
FisherTune was evaluated across diverse benchmarks, using GTA5 as the source and testing on Cityscapes, BDD100K, and Mapillary. It was also tested against adverse conditions in the ACDC dataset (Rain, Snow, Fog, Night). The method demonstrated consistent superiority across various VFM backbones, including CLIP, MAE, SAM, EVA02, and DINOv2.
Key findings include:
- Superior Generalization: On the GTA5 $\rightarrow$ Cityscapes/BDD/Mapillary benchmark, FisherTune achieved a 66.5% mIoU with DINOv2, significantly outperforming adapter-based methods like Rein and selective methods like ChildTune.
- Robustness to Adverse Weather: In the ACDC dataset, FisherTune showed gains of up to 5.8% mIoU over baseline freezing methods, proving its effectiveness in extreme distribution shifts.
- Efficiency: By tuning only approximately 5% of the parameters, FisherTune achieves better results than full fine-tuning while maintaining a much smaller trainable parameter footprint.
Discussion and Conclusion
Analysis of the model's internal structure revealed that domain-sensitive parameters are not uniformly distributed; they tend to cluster in the Query (Q) and Key (K) projections of Transformer blocks, particularly in deeper layers. This supports the "Generalist vs. Specialist" hypothesis: some parameters are foundational for vision, while others are specialists that must be adapted to handle new environments.
FisherTune provides a surgical, robust framework for VFM adaptation. While it introduces some initial computational overhead for FIM estimation, the resulting performance and parameter efficiency make it a compelling choice for DGSS. Future work will explore extending this Fisher-guided approach to multi-modal foundation models and temporal domain shifts in video segmentation.
Summary updated